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] |
On Wed, Dec 14, 2011 at 12:15:25PM +0100, Johannes Stezenbach wrote: > On Wed, Dec 14, 2011 at 01:09:21AM +0100, Yann E. MORIN wrote: > > On Friday 02 December 2011 14:24:50 Johannes Stezenbach wrote: > > > with CT_STATIC_TOOLCHAIN ./scripts/build/binutils/binutils.sh > > > adds -all-static to LDFLAGS. However, -all-static is a libtool > > > option and gold is not libtoolized. Maybe cg-ng should just > > > disable gold when CT_STATIC_TOOLCHAIN is selected? > > > > It works here for me: > > > > $ file bin/armeb-unknown-linux-uclibcgnueabi-ld.gold > > bin/armeb-unknown-linux-uclibcgnueabi-ld.gold: ELF 64-bit LSB executable, > > x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.18, > > not stripped > > > > So, it is a statically-linked executable, exactly what we wanted. > > > > How does it break for you? > > I didn't save the log so I'd have to rebuild to find out Here we go: [INFO ] Installing binutils [EXTRA] Configuring binutils [EXTRA] Prepare binutils for static build [EXTRA] Building binutils [ERROR] g++: error: unrecognized option '-all-static' [ERROR] make[5]: *** [ld-new] Error 1 [ALL ] i686-build_pc-linux-gnu-ar cru libgold.a archive.o attributes.o binary.o common.o compressed_output.o copy-relocs.o cref.o defstd.o descriptors.o dirsearch.o dynobj.o dwarf_reader.o ehframe.o errors.o expression.o fileread.o gc.o gold.o gold-threads.o icf.o incremental.o int_encoding.o layout.o mapfile.o merge.o object.o options.o output.o parameters.o plugin.o readsyms.o reduced_debug_output.o reloc.o resolve.o script-sections.o script.o stringpool.o symtab.o target.o target-select.o timer.o version.o workqueue.o workqueue-threads.o yyscript.o [ALL ] i686-build_pc-linux-gnu-ranlib libgold.a [ALL ] mv -f .deps/arm.Tpo .deps/arm.Po [ALL ] i686-build_pc-linux-gnu-g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=ld-new -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 -lz [ALL ] i686-build_pc-linux-gnu-g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=incremental-dump -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 -lz [ERROR] g++: error: unrecognized option '-all-static' [ERROR] make[5]: *** [ld-new] Error 1 [ALL ] make[5]: *** Waiting for unfinished jobs.... [ERROR] g++: error: unrecognized option '-all-static' [ERROR] make[5]: *** [incremental-dump] Error 1 This happens both with CT_BINUTILS_LINKERS_LIST="gold" and "ld,gold". Oh, and my host gcc is "gcc version 4.6.2 (Debian 4.6.2-7)", binutils are "GNU ld (GNU Binutils for Debian) 2.22". (I'm using Debian sid). Thanks Johannes -- 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] |