This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling i386-unknown-linux-gnu with crosstool-ng fails


Hi Richard,

I had the same problem with GCC4.4.3/GLIBC2.8/
This problem is fixed by using the -U_FORTIFY_SOURCE compiler flag (check out
https://wiki.ubuntu.com/CompilerFlags ). In your .config file:
CT_LIBC_GLIBC_EXTRA_CFLAGS="-U_FORTIFY_SOURCE"
(you may have to change it to EGLIBC in your case)

However I still have errors after fixing this one:
[INFO ]  Installing C library
[WARN ]    Removing "-pipe" for use with glibc>=2.6
[ERROR]    make[2]: *** [nptl/subdir_lib] Error 2
[ERROR]    make[1]: *** [all] Error 2
[ERROR]    Build failed in step 'Installing C library'
[ERROR]    Error happened in '/usr/local/lib/ct-ng-1.6.1/scripts/functions' in
function 'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from
'/usr/local/lib/ct-ng-1.6.1/scripts/build/libc/glibc.sh' at line # 486 in
function 'do_libc'
[ERROR]          called from
'/usr/local/lib/ct-ng-1.6.1/scripts/crosstool-NG.sh' at line # 562 in function
'main'
[ERROR]    Look at '/tmp/xtools/i386-unknown-linux-gnu/build.log' for more info
on this error.
[ERROR]  (elapsed: 75:28.22)

I still don't know how to fix them.

Laurent


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]