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

See crosstool-NG 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: Statically link host's glib in toolchain


On 12/14/2014 12:16 PM, Yann E. MORIN wrote:
> Zvi, All,
>
> On 2014-12-14 05:58 +0200, Zvi Vered spake thusly:
>> Is it possible to build a toolchain on Centos 5.9 â 32 and run it on Centos
>> 6.3 â64 ?
>>
>> The question regards to the glib installed on Centos 5.9-32.
> glibc, not glib. glib is a completely different thing, and is not used
> in a toolchain.
>
>> Is it possible to statically linked the host glib in the toolchain ?
> Yes, what you are looking for is:
>     Toolchain options  --->
>         [ ] Build Static Toolchain
>
> Note that you may have to install some "development" packages on your
> distribution.
>
> Regards,
> Yann E. MORIN.
>
>
Sorry to hijack this , but when im setting  [*] Build Static Toolchain the build always fails with following output. Any idea? You were speaking of "development" packages, which i might need?

[INFO ]  Installing binutils for host
[EXTRA]    Configuring binutils
[EXTRA]    Prepare binutils for static build
[EXTRA]    Building binutils
[ERROR]    collect2: error: ld returned 1 exit status
[ERROR]    gmake[5]: *** [size] Error 1
[ERROR]    gmake[4]: *** [all-recursive] Error 1
[ERROR]    gmake[3]: *** [all] Error 2
[ERROR]    gmake[2]: *** [all-binutils] Error 2
[ERROR]    g++: error: unrecognized command line option '-all-static'
[ERROR]    g++: error: unrecognized command line option '-all-static'
[ERROR]    gmake[5]: *** [ld-new] Error 1
[ERROR]    gmake[5]: *** [incremental-dump] Error 1
[ERROR]    gmake[4]: *** [all-recursive] Error 1
[ERROR]    gmake[3]: *** [all] Error 2
[ERROR]    gmake[2]: *** [all-gold] Error 2
[ERROR]    gmake[1]: *** [all] Error 2
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing binutils for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_binutils_backend[scripts/build/binutils/binutils.sh@229]
[ERROR]  >>        called from: do_binutils_for_host[scripts/build/binutils/binutils.sh@94]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]  
[ERROR]  (elapsed: 3:35.44)
/usr/bin/ct-ng:148: recipe for target 'build' failed
gmake: *** [build] Error 2




--
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]