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


-static should be enough for gcc.
Let me try this myself and see if I run into the same problem.

On Sun, Dec 14, 2014 at 12:07 PM, Lars Eckervogt
<laeckerv@htwg-konstanz.de> wrote:
> On 12/14/2014 06:32 PM, Lars Eckervogt wrote:
>> Reinoud Koornstra <reinoudkoornstra <at> gmail.com> writes:
>>
>>> Do you have zlib1g-dev installed? (ubuntu package)
>>> Otherwise search for zlib and install it, make sure it's the zlib-dev
>>> or something like that package, otherwise it doesn't work.
>>>
>> I'm on gentoo, having sys-libs/zlib installed. So i should have all needed
>> headers, right?
>>
>>
>> --
>> For unsubscribe information see http://sourceware.org/lists.html#faq
>>
>
> As I emerged  sys-libs/zlib with the the use-flag 'static-libs' the
> build process seemed to go further, but still not really much further:-)
>
> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -W -Wall
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=ld-new -O2 -g -pipe
>   -static -all-static -o ld-new main.o i386.o x86_64.o sparc.o powerpc.o
> arm.o arm-reloc-property.o libgold.a ../libiberty/libiberty.a
> -lpthread  -lz
> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -W -Wall
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=incremental-dump
> -O2 -g -pipe   -static -all-static -o incremental-dump incremental-dump.o
> i386.o x86_64.o sparc.o powerpc.o arm.o arm-reloc-property.o libgold.a
> ../libiberty/libiberty.a  -lpthread  -lz
> [ERROR]    g++: error: unrecognized command line option '-all-static'
> [ALL  ]    Makefile:603: recipe for target 'ld-new' failed
> [ERROR]    gmake[5]: *** [ld-new] Error 1
> [ALL  ]    gmake[5]: *** Waiting for unfinished jobs....
> [ERROR]    g++: error: unrecognized command line option '-all-static'
> [ALL  ]    Makefile:600: recipe for target 'incremental-dump' failed
> [ERROR]    gmake[5]: *** [incremental-dump] Error 1
> [ALL  ]    gmake[5]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
> [ALL  ]    Makefile:720: recipe for target 'all-recursive' failed
> [ERROR]    gmake[4]: *** [all-recursive] Error 1
> [ALL  ]    gmake[4]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
> [ALL  ]    Makefile:524: recipe for target 'all' failed
> [ERROR]    gmake[3]: *** [all] Error 2
> [ALL  ]    gmake[3]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
> [ALL  ]    Makefile:5921: recipe for target 'all-gold' failed
> [ERROR]    gmake[2]: *** [all-gold] Error 2
> [ALL  ]    gmake[2]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu'
> [ALL  ]    Makefile:839: recipe for target 'all' failed
> [ERROR]    gmake[1]: *** [all] Error 2
> [ALL  ]    gmake[1]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu'
> [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: 4:12.42)
>
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>

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