From: Johannes Stezenbach <js@sig21.net>
To: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Cc: crossgcc@sourceware.org
Subject: Re: gold vs. CT_STATIC_TOOLCHAIN
Date: Wed, 14 Dec 2011 11:43:00 -0000 [thread overview]
Message-ID: <20111214114306.GA27923@sig21.net> (raw)
In-Reply-To: <20111214111524.GA27754@sig21.net>
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
next prev parent reply other threads:[~2011-12-14 11:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-02 13:25 Johannes Stezenbach
2011-12-13 17:23 ` Johannes Stezenbach
2011-12-13 22:32 ` Yann E. MORIN
2011-12-14 0:09 ` Yann E. MORIN
2011-12-14 11:15 ` Johannes Stezenbach
2011-12-14 11:43 ` Johannes Stezenbach [this message]
2012-01-16 23:22 ` Yann E. MORIN
2012-01-18 12:01 ` Johannes Stezenbach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111214114306.GA27923@sig21.net \
--to=js@sig21.net \
--cc=crossgcc@sourceware.org \
--cc=yann.morin.1998@anciens.enib.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).