Giter Site home page Giter Site logo

crosstool-ng's Introduction

Crosstool-NG

Introduction

Crosstool-NG aims at building toolchains. Toolchains are an essential component in a software development project. It will compile, assemble and link the code that is being developed. Some pieces of the toolchain will eventually end up in the resulting binaries: static libraries are but an example.

Before reporting a bug, please read bug reporting guidelines. Bugs that do not provide the required information will be closed without explanation.

Refer to documentation at crosstool-NG website for more information on how to configure, install and use crosstool-NG.

Note 1: If you elect to build a uClibc-based toolchain, you will have to prepare a config file for uClibc with <= crosstool-NG-1.21.0. In >= crosstool-NG-1.22.0 you only need to prepare a config file for uClibc(or uClibc-ng) if you really need a custom config for uClibc.

Note 2: If you call ct-ng --help you will get help for make(2). This is because ct-ng is in fact a make(2) script. There is no clean workaround for this.

Repository layout

To clone the crosstool-NG repository:

git clone https://github.com/crosstool-ng/crosstool-ng

Build Status

  • CI

Old repositories

These are the old Mercurial repositories. They are now read-only: http://crosstool-ng.org/hg/

Pull Requests and Issues

You can find open Pull Requests on GitHub here and you can find open issues here.

Contributing

To contribute to crosstool-NG it is helpful to provide as much information as you can about your change, including any updates to documentation (if appropriate), and test... test... test.

git clone https://github.com/crosstool-ng/crosstool-ng
  • Create a topic branch for your work
git checkout -b fix_comment_typo
  • Make changes
  • hack
  • test
  • hack
  • etc...
  • Add your changes
git add [file(s) that changed, add -p if you want to be more specific]
  • Verify you are happy with your changes to be commited
git diff --cached
  • Commit changes
git commit -s

The -s automatically adds your Signed-off-by: [name] <email> to your commit message. Your commit will be rejected without this.

Also, please explain what your change does. "Fix stuff" will be rejected. For examples of good commit messages, read the changelog.

  • Push your topic branch with your changes to your fork
git push origin fix_comment_typo
  • Go to the crosstool-ng project and click the Compare & pull request button for the branch you want to open a pull request with.
  • Review the pull request changes, and verify that you are opening a pull request for the appropriate branch. The title and message should reflect the nature/theme of the changes in the PR, say the title is Fix comment typos and the message details any specifics you can provide.
  • You might change the crosstool-ng branch, if you are opening a pull request that is intended for a different branch. For example, when you created your topic branch you could have done:
git checkout -b fix_out_of_date_patch origin/1.22

Then when you get to this pull request screen change the base branch from master to 1.22

  • By creating a pull request, the PR is entered into the backlog. A travis-ci job will run to test your changes against a select set of samples. As they start to get worked, they should be placed in the Ready state. PRs that are being worked are In Progress. If a questions come up about the commit that might involve changes to the commit then the PR is placed in Waiting For Response, you have two options:
  1. Fix the issue with the commit by adding a new commit in the topic branch that fixes the code review. Then push your changes to your branch. This option keeps the comments in the PR, and allows for further code review. I personally dislike this, because people are lazy and fix reviews with fix more review issues. Please make good commit messages! All rules about commits from above apply! THIS IS PREFERED

Add your changes

git add [file(s) that changed, add -p if you want to be more specific]

Verify you are happy with your changes to be commited

git diff --cached

Commit changes

git commit -s
  • Push your topic branch with your changes to your fork
git push origin fix_comment_typo

At this point the PR will be updated to have the latest commit to that branch, and can be subsequently reviewed.

  1. Interactively rebase the offending commit(s) to fix the code review. This option is slightly annoying on Github, as the comments are stored with the commits, and are hidden when new commits replace the old commits. They used to disappear completely; now Github shows a grey 'View outdated' link next to the old commits.

This recipe also comes handy with other issues, like your topic branch not being up-to-date with master:

git fetch --all
git rebase --ignore-whitespace origin master
git rebase -i <offending-commit-id>^

NOTE: The --ignore-whitespace stops git apply (which is called by rebase) from changing any whitespace when it runs.

Replace pick with edit or remove the line to delete a commit. Fix the issue in the code review.

git add [file(s)]
git rebase --continue
<update commit comment if needed>
git push --force origin fix_comment_typo

Patchwork

We previously used patchwork for development, but it is no longer used. I'd like to see patches that are still applicable turned into Pull Requests on GitHub.

You can find the list of pending patches available on patchwork.

More Info

You can find all of this and more at crosstool-ng.org

Report issues at the project site on GitHub.

We have a mailing list. Archive and subscription info can be found here: https://sourceware.org/ml/crossgcc/

Aloha! :-)

crosstool-ng's People

Contributors

abrodkin avatar antmak avatar bartvdrmeulen avatar bhundven avatar bthebaudeau avatar christopher83 avatar codyps avatar cpackham avatar davidholsgrove avatar deece avatar dimkr avatar egtvedt avatar enunes avatar galak avatar jasmin-j avatar jcmvbkbc avatar jnohlgard avatar keith-packard avatar kirillsmirnov avatar ksergeyv avatar mingwandroid avatar netzimme avatar nolange avatar nzmichaelh avatar stephanosio avatar stilor avatar tpetazzoni avatar tvb377 avatar yann-morin-1998 avatar ysharma-harris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crosstool-ng's Issues

Canadian cross build seems to be broken

Building a canadian cross toolchains seems to be broken in current head revision. Even the supplied sample fails:

$ ct-ng i586-mingw32msvc,i686-none-linux-gnu   LN    config
  MKDIR config.gen
  IN    config.gen/arch.in
  IN    config.gen/kernel.in
  IN    config.gen/cc.in
  IN    config.gen/binutils.in
  IN    config.gen/libc.in
  IN    config.gen/debug.in
  CONF  config/config.in
#
# configuration saved
#

***********************************************************

Initially reported by:
URL:

***********************************************************

Now configured for "i586-mingw32msvc,i686-none-linux-gnu"
$ ct-ng build
[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20150115.142754
[INFO ]  Building environment variables
[EXTRA]  Preparing working directories
[ERROR]  Missing: 'i586-mingw32msvc-ar' or 'i586-mingw32msvc-ar' or 'ar' : either needed!
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_Abort[scripts/functions@331]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@449]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/data/users/mweisser/projects/sd/MCP/Devices/MCPJ/boot/toolchain/ct-ng/install/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 0:00.66)
[00:01] / make: *** [build] Error 1

arm-unknown-linux-uclibcgnueabi build fail

I run a crosstool-ng 1.21 from debian (pve) x64 with a 2.6 kernel.

Following http://roshan.info/blog/2013/09/01/compiling-your-own-binaries-for-the-transcend-wifi-sd-card/ to try to build fails for the platform arm-unknown-linux-uclibcgnueabi (see Error 1 bellow).

First fail to uncompress some tar (might be a problem with an extension from a source), switch from tar to bsdtar in functions has workaround this first issue.

But, it refuse to compile with some off error (see Error 2 bellow) related to updates in gcc, downgrading to 4.9.x workaround this issue. But it also revealed some other error (see Error 3 bellow) related to CLooG. Trying to update CLooG (see updated cloog.in bellow) it will bring some new error (see Error 4 bellow). The target server contains the right new version, but the version number get lots for an unknown reason before the fetch.

Besides, I have not found a documentation how to add new version of a lib in dependancy.

Error 1 :

[DEBUG]    ==> Executing: 'touch' '/home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/.mpc-1.0.2.extracted'
[DEBUG]    ==> Executing: 'rm' '-f' '/home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/.mpc-1.0.2.extracting'
[DEBUG]    Entering '/home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/mpc-1.0.2'
[EXTRA]    Patching 'mpc-1.0.2'
[DEBUG]    Looking for patches in '/opt/crosstool-ng/lib/ct-ng.1.21.0/patches/mpc/1.0.2'...
[DEBUG]    Looking for patches in ''...
[ALL  ]    Overiding config.guess and config.sub
[ALL  ]    `/home/bjb3/arm5l/crosstool-ng-1.21.0/scripts/config.guess' -> `./config.guess'
[ALL  ]    `/home/bjb3/arm5l/crosstool-ng-1.21.0/scripts/config.sub' -> `./config.sub'
[DEBUG]    ==> Executing: 'touch' '/home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/.mpc-1.0.2.patched'
[DEBUG]    ==> Executing: 'rm' '-f' '/home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/.mpc-1.0.2.patching'
[DEBUG]    ==> Executing: 'touch' '/home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/.libelf-0.8.13.extracting'
[DEBUG]    Entering '/home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src'
[EXTRA]    Extracting 'libelf-0.8.13'
[DEBUG]    ==> Executing: 'mkdir' '-p' 'libelf-0.8.13'
[DEBUG]    ==> Executing: 'tar' '--strip-components=1' '-C' 'libelf-0.8.13' '-xv' '-f' '-'
[FILE ]    tar: Archive is compressed. Use -z option
[FILE ]    tar: Error is not recoverable: exiting now
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Extracting and patching toolchain components'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: CT_Extract[scripts/functions@982]
[ERROR]  >>        called from: do_libelf_extract[scripts/build/companion_libs/200-libelf.sh@19]
[ERROR]  >>        called from: do_companion_libs_extract[scripts/build/companion_libs.sh@22]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@606]

Error 2 :

[ALL  ]    checking for struct tms... yes
[ALL  ]    checking for clock_t... yes
[ALL  ]    checking for F_SETLKW... yes
[ALL  ]    checking if mkdir takes one argument... no
[ALL  ]    For arm926ej-s real value is arm926ejs
[ALL  ]    For arm926ej-s real value is arm926ejs
[ALL  ]    Switch "--with-arch" may not be used with switch "--with-cpu"
[ERROR]    make[1]: *** [configure-gcc] Error 1
[ALL  ]    make[1]: Leaving directory `/home/bjb3/arm5l/crosstool-ng-1.21.0/.build/arm-unknown-linux-uclibcgnueabi/build/build-cc-core-p                                       ass-1'
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing pass-1 core C compiler'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_cc_core_backend[scripts/build/cc/gcc.sh@478]
[ERROR]  >>        called from: do_cc_core_pass_1[scripts/build/cc/gcc.sh@107]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/opt/crosstool-ng/share/doc/crosstool-ng/ct-ng.1.21.0/B - Known issues.txt'

Error 3 :

[EXTRA]    Configuring CLooG
[EXTRA]    Building CLooG
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/domain.c:799:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/domain.c:906:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/domain.c:963:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/domain.c:1093:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/domain.c:1215:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/domain.c:1634:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/domain.c:1697:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/domain.c:1772:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/domain.c:1785:32: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/domain.c:1821:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/domain.c:1822:2: error: unknown type name 'isl_int'
[ERROR]    make[2]: *** [libcloog_isl_la-domain.lo] Error 1
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/constraints.c:269:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/constraints.c:532:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/constraints.c:544:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/constraints.c:556:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/constraints.c:703:2: error: unknown type name 'isl_int'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/constraints.c:703:20: error: 'isl_int' undeclared (first use in this function)
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/constraints.c:703:29: error: expected expression before ')' token
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/constraints.c:704:10: error: expected ';' before 'v'
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/constraints.c:706:15: error: 'v' undeclared (first use in this function)
[ERROR]    /home/bjb3/arm5l/crosstool-ng-1.21.0/.build/src/cloog-0.18.1/source/isl/constraints.c:899:2: error: unknown type name 'isl_int'
[ERROR]    make[2]: *** [libcloog_isl_la-constraints.lo] Error 1
[ERROR]    make[1]: *** [all-recursive] Error 1
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing CLooG for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_cloog_backend[scripts/build/companion_libs/130-cloog.sh@144]
[ERROR]  >>        called from: do_cloog_for_host[scripts/build/companion_libs/130-cloog.sh@87]
[ERROR]  >>        called from: do_companion_libs_for_host[scripts/build/companion_libs.sh@36]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]

Error 4 :

[DEBUG]    Not at this location: "http://www.bastoul.net/cloog/pages/download/cloog-.zip"
[DEBUG]    Trying 'ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-.zip'
[DEBUG]    ==> Executing: 'wget' '--passive-ftp' '--tries=3' '-nc' '--progress=dot:binary' '-T' '10' '-O' '/home/bjb3/arm5l/crosstool-ng-1.21.0/.build/tarballs/cloog-.zip.tmp-dl' 'ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-.zip'
[ALL  ]    --2015-08-07 13:43:38--  ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-.zip
[ALL  ]               => `/home/bjb3/arm5l/crosstool-ng-1.21.0/.build/tarballs/cloog-.zip.tmp-dl'
[ALL  ]    Resolving gcc.gnu.org (gcc.gnu.org)... 209.132.180.131
[ALL  ]    Connecting to gcc.gnu.org (gcc.gnu.org)|209.132.180.131|:21... connected.
[ALL  ]    Logging in as anonymous ... Logged in!
[ALL  ]    ==> SYST ... done.    ==> PWD ... done.
[ALL  ]    ==> TYPE I ... done.  ==> CWD (1) /pub/gcc/infrastructure ... done.
[ALL  ]    ==> SIZE cloog-.zip ... done.
[ALL  ]    ==> PASV ... done.    ==> RETR cloog-.zip ...
[ALL  ]    No such file `cloog-.zip'.

Example of patched cloog.in :

# CLooG options

choice
    bool
    prompt "CLooG version"

if ISL

# Don't remove next line
# CT_INSERT_VERSION_BELOW

config CLOOG_V_O_18_4
    bool
    prompt "0.18.4"
    select CLOOG_0_18_or_later

config CLOOG_V_0_18_1
    bool
    prompt "0.18.1"
    select CLOOG_0_18_or_later

config CLOOG_V_0_18_0
    bool
    prompt "0.18.0"
    select CLOOG_0_18_or_later

endif # ISL

if PPL

config CLOOG_V_0_15_11
    bool
    prompt "0.15.11"
    select CLOOG_NEEDS_AUTORECONF

endif # PPL

endchoice

config CLOOG_VERSION
    string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
    default "0.18.4" if CLOOG_V_0_18_4
    default "0.18.1" if CLOOG_V_0_18_1
    default "0.18.0" if CLOOG_V_0_18_0
    default "0.15.11" if CLOOG_V_0_15_11

config CLOOG_0_18_or_later
    bool

config CLOOG_NEEDS_AUTORECONF
    bool

gccgo fails, missing objcopy.

I am trying to build a gcc targeting mips with gccgo enabled.

The build fails because gccgo cannot build its runtime without mips-linux-objcopy, which crosstool-ng is not building.

How can I enable objcopy in a build?

newlib libgloss fails to build with arm eabihf suffix

Building an armeabi target with newlib and the -hf tuple suffix fails to configure newlib due to objtype not being set.

I don't know the right approach to resolve this, though something like the patch below might work (does require autoconf to be run).

diff -ur newlib-1.20.0.orig/libgloss/arm/configure.in newlib-1.20.0/libgloss/arm/configure.in
--- newlib-1.20.0.orig/libgloss/arm/configure.in    2006-05-10 22:51:40.000000000 +0200
+++ newlib-1.20.0/libgloss/arm/configure.in 2015-01-04 15:27:41.471549917 +0100
@@ -49,7 +49,7 @@
 LIB_AM_PROG_AS

 case "${target}" in
-  *-*-elf | *-*-eabi)
+  *-*-elf | *-*-eabi*)
    objtype=elf-
    ;;
   *-*-coff)

Welcome to github

๐Ÿ‘, in my opinion this is the best decision made to move the project to github.

ld: library not found for -lcrt0.o

Hi,
I met this error during compiling the example "arm-unknown-linux-gnueabi".
I have searched some info from internet. One of the suggestion is to install Xcode tools. But i have installed the Xcode tools.. Anyone can help ?

ENV: mac os X 10.10.1
Here is the part of my logs.

[DEBUG] Checking that gcc can compile a trivial statically linked program (CT_WANTS_STATIC_LINK)
[DEBUG] You may need to ensure that static libraries such as libc.a are installed on your system
[DEBUG] ==> Executing: 'x86_64-build_apple-darwin14.0.0-gcc' '-O2' '-g' '-pipe' '/Volumes/pri-eabi/.build/arm-unknown-linux-gnueabi/build/test.c' '-static' '-o' '/Volumes/pri-eabi/.build/arm-unknown-linux-gnueabi/build/.gccout'
[DEBUG] ld: library not found for -lcrt0.o
[ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Checking that gcc can compile a trivial statically linked program (CT_WANTS_STATIC_LINK)'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@546]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> '/usr/local/crosstool-ng/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]

Build failed: undefined reference to `libgcc_s_resume'

I'm trying to build a toolchain for Raspberry Pi 2 which features a Cortex-A7 CPU.

I was using crosstool-NG 1.20.0 and I tried to build gcc 5.2.0 (which seems to have included most patches from rpi-gcc, I tried 4.9.3 and there were too many errors) with eglibc 2.13 and linux 4.1.6 (same as Raspbian wheezy) but failed during the C library installation stage.

Here's the log:

[ALL  ]    : /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/libc_nonshared.a
[ALL  ]    arm-unknown-linux-gnueabihf-gcc       -nostdlib -nostartfiles -r -o /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/libc_pic.os  -Wl,-d -Wl,--whole-archive /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/libc_pic.a
[ALL  ]    arm-unknown-linux-gnueabihf-gcc       -shared -Wl,-O1      -nostdlib -nostartfiles      -Wl,-dynamic-linker=/lib/ld-linux-armhf.so.3 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both       -Wl,--verbose 2>&1 |   sed > /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/shlib.ldsT       -e '/^=========/,/^=========/!d;/^=========/d'        -e 's/^.*.gnu.hash[   ]*:.*$/  .note.ABI-tag : { *(.note.ABI-tag) } &/' -e '/^[   ]*.hash[    ]*:.*$/{h;d;}' -e '/DATA_SEGMENT_ALIGN/{H;g}'        -e 's/^.**(.dynbss).*$/&  PROVIDE(__start___libc_freeres_ptrs = .);     *(__libc_freeres_ptrs)      PROVIDE(__stop___libc_freeres_ptrs = .);/'      -e 's@^.**(.jcr).*$@&   PROVIDE(__start___libc_subfreeres = .);     __libc_subfreeres : { *(__libc_subfreeres) }    PROVIDE(__stop___libc_subfreeres = .);  PROVIDE(__start___libc_atexit = .);     __libc_atexit : { *(__libc_atexit) }    PROVIDE(__stop___libc_atexit = .);  PROVIDE(__start___libc_thread_subfreeres = .);  __libc_thread_subfreeres : { *(__libc_thread_subfreeres) }  PROVIDE(__stop___libc_thread_subfreeres = .);   /DISCARD/ : { *(.gnu.glibc-stub.*) }@'
[ALL  ]    mv -f /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/shlib.ldsT /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/shlib.lds
[ALL  ]    arm-unknown-linux-gnueabihf-gcc       -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux-armhf.so.3  -B/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/csu/  -Wl,--version-script=/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main -L/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final -L/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/math -L/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/elf -L/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/dlfcn -L/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/nss -L/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/nis -L/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/rt -L/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/resolv -L/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/crypt -L/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/nptl -L/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/nptl -Wl,-rpath-link=/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final:/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/math:/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/elf:/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/dlfcn:/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/nss:/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/nis:/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/rt:/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/resolv:/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/crypt:/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/nptl:/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/nptl -o /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/libc.so -T /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/shlib.lds /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/csu/abi-note.o /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/elf/soinit.os /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/libc_pic.os /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/elf/sofini.os /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/elf/interp.os /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/elf/ld.so -lgcc 
[ALL  ]    /home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/libc_pic.os: In function `_Unwind_Resume':
[ALL  ]    :(.text+0x4e0): undefined reference to `libgcc_s_resume'
[ERROR]    collect2: error: ld returned 1 exit status
[ALL  ]    Makerules:649: recipe for target '/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/libc.so' failed
[ERROR]    gmake[2]: *** [/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final/libc.so] Error 1
[ALL  ]    gmake[2]: Leaving directory '/home/frederick/cross/.build/src/eglibc-2_13'
[ALL  ]    Makefile:12: recipe for target 'all' failed
[ERROR]    gmake[1]: *** [all] Error 2
[ALL  ]    gmake[1]: Leaving directory '/home/frederick/cross/.build/arm-unknown-linux-gnueabihf/build/build-libc-final'
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@451]
[ERROR]  >>        called from: do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@143]
[ERROR]  >>        called from: do_libc[scripts/build/libc/glibc-eglibc.sh-common@65]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]

Then I tried to apply patches from rpi-gcc patches for eglibc 2.13 and build again but also failed with the same error.

I have also tried some other patterns such as crosstool-NG 1.21.0 + glibc 2.13, crosstool-NG 1.21.0 + glibc linaro 2.13 and etc., but none of them succeeded.

After having googled for hours, all I found were about uClibc instead of glibc. How can I fix this?

How to support combined binutils-gdb directories

I just discovered the reason of my build errors.
Binutils 2.25.x doesn't support Cortex-M7 in gas.
I tracked it down to commit a715796ba188e7ca9eac6e613439b63fe50a677d (git://sourceware.org/git/binutils-gdb.git), for those who are curious.

This requires now the master branch of the binutils-gdb repository. But CT-NG currently expects binutils and gdb in two separate directories.
What is missing to support this are the following additional configure options to binutils:
--disable-gdb, --disable-libdecnumber, --disable-readline --disable-sim
and to GDB:
--disable-gas --disable-binutils --disable-ld --disable-gprof

With this additional options it should be possible to use the custom and custom location configuration
to build both binutils and GDB from the same directory, containing a recent GIT checkout.

To support the combined directory name "binutils-gdb" with CUSTOM_LOCATION_ROOT_DIR, it is required to add a configuration to tell CT-NG that a combined "binutils-gdb" tree is used. This is then used in binutils.sh and 300-gdb.sh to determine the package name for CT_GetCustom.

@bhundven, @yann-morin-1998:
Do you have another idea to support this in CT-NG?
Shall I prepare a patch to implement this?

@bhundven:
You mentioned a "checkout from repo" functionality in CT-NG. The above extensions might be useful for this, too.

Add GCC 5.1 support

Hi, GCC 5.1 is just released. ct-ng mostly works with it when i am using "custom cc dir", but it would be good to see gcc5.1 support in ct-ng built-in

GCC 4.9.3: Unable to find a usable ISL.

I'm building a toolchain with gcc v4.9.3, it seems the default ISL is 0.15 which does not work.

[CFG  ]    checking for version 0.10 of ISL... no
[CFG  ]    checking for version 0.11 of ISL... no
[CFG  ]    checking for version 0.12 of ISL... no
[CFG  ]    checking for version 0.14 of ISL... no
[ERROR]    configure: error: Unable to find a usable ISL.  See config.log for details.

Manually setting ISL to 0.14 fixes the problem.

[DEBUG] ./.build/tools/bin/install: line 2: exec: ginstall: not found

I'm tring to build on a Mac Os Yosemite, but I get the error in subject. Here is full build.log

Thank you for any help

[INFO ] Performing some trivial sanity checks
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/.build'
[DEBUG] ==> Executing: 'rm' '-f' '/Volumes/RPi-EABI/.build/backtrace'
[DEBUG] ==> Executing: 'touch' '/Volumes/RPi-EABI/.build/foo'
[DEBUG] Testing '! ( -f /Volumes/RPi-EABI/.build/FOO )'
[DEBUG] ==> Executing: 'rm' '-f' '/Volumes/RPi-EABI/.build/foo'
[DEBUG] Testing '-f /bin/bash -a -x /bin/bash'
[DEBUG] Creating bin-override for tools in '/Volumes/RPi-EABI/.build/tools'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/.build/tools/bin'
[DEBUG] Creating script-override for 'install' -> '"ginstall"'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/tools/bin/install'
[DEBUG] Creating script-override for 'bash' -> '"/bin/bash"'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/tools/bin/bash'
[DEBUG] Creating script-override for 'awk' -> '"gawk"'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/tools/bin/awk'
[DEBUG] Creating script-override for 'grep' -> '"/usr/local/bin/ggrep"'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/tools/bin/grep'
[DEBUG] Creating script-override for 'make' -> '"/usr/bin/make"'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/tools/bin/make'
[DEBUG] Creating script-override for 'sed' -> '"gsed"'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/tools/bin/sed'
[DEBUG] Creating script-override for 'libtool' -> '"glibtool"'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/tools/bin/libtool'
[DEBUG] Creating script-override for 'libtoolize' -> '"glibtoolize"'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/tools/bin/libtoolize'
[DEBUG] Creating script-override for 'objcopy' -> '"/usr/local/bin/gobjcopy"'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/tools/bin/objcopy'
[DEBUG] Creating script-override for 'objdump' -> '"/usr/local/bin/gobjdump"'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/tools/bin/objdump'
[DEBUG] Creating script-override for 'readelf' -> '"/usr/local/bin/greadelf"'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/tools/bin/readelf'
[DEBUG] Creating script-override for 'patch' -> '"/usr/bin/patch"'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/tools/bin/patch'
[DEBUG] Creating script-override for 'gperf' -> '"/usr/bin/gperf"'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/tools/bin/gperf'
[INFO ] Build started 20150102.112006
[DEBUG] =================================================================
[DEBUG] Dumping user-supplied crosstool-NG configuration
[DEBUG] ==> Executing: '/usr/bin/grep' '-E' '^(# )?CT_' '.config'
[DEBUG] CT_CONFIGURE_has_make381=y
[DEBUG] CT_CONFIGURE_has_cvs=y
[DEBUG] CT_CONFIGURE_has_svn=y
[DEBUG] CT_MODULES=y
[DEBUG] # CT_OBSOLETE is not set
[DEBUG] CT_EXPERIMENTAL=y
[DEBUG] # CT_EXPERIMENTAL_PATCHES is not set
[DEBUG] # CT_ALLOW_BUILD_AS_ROOT is not set
[DEBUG] # CT_DEBUG_CT is not set
[DEBUG] CT_LOCAL_TARBALLS_DIR="/Volumes/RPi-EABI/src"
[DEBUG] CT_SAVE_TARBALLS=y
[DEBUG] CT_CUSTOM_LOCATION_ROOT_DIR=""
[DEBUG] CT_WORK_DIR="/Volumes/RPi-EABI/.build"
[DEBUG] CT_PREFIX_DIR="/Volumes/RPi-EABI/will"
[DEBUG] CT_INSTALL_DIR="${CT_PREFIX_DIR}"
[DEBUG] CT_RM_RF_PREFIX_DIR=y
[DEBUG] CT_REMOVE_DOCS=y
[DEBUG] CT_INSTALL_DIR_RO=y
[DEBUG] CT_STRIP_ALL_TOOLCHAIN_EXECUTABLES=y
[DEBUG] # CT_FORBID_DOWNLOAD is not set
[DEBUG] # CT_FORCE_DOWNLOAD is not set
[DEBUG] CT_CONNECT_TIMEOUT=10
[DEBUG] # CT_ONLY_DOWNLOAD is not set
[DEBUG] # CT_USE_MIRROR is not set
[DEBUG] # CT_FORCE_EXTRACT is not set
[DEBUG] CT_OVERIDE_CONFIG_GUESS_SUB=y
[DEBUG] # CT_ONLY_EXTRACT is not set
[DEBUG] CT_PATCH_BUNDLED=y
[DEBUG] # CT_PATCH_LOCAL is not set
[DEBUG] # CT_PATCH_BUNDLED_LOCAL is not set
[DEBUG] # CT_PATCH_LOCAL_BUNDLED is not set
[DEBUG] # CT_PATCH_BUNDLED_FALLBACK_LOCAL is not set
[DEBUG] # CT_PATCH_LOCAL_FALLBACK_BUNDLED is not set
[DEBUG] # CT_PATCH_NONE is not set
[DEBUG] CT_PATCH_ORDER="bundled"
[DEBUG] CT_PARALLEL_JOBS=8
[DEBUG] CT_LOAD=""
[DEBUG] CT_USE_PIPES=y
[DEBUG] CT_EXTRA_CFLAGS_FOR_BUILD=""
[DEBUG] CT_EXTRA_LDFLAGS_FOR_BUILD=""
[DEBUG] CT_EXTRA_CFLAGS_FOR_HOST=""
[DEBUG] CT_EXTRA_LDFLAGS_FOR_HOST=""
[DEBUG] # CT_CONFIG_SHELL_SH is not set
[DEBUG] # CT_CONFIG_SHELL_ASH is not set
[DEBUG] CT_CONFIG_SHELL_BASH=y
[DEBUG] # CT_CONFIG_SHELL_CUSTOM is not set
[DEBUG] CT_CONFIG_SHELL="${bash}"
[DEBUG] # CT_LOG_ERROR is not set
[DEBUG] # CT_LOG_WARN is not set
[DEBUG] # CT_LOG_INFO is not set
[DEBUG] CT_LOG_EXTRA=y
[DEBUG] # CT_LOG_ALL is not set
[DEBUG] # CT_LOG_DEBUG is not set
[DEBUG] CT_LOG_LEVEL_MAX="EXTRA"
[DEBUG] # CT_LOG_SEE_TOOLS_WARN is not set
[DEBUG] CT_LOG_PROGRESS_BAR=y
[DEBUG] CT_LOG_TO_FILE=y
[DEBUG] CT_LOG_FILE_COMPRESS=y
[DEBUG] CT_ARCH="arm"
[DEBUG] CT_ARCH_SUPPORTS_BOTH_MMU=y
[DEBUG] CT_ARCH_SUPPORTS_BOTH_ENDIAN=y
[DEBUG] CT_ARCH_SUPPORTS_32=y
[DEBUG] CT_ARCH_SUPPORTS_64=y
[DEBUG] CT_ARCH_SUPPORTS_WITH_ARCH=y
[DEBUG] CT_ARCH_SUPPORTS_WITH_CPU=y
[DEBUG] CT_ARCH_SUPPORTS_WITH_TUNE=y
[DEBUG] CT_ARCH_SUPPORTS_WITH_FLOAT=y
[DEBUG] CT_ARCH_SUPPORTS_WITH_FPU=y
[DEBUG] CT_ARCH_SUPPORTS_SOFTFP=y
[DEBUG] CT_ARCH_DEFAULT_HAS_MMU=y
[DEBUG] CT_ARCH_DEFAULT_LE=y
[DEBUG] CT_ARCH_DEFAULT_32=y
[DEBUG] CT_ARCH_ARCH=""
[DEBUG] CT_ARCH_CPU="arm1176jzf-s"
[DEBUG] CT_ARCH_TUNE="arm1176jzf-s"
[DEBUG] CT_ARCH_FPU="vfp"
[DEBUG] # CT_ARCH_BE is not set
[DEBUG] CT_ARCH_LE=y
[DEBUG] CT_ARCH_32=y
[DEBUG] # CT_ARCH_64 is not set
[DEBUG] CT_ARCH_BITNESS=32
[DEBUG] CT_ARCH_FLOAT_HW=y
[DEBUG] # CT_ARCH_FLOAT_SW is not set
[DEBUG] CT_TARGET_CFLAGS=""
[DEBUG] CT_TARGET_LDFLAGS=""
[DEBUG] # CT_ARCH_alpha is not set
[DEBUG] CT_ARCH_arm=y
[DEBUG] # CT_ARCH_avr32 is not set
[DEBUG] # CT_ARCH_blackfin is not set
[DEBUG] # CT_ARCH_m68k is not set
[DEBUG] # CT_ARCH_microblaze is not set
[DEBUG] # CT_ARCH_mips is not set
[DEBUG] # CT_ARCH_powerpc is not set
[DEBUG] # CT_ARCH_s390 is not set
[DEBUG] # CT_ARCH_sh is not set
[DEBUG] # CT_ARCH_sparc is not set
[DEBUG] # CT_ARCH_x86 is not set
[DEBUG] CT_ARCH_alpha_AVAILABLE=y
[DEBUG] CT_ARCH_arm_AVAILABLE=y
[DEBUG] CT_ARCH_avr32_AVAILABLE=y
[DEBUG] CT_ARCH_blackfin_AVAILABLE=y
[DEBUG] CT_ARCH_m68k_AVAILABLE=y
[DEBUG] CT_ARCH_microblaze_AVAILABLE=y
[DEBUG] CT_ARCH_mips_AVAILABLE=y
[DEBUG] CT_ARCH_powerpc_AVAILABLE=y
[DEBUG] CT_ARCH_s390_AVAILABLE=y
[DEBUG] CT_ARCH_sh_AVAILABLE=y
[DEBUG] CT_ARCH_sparc_AVAILABLE=y
[DEBUG] CT_ARCH_x86_AVAILABLE=y
[DEBUG] CT_ARCH_SUFFIX=""
[DEBUG] # CT_MULTILIB is not set
[DEBUG] CT_ARCH_USE_MMU=y
[DEBUG] CT_ARCH_ENDIAN="little"
[DEBUG] # CT_ARCH_FLOAT_AUTO is not set
[DEBUG] # CT_ARCH_FLOAT_SOFTFP is not set
[DEBUG] CT_ARCH_FLOAT="hard"
[DEBUG] CT_ARCH_ARM_MODE="arm"
[DEBUG] CT_ARCH_ARM_MODE_ARM=y
[DEBUG] # CT_ARCH_ARM_MODE_THUMB is not set
[DEBUG] # CT_ARCH_ARM_INTERWORKING is not set
[DEBUG] CT_ARCH_ARM_EABI_FORCE=y
[DEBUG] CT_ARCH_ARM_EABI=y
[DEBUG] # CT_ARCH_ARM_TUPLE_USE_EABIHF is not set
[DEBUG] CT_FORCE_SYSROOT=y
[DEBUG] CT_USE_SYSROOT=y
[DEBUG] CT_SYSROOT_NAME="sysroot"
[DEBUG] CT_SYSROOT_DIR_PREFIX=""
[DEBUG] # CT_STATIC_TOOLCHAIN is not set
[DEBUG] CT_TOOLCHAIN_PKGVERSION=""
[DEBUG] CT_TOOLCHAIN_BUGURL=""
[DEBUG] CT_TARGET_VENDOR="willtm"
[DEBUG] CT_TARGET_ALIAS_SED_EXPR=""
[DEBUG] CT_TARGET_ALIAS="arm-linux-gnueabihf"
[DEBUG] # CT_NATIVE is not set
[DEBUG] CT_CROSS=y
[DEBUG] # CT_CROSS_NATIVE is not set
[DEBUG] # CT_CANADIAN is not set
[DEBUG] CT_TOOLCHAIN_TYPE="cross"
[DEBUG] CT_BUILD=""
[DEBUG] CT_BUILD_PREFIX=""
[DEBUG] CT_BUILD_SUFFIX=""
[DEBUG] # CT_TOOLCHAIN_ENABLE_NLS is not set
[DEBUG] CT_KERNEL_SUPPORTS_SHARED_LIBS=y
[DEBUG] CT_KERNEL="linux"
[DEBUG] CT_KERNEL_VERSION="3.12.24"
[DEBUG] # CT_KERNEL_bare_metal is not set
[DEBUG] CT_KERNEL_linux=y
[DEBUG] CT_KERNEL_bare_metal_AVAILABLE=y
[DEBUG] CT_KERNEL_linux_AVAILABLE=y
[DEBUG] # CT_KERNEL_V_3_15 is not set
[DEBUG] # CT_KERNEL_V_3_14 is not set
[DEBUG] # CT_KERNEL_V_3_13 is not set
[DEBUG] CT_KERNEL_V_3_12=y
[DEBUG] # CT_KERNEL_V_3_11 is not set
[DEBUG] # CT_KERNEL_V_3_10 is not set
[DEBUG] # CT_KERNEL_V_3_9 is not set
[DEBUG] # CT_KERNEL_V_3_8 is not set
[DEBUG] # CT_KERNEL_V_3_7 is not set
[DEBUG] # CT_KERNEL_V_3_6 is not set
[DEBUG] # CT_KERNEL_V_3_5 is not set
[DEBUG] # CT_KERNEL_V_3_4 is not set
[DEBUG] # CT_KERNEL_V_3_3 is not set
[DEBUG] # CT_KERNEL_V_3_2 is not set
[DEBUG] # CT_KERNEL_V_3_1 is not set
[DEBUG] # CT_KERNEL_V_3_0 is not set
[DEBUG] # CT_KERNEL_V_2_6_39 is not set
[DEBUG] # CT_KERNEL_V_2_6_38 is not set
[DEBUG] # CT_KERNEL_V_2_6_37 is not set
[DEBUG] # CT_KERNEL_V_2_6_36 is not set
[DEBUG] # CT_KERNEL_V_2_6_33 is not set
[DEBUG] # CT_KERNEL_V_2_6_32 is not set
[DEBUG] # CT_KERNEL_V_2_6_31 is not set
[DEBUG] # CT_KERNEL_V_2_6_27 is not set
[DEBUG] # CT_KERNEL_LINUX_CUSTOM is not set
[DEBUG] CT_KERNEL_windows_AVAILABLE=y
[DEBUG] CT_SHARED_LIBS=y
[DEBUG] CT_KERNEL_LINUX_VERBOSITY_0=y
[DEBUG] # CT_KERNEL_LINUX_VERBOSITY_1 is not set
[DEBUG] # CT_KERNEL_LINUX_VERBOSITY_2 is not set
[DEBUG] CT_KERNEL_LINUX_VERBOSE_LEVEL=0
[DEBUG] CT_KERNEL_LINUX_INSTALL_CHECK=y
[DEBUG] CT_ARCH_BINFMT_ELF=y
[DEBUG] CT_BINUTILS="binutils"
[DEBUG] CT_BINUTILS_binutils=y
[DEBUG] CT_BINUTILS_V_2_24=y
[DEBUG] # CT_BINUTILS_V_2_23_2 is not set
[DEBUG] # CT_BINUTILS_V_2_23_1 is not set
[DEBUG] # CT_BINUTILS_V_2_22 is not set
[DEBUG] # CT_BINUTILS_V_2_21_53 is not set
[DEBUG] # CT_BINUTILS_V_2_21_1a is not set
[DEBUG] # CT_BINUTILS_V_2_20_1a is not set
[DEBUG] # CT_BINUTILS_V_2_19_1a is not set
[DEBUG] # CT_BINUTILS_V_2_18a is not set
[DEBUG] # CT_BINUTILS_CUSTOM is not set
[DEBUG] CT_BINUTILS_VERSION="2.24"
[DEBUG] CT_BINUTILS_2_24_or_later=y
[DEBUG] CT_BINUTILS_2_23_or_later=y
[DEBUG] CT_BINUTILS_2_22_or_later=y
[DEBUG] CT_BINUTILS_2_21_or_later=y
[DEBUG] CT_BINUTILS_2_20_or_later=y
[DEBUG] CT_BINUTILS_2_19_or_later=y
[DEBUG] CT_BINUTILS_2_18_or_later=y
[DEBUG] CT_BINUTILS_HAS_HASH_STYLE=y
[DEBUG] CT_BINUTILS_HAS_GOLD=y
[DEBUG] CT_BINUTILS_GOLD_SUPPORTS_ARCH=y
[DEBUG] CT_BINUTILS_HAS_PLUGINS=y
[DEBUG] CT_BINUTILS_HAS_PKGVERSION_BUGURL=y
[DEBUG] CT_BINUTILS_FORCE_LD_BFD=y
[DEBUG] CT_BINUTILS_LINKER_LD=y
[DEBUG] # CT_BINUTILS_LINKER_LD_GOLD is not set
[DEBUG] # CT_BINUTILS_LINKER_GOLD_LD is not set
[DEBUG] CT_BINUTILS_LINKERS_LIST="ld"
[DEBUG] CT_BINUTILS_LINKER_DEFAULT="bfd"
[DEBUG] # CT_BINUTILS_PLUGINS is not set
[DEBUG] CT_BINUTILS_EXTRA_CONFIG_ARRAY=""
[DEBUG] CT_BINUTILS_FOR_TARGET=y
[DEBUG] CT_BINUTILS_FOR_TARGET_IBERTY=y
[DEBUG] CT_BINUTILS_FOR_TARGET_BFD=y
[DEBUG] CT_LIBC="glibc"
[DEBUG] CT_LIBC_VERSION="2.18"
[DEBUG] # CT_LIBC_eglibc is not set
[DEBUG] CT_LIBC_glibc=y
[DEBUG] # CT_LIBC_musl is not set
[DEBUG] # CT_LIBC_uClibc is not set
[DEBUG] CT_LIBC_eglibc_AVAILABLE=y
[DEBUG] CT_THREADS="nptl"
[DEBUG] CT_LIBC_glibc_AVAILABLE=y
[DEBUG] # CT_LIBC_GLIBC_V_2_19 is not set
[DEBUG] CT_LIBC_GLIBC_V_2_18=y
[DEBUG] # CT_LIBC_GLIBC_V_2_17 is not set
[DEBUG] # CT_LIBC_GLIBC_V_2_16_0 is not set
[DEBUG] # CT_LIBC_GLIBC_V_2_15 is not set
[DEBUG] # CT_LIBC_GLIBC_V_2_14_1 is not set
[DEBUG] # CT_LIBC_GLIBC_V_2_14 is not set
[DEBUG] # CT_LIBC_GLIBC_V_2_13 is not set
[DEBUG] # CT_LIBC_GLIBC_V_2_12_2 is not set
[DEBUG] # CT_LIBC_GLIBC_V_2_12_1 is not set
[DEBUG] # CT_LIBC_GLIBC_V_2_11_1 is not set
[DEBUG] # CT_LIBC_GLIBC_V_2_11 is not set
[DEBUG] # CT_LIBC_GLIBC_V_2_10_1 is not set
[DEBUG] # CT_LIBC_GLIBC_V_2_9 is not set
[DEBUG] # CT_LIBC_GLIBC_V_2_8 is not set
[DEBUG] CT_LIBC_mingw_AVAILABLE=y
[DEBUG] CT_LIBC_musl_AVAILABLE=y
[DEBUG] CT_LIBC_newlib_AVAILABLE=y
[DEBUG] CT_LIBC_none_AVAILABLE=y
[DEBUG] CT_LIBC_uClibc_AVAILABLE=y
[DEBUG] CT_LIBC_SUPPORT_THREADS_ANY=y
[DEBUG] CT_LIBC_SUPPORT_THREADS_NATIVE=y
[DEBUG] CT_THREADS_NATIVE=y
[DEBUG] CT_LIBC_XLDD=y
[DEBUG] # CT_LIBC_GLIBC_PORTS_EXTERNAL is not set
[DEBUG] CT_LIBC_GLIBC_MAY_FORCE_PORTS=y
[DEBUG] CT_LIBC_glibc_familly=y
[DEBUG] CT_LIBC_GLIBC_EXTRA_CONFIG_ARRAY=""
[DEBUG] CT_LIBC_GLIBC_CONFIGPARMS=""
[DEBUG] CT_LIBC_GLIBC_EXTRA_CFLAGS="-march=armv6z -mtune=arm1176jzf-s -mfloat-abi=hard"
[DEBUG] CT_LIBC_EXTRA_CC_ARGS=""
[DEBUG] # CT_LIBC_ENABLE_FORTIFIED_BUILD is not set
[DEBUG] # CT_LIBC_DISABLE_VERSIONING is not set
[DEBUG] CT_LIBC_OLDEST_ABI=""
[DEBUG] CT_LIBC_GLIBC_FORCE_UNWIND=y
[DEBUG] CT_LIBC_GLIBC_USE_PORTS=y
[DEBUG] CT_LIBC_ADDONS_LIST=""
[DEBUG] # CT_LIBC_LOCALES is not set
[DEBUG] CT_LIBC_GLIBC_KERNEL_VERSION_NONE=y
[DEBUG] # CT_LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS is not set
[DEBUG] # CT_LIBC_GLIBC_KERNEL_VERSION_CHOSEN is not set
[DEBUG] CT_LIBC_GLIBC_MIN_KERNEL=""
[DEBUG] CT_CC="gcc"
[DEBUG] CT_CC_VERSION="4.9.1"
[DEBUG] CT_CC_CORE_PASSES_NEEDED=y
[DEBUG] CT_CC_CORE_PASS_1_NEEDED=y
[DEBUG] CT_CC_CORE_PASS_2_NEEDED=y
[DEBUG] CT_CC_gcc=y
[DEBUG] CT_CC_GCC_SHOW_LINARO=y
[DEBUG] CT_CC_V_4_9_1=y
[DEBUG] # CT_CC_V_4_9_0 is not set
[DEBUG] # CT_CC_V_linaro_4_8 is not set
[DEBUG] # CT_CC_V_4_8_3 is not set
[DEBUG] # CT_CC_V_4_8_2 is not set
[DEBUG] # CT_CC_V_4_8_1 is not set
[DEBUG] # CT_CC_V_4_8_0 is not set
[DEBUG] # CT_CC_V_linaro_4_7 is not set
[DEBUG] # CT_CC_V_4_7_4 is not set
[DEBUG] # CT_CC_V_4_7_3 is not set
[DEBUG] # CT_CC_V_4_7_2 is not set
[DEBUG] # CT_CC_V_4_7_1 is not set
[DEBUG] # CT_CC_V_4_7_0 is not set
[DEBUG] # CT_CC_V_linaro_4_6 is not set
[DEBUG] # CT_CC_V_4_6_4 is not set
[DEBUG] # CT_CC_V_4_6_3 is not set
[DEBUG] # CT_CC_V_4_6_2 is not set
[DEBUG] # CT_CC_V_4_6_1 is not set
[DEBUG] # CT_CC_V_4_6_0 is not set
[DEBUG] # CT_CC_V_linaro_4_5 is not set
[DEBUG] # CT_CC_V_4_5_3 is not set
[DEBUG] # CT_CC_V_4_5_2 is not set
[DEBUG] # CT_CC_V_4_5_1 is not set
[DEBUG] # CT_CC_V_4_5_0 is not set
[DEBUG] # CT_CC_V_linaro_4_4 is not set
[DEBUG] # CT_CC_V_4_4_7 is not set
[DEBUG] # CT_CC_V_4_4_6 is not set
[DEBUG] # CT_CC_V_4_4_5 is not set
[DEBUG] # CT_CC_V_4_4_4 is not set
[DEBUG] # CT_CC_V_4_4_3 is not set
[DEBUG] # CT_CC_V_4_4_2 is not set
[DEBUG] # CT_CC_V_4_4_1 is not set
[DEBUG] # CT_CC_V_4_4_0 is not set
[DEBUG] # CT_CC_V_4_3_6 is not set
[DEBUG] # CT_CC_V_4_3_5 is not set
[DEBUG] # CT_CC_V_4_3_4 is not set
[DEBUG] # CT_CC_V_4_3_3 is not set
[DEBUG] # CT_CC_V_4_3_2 is not set
[DEBUG] # CT_CC_V_4_3_1 is not set
[DEBUG] # CT_CC_V_4_2_4 is not set
[DEBUG] # CT_CC_V_4_2_2 is not set
[DEBUG] # CT_CC_CUSTOM is not set
[DEBUG] CT_CC_GCC_4_2_or_later=y
[DEBUG] CT_CC_GCC_4_3_or_later=y
[DEBUG] CT_CC_GCC_4_4_or_later=y
[DEBUG] CT_CC_GCC_4_5_or_later=y
[DEBUG] CT_CC_GCC_4_6_or_later=y
[DEBUG] CT_CC_GCC_4_7_or_later=y
[DEBUG] CT_CC_GCC_4_8_or_later=y
[DEBUG] CT_CC_GCC_4_9=y
[DEBUG] CT_CC_GCC_4_9_or_later=y
[DEBUG] CT_CC_GCC_HAS_GRAPHITE=y
[DEBUG] CT_CC_GCC_USE_GRAPHITE=y
[DEBUG] CT_CC_GCC_HAS_LTO=y
[DEBUG] # CT_CC_GCC_USE_LTO is not set
[DEBUG] CT_CC_GCC_HAS_PKGVERSION_BUGURL=y
[DEBUG] CT_CC_GCC_HAS_BUILD_ID=y
[DEBUG] CT_CC_GCC_HAS_LNK_HASH_STYLE=y
[DEBUG] CT_CC_GCC_USE_GMP_MPFR=y
[DEBUG] CT_CC_GCC_USE_MPC=y
[DEBUG] CT_CC_GCC_HAS_LIBQUADMATH=y
[DEBUG] CT_CC_GCC_HAS_LIBSANITIZER=y
[DEBUG] # CT_CC_LANG_FORTRAN is not set
[DEBUG] CT_CC_SUPPORT_CXX=y
[DEBUG] CT_CC_SUPPORT_FORTRAN=y
[DEBUG] CT_CC_SUPPORT_JAVA=y
[DEBUG] CT_CC_SUPPORT_ADA=y
[DEBUG] CT_CC_SUPPORT_OBJC=y
[DEBUG] CT_CC_SUPPORT_OBJCXX=y
[DEBUG] CT_CC_SUPPORT_GOLANG=y
[DEBUG] CT_CC_LANG_CXX=y
[DEBUG] # CT_CC_LANG_JAVA is not set
[DEBUG] # CT_CC_LANG_ADA is not set
[DEBUG] # CT_CC_LANG_OBJC is not set
[DEBUG] # CT_CC_LANG_OBJCXX is not set
[DEBUG] # CT_CC_LANG_GOLANG is not set
[DEBUG] CT_CC_LANG_OTHERS=""
[DEBUG] CT_CC_ENABLE_CXX_FLAGS=""
[DEBUG] CT_CC_CORE_EXTRA_CONFIG_ARRAY=""
[DEBUG] CT_CC_EXTRA_CONFIG_ARRAY="--with-float=hard"
[DEBUG] # CT_CC_STATIC_LIBSTDCXX is not set
[DEBUG] # CT_CC_GCC_SYSTEM_ZLIB is not set
[DEBUG] CT_CC_GCC_ENABLE_TARGET_OPTSPACE=y
[DEBUG] # CT_CC_GCC_LIBMUDFLAP is not set
[DEBUG] # CT_CC_GCC_LIBGOMP is not set
[DEBUG] # CT_CC_GCC_LIBSSP is not set
[DEBUG] # CT_CC_GCC_LIBQUADMATH is not set
[DEBUG] # CT_CC_GCC_LIBSANITIZER is not set
[DEBUG] CT_CC_CXA_ATEXIT=y
[DEBUG] # CT_CC_GCC_DISABLE_PCH is not set
[DEBUG] CT_CC_GCC_SJLJ_EXCEPTIONS=m
[DEBUG] CT_CC_GCC_LDBL_128=m
[DEBUG] # CT_CC_GCC_BUILD_ID is not set
[DEBUG] CT_CC_GCC_LNK_HASH_STYLE_DEFAULT=y
[DEBUG] # CT_CC_GCC_LNK_HASH_STYLE_SYSV is not set
[DEBUG] # CT_CC_GCC_LNK_HASH_STYLE_GNU is not set
[DEBUG] # CT_CC_GCC_LNK_HASH_STYLE_BOTH is not set
[DEBUG] CT_CC_GCC_LNK_HASH_STYLE=""
[DEBUG] CT_CC_GCC_DEC_FLOAT_AUTO=y
[DEBUG] # CT_CC_GCC_DEC_FLOAT_BID is not set
[DEBUG] # CT_CC_GCC_DEC_FLOAT_DPD is not set
[DEBUG] # CT_CC_GCC_DEC_FLOATS_NO is not set
[DEBUG] # CT_DEBUG_dmalloc is not set
[DEBUG] # CT_DEBUG_duma is not set
[DEBUG] CT_DEBUG_gdb=y
[DEBUG] CT_GDB_CROSS=y
[DEBUG] # CT_GDB_CROSS_STATIC is not set
[DEBUG] # CT_GDB_CROSS_SIM is not set
[DEBUG] CT_GDB_CROSS_PYTHON=y
[DEBUG] CT_GDB_CROSS_EXTRA_CONFIG_ARRAY=""
[DEBUG] # CT_GDB_NATIVE is not set
[DEBUG] CT_GDB_GDBSERVER=y
[DEBUG] CT_GDB_GDBSERVER_HAS_IPA_LIB=y
[DEBUG] CT_GDB_GDBSERVER_STATIC=y
[DEBUG] # CT_DEBUG_GDB_SHOW_LINARO is not set
[DEBUG] CT_GDB_V_7_8=y
[DEBUG] # CT_GDB_V_7_7_1 is not set
[DEBUG] # CT_GDB_V_7_7 is not set
[DEBUG] # CT_GDB_V_7_6_1 is not set
[DEBUG] # CT_GDB_V_7_5_1 is not set
[DEBUG] # CT_GDB_V_7_4_1 is not set
[DEBUG] # CT_GDB_V_7_4 is not set
[DEBUG] # CT_GDB_V_7_3_1 is not set
[DEBUG] # CT_GDB_V_7_3a is not set
[DEBUG] # CT_GDB_V_7_2a is not set
[DEBUG] # CT_GDB_V_7_1a is not set
[DEBUG] # CT_GDB_V_7_0_1a is not set
[DEBUG] # CT_GDB_V_7_0a is not set
[DEBUG] # CT_GDB_V_6_8a is not set
[DEBUG] # CT_GDB_CUSTOM is not set
[DEBUG] CT_GDB_7_2_or_later=y
[DEBUG] CT_GDB_7_0_or_later=y
[DEBUG] CT_GDB_HAS_PKGVERSION_BUGURL=y
[DEBUG] CT_GDB_HAS_PYTHON=y
[DEBUG] CT_GDB_INSTALL_GDBINIT=y
[DEBUG] CT_GDB_VERSION="7.8"
[DEBUG] # CT_DEBUG_ltrace is not set
[DEBUG] # CT_DEBUG_strace is not set
[DEBUG] CT_COMPLIBS_NEEDED=y
[DEBUG] CT_GMP_NEEDED=y
[DEBUG] CT_MPFR_NEEDED=y
[DEBUG] CT_ISL_NEEDED=y
[DEBUG] CT_CLOOG_NEEDED=y
[DEBUG] CT_MPC_NEEDED=y
[DEBUG] CT_COMPLIBS=y
[DEBUG] CT_GMP=y
[DEBUG] CT_MPFR=y
[DEBUG] CT_ISL=y
[DEBUG] CT_CLOOG=y
[DEBUG] CT_MPC=y
[DEBUG] # CT_GMP_V_5_1_3 is not set
[DEBUG] # CT_GMP_V_5_1_1 is not set
[DEBUG] CT_GMP_V_5_0_2=y
[DEBUG] # CT_GMP_V_5_0_1 is not set
[DEBUG] # CT_GMP_V_4_3_2 is not set
[DEBUG] # CT_GMP_V_4_3_1 is not set
[DEBUG] # CT_GMP_V_4_3_0 is not set
[DEBUG] CT_GMP_VERSION="5.0.2"
[DEBUG] CT_MPFR_V_3_1_2=y
[DEBUG] # CT_MPFR_V_3_1_0 is not set
[DEBUG] # CT_MPFR_V_3_0_1 is not set
[DEBUG] # CT_MPFR_V_3_0_0 is not set
[DEBUG] # CT_MPFR_V_2_4_2 is not set
[DEBUG] # CT_MPFR_V_2_4_1 is not set
[DEBUG] # CT_MPFR_V_2_4_0 is not set
[DEBUG] CT_MPFR_VERSION="3.1.2"
[DEBUG] # CT_ISL_V_0_12_2 is not set
[DEBUG] CT_ISL_V_0_11_1=y
[DEBUG] CT_ISL_VERSION="0.11.1"
[DEBUG] # CT_CLOOG_V_0_18_1 is not set
[DEBUG] CT_CLOOG_V_0_18_0=y
[DEBUG] CT_CLOOG_VERSION="0.18.0"
[DEBUG] CT_CLOOG_0_18_or_later=y
[DEBUG] # CT_MPC_V_1_0_2 is not set
[DEBUG] CT_MPC_V_1_0_1=y
[DEBUG] # CT_MPC_V_1_0 is not set
[DEBUG] # CT_MPC_V_0_9 is not set
[DEBUG] # CT_MPC_V_0_8_2 is not set
[DEBUG] # CT_MPC_V_0_8_1 is not set
[DEBUG] # CT_MPC_V_0_7 is not set
[DEBUG] CT_MPC_VERSION="1.0.1"
[DEBUG] # CT_COMPLIBS_CHECK is not set
[DEBUG] CT_COMP_TOOLS=y
[DEBUG] # CT_COMP_TOOLS_make is not set
[DEBUG] # CT_COMP_TOOLS_m4 is not set
[DEBUG] # CT_COMP_TOOLS_autoconf is not set
[DEBUG] # CT_COMP_TOOLS_automake is not set
[DEBUG] # CT_COMP_TOOLS_libtool is not set
[DEBUG] # CT_TEST_SUITE_GCC is not set
[DEBUG] Dumping user-supplied crosstool-NG configuration: done in 0.00s (at 00:01)
[DEBUG] Unsetting and unexporting MAKEFLAGS
[INFO ] Building environment variables
[DEBUG] Disabling companion tools 'make'
[DEBUG] Disabling companion tools 'm4'
[DEBUG] Disabling companion tools 'autoconf'
[DEBUG] Disabling companion tools 'automake'
[DEBUG] Disabling companion tools 'libtool'
[DEBUG] Disabling debug 'template'
[DEBUG] Disabling debug 'dmalloc'
[DEBUG] Disabling debug 'duma'
[DEBUG] Enabling debug 'gdb'
[DEBUG] Disabling debug 'ltrace'
[DEBUG] Disabling debug 'strace'
[DEBUG] Disabling test suite 'gcc'
[DEBUG] Testing '! ( -z /Volumes/RPi-EABI/will )'
[DEBUG] Testing '! ( ! -w /Volumes/RPi-EABI )'
[EXTRA] Preparing working directories
[DEBUG] ==> Executing: 'chmod' 'u+w' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi'
[DEBUG] ==> Executing: 'chmod' '-R' 'u+w' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/build'
[DEBUG] ==> Executing: 'rm' '-rf' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/build'
[DEBUG] ==> Executing: 'chmod' '755' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi'
[DEBUG] ==> Executing: 'chmod' 'u+w' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi'
[DEBUG] ==> Executing: 'chmod' '-R' 'u+w' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools'
[DEBUG] ==> Executing: 'rm' '-rf' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools'
[DEBUG] ==> Executing: 'chmod' '755' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi'
[DEBUG] ==> Executing: 'chmod' 'u+w' '/Volumes/RPi-EABI'
[DEBUG] ==> Executing: 'chmod' '-R' 'u+w' '/Volumes/RPi-EABI/will'
[DEBUG] ==> Executing: 'rm' '-rf' '/Volumes/RPi-EABI/will'
[DEBUG] ==> Executing: 'chmod' '755' '/Volumes/RPi-EABI'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/.build/tarballs'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/.build/src'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/build'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/build/configs'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/will'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/will'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools'
[DEBUG] ==> Executing: 'touch' '/Volumes/RPi-EABI/will/foo'
[DEBUG] Testing '! ( -f /Volumes/RPi-EABI/will/FOO )'
[DEBUG] ==> Executing: 'rm' '-f' '/Volumes/RPi-EABI/will/foo'
[DEBUG] ==> Executing: 'chmod' '-R' 'u+w' '/Volumes/RPi-EABI/will' '/Volumes/RPi-EABI/will'
[DEBUG] Sanitised 'CT_SYSROOT_REL_DIR': 'sysroot' -> 'sysroot'
[DEBUG] Sanitised 'CT_SYSROOT_DIR': '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/sysroot' -> '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/sysroot'
[DEBUG] Sanitised 'CT_DEBUGROOT_DIR': '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi//debug-root' -> '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/debug-root'
[DEBUG] Sanitised 'CT_HEADERS_DIR': '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/sysroot/usr/include' -> '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/sysroot/usr/include'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/sysroot'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/debug-root'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/will/lib'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/sysroot/lib'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/sysroot/usr/lib'
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/sysroot/usr/include'
[DEBUG] Entering '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi'
[DEBUG] ==> Executing: 'ln' '-sf' 'sysroot/lib' 'lib'
[DEBUG] ==> Executing: 'ln' '-sf' 'lib' '/Volumes/RPi-EABI/will/lib32'
[DEBUG] ==> Executing: 'ln' '-sf' 'lib' '/Volumes/RPi-EABI/will/lib64'
[DEBUG] ==> Executing: 'ln' '-sf' 'lib' '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/sysroot/lib32'
[DEBUG] ==> Executing: 'ln' '-sf' 'lib' '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/sysroot/lib64'
[DEBUG] ==> Executing: 'ln' '-sf' 'lib' '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/sysroot/usr/lib32'
[DEBUG] ==> Executing: 'ln' '-sf' 'lib' '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/sysroot/usr/lib64'
[DEBUG] ==> Executing: 'ln' '-sf' 'lib' '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/lib32'
[DEBUG] ==> Executing: 'ln' '-sf' 'lib' '/Volumes/RPi-EABI/will/arm-willtm-linux-gnueabi/lib64'
[DEBUG] Making build system tools available
[DEBUG] 'x86_64-build_apple-darwin14.0.0-ar' -> '/usr/bin/ar'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-ar'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-as' -> '/usr/bin/as'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-as'
[DEBUG] Missing: 'x86_64-apple-darwin14.0.0-dlltool' or 'x86_64-apple-darwin14.0.0-dlltool' or 'dlltool' : not required.
[DEBUG] 'x86_64-build_apple-darwin14.0.0-gcc' -> '/usr/bin/gcc'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-gcc'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-g++' -> '/usr/bin/g++'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-g++'
[DEBUG] Testing '! ( = y )'
[DEBUG] Missing: 'x86_64-apple-darwin14.0.0-gnatbind' or 'x86_64-apple-darwin14.0.0-gnatbind' or 'gnatbind' : not required.
[DEBUG] Missing: 'x86_64-apple-darwin14.0.0-gnatmake' or 'x86_64-apple-darwin14.0.0-gnatmake' or 'gnatmake' : not required.
[DEBUG] 'x86_64-build_apple-darwin14.0.0-ld' -> '/usr/bin/ld'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-ld'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-nm' -> '/usr/bin/nm'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-nm'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-objcopy' -> '/Volumes/RPi-EABI/.build/tools/bin/objcopy'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-objcopy'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-objdump' -> '/Volumes/RPi-EABI/.build/tools/bin/objdump'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-objdump'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-ranlib' -> '/usr/bin/ranlib'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-ranlib'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-strip' -> '/usr/bin/strip'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-strip'
[DEBUG] Missing: 'x86_64-apple-darwin14.0.0-windres' or 'x86_64-apple-darwin14.0.0-windres' or 'windres' : not required.
[DEBUG] 'x86_64-build_apple-darwin14.0.0-ar' -> '/usr/bin/ar'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-ar'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-as' -> '/usr/bin/as'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-as'
[DEBUG] Missing: 'x86_64-apple-darwin14.0.0-dlltool' or 'x86_64-apple-darwin14.0.0-dlltool' or 'dlltool' : not required.
[DEBUG] 'x86_64-build_apple-darwin14.0.0-gcc' -> '/usr/bin/gcc'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-gcc'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-g++' -> '/usr/bin/g++'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-g++'
[DEBUG] Testing '! ( = y )'
[DEBUG] Missing: 'x86_64-apple-darwin14.0.0-gnatbind' or 'x86_64-apple-darwin14.0.0-gnatbind' or 'gnatbind' : not required.
[DEBUG] Missing: 'x86_64-apple-darwin14.0.0-gnatmake' or 'x86_64-apple-darwin14.0.0-gnatmake' or 'gnatmake' : not required.
[DEBUG] 'x86_64-build_apple-darwin14.0.0-ld' -> '/usr/bin/ld'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-ld'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-nm' -> '/usr/bin/nm'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-nm'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-objcopy' -> '/Volumes/RPi-EABI/.build/tools/bin/objcopy'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-objcopy'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-objdump' -> '/Volumes/RPi-EABI/.build/tools/bin/objdump'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-objdump'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-ranlib' -> '/usr/bin/ranlib'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-ranlib'
[DEBUG] 'x86_64-build_apple-darwin14.0.0-strip' -> '/usr/bin/strip'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/x86_64-build_apple-darwin14.0.0-strip'
[DEBUG] Missing: 'x86_64-apple-darwin14.0.0-windres' or 'x86_64-apple-darwin14.0.0-windres' or 'windres' : not required.
[DEBUG] 'makeinfo' -> '/usr/bin/makeinfo'
[DEBUG] ==> Executing: 'chmod' '700' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/buildtools/bin/makeinfo'
[DEBUG] CFLAGS for host compiler: '-O2 -g -pipe '
[DEBUG] LDFLAGS for host compiler: ' '
[DEBUG] =================================================================
[DEBUG] Checking that we can run gcc -v
[DEBUG] ==> Executing: 'x86_64-build_apple-darwin14.0.0-gcc' '-v'
[DEBUG] Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
[DEBUG] Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
[DEBUG] Target: x86_64-apple-darwin14.0.0
[DEBUG] Thread model: posix
[DEBUG] Checking that we can run gcc -v: done in 0.00s (at 00:05)
[DEBUG] =================================================================
[DEBUG] Checking that gcc can compile a trivial program
[DEBUG] ==> Executing: 'x86_64-build_apple-darwin14.0.0-gcc' '-O2' '-g' '-pipe' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/build/test.c' '-o' '/Volumes/RPi-EABI/.build/arm-willtm-linux-gnueabi/build/.gccout'
[DEBUG] Checking that gcc can compile a trivial program: done in 1.00s (at 00:06)
[EXTRA] Installing user-supplied crosstool-NG configuration
[DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/RPi-EABI/will/bin'
[DEBUG] ==> Executing: 'install' '-m' '0755' '/usr/local/Cellar/crosstool-ng/1.20.0/lib/ct-ng.1.20.0/scripts/toolchain-config.in' '/Volumes/RPi-EABI/will/bin/arm-willtm-linux-gnueabi-ct-ng.config'
[DEBUG] /Volumes/RPi-EABI/.build/tools/bin/install: line 2: exec: ginstall: not found
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@216]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@564]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> '/usr/local/Cellar/crosstool-ng/1.20.0/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]
[ERROR](elapsed: 0:05.00)

ct-ng build fails with warning and associate errors: "Don't know how to handle 'cloog-0.18.1': unknown extension"

Hello,
I am trying to build an ARM compiler for my raspberry pi. I downloaded crosstool-ng, did all steps till sudo make install, added the bin directory to my path. I am now trying to do build the compiler. However, it fails with this error:

~/Downloads/crosstool-ng$ ct-ng build
[INFO ] Performing some trivial sanity checks
[INFO ] Build started 20150417.175054
[INFO ] Building environment variables
[INFO ] =================================================================
[INFO ] Retrieving needed toolchain components' tarballs
[INFO ] Retrieving needed toolchain components' tarballs: done in 0.11s (at 00:02)
[INFO ] =================================================================
[INFO ] Extracting and patching toolchain components
[WARN ] Don't know how to handle 'cloog-0.18.1': unknown extension
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Extracting and patching toolchain components'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: do_cloog_extract[scripts/build/companion_libs/130-cloog.sh@963]
[ERROR] >> called from: do_companion_libs_extract[scripts/build/companion_libs.sh@22]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@606]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> '/opt/cross-rpi/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]
[ERROR](elapsed: 0:02.59)
[00:03] / make: *** [build] Error 1

I search online for this problem but couldn't find any solution. I then installed these:
sudo apt-get install libcloog-isl-dev
sudo apt-get install libcloog-ppl-dev

deleted the partial files in the .build directory and retried, but with the same error. Could someone tell me what the problem is?
(The build.log doesn't have any more information. I was following the steps outlined in this blog: http://www.bootc.net/archives/2012/05/26/how-to-build-a-cross-compiler-for-your-raspberry-pi/)

config:
Linux 3.13.0-22-generic #44-Ubuntu
gcc 4.8.2-19

using other CT_ variables in CT_WORK_DIR creates bogus directory

In my configuration I use an absolute path followed by ${CT_TARGET} as $CT_WORK_DIR:
/.../build-${CT_TARGET}. Apparently ct-ng is using $CT_WORK_DIR before that and creates its tools directory there containing awk, bash etc. but because the ${CT_TARGET} variable is unset at the time it creates /.../build- (sic!) instead. Apparently this is only a cosmetic problem.

The help text for $CT_WORK_DIR does state that one should not change it, but I deem that a rather obvious feature.

sysroot/usr/include/limits.h:125:26: error: no include path in which to search for limits.h

Hi

Thanks for your help on the issue

I am building a ToolChain for Qnap on a debian 6, i used the last ctng from git.
some month ago i successfully built on a Debian 7, using same config, i have error (glibc 2.6.1 + gcc 4.3.6)

[INFO ] =================================================================
[INFO ] Installing kernel headers
[EXTRA] Installing kernel headers
[EXTRA] Checking installed headers
[INFO ] Installing kernel headers: done in 8.79s (at 05:23)
[INFO ] =================================================================
[INFO ] Installing C library headers & start files
[EXTRA] Configuring C library
[EXTRA] Installing C library headers
[EXTRA] Installing C library start files
[ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search fo r limits.h
[ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search fo r limits.h
[ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search fo r limits.h
[ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search fo r limits.h
[ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search fo r limits.h
[ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search fo r limits.h
[ERROR] make[3]: *** [/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/init-first.o] Error 1
[ERROR] libc-tls.c:36: error: expected '=', ',', ';', 'asm' or 'attribute' before 'static_dtv'
[ERROR] libc-tls.c:100: error: 'TLS_TCB_ALIGN' undeclared (first use in this function)
[ERROR] libc-tls.c:100: error: (Each undeclared identifier is reported only once
[ERROR] libc-tls.c:100: error: for each function it appears in.)
[ERROR] libc-tls.c:156:3: error: #error "Either TLS_TCB_AT_TP or TLS_DTV_AT_TP must be defined"
[ERROR] libc-tls.c:164: error: 'static_dtv' undeclared (first use in this function)
[ERROR] libc-tls.c:176:3: error: #error "Either TLS_TCB_AT_TP or TLS_DTV_AT_TP must be defined"
[ERROR] libc-tls.c:193:3: error: #error "Either TLS_TCB_AT_TP or TLS_DTV_AT_TP must be defined"
[ERROR] libc-tls.c:195: error: 'lossage' undeclared (first use in this function)
[ERROR] libc-tls.c:220: error: 'TLS_TCB_ALIGN' undeclared (first use in this function)
[ERROR] libc-tls.c:237: error: 'TLS_TCB_ALIGN' undeclared (first use in this function)
[ERROR] libc-tls.c:248: error: 'TLS_INIT_TCB_SIZE' undeclared (first use in this function)
[ERROR] libc-tls.c:248: error: 'TLS_INIT_TCB_ALIGN' undeclared (first use in this function)
[ERROR] make[3]: *** [/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/libc-tls.o] Error 1
[ERROR] make[3]: *** [/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/libc-start.o] Error 1
[ERROR] make[2]: *** [csu/subdir_lib] Error 2
[ERROR] make[1]: *** [csu/subdir_lib] Error 2
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing C library headers & start files'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR] >> called from: do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@438]
[ERROR] >> called from: do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@149]
[ERROR] >> called from: do_libc_start_files[scripts/build/libc/glibc-eglibc.sh-common@66]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@638]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> '/CROSS/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]
[ERROR](elapsed: 5:45.14)
[05:45] / make: *** [build] Erreur 2

build log report

[ALL ] mv -f /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/version-info.hT /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/version-info.h
[ALL ] i686-Qnap-linux-gnu-gcc ../sysdeps/unix/sysv/linux/init-first.c -c -std=gnu99 -fgnu89-inline -O2 -U_FORTIFY_SOURCE -Wall -Winline -Wwrite-strings -fmerge-all-constants -march=i686 -Wstrict-prototypes -mpreferred-stack-boundary=4 -I../include -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles -I../sysdeps/i386/elf -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/buildtools/lib/gcc/i686-Qnap-linux-gnu/4.3.6/include -isystem /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include -include ../include/libc-symbols.h -DHAVE_INITFINI -o /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/init-first.o -MD -MP -MF /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/init-first.o.dt -MT /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/init-first.o
[ALL ] i686-Qnap-linux-gnu-gcc libc-start.c -c -std=gnu99 -fgnu89-inline -O2 -U_FORTIFY_SOURCE -Wall -Winline -Wwrite-strings -fmerge-all-constants -march=i686 -Wstrict-prototypes -mpreferred-stack-boundary=4 -I../include -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles -I../sysdeps/i386/elf -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/buildtools/lib/gcc/i686-Qnap-linux-gnu/4.3.6/include -isystem /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include -include ../include/libc-symbols.h -DHAVE_INITFINI -o /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/libc-start.o -MD -MP -MF /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/libc-start.o.dt -MT /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/libc-start.o
[ALL ] i686-Qnap-linux-gnu-gcc ../sysdeps/unix/sysv/linux/i386/sysdep.S -c -I../include -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles -I../sysdeps/i386/elf -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/buildtools/lib/gcc/i686-Qnap-linux-gnu/4.3.6/include -isystem /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include -include ../include/libc-symbols.h -DHAVE_INITFINI -DASSEMBLER -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/. -DGAS_SYNTAX -Wa,--noexecstack -o /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/sysdep.o -MD -MP -MF /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/sysdep.o.dt -MT /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/sysdep.o
[ALL ] i686-Qnap-linux-gnu-gcc version.c -c -std=gnu99 -fgnu89-inline -O2 -U_FORTIFY_SOURCE -Wall -Winline -Wwrite-strings -fmerge-all-constants -march=i686 -Wstrict-prototypes -mpreferred-stack-boundary=4 -I../include -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles -I../sysdeps/i386/elf -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/buildtools/lib/gcc/i686-Qnap-linux-gnu/4.3.6/include -isystem /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include -include ../include/libc-symbols.h -DHAVE_INITFINI -o /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/version.o -MD -MP -MF /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/version.o.dt -MT /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/version.o
[ALL ] i686-Qnap-linux-gnu-gcc check_fds.c -c -std=gnu99 -fgnu89-inline -O2 -U_FORTIFY_SOURCE -Wall -Winline -Wwrite-strings -fmerge-all-constants -march=i686 -Wstrict-prototypes -mpreferred-stack-boundary=4 -I../include -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles -I../sysdeps/i386/elf -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/buildtools/lib/gcc/i686-Qnap-linux-gnu/4.3.6/include -isystem /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include -include ../include/libc-symbols.h -DHAVE_INITFINI -o /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/check_fds.o -MD -MP -MF /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/check_fds.o.dt -MT /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/check_fds.o
[ALL ] i686-Qnap-linux-gnu-gcc libc-tls.c -c -std=gnu99 -fgnu89-inline -O2 -U_FORTIFY_SOURCE -Wall -Winline -Wwrite-strings -fmerge-all-constants -march=i686 -Wstrict-prototypes -mpreferred-stack-boundary=4 -I../include -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles -I../sysdeps/i386/elf -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/buildtools/lib/gcc/i686-Qnap-linux-gnu/4.3.6/include -isystem /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include -include ../include/libc-symbols.h -DHAVE_INITFINI -o /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/libc-tls.o -MD -MP -MF /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/libc-tls.o.dt -MT /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/libc-tls.o
[ALL ] i686-Qnap-linux-gnu-gcc elf-init.c -c -std=gnu99 -fgnu89-inline -O2 -U_FORTIFY_SOURCE -Wall -Winline -Wwrite-strings -fmerge-all-constants -march=i686 -Wstrict-prototypes -mpreferred-stack-boundary=4 -I../include -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu -I/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles -I../sysdeps/i386/elf -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/buildtools/lib/gcc/i686-Qnap-linux-gnu/4.3.6/include -isystem /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include -include ../include/libc-symbols.h -DHAVE_INITFINI -o /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/elf-init.o -MD -MP -MF /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/elf-init.o.dt -MT /CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/elf-init.o
[ALL ] In file included from ../include/limits.h:125,
[ALL ] from ../sysdeps/unix/sysv/linux/sys/param.h:22,
[ALL ] from ../sysdeps/unix/sysv/linux/init-first.c:26:
[ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search for limits.h
[ALL ] In file included from ../include/limits.h:125,
[ALL ] from ../sysdeps/unix/sysv/linux/sys/param.h:22,
[ALL ] from ../sysdeps/i386/i686/hp-timing.h:25,
[ALL ] from ../sysdeps/generic/ldsodefs.h:39,
[ALL ] from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
[ALL ] from libc-start.c:22:
[ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search for limits.h
[ALL ] In file included from ../include/limits.h:125,
[ALL ] from ../sysdeps/unix/sysv/linux/sys/param.h:22,
[ALL ] from ../sysdeps/i386/i686/hp-timing.h:25,
[ALL ] from ../sysdeps/generic/ldsodefs.h:39,
[ALL ] from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
[ALL ] from libc-tls.c:21:
[ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search for limits.h
[ALL ] In file included from ../include/limits.h:125,
[ALL ] from ../stdio-common/_itoa.h:23,
[ALL ] from ../sysdeps/i386/i686/hp-timing.h:26,
[ALL ] from ../sysdeps/generic/ldsodefs.h:39,
[ALL ] from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
[ALL ] from libc-start.c:22:
[ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search for limits.h
[ALL ] In file included from ../include/limits.h:125In file included from ../include/limits.h:125,
[ALL ] from ../stdio-common/_itoa.h:23,
[ALL ] from ../sysdeps/i386/i686/hp-timing.h:26,
[ALL ] from ../include/libc-internal.h:7,
[ALL ] from ../sysdeps/unix/sysv/linux/init-first.c:28:
[ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search for limits.h
[ALL ] ,
[ALL ] from ../stdio-common/_itoa.h:23,
[ALL ] from ../sysdeps/i386/i686/hp-timing.h:26,
[ALL ] from ../sysdeps/generic/ldsodefs.h:39,
[ALL ] from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
[ALL ] from libc-tls.c:21:
[ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search for limits.h
[ERROR] make[3]: *** [/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/init-first.o] Error 1
[ALL ] make[3]: *** Waiting for unfinished jobs....
[ERROR] libc-tls.c:36: error: expected '=', ',', ';', 'asm' or 'attribute' before 'static_dtv'
[ALL ] libc-tls.c: In function 'init_static_tls':
[ERROR] libc-tls.c:100: error: 'TLS_TCB_ALIGN' undeclared (first use in this function)
[ERROR] libc-tls.c:100: error: (Each undeclared identifier is reported only once
[ERROR] libc-tls.c:100: error: for each function it appears in.)
[ERROR] libc-tls.c:156:3: error: #error "Either TLS_TCB_AT_TP or TLS_DTV_AT_TP must be defined"
[ALL ] libc-tls.c: In function '__libc_setup_tls':
[ERROR] libc-tls.c:164: error: 'static_dtv' undeclared (first use in this function)
[ERROR] libc-tls.c:176:3: error: #error "Either TLS_TCB_AT_TP or TLS_DTV_AT_TP must be defined"
[ERROR] libc-tls.c:193:3: error: #error "Either TLS_TCB_AT_TP or TLS_DTV_AT_TP must be defined"
[ERROR] libc-tls.c:195: error: 'lossage' undeclared (first use in this function)
[ERROR] libc-tls.c:220: error: 'TLS_TCB_ALIGN' undeclared (first use in this function)
[ALL ] libc-tls.c:118: warning: unused variable 'tcb_offset'
[ALL ] libc-tls.c: In function '_dl_tls_setup':
[ERROR] libc-tls.c:237: error: 'TLS_TCB_ALIGN' undeclared (first use in this function)
[ALL ] libc-tls.c: In function '__pthread_initialize_minimal':
[ERROR] libc-tls.c:248: error: 'TLS_INIT_TCB_SIZE' undeclared (first use in this function)
[ERROR] libc-tls.c:248: error: 'TLS_INIT_TCB_ALIGN' undeclared (first use in this function)
[ERROR] make[3]: *** [/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/libc-tls.o] Error 1
[ERROR] make[3]: *** [/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/libc-start.o] Error 1
[ALL ] make[3]: Leaving directory /CROSS/glibc-2.6.1/csu' [ERROR] make[2]: *** [csu/subdir_lib] Error 2 [ALL ] make[2]: Leaving directory/CROSS/glibc-2.6.1'
[ERROR] make[1]: *** [csu/subdir_lib] Error 2
[ALL ] make[1]: Leaving directory `/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles'
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing C library headers & start files'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR] >> called from: do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@438]
[ERROR] >> called from: do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@149]
[ERROR] >> called from: do_libc_start_files[scripts/build/libc/glibc-eglibc.sh-common@66]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@638]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> '/CROSS/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]
[ERROR](elapsed: 5:45.14)

thanks a lot for your help,

Extra config for core GCC no working

When extra configuration parameters for the core GCC are configured ("Core gcc extra config"), they
are not used in the configure command.
I will add a branch to my repo on GitHub.

Build failed in ubuntu 15.04; Message: Build failed in step 'Installing C library'

Hello. i have this error message when i'm building the toolchain:
What i'm doing wrong?

[ALL  ]      STRIP -x -R .note -R .comment lib/libthread_db.a
[ALL  ]      AR cr lib/libdl.a
[ALL  ]      AR cr lib/libpthread.a
[ALL  ]      STRIP -x -R .note -R .comment lib/libdl.a
[ALL  ]      STRIP -X --strip-debug -R .note -R .comment libpthread/nptl/libpthread_so.a
[ALL  ]      LD ld-uClibc-0.9.33.2.so
[ALL  ]      AR cr lib/librt.a
[ALL  ]      STRIP -x -R .note -R .comment lib/librt.a
[ALL  ]      STRIP -x -R .note -R .comment lib/libpthread.a
[ALL  ]      STRIP -x -R .note -R .comment lib/libc.a
[ALL  ]      AR cr libc/libc_so.a
[ALL  ]      STRIP -x -R .note -R .comment libc/libc_so.a
[ALL  ]    make[2]: 'lib/ld-uClibc.so' is up to date.
[ALL  ]      LD libuClibc-0.9.33.2.so
[ALL  ]      LD libdl-0.9.33.2.so
[ALL  ]      LD libcrypt-0.9.33.2.so
[ALL  ]      LD libm-0.9.33.2.so
[ALL  ]      LD libnsl-0.9.33.2.so
[ALL  ]      LD libresolv-0.9.33.2.so
[ALL  ]      LD libutil-0.9.33.2.so
[ALL  ]      LD libpthread-0.9.33.2.so
[ALL  ]      LD libthread_db-0.9.33.2.so
[ALL  ]      LD librt-0.9.33.2.so
[ALL  ]    librt/librt_so.a(rt-unwind-resume.oS): In function `_Unwind_Resume':
[ALL  ]    rt-unwind-resume.c:(.text+0x3c): undefined reference to `libgcc_s_resume'
[ERROR]    collect2: error: ld returned 1 exit status
[ALL  ]    librt/Makefile.in:61: recipe for target 'lib/librt.so' failed
[ERROR]    make[1]: *** [lib/librt.so] Error 1
[ALL  ]    make[1]: Leaving directory '/home/goonie/crosstool-ng/.build/arm-unknown-linux-uclibcgnueabi/build/build-libc'
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_libc[scripts/build/libc/uClibc.sh@200]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      'docs/B - Known issues.txt'
[ERROR]  
[ERROR]  (elapsed: 41:18.13)

ncurses does not compile with 5.1

Hi,

let me first thank you for this tool, it saved me a lot of time building my own toolchain. Good work!

I was building my custom toolchain for armv5te and I was able to do that using gcc 4.9.2. Out of curiosity, I tried to create the toolchain with gcc 5.1.0 but the build failed.

In particular, ncurses does not compile with the most recent gcc. There is already a patch for it at: http://git.sagemath.org/sage.git/commit/?id=2201c9cedee5a935dae2c24fdc54a5aa09201bda
It seems like a preprocessor needs additional parameter on command-line '-P'.

Thanks,
Peter

sample x86_64-unknown-mingw32 fails to build using gcc 5.1.0 on Debian (jessie)

Hi there!

I've downloaded and built crosstool-ng 1.21. I successfully built a few toolchains, however, now I'm trying to build the sample toolchain x86_64-unknown-mingw32 but it fails in step Building mingw-w64 files. More precisely it fails during compilation of _controlfp_s.c claiming that the following constants are undeclared here (not in a function):

  • _MCW_DN
  • _MCW_EM
  • _MCW_IC
  • _MCW_RC
  • _MCW_PC

These constants are defined in the float.h which is present in the .build/src/mingw-w64-v4.0.2/mingw-w64-headers/crt folder (which I assume is where it's looking for header files) and the float.h file is in fact included by _controlfp_s.c.
The constants definition is skipped if __STRICT_ANSI__ is defined, however that is not the case when I look at the failing call to x86_64-unknown-mingw32-gcc nor is it predefined in the preprocessor which I validated by running x86_64-unknown-mingw32-gcc -dM -E - < /dev/null. (Also, I'm not familiar with this error message, but it seems like these constants are defined it's just that they are not valid outside of a function? They're just aliases for hex-numbers though.. see here)

My guess is that this is most likely a problem with MinGW, still since this is a sample toolchain I wanted to report this and ask if anyone can give me some pointers on how to fix this.

For completeness sake here's the statement that fails:

`x86_64-unknown-mingw32-gcc -DHAVE_CONFIG_H -I. -I/home/xtool-ng/.build/src/mingw-w64-v4.0.2/mingw-w64-crt  -m64 -D__LIBMSVCRT__ -I/home/xtool-ng/.build/src/mingw-w64-v4.0.2/mingw-w64-crt/include -I/home/xtool-ng/x-tools/x86_64-unknown-mingw32/x86_64-unknown-mingw32/sysroot/include  -pipe -std=gnu99 -D_WIN32_WINNT=0x0f00 -Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow -Wpacked -Winline -Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes -g -O2 -MT secapi/lib64_libmsvcrt_a-_ctime64_s.o -MD -MP -MF secapi/.deps/lib64_libmsvcrt_a-_ctime64_s.Tpo -c -o secapi/lib64_libmsvcrt_a-_ctime64_s.o `test -f 'secapi/_ctime64_s.c' || echo '/home/xtool-ng/.build/src/mingw-w64-v4.0.2/mingw-w64-crt/'`

and here is the relevant error output from the build.log

ERROR]    /home/xtool-ng/.build/src/mingw-w64-v4.0.2/mingw-w64-crt/secapi/_controlfp_s.c:22:38: error: '_MCW_DN' undeclared here (not in a function)
[ALL  ]     static const unsigned int allflags = _MCW_DN | _MCW_EM | _MCW_IC | _MCW_RC | _MCW_PC;
[ALL  ]                                          ^
[ERROR]    /home/xtool-ng/.build/src/mingw-w64-v4.0.2/mingw-w64-crt/secapi/_controlfp_s.c:22:48: error: '_MCW_EM' undeclared here (not in a function)
[ALL  ]     static const unsigned int allflags = _MCW_DN | _MCW_EM | _MCW_IC | _MCW_RC | _MCW_PC;
[ALL  ]                                                    ^
[ERROR]    /home/xtool-ng/.build/src/mingw-w64-v4.0.2/mingw-w64-crt/secapi/_controlfp_s.c:22:58: error: '_MCW_IC' undeclared here (not in a function)
[ALL  ]     static const unsigned int allflags = _MCW_DN | _MCW_EM | _MCW_IC | _MCW_RC | _MCW_PC;
[ALL  ]                                                              ^
[ERROR]    /home/xtool-ng/.build/src/mingw-w64-v4.0.2/mingw-w64-crt/secapi/_controlfp_s.c:22:68: error: '_MCW_RC' undeclared here (not in a function)
[ALL  ]     static const unsigned int allflags = _MCW_DN | _MCW_EM | _MCW_IC | _MCW_RC | _MCW_PC;
[ALL  ]                                                                        ^
[ERROR]    /home/xtool-ng/.build/src/mingw-w64-v4.0.2/mingw-w64-crt/secapi/_controlfp_s.c:22:78: error: '_MCW_PC' undeclared here (not in a function)
[ALL  ]     static const unsigned int allflags = _MCW_DN | _MCW_EM | _MCW_IC | _MCW_RC | _MCW_PC;
[ALL  ]                                                                                  ^
[ALL  ]    /home/xtool-ng/.build/src/mingw-w64-v4.0.2/mingw-w64-crt/secapi/_controlfp_s.c: In function '_int_controlfp_s':
[ALL  ]    /home/xtool-ng/.build/src/mingw-w64-v4.0.2/mingw-w64-crt/secapi/_controlfp_s.c:30:43: warning: implicit declaration of function '_controlfp' [-Wimplicit-function-declarat
ion]
[ALL  ]         if (currentControl) *currentControl = _controlfp( 0, 0 );
[ALL  ]                                               ^
[ALL  ]    Makefile:34006: recipe for target 'secapi/lib64_libmsvcrt_a-_controlfp_s.o' failed
[ERROR]    make[2]: *** [secapi/lib64_libmsvcrt_a-_controlfp_s.o] Error 1
[ALL  ]    make[2]: *** Waiting for unfinished jobs....
... bunch of warnings ....
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Building mingw-w64 files'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_libc[scripts/build/libc/mingw.sh@108]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>

crosstool 1.20.0 fails second stage gcc compile- segmentation fault

Hi

I'm getting segmentation fault when the tool is performing the second pass of core C compiler. I used the tool to build arm-unknown-eabi and armv6-rpi-linux-gnueabi. I cannot upload the log files, so I'll attach them as comments to this issue.

I'm running on Mac OSX Mavericks running VirtualBox 4.3.18 with
Linux ubuntu64 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)

Compilation issue in NIS

I am trying to build a cross toolchain using crosstools-ng. My host is 64-bit Ubuntu 14.04 running in a Docker container and the target is Raspberry Pi. I am getting a linking error while compiling NIS. Here is the relevant portion from build.log:

[ALL  ]    arm-unknown-linux-gnueabi-gcc     -nostdlib -nostartfiles -static -o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/nscd    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/csu/crt1.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/csu/crti.o `arm-unknown-linux-gnueabi-gcc      --print-file-name=crtbeginT.o` /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/nscd.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/connections.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/pwdcache.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/getpwnam_r.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/getpwuid_r.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/grpcache.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/getgrnam_r.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/getgrgid_r.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/hstcache.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/gethstbyad_r.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/gethstbynm3_r.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/getsrvbynm_r.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/getsrvbypt_r.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/servicescache.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/dbg_log.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/nscd_conf.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/nscd_stat.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/cache.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/mem.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/nscd_setup_thread.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/xmalloc.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/xstrdup.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/aicache.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/initgrcache.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/gai.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/res_hconf.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/netgroupcache.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/libc-do-syscall.o /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nptl/libpthread.a /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a  -Wl,--start-group /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/libc.a -lgcc -lgcc_eh /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/elf/libgcc-stubs.a -Wl,--end-group `arm-unknown-linux-gnueabi-gcc      --print-file-name=crtend.o` /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/csu/crtn.o
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/nscd.o: In function `main':
[ALL  ]    nscd.c:(.text.startup+0x1e8): undefined reference to `__nss_disable_nscd'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_free.o): In function `__free_fdresult':
[ALL  ]    nis_free.c:(.text+0x14): undefined reference to `xdr_free'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_free.o): In function `nis_free_request':
[ALL  ]    nis_free.c:(.text+0x3c): undefined reference to `xdr_free'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_free.o): In function `nis_free_directory':
[ALL  ]    nis_free.c:(.text+0x64): undefined reference to `xdr_free'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_free.o): In function `nis_free_object':
[ALL  ]    nis_free.c:(.text+0x8c): undefined reference to `xdr_free'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_free.o): In function `nis_freeresult':
[ALL  ]    nis_free.c:(.text+0xb4): undefined reference to `xdr_free'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_call.o): In function `rec_dirsearch':
[ALL  ]    nis_call.c:(.text+0x168): undefined reference to `xdrmem_create'
[ALL  ]    nis_call.c:(.text+0x250): undefined reference to `xdrmem_create'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_call.o): In function `__nisbind_connect.part.2':
[ALL  ]    nis_call.c:(.text+0x474): undefined reference to `clntudp_create'
[ALL  ]    nis_call.c:(.text+0x4cc): undefined reference to `authunix_create_default'
[ALL  ]    nis_call.c:(.text+0x4f4): undefined reference to `clnttcp_create'
[ALL  ]    nis_call.c:(.text+0x58c): undefined reference to `key_gendes'
[ALL  ]    nis_call.c:(.text+0x64c): undefined reference to `authdes_pk_create'
[ALL  ]    nis_call.c:(.text+0x6e8): undefined reference to `authunix_create_default'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_call.o): In function `__nisfind_server':
[ALL  ]    nis_call.c:(.text+0xe14): undefined reference to `xdrmem_create'
[ALL  ]    nis_call.c:(.text+0xfe0): undefined reference to `xdrmem_create'
[ALL  ]    nis_call.c:(.text+0x1040): undefined reference to `xdr_sizeof'
[ALL  ]    nis_call.c:(.text+0x10b0): undefined reference to `xdrmem_create'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_table.o): In function `__follow_path':
[ALL  ]    nis_table.c:(.text+0x3d4): undefined reference to `xdr_free'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_table.o): In function `nis_list':
[ALL  ]    nis_table.c:(.text+0x6c4): undefined reference to `xdr_free'
[ALL  ]    nis_table.c:(.text+0x814): undefined reference to `xdr_free'
[ALL  ]    nis_table.c:(.text+0x8fc): undefined reference to `xdr_free'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_nis_name':
[ALL  ]    nis_xdr.c:(.text+0x4): undefined reference to `xdr_string'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `xdr_endpoint':
[ALL  ]    nis_xdr.c:(.text+0x18): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x30): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x4c): undefined reference to `xdr_string'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `xdr_table_col':
[ALL  ]    nis_xdr.c:(.text+0x68): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x7c): undefined reference to `xdr_u_int'
[ALL  ]    nis_xdr.c:(.text+0x94): undefined reference to `xdr_u_int'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_nis_tag':
[ALL  ]    nis_xdr.c:(.text+0xac): undefined reference to `xdr_u_int'
[ALL  ]    nis_xdr.c:(.text+0xc8): undefined reference to `xdr_string'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_nis_server':
[ALL  ]    nis_xdr.c:(.text+0xe0): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x108): undefined reference to `xdr_array'
[ALL  ]    nis_xdr.c:(.text+0x11c): undefined reference to `xdr_u_int'
[ALL  ]    nis_xdr.c:(.text+0x138): undefined reference to `xdr_netobj'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `xdr_oar_mask':
[ALL  ]    nis_xdr.c:(.text+0x158): undefined reference to `xdr_u_int'
[ALL  ]    nis_xdr.c:(.text+0x170): undefined reference to `xdr_enum'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `xdr_entry_col':
[ALL  ]    nis_xdr.c:(.text+0x180): undefined reference to `xdr_u_int'
[ALL  ]    nis_xdr.c:(.text+0x1a0): undefined reference to `xdr_bytes'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `xdr_nis_attr':
[ALL  ]    nis_xdr.c:(.text+0x1b4): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x1d4): undefined reference to `xdr_bytes'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `xdr_obj_p':
[ALL  ]    nis_xdr.c:(.text+0x1e0): undefined reference to `xdr_pointer'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_directory_obj':
[ALL  ]    nis_xdr.c:(.text+0x1fc): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x210): undefined reference to `xdr_enum'
[ALL  ]    nis_xdr.c:(.text+0x238): undefined reference to `xdr_array'
[ALL  ]    nis_xdr.c:(.text+0x24c): undefined reference to `xdr_uint32_t'
[ALL  ]    nis_xdr.c:(.text+0x274): undefined reference to `xdr_array'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_nis_object':
[ALL  ]    nis_xdr.c:(.text+0x2a0): undefined reference to `xdr_uint32_t'
[ALL  ]    nis_xdr.c:(.text+0x2b4): undefined reference to `xdr_uint32_t'
[ALL  ]    nis_xdr.c:(.text+0x2cc): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x2e4): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x2fc): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x314): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x328): undefined reference to `xdr_u_int'
[ALL  ]    nis_xdr.c:(.text+0x33c): undefined reference to `xdr_uint32_t'
[ALL  ]    nis_xdr.c:(.text+0x350): undefined reference to `xdr_enum'
[ALL  ]    nis_xdr.c:(.text+0x390): undefined reference to `xdr_u_int'
[ALL  ]    nis_xdr.c:(.text+0x3b8): undefined reference to `xdr_array'
[ALL  ]    nis_xdr.c:(.text+0x3dc): undefined reference to `xdr_bytes'
[ALL  ]    nis_xdr.c:(.text+0x400): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x414): undefined reference to `xdr_int'
[ALL  ]    nis_xdr.c:(.text+0x428): undefined reference to `xdr_u_char'
[ALL  ]    nis_xdr.c:(.text+0x450): undefined reference to `xdr_array'
[ALL  ]    nis_xdr.c:(.text+0x470): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x480): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x4a0): undefined reference to `xdr_enum'
[ALL  ]    nis_xdr.c:(.text+0x4c8): undefined reference to `xdr_array'
[ALL  ]    nis_xdr.c:(.text+0x4e8): undefined reference to `xdr_string'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_nis_error':
[ALL  ]    nis_xdr.c:(.text+0x50c): undefined reference to `xdr_enum'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_nis_result':
[ALL  ]    nis_xdr.c:(.text+0x520): undefined reference to `xdr_enum'
[ALL  ]    nis_xdr.c:(.text+0x548): undefined reference to `xdr_array'
[ALL  ]    nis_xdr.c:(.text+0x55c): undefined reference to `xdr_netobj'
[ALL  ]    nis_xdr.c:(.text+0x570): undefined reference to `xdr_uint32_t'
[ALL  ]    nis_xdr.c:(.text+0x584): undefined reference to `xdr_uint32_t'
[ALL  ]    nis_xdr.c:(.text+0x598): undefined reference to `xdr_uint32_t'
[ALL  ]    nis_xdr.c:(.text+0x5b4): undefined reference to `xdr_uint32_t'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_ns_request':
[ALL  ]    nis_xdr.c:(.text+0x5dc): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x604): undefined reference to `xdr_array'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_ib_request':
[ALL  ]    nis_xdr.c:(.text+0x628): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x650): undefined reference to `xdr_array'
[ALL  ]    nis_xdr.c:(.text+0x664): undefined reference to `xdr_u_int'
[ALL  ]    nis_xdr.c:(.text+0x68c): undefined reference to `xdr_array'
[ALL  ]    nis_xdr.c:(.text+0x6b4): undefined reference to `xdr_array'
[ALL  ]    nis_xdr.c:(.text+0x6c8): undefined reference to `xdr_u_int'
[ALL  ]    nis_xdr.c:(.text+0x6e4): undefined reference to `xdr_netobj'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_ping_args':
[ALL  ]    nis_xdr.c:(.text+0x710): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x728): undefined reference to `xdr_uint32_t'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_cp_result':
[ALL  ]    nis_xdr.c:(.text+0x738): undefined reference to `xdr_enum'
[ALL  ]    nis_xdr.c:(.text+0x74c): undefined reference to `xdr_uint32_t'
[ALL  ]    nis_xdr.c:(.text+0x764): undefined reference to `xdr_uint32_t'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_nis_taglist':
[ALL  ]    nis_xdr.c:(.text+0x794): undefined reference to `xdr_array'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_fd_args':
[ALL  ]    nis_xdr.c:(.text+0x7b4): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x7d0): undefined reference to `xdr_string'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `_xdr_fd_result':
[ALL  ]    nis_xdr.c:(.text+0x7e0): undefined reference to `xdr_enum'
[ALL  ]    nis_xdr.c:(.text+0x7f8): undefined reference to `xdr_string'
[ALL  ]    nis_xdr.c:(.text+0x814): undefined reference to `xdr_bytes'
[ALL  ]    nis_xdr.c:(.text+0x834): undefined reference to `xdr_bytes'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_xdr.o): In function `xdr_cback_data':
[ALL  ]    nis_xdr.c:(.text+0x864): undefined reference to `xdr_array'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_findserv.o): In function `__pmap_getnisport':
[ALL  ]    nis_findserv.c:(.text+0x14): undefined reference to `__libc_rpc_getport'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_findserv.o): In function `__nis_findfastest':
[ALL  ]    nis_findserv.c:(.text+0x16c): undefined reference to `__libc_rpc_getport'
[ALL  ]    nis_findserv.c:(.text+0x25c): undefined reference to `clntudp_create'
[ALL  ]    nis_findserv.c:(.text+0x280): undefined reference to `authunix_create_default'
[ALL  ]    nis_findserv.c:(.text+0x430): undefined reference to `xdr_void'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_callback.o): In function `cb_prog_1':
[ALL  ]    nis_callback.c:(.text+0xf4): undefined reference to `svc_sendreply'
[ALL  ]    nis_callback.c:(.text+0x25c): undefined reference to `svc_sendreply'
[ALL  ]    nis_callback.c:(.text+0x26c): undefined reference to `svcerr_noproc'
[ALL  ]    nis_callback.c:(.text+0x27c): undefined reference to `svcerr_decode'
[ALL  ]    nis_callback.c:(.text+0x28c): undefined reference to `svcerr_systemerr'
[ALL  ]    nis_callback.c:(.text+0x2a8): undefined reference to `xdr_void'
[ALL  ]    nis_callback.c:(.text+0x2bc): undefined reference to `xdr_bool'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_callback.o): In function `__nis_do_callback':
[ALL  ]    nis_callback.c:(.text+0x304): undefined reference to `__rpc_thread_svc_max_pollfd'
[ALL  ]    nis_callback.c:(.text+0x334): undefined reference to `__rpc_thread_svc_pollfd'
[ALL  ]    nis_callback.c:(.text+0x420): undefined reference to `__rpc_thread_svc_pollfd'
[ALL  ]    nis_callback.c:(.text+0x464): undefined reference to `svc_getreq_poll'
[ALL  ]    nis_callback.c:(.text+0x4ac): undefined reference to `xdr_bool'
[ALL  ]    nis_callback.c:(.text+0x4b0): undefined reference to `xdr_netobj'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_callback.o): In function `__nis_create_callback':
[ALL  ]    nis_callback.c:(.text+0x5bc): undefined reference to `svctcp_create'
[ALL  ]    nis_callback.c:(.text+0x5f0): undefined reference to `svc_register'
[ALL  ]    nis_callback.c:(.text+0x624): undefined reference to `get_myaddress'
[ALL  ]    nis_callback.c:(.text+0x670): undefined reference to `key_secretkey_is_set'
[ALL  ]    nis_callback.c:(.text+0x6a8): undefined reference to `xdr_free'
[ALL  ]    nis_callback.c:(.text+0x714): undefined reference to `svcudp_bufcreate'
[ALL  ]    nis_callback.c:(.text+0x730): undefined reference to `xdr_free'
[ALL  ]    nis_callback.c:(.text+0x74c): undefined reference to `xprt_unregister'
[ALL  ]    nis_callback.c:(.text+0x768): undefined reference to `xdr_free'
[ALL  ]    nis_callback.c:(.text+0x78c): undefined reference to `xprt_unregister'
[ALL  ]    nis_callback.c:(.text+0x7a8): undefined reference to `xdr_free'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_callback.o): In function `__nis_destroy_callback':
[ALL  ]    nis_callback.c:(.text+0x7fc): undefined reference to `xprt_unregister'
[ALL  ]    nis_callback.c:(.text+0x820): undefined reference to `xdr_free'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_clone_obj.o): In function `nis_clone_object':
[ALL  ]    nis_clone_obj.c:(.text+0x1c): undefined reference to `xdr_sizeof'
[ALL  ]    nis_clone_obj.c:(.text+0x54): undefined reference to `xdrmem_create'
[ALL  ]    nis_clone_obj.c:(.text+0xcc): undefined reference to `xdrmem_create'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_file.o): In function `read_nis_obj':
[ALL  ]    nis_file.c:(.text+0x44): undefined reference to `xdrstdio_create'
[ALL  ]    /home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis/libnsl.a(nis_file.o): In function `write_nis_obj':
[ALL  ]    nis_file.c:(.text+0xd8): undefined reference to `xdrstdio_create'
[ERROR]    collect2: error: ld returned 1 exit status
[ERROR]    make[3]: *** [/home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nscd/nscd] Error 1
[ALL  ]    make[3]: Leaving directory `/home/placemeter/pi/staging/.build/src/eglibc-2_18/nscd'
[ERROR]    make[2]: *** [nscd/others] Error 2
[ALL  ]    make[2]: Leaving directory `/home/placemeter/pi/staging/.build/src/eglibc-2_18'
[ERROR]    make[1]: *** [all] Error 2
[ALL  ]    make[1]: Leaving directory `/home/placemeter/pi/staging/.build/arm-unknown-linux-gnueabi/build/build-libc-final'
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@451]
[ERROR]  >>        called from: do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@143]
[ERROR]  >>        called from: do_libc[scripts/build/libc/glibc-eglibc.sh-common@65]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/usr/local/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]  
[ERROR]  (elapsed: 7:47.71)

Here is a link to the complete build.log file: https://dl.dropboxusercontent.com/u/32117554/build.log. I have googled a bit a tried a few possible solutions. Nothing worked so far. Am I missing any package?

Build failed in Ubuntu 15.04. Message: Build failed in step 'Installing PPL for host'

Hello, i'm trying to build with crosstool-ng versiรณn 1.19.0.
i have the message "Build failed in step 'Installing PPL for host'"

What is the problem?

[ALL  ]    In file included from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator_System.defs.hh:27:0,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator.defs.hh:28,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator.cc:25:
[ERROR]    /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Generator_System.defs.hh:253:7: error: 'ptrdiff_t' was not declared in this scope
[ALL  ]           ptrdiff_t,
[ALL  ]           ^
[ALL  ]    /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Generator_System.defs.hh:253:7: note: suggested alternatives:
[ALL  ]    In file included from /usr/include/c++/4.9/iostream:38:0,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/checked.defs.hh:26,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Checked_Number.defs.hh:27,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Coefficient.types.hh:15,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Coefficient.defs.hh:26,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator.defs.hh:27,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator.cc:25:
[ALL  ]    /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:189:28: note:   'std::ptrdiff_t'
[ALL  ]       typedef __PTRDIFF_TYPE__ ptrdiff_t;
[ALL  ]                                ^
[ALL  ]    /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:189:28: note:   'std::ptrdiff_t'
[ALL  ]    In file included from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator_System.defs.hh:27:0,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator.defs.hh:28,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator.cc:25:
[ERROR]    /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Generator_System.defs.hh:255:23: error: template argument 3 is invalid
[ALL  ]           const Generator&> {
[ALL  ]                           ^
[ALL  ]    In file included from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator.defs.hh:28:0,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator.cc:25:
[ERROR]    /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator_System.defs.hh:268:7: error: 'ptrdiff_t' was not declared in this scope
[ALL  ]           ptrdiff_t,
[ALL  ]           ^
[ALL  ]    /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator_System.defs.hh:268:7: note: suggested alternatives:
[ALL  ]    In file included from /usr/include/c++/4.9/iostream:38:0,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/checked.defs.hh:26,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Checked_Number.defs.hh:27,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Coefficient.types.hh:15,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Coefficient.defs.hh:26,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator.defs.hh:27,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator.cc:25:
[ALL  ]    /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:189:28: note:   'std::ptrdiff_t'
[ALL  ]       typedef __PTRDIFF_TYPE__ ptrdiff_t;
[ALL  ]                                ^
[ALL  ]    /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:189:28: note:   'std::ptrdiff_t'
[ALL  ]    In file included from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator.defs.hh:28:0,
[ALL  ]                     from /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator.cc:25:
[ERROR]    /home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/src/ppl-0.10.2/src/Grid_Generator_System.defs.hh:270:28: error: template argument 3 is invalid
[ALL  ]           const Grid_Generator&>,
[ALL  ]                                ^
[ALL  ]    Makefile:1032: recipe for target 'Grid_Generator.lo' failed
[ERROR]    make[4]: *** [Grid_Generator.lo] Error 1
[ALL  ]    make[4]: *** Waiting for unfinished jobs....
[ALL  ]    mv -f .deps/Coefficient.Tpo .deps/Coefficient.Plo
[ALL  ]    mv -f .deps/Init.Tpo .deps/Init.Plo
[ALL  ]    mv -f .deps/Linear_Expression.Tpo .deps/Linear_Expression.Plo
[ALL  ]    make[4]: Leaving directory '/home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/arm-unknown-linux-uclibcgnueabi/build/build-ppl-host-x86_64-build_pc-linux-gnu/src'
[ALL  ]    Makefile:851: recipe for target 'all' failed
[ERROR]    make[3]: *** [all] Error 2
[ALL  ]    make[3]: Leaving directory '/home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/arm-unknown-linux-uclibcgnueabi/build/build-ppl-host-x86_64-build_pc-linux-gnu/src'
[ALL  ]    Makefile:415: recipe for target 'all-recursive' failed
[ERROR]    make[2]: *** [all-recursive] Error 1
[ALL  ]    make[2]: Leaving directory '/home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/arm-unknown-linux-uclibcgnueabi/build/build-ppl-host-x86_64-build_pc-linux-gnu'
[ALL  ]    Makefile:343: recipe for target 'all' failed
[ERROR]    make[1]: *** [all] Error 2
[ALL  ]    make[1]: Leaving directory '/home/goonie/practicas/02_Toolchain/crosstool-ng-1.19.0/.build/arm-unknown-linux-uclibcgnueabi/build/build-ppl-host-x86_64-build_pc-linux-gnu'
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing PPL for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_ppl_backend[scripts/build/companion_libs/120-ppl.sh@128]
[ERROR]  >>        called from: do_ppl_for_host[scripts/build/companion_libs/120-ppl.sh@78]
[ERROR]  >>        called from: do_companion_libs_for_host[scripts/build/companion_libs.sh@36]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@632]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      'docs/B - Known issues.txt'
[ERROR]  
[ERROR]  (elapsed: 3:09.34)

ltrace fails to compile for armv5te

[INFO ]  =================================================================
[INFO ]  Installing gdbserver
[INFO ]  Installing gdbserver: done in 20.69s (at 25:26)
[INFO ]  =================================================================
[INFO ]  Installing ltrace
[ERROR]    ltrace-elf.c:221:42: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
[ERROR]    ltrace-elf.c:221:42: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
[ERROR]    ltrace-elf.c:221:42: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
[ERROR]    make[3]: *** [ltrace-elf.lo] Error 1
[ERROR]    make[2]: *** [all-recursive] Error 1
[ERROR]    make[1]: *** [all] Error 2

Config https://gist.github.com/voltagex/4ef4a0b8df4dcd2f5b48, crosstool-NG git+bf5d513

Build failed in step 'Installing final compiler' [ERROR] called in step '(top-level)'

After doing ./ct-ng build, i got the following error:

[ALL  ]    /opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/lra-assigns.c: In function 'void update_lives(int, bool)':
[ERROR]    /opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/lra-assigns.c:363:1: internal compiler error: Segmentation fault
[ALL  ]     update_lives (int regno, bool free_p)
[ALL  ]     ^
[ALL  ]    Please submit a full bug report,
[ALL  ]    with preprocessed source if appropriate.
[ALL  ]    See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -c   -O2 -g -pipe  -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/. -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../include -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libcpp/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include  -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libdecnumber -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libbacktrace -DCLOOG_INT_GMP -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include  /opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/lra-lives.c -o lra-lives.o
[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -c   -O2 -g -pipe  -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/. -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../include -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libcpp/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include  -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libdecnumber -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libbacktrace -DCLOOG_INT_GMP -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include  /opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/lra-spills.c -o lra-spills.o
[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -c   -O2 -g -pipe  -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/. -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../include -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libcpp/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include  -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libdecnumber -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libbacktrace -DCLOOG_INT_GMP -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include  /opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/lto-cgraph.c -o lto-cgraph.o
[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -c   -O2 -g -pipe  -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/. -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../include -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libcpp/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include  -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libdecnumber -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/../libbacktrace -DCLOOG_INT_GMP -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include -I/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/buildtools/include  /opt/Espressif/crosstool-NG/.build/src/gcc-4.8.2/gcc/lto-streamer.c -o lto-streamer.o
[ALL  ]    The bug is not reproducible, so it is likely a hardware or OS problem.
[ERROR]    make[2]: *** [lra-assigns.o] Error 1
[ALL  ]    make[2]: *** Waiting for unfinished jobs....
[ALL  ]    rm gcc.pod
[ALL  ]    make[2]: Leaving directory `/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-final/gcc'
[ERROR]    make[1]: *** [all-gcc] Error 2
[ALL  ]    make[1]: Leaving directory `/opt/Espressif/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-final'
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing final compiler'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_cc_core_backend[scripts/build/cc/gcc.sh@483]
[ERROR]  >>        called from: do_cc_for_host[scripts/build/cc/gcc.sh@595]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      'share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'

Canadian build for bare-metal ARM fails.

Using crosstool-ng from github master (after 1.20)

I want to build a version of GCC to run on the Raspberry Pi, and target the Teensy 3.1 (a Cortex-M4 without FPU.) My build machine is Linux amd64.

  1. Configure and build cross from x64 to rpi -- works
  2. Configure and build cross from x64 to teensy (bare metal, newlib, no long double or quadmath) -- works, after patching the "can't determine value of EOF" problem
  3. Configure and build canadian from rpi to teensy -- compiler builds, but library fails with file not found from an #include_next <fenv.h>

Internet search says this is a "cygwin specific problem that requires a newer cygwin," but that's obviously not the problem in this case.

[ALL  ]    mkdir -p ./arm-jwatte-eabi/bits/stdc++.h.gch
[ALL  ]    arm-jwatte-eabi-c++     -x c++-header -nostdinc++ -g -Os -I/usr/local/src/cross-source-target/rpi-teensy/.build/arm-jwatte-eabi/build/build-cc-final/arm-jwatte-eabi/libstdc++-v3/include/arm-jwatte-eabi -I/usr/local/src/cross-source-target/rpi-teensy/.build/arm-jwatte-eabi/build/build-cc-final/arm-jwatte-eabi/libstdc++-v3/include -I/usr/local/src/cross-source-target/rpi-teensy/.build/src/gcc-linaro-4.8-2014.04/libstdc++-v3/libsupc++ -I/opt/cross/rpi/include -O2 -g -std=gnu++0x /usr/local/src/cross-source-target/rpi-teensy/.build/src/gcc-linaro-4.8-2014.04/libstdc++-v3/include/precompiled/stdc++.h   -o arm-jwatte-eabi/bits/stdc++.h.gch/O2ggnu++0x.gch
[ALL  ]    arm-jwatte-eabi-c++     -x c++-header -nostdinc++ -g -Os -I/usr/local/src/cross-source-target/rpi-teensy/.build/arm-jwatte-eabi/build/build-cc-final/arm-jwatte-eabi/libstdc++-v3/include/arm-jwatte-eabi -I/usr/local/src/cross-source-target/rpi-teensy/.build/arm-jwatte-eabi/build/build-cc-final/arm-jwatte-eabi/libstdc++-v3/include -I/usr/local/src/cross-source-target/rpi-teensy/.build/src/gcc-linaro-4.8-2014.04/libstdc++-v3/libsupc++ -I/opt/cross/rpi/include -O2 -g /usr/local/src/cross-source-target/rpi-teensy/.build/src/gcc-linaro-4.8-2014.04/libstdc++-v3/include/precompiled/stdc++.h -o arm-jwatte-eabi/bits/stdc++.h.gch/O2g.gch
[ALL  ]    In file included from /usr/local/src/cross-source-target/rpi-teensy/.build/arm-jwatte-eabi/build/build-cc-final/arm-jwatte-eabi/libstdc++-v3/include/cfenv:41:0,
[ALL  ]                     from /usr/local/src/cross-source-target/rpi-teensy/.build/src/gcc-linaro-4.8-2014.04/libstdc++-v3/include/precompiled/stdc++.h:53:
[ERROR]    /usr/local/src/cross-source-target/rpi-teensy/.build/arm-jwatte-eabi/build/build-cc-final/arm-jwatte-eabi/libstdc++-v3/include/fenv.h:36:24: fatal error: fenv.h: No such file or directory
[ALL  ]     # include_next <fenv.h>
[ALL  ]                            ^
[ALL  ]    compilation terminated.
[ERROR]    make[4]: *** [arm-jwatte-eabi/bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1
[ALL  ]    make[4]: *** Waiting for unfinished jobs....
[ALL  ]    make[4]: Leaving directory `/usr/local/src/cross-source-target/rpi-teensy/.build/arm-jwatte-eabi/build/build-cc-final/arm-jwatte-eabi/libstdc++-v3/include'
[ERROR]    make[3]: *** [all-recursive] Error 1
[ALL  ]    make[3]: Leaving directory `/usr/local/src/cross-source-target/rpi-teensy/.build/arm-jwatte-eabi/build/build-cc-final/arm-jwatte-eabi/libstdc++-v3'
[ERROR]    make[2]: *** [all] Error 2
[ALL  ]    make[2]: Leaving directory `/usr/local/src/cross-source-target/rpi-teensy/.build/arm-jwatte-eabi/build/build-cc-final/arm-jwatte-eabi/libstdc++-v3'
[ERROR]    make[1]: *** [all-target-libstdc++-v3] Error 2
[ALL  ]    make[1]: Leaving directory `/usr/local/src/cross-source-target/rpi-teensy/.build/arm-jwatte-eabi/build/build-cc-final'
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing final compiler'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_cc_core_backend[scripts/build/cc/gcc.sh@486]
[ERROR]  >>        called from: do_cc_for_host[scripts/build/cc/gcc.sh@598]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/usr/local/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 42:22.64)

SVN errors at svn://svn.eglibc.org/

Hi,

When using crosstool-ng 1.20.0 and eglibc-2_18, the command

[DEBUG]    ==> Executing: 'svn' 'export' '-r' 'HEAD' 'svn://svn.eglibc.org/branches/eglibc-2_18/libc' 'eglibc-2_18'

Returns

svn: E020014: Can't find a temporary directory: Internal error

It seems the svn.eglibc.org server needs to be restarted. I know eglibc has ended, but many of us still want to use the eglibc goodness. I tried to email the eglibc.org folks with no luck... does anyone know how to get the svn.eglibc.org server restarted ?

GCC version "Custom gcc" will force GCC_latest

When you want to use a custom GCC version, this will not always be the latest GCC version.
Forcing this selection is very limiting and makes this option more or less useless.
The right behaviour would be to open an additional selection for the custom GCC version.
I will add a branch to my repo on GitHub to implement the new feature.

Multilib does not (really) enable -m64 for SPARC

I have used the multilib option to build a mips gcc that does all kinds of binaries as expected (at least it does not complain when doing any combination of little endian, big endian and 32b, 64b), yay! Trying the same for SPARC fails though. It compiles and installs without errors but it fails at compiling a trivial example when using -m64:

$ sparc-unknown-linux-gnu-gcc -m64 .test.c 
.test.c:1:0: error: -m64 is not supported by this configuration
int main(int argc, char **argv)
^
.test.c:1:0: error: -mlong-double-64 not allowed with -m64

Calling gcc without an actual c file does not show that error:

$ sparc-unknown-linux-gnu-gcc -m64
sparc-unknown-linux-gnu-gcc: fatal error: no input files compilation terminated.

The following seems interesting in this context:

$ /opt/cross/sparc-unknown-linux-gnu/libexec/gcc/sparc-unknown-linux-gnu/4.9.2/cc1 --help | grep 64
  -m64                              [disabled]
  -mlong-double-64                  [enabled]
  -mptr64                           [disabled]

The most important config flags are:

CT_ARCH="sparc"
CT_ARCH_SUPPORTS_32=y
CT_ARCH_SUPPORTS_64=y
CT_ARCH_SUPPORTS_WITH_CPU=y
CT_ARCH_SUPPORTS_WITH_TUNE=y
CT_ARCH_SUPPORTS_WITH_FLOAT=y
CT_ARCH_DEFAULT_32=y
CT_ARCH_CPU=""
CT_ARCH_TUNE=""
CT_ARCH_32=y
# CT_ARCH_64 is not set
CT_ARCH_BITNESS=32
CT_TARGET_CFLAGS=""
CT_TARGET_LDFLAGS=""
CT_ARCH_sparc=y
CT_MULTILIB=y
CT_ARCH_FLOAT_AUTO=y
CT_ARCH_FLOAT="auto"

CT_CROSS=y

CT_BINUTILS_LINARO_V_2_25=y
CT_LIBC_GLIBC_LINARO_V_2_20=y
CT_CC_V_4_9_2=y

I am happy to supply more information if need be... I just don't know what :)

ncurses breaks make

When I run ./bootstrap && ./configure && make, I get:

  LD     'mconf'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../x86_64-pc-linux-gnu/bin/ld: lxdialog/util.o: undefined reference to symbol 'cbreak'
/lib64/libtinfow.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:100: recipe for target 'mconf' failed
make[2]: *** [mconf] Error 1
Makefile:166: recipe for target 'build-lib-kconfig' failed
make[1]: *** [build-lib-kconfig] Error 2
Makefile:126: recipe for target 'build' failed
make: *** [build] Error 2

My ncurses is sys-lib/ncurses-5.9-r3, built --with-cxx --with-tinfo --with-unicode and --without everything else.

A few related bugs can be found here, if that helps.

Select LIBC_PROVIDES_CXA_ATEXIT for newlib version >= 2.0.0

newlib does provide the function __cxa_atexit, at least in versions >= 2.0.0.
The patch for issue #147 does introduce a new configuration option LIBC_PROVIDES_CXA_ATEXIT.
The newlib configuration shall set this option, if the selected newlib version is >= 2.0.0.
If custom newlib version is selected, an additional selection for the custom newlib version shall be activated (similar feature as described issue #145).
I will add a branch to my repo on GitHub to implement the new feature.

populate script generates error about missing libJIS.so

After building a new toolchain, using the populate script to get a working copy of the sysroot prints an error about libJIS.so not being found, even though it exists in both the source sysroot as well as the new copy of the sysroot.

% x86_64-pc-linux-gnu-populate -s ~/dev/x-tools/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sysroot -d ./rootimage
x86_64-pc-linux-gnu-populate: library 'libJIS.so' not found!
% find rootimage -name libJIS.so
rootimage/usr/lib/gconv/libJIS.so
% find ~/dev/x-tools/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sysroot -name libJIS.so
/home/tc/dev/x-tools/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sysroot/usr/lib/gconv/libJIS.so
% 

Debian 8 after configure --> make message

Hi

just installed Debian 8, after ./configure step

make

Makefile:115: *** Recursion detected, bailing out.... Arrรชt.
Makefile:120: recipe for target 'build' failed
make: *** [build] Error 2

used with crosstool-ng 1.16

thanks for your feedback

Update kconfig version

Update the kconfig version included in crosstool-ng.
From the commit logs apparently the last big update in the kconfig used by crosstool-ng was in 2011.

This is clearly just an enhancement because the current version works just fine.
The feature which I miss in the kconfig included in crosstool-ng is the option to jump to the config options when searching using 'menuconfig'.
It allows you to search for an option and then press 1-9 to jump to the menu containing that option, instead of having to look at the option location and then manually browse to the option after closing the search.
This was apparently added to the linux kernel in the major version v3.7.

It seems that a good reference is the kconfig management which is done by buildroot. In buildroot, the search feature is already present. From what I understood, buildroot keeps kconfig patches separately to allow easier tracking of the upstream kernel kconfig.

I gave it an initial look to check if it would be trivial to fix this and send a pull request, but apparently there are patches in the crosstool-ng kconfig so this probably must be done with some care.
I may eventually get back to this if noone else wants to, meanwhile I'll just keep it tracked here in case anyone else feels like picking this up.

Canadian cross in cygwin fails install kernel headers step.

It seems the canadian cross setup under cygwin has stopped working in both 1.20.0 and 1.21.0.
The process fails in the Install Kernel Header section with the following error message:

.../tools/include/tools/le_byteshift.h:4:25: fatal error: linux/types.h: No such file or directory

I've currently tried various versions of kernel headers along with providing a custom kernel source directory to no avail.

Canadian setup is as follows:

  • build = i686-pc-cygwin
  • host = i686-pc-mingw32
  • target = x86_64-pc-linux-gnu

Full build log and config can be found here: https://gist.github.com/andrimarjonsson/ba730dde1e4ff51b23e1

Can't build final compiler stage with experemental Ada support (undefined reference to `__gnat_runtime_finalize')

using crosstool-ng-1.20.0
Building
build = i686-pc-linux-gnu
host = i686-pc-linux-gnu
target = x86_64-pc-linux-gnu .

without gnat everything is working well and crosscompiler building finishes ok. But trying add experimental ada support - fails on final compiler building stage with undefined reference to `__gnat_runtime_finalize' . all downloaded tarballs are latest supported by crosstool-ng-1.20.0 .

few final lines from log:
https://gist.github.com/AnimusPEXUS/2d7a1366a261a29f2b68

release 1.21.0 tarfile problems

File sizes wildly different:

$ ls -lh
total 19M
-rw-r--r--  1 tad tad 1.6M Jun  9 16:54 crosstool-ng-1.20.0.tar.xz
-rw-r--r--  1 tad tad  18M Jun  9 17:00 crosstool-ng-1.21.0.tar.xz

Version 1.20.0 is in a subdir:

$ tar tvf crosstool-ng-1.20.0.tar.xz | head
drwxrwxr-x ymorin/ymorin     0 2014-09-08 15:02 crosstool-ng-1.20.0/
-rw-rw-r-- ymorin/ymorin  2349 2014-09-08 14:58 crosstool-ng-1.20.0/steps.mk
lrwxrwxrwx ymorin/ymorin     0 2014-09-08 14:58 crosstool-ng-1.20.0/LICENSES -> COPYING
drwxrwxr-x ymorin/ymorin     0 2014-09-08 14:58 crosstool-ng-1.20.0/kconfig/
-rw-rw-r-- ymorin/ymorin   214 2014-09-08 14:58 crosstool-ng-1.20.0/kconfig/check.sh
-rw-rw-r-- ymorin/ymorin 39716 2014-09-08 14:58 crosstool-ng-1.20.0/kconfig/nconf.c

Version 1.21.0 is full of weirdness:

$ tar tvf crosstool-ng-1.21.0.tar.xz | head
drwxr-xr-x bhundven/bhundven 0 2015-05-25 13:09 ./
drwxr-xr-x bhundven/bhundven 0 2015-05-25 13:08 ./licenses.d/
-rw-r--r-- bhundven/bhundven 17987 2015-05-25 13:08 ./licenses.d/gpl.txt
-rw-r--r-- bhundven/bhundven 26436 2015-05-25 13:08 ./licenses.d/lgpl.txt
drwxr-xr-x bhundven/bhundven     0 2015-05-25 13:08 ./licenses.d/by-sa/
drwxr-xr-x bhundven/bhundven     0 2015-05-25 13:08 ./licenses.d/by-sa/legalcode_files/
-rw-r--r-- bhundven/bhundven  3263 2015-05-25 13:08 ./licenses.d/by-sa/legalcode_files/logo_code.gif
-rw-r--r-- bhundven/bhundven  1022 2015-05-25 13:08 ./licenses.d/by-sa/legalcode_files/deeds.css
-rw-r--r-- bhundven/bhundven  9295 2015-05-25 13:08 ./licenses.d/by-sa/deed.en
drwxr-xr-x bhundven/bhundven     0 2015-05-25 13:08 ./licenses.d/by-sa/deed_files/

Can't build on mingw

It also fails to build on mingw. I'm trying to elaborate build process here.
https://github.com/kireevco/packages/tree/master/esp-open-sdk/windows

Cross issue pfalcon/esp-open-sdk#17

Full log:

checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for a BSD-compatible install... /usr/bin//install -c
checking for grep that handles long lines and -e... /usr/bin//grep
checking for egrep... /usr/bin//grep -E
checking for a sed that does not truncate output... /usr/bin//sed
checking whether sed understands -r -i -e... yes
checking whether ln -s works... no, using cp -p
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for gobjcopy... no
checking for objcopy... objcopy
checking for absolute path to objcopy... /usr/bin/objcopy.exe
checking for gobjdump... no
checking for objdump... objdump
checking for absolute path to objdump... /usr/bin/objdump.exe
checking for greadelf... no
checking for readelf... readelf
checking for absolute path to readelf... /usr/bin/readelf.exe
checking for gperf... gperf
checking for absolute path to gperf... /usr/bin/gperf.exe
checking for bison... bison
checking for flex... flex
checking for makeinfo... makeinfo
checking for cut... cut
checking for stat... stat
checking for readlink... readlink
checking for wget... wget
checking for tar... tar
checking for gzip... gzip
checking for bzip2... bzip2
checking for patch... /usr/bin//patch
checking for bash >= 3.1... /usr/bin//bash
checking for GNU awk... /usr/bin//gawk
checking for GNU make >= 3.80... /usr/bin//make
checking whether /usr/bin//make sets $(MAKE)... yes
checking for make 3.81... yes
checking for GNU libtool >= 1.5.26... /usr/bin//libtool
checking for GNU libtoolize >= 1.5.26... /usr/bin//libtoolize
checking for GNU automake >= 1.10... /usr/bin//automake
checking for xz... xz
checking for cvs... cvs
checking for svn... no
checking for inline... inline
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for size_t... yes
checking for working alloca.h... no
checking for alloca... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking ncurses/ncurses.h usability... no
checking ncurses/ncurses.h presence... no
checking for ncurses/ncurses.h... no
checking ncurses/curses.h usability... no
checking ncurses/curses.h presence... no
checking for ncurses/curses.h... no
checking ncursesw/curses.h usability... no
checking ncursesw/curses.h presence... no
checking for ncursesw/curses.h... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for library containing initscr... -lncurses
configure: creating ./config.status
config.status: creating Makefile
make MAKELEVEL=0
make: Entering directory `/c/Users/User/packages/esp-open-sdk/windows/mignw/esp-
open-sdk/crosstool-NG'
  SED    'ct-ng'
  SED    'scripts/crosstool-NG.sh'
  SED    'scripts/saveSample.sh'
  SED    'scripts/showTuple.sh'
  GEN    'config/configure.in'
  GEN    'paths.mk'
  GEN    'paths.sh'
  DEP    'nconf.gui.dep'
  DEP    'nconf.dep'
  DEP    'lxdialog/yesno.dep'
  DEP    'lxdialog/util.dep'
  DEP    'lxdialog/textbox.dep'
  DEP    'lxdialog/menubox.dep'
  DEP    'lxdialog/inputbox.dep'
  DEP    'lxdialog/checklist.dep'
  DEP    'mconf.dep'
  DEP    'conf.dep'
  BISON  'zconf.tab.c'
  GPERF  'zconf.hash.c'
(standard input):14: warning: junk after %% is ignored
, defaulting to Cage option ANSI-C
(standard input):5: junk after declaration
  LEX    'lex.zconf.c'
  DEP    'zconf.tab.dep'
  CC     'zconf.tab.o'
zconf.tab.c: In function `zconfparse':
zconf.tab.c:1656: error: `kconf_id_strings' undeclared (first use in this functi
on)
zconf.tab.c:1656: error: (Each undeclared identifier is reported only once
zconf.tab.c:1656: error: for each function it appears in.)
zconf.tab.c:1764: warning: initialization makes pointer from integer without a c
ast
zconf.tab.c: In function `zconf_endtoken':
zconf.tab.c:2315: error: `kconf_id_strings' undeclared (first use in this functi
on)
In file included from zconf.tab.c:2507:
lex.zconf.c: In function `zconflex':
lex.zconf.c:1103: warning: initialization makes pointer from integer without a c
ast
lex.zconf.c:1178: warning: initialization makes pointer from integer without a c
ast
make: *** [zconf.tab.o] Error 1
make: *** [build-lib-kconfig] Error 2
make: *** [build] Error 2
make: Leaving directory `/c/Users/User/packages/esp-open-sdk/windows/mignw/esp-o
pen-sdk/crosstool-NG'
make[1]: *** [_ct-ng] Error 2
make[1]: Leaving directory `/c/Users/User/packages/esp-open-sdk/windows/mignw/es
p-open-sdk/crosstool-NG'
make: *** [crosstool-NG/ct-ng] Error 2

gmp configure: WARNING: unrecognized options: --enable-mpbsd

Hi

I'm combing through the build.log to understand what cross tool is doing and I came across the above warning in the build.log file. I dug through the code and this is in:
./scripts/build/companion_libs/100-gmp.sh

I'm not sure what mpbsd is used for, google is not helpful for quick answer.
Thanks

Here's the relevant snippet:

--- < snip > ---
[INFO ] Installing GMP for host
[DEBUG] Entering '/home/avinash/embedded_linux/build-tools/ct_tool_build/.build/armv6-rpi-linux-gnueabi/build/build-gmp-host-x86_64-build_unknown-linux-gnu'
[EXTRA] Configuring GMP
[DEBUG] ==> Executing: 'CFLAGS=-O2 -g -pipe -fexceptions' 'LDFLAGS= ' '/home/avinash/embedded_linux/build-tools/ct_tool_build/.build/src/gmp-5.1.3/configure' '--build=x86_64-build_unknown-linux-gnu' '--host=x86_64-build_unknown-linux-gnu' '--prefix=/home/avinash/embedded_linux/build-tools/ct_tool_build/.build/armv6-rpi-linux-gnueabi/buildtools' '--enable-fft' '--enable-mpbsd' '--enable-cxx' '--disable-shared' '--enable-static'
[CFG ] configure: WARNING: unrecognized options: --enable-mpbsd
[CFG ] checking build system type... x86_64-build_unknown-linux-gnu
[CFG ] checking host system type... x86_64-build_unknown-linux-gnu
--- < snip > ---

Unknown configure options for lib ISL.

Configure options --with-libgmp-prefix and --with-libgmpxx-prefix are no longer available in ISL 0.12.2.
Configure option --with-piplib=no is no longer available in ISL 0.14.
This is more a cosmetic thing, but I fixed it in my local copy.
I will add a branch to my repo on GitHub.

Update docs

The documentation is way out of date. Updates need to also include github/patchwork workflow.

avr+avr-libc 8-bit toolchain not supported

I believe this would fall in to the enhancement category, but there isn't a flow for building a plain old, 8-bit AVR toolchain with avr-libc. Only avr32 with newlib seems to be supported.

Crosstool-NG Logo...

I use OpenBox/Xorg so that I can use a web browser and a terminal with tmux. I use gimp rarely to scale pictures to different size.

Sadly, I do not have the creative spark for coming up with a logo.

As the label is set... help is wanted for someone to step forward with a logo we can use instead of the ugly default github gives us.

Any takers on this task?

glibc-2.20 fails to extract ports

External ports have not been available since 2.16, but for some reason 2.20 wants to extract ports.
Tested with arm-unknown-linux-gnueabi

[DEBUG]    ==> Executing: 'touch' '/home/bryan/build/tcwork/arm/.build/src/.glibc-2.20.extracted' 
[DEBUG]    ==> Executing: 'rm' '-f' '/home/bryan/build/tcwork/arm/.build/src/.glibc-2.20.extracting' 
[DEBUG]    Entering '/home/bryan/build/tcwork/arm/.build/src/glibc-2.20'
[DEBUG]    Entering '/home/bryan/build/tcwork/arm/.build/src/glibc-2.20'
[EXTRA]    Patching 'glibc-2.20'
[DEBUG]    Looking for patches in '/home/bryan/ctng/lib/ct-ng.1.20.0/patches/glibc/2.20'...
[DEBUG]    Looking for patches in ''...
[ALL  ]    Overiding config.guess and config.sub
[ALL  ]    '/home/bryan/ctng/lib/ct-ng.1.20.0/scripts/config.guess' -> './scripts/config.guess'
[ALL  ]    '/home/bryan/ctng/lib/ct-ng.1.20.0/scripts/config.sub' -> './scripts/config.sub'
[DEBUG]    ==> Executing: 'touch' '/home/bryan/build/tcwork/arm/.build/src/.glibc-2.20.patched' 
[DEBUG]    ==> Executing: 'rm' '-f' '/home/bryan/build/tcwork/arm/.build/src/.glibc-2.20.patching' 
[WARN ]    'glibc-ports-2.20' not found in '/home/bryan/build/tcwork/arm/.build/tarballs'
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Extracting and patching toolchain components'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: do_libc_extract[scripts/build/libc/glibc-eglibc.sh-common@916]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@609]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/home/bryan/ctng/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]  
[ERROR]  (elapsed: 0:44.06)
/home/bryan/ctng/bin/ct-ng:147: recipe for target 'build' failed
make: *** [build] Error 1

Rework the download mechanism

The current download mechanism in Crosstool-NG has a pretty annoying behavior: it tries a large number of URLs to download each single file, even though most of those URLs simply don't work. In some networks, some of those URLs simply require wget/curl to time out, which makes the download process very slow.

The download mechanism should be simplified, and simply download from the well-known official upstream location of each component. Potentially a fallback to one single mirror site maintained by Crosstool-NG could be added, but generally all upstreams for components packaged by Crosstool-NG are fairly active and stable, so this may not even be necessary.

gccgo fails to build/install

Hi.

I'm new to crosstool-ng and i have problem during build target. I selected operating system linux 2.6.32.63, architecture powerpc 32 bit, selected experimental language golang.

Here is fragment of the output with error

[ALL  ]    libtool: compile:  /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/xgcc -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libgcc -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libbacktrace -I ../../gcc/include -g -Os -MT iface.lo -MD -MP -MF .deps/iface.Tpo -c iface.c  -fPIC -DPIC -o .libs/iface.o
[ALL  ]    /bin/bash ./libtool --tag=CC   --mode=compile /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/xgcc -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include    -DHAVE_CONFIG_H -I. -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo  -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libffi/include -I../libffi/include -pthread  -fexceptions -fnon-call-exceptions -fplan9-extensions  -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror  -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libgcc -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libbacktrace -I ../../gcc/include -g -Os -MT malloc.lo -MD -MP -MF .deps/malloc.Tpo -c -o malloc.lo malloc.c
[ALL  ]    libtool: compile:  /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/xgcc -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libgcc -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libbacktrace -I ../../gcc/include -g -Os -MT malloc.lo -MD -MP -MF .deps/malloc.Tpo -c malloc.c  -fPIC -DPIC -o .libs/malloc.o
[ALL  ]    libtool: compile:  /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/xgcc -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libgcc -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libbacktrace -I ../../gcc/include -g -Os -MT iface.lo -MD -MP -MF .deps/iface.Tpo -c iface.c -o iface.o >/dev/null 2>&1
[ALL  ]    mv -f .deps/iface.Tpo .deps/iface.Plo
[ALL  ]    /bin/bash ./libtool --tag=CC   --mode=compile /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/xgcc -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include    -DHAVE_CONFIG_H -I. -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo  -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libffi/include -I../libffi/include -pthread  -fexceptions -fnon-call-exceptions -fplan9-extensions  -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror  -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libgcc -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libbacktrace -I ../../gcc/include -g -Os -MT map.lo -MD -MP -MF .deps/map.Tpo -c -o map.lo map.c
[ALL  ]    libtool: compile:  /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/xgcc -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libgcc -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libbacktrace -I ../../gcc/include -g -Os -MT map.lo -MD -MP -MF .deps/map.Tpo -c map.c  -fPIC -DPIC -o .libs/map.o
[ALL  ]    libtool: compile:  /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/xgcc -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libgcc -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libbacktrace -I ../../gcc/include -g -Os -MT malloc.lo -MD -MP -MF .deps/malloc.Tpo -c malloc.c -o malloc.o >/dev/null 2>&1
[ALL  ]    libtool: compile:  /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/xgcc -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libgcc -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libbacktrace -I ../../gcc/include -g -Os -MT map.lo -MD -MP -MF .deps/map.Tpo -c map.c -o map.o >/dev/null 2>&1
[ALL  ]    mv -f .deps/map.Tpo .deps/map.Plo
[ALL  ]    /bin/bash ./libtool --tag=CC   --mode=compile /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/xgcc -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include    -DHAVE_CONFIG_H -I. -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo  -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libffi/include -I../libffi/include -pthread  -fexceptions -fnon-call-exceptions -fplan9-extensions  -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror  -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libgcc -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libbacktrace -I ../../gcc/include -g -Os -MT mprof.lo -MD -MP -MF .deps/mprof.Tpo -c -o mprof.lo mprof.c
[ALL  ]    libtool: compile:  /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/xgcc -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libgcc -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libbacktrace -I ../../gcc/include -g -Os -MT mprof.lo -MD -MP -MF .deps/mprof.Tpo -c mprof.c  -fPIC -DPIC -o .libs/mprof.o
[ALL  ]    mv -f .deps/malloc.Tpo .deps/malloc.Plo
[ALL  ]    /bin/bash ./libtool --tag=CC   --mode=compile /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/xgcc -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include    -DHAVE_CONFIG_H -I. -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo  -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libffi/include -I../libffi/include -pthread  -fexceptions -fnon-call-exceptions -fplan9-extensions  -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror  -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libgcc -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libbacktrace -I ../../gcc/include -g -Os -MT netpoll.lo -MD -MP -MF .deps/netpoll.Tpo -c -o netpoll.lo netpoll.c
[ALL  ]    libtool: compile:  /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/xgcc -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libgcc -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libbacktrace -I ../../gcc/include -g -Os -MT netpoll.lo -MD -MP -MF .deps/netpoll.Tpo -c netpoll.c  -fPIC -DPIC -o .libs/netpoll.o
[ALL  ]    /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime/mprof.goc: In function 'runtime_Stack':
[ERROR]    /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime/mprof.goc:501:19: error: 'enablegc' may be used uninitialized in this function [-Werror=maybe-uninitialized]
[ALL  ]       mstats.enablegc = enablegc;
[ALL  ]                       ^
[ALL  ]    /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime/mprof.goc:468:7: note: 'enablegc' was declared here
[ALL  ]      bool enablegc;
[ALL  ]           ^
[ALL  ]    cc1: all warnings being treated as errors
[ERROR]    make[5]: *** [mprof.lo] Error 1
[ALL  ]    make[5]: *** Waiting for unfinished jobs....
[ALL  ]    libtool: compile:  /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/xgcc -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/runtime -I/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fnon-call-exceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libgcc -I /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/../libbacktrace -I ../../gcc/include -g -Os -MT netpoll.lo -MD -MP -MF .deps/netpoll.Tpo -c netpoll.c -o netpoll.o >/dev/null 2>&1
[ALL  ]    mv -f .deps/netpoll.Tpo .deps/netpoll.Plo
[ALL  ]    libtool: compile:  /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/gccgo -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include -O2 -g -I . -c -fgo-pkgpath=strconv /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/go/strconv/atob.go /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/go/strconv/atof.go /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/go/strconv/atoi.go /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/go/strconv/decimal.go /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/go/strconv/extfloat.go /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/go/strconv/ftoa.go /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/go/strconv/isprint.go /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/go/strconv/itoa.go /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/go/strconv/quote.go -o strconv.o >/dev/null 2>&1
[ALL  ]    libtool: compile:  /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/gccgo -B/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/./gcc/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /home/kbuser/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include -O2 -g -I . -c -fgo-pkgpath=image/color/palette /home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/src/gcc-4.9.1/libgo/go/image/color/palette/palette.go -o image/color/palette.o >/dev/null 2>&1
[ALL  ]    make[5]: Leaving directory `/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/powerpc-unknown-linux-gnu/libgo'
[ERROR]    make[4]: *** [all-recursive] Error 1
[ALL  ]    make[4]: Leaving directory `/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/powerpc-unknown-linux-gnu/libgo'
[ERROR]    make[3]: *** [all] Error 2
[ALL  ]    make[3]: Leaving directory `/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final/powerpc-unknown-linux-gnu/libgo'
[ERROR]    make[2]: *** [all-target-libgo] Error 2
[ALL  ]    make[2]: Leaving directory `/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final'
[ERROR]    make[1]: *** [all] Error 2
[ALL  ]    make[1]: Leaving directory `/home/kbuser/Data/scratchbox-test/sraczka-golang/bin/.build/powerpc-unknown-linux-gnu/build/build-cc-final'
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing final compiler'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_cc_backend[scripts/build/cc/gcc.sh@871]
[ERROR]  >>        called from: do_cc_for_host[scripts/build/cc/gcc.sh@591]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/home/kbuser/Data/scratchbox-test/sraczka/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]  
[ERROR]  (elapsed: 63:46.57)

What can you advice to solve this problem? I just want prepare cross compilation tools for machine:
os: linux 2.6.11
cpu: powerpc 32 bit
And i want prepare golang compiler. (gccgo)

I know golang is experimental, but is there any easy workaround for my problem?

At his link you can download configuration files used during build process. (build.log included)

https://drive.google.com/file/d/0B_gFo2h9ev9va3ZyTGg4TTR5d1U/view?usp=sharing

Thank you for help.

Doesn't build on Slackware-current

When trying to build on Slackware Current I get this error message:

[DEBUG]    ==> Executing: 'touch' '/home/bogdan/esp-open-sdk/crosstool-NG/.build/src/.binutils-2.24.extracted'                             
[DEBUG]    ==> Executing: 'rm' '-f' '/home/bogdan/esp-open-sdk/crosstool-NG/.build/src/.binutils-2.24.extracting'
[DEBUG]    Entering '/home/bogdan/esp-open-sdk/crosstool-NG/.build/src/binutils-2.24'                                                         
[EXTRA]    Patching 'binutils-2.24'
[DEBUG]    Looking for patches in '/home/bogdan/esp-open-sdk/crosstool-NG/lib/ct-ng.1.20.0/patches/binutils/2.24'...
[DEBUG]    ==> Executing: 'patch' '--no-backup-if-mismatch' '-g0' '-F1' '-p1' '-f' '-i' '/home/bogdan/esp-open-sdk/crosstool-NG/lib/ct-ng.1.20.0/patches/binutils/2.24/120-sh-conf.patch'
[ALL  ]    patching file configure
[ALL  ]    Hunk #1 succeeded at 3793 (offset 223 lines).
[ALL  ]    /usr/bin/patch: listing attributes of configure: Invalid argument
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Extracting and patching toolchain components'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: CT_Patch[scripts/functions@1098]
[ERROR]  >>        called from: do_binutils_extract[scripts/build/binutils/binutils.sh@32]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@607]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      'share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 8:54.56)

ISL and Cloog headache

I'm building GCC 5.2.0.

gcc.in specifies:

    select CLOOG_NEEDED if !CC_GCC_5_1_or_later
    select PPL_NEEDED if !CC_GCC_4_8_or_later
    select ISL_NEEDED if CC_GCC_4_8_or_later

So I have ISL_NEEDED set (only).

Now isl.in specifies that in order to use 0.15 ISL I need CLOOG_0_18_4_or_later set. However there is no CLOOG options available, because nothing defines CLOOG_NEEDED and by default crosstool-ng does not show any "optional" companion libraries, until they're needed. So there is no possible way to choose ISL 0.15 with GCC 5.2.0.

This is related to 218bea6 when those dependencies were added.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.