From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11489 invoked by alias); 14 Dec 2011 11:43:24 -0000 Received: (qmail 11470 invoked by uid 22791); 14 Dec 2011 11:43:22 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,TW_RK X-Spam-Check-By: sourceware.org Received: from bar.sig21.net (HELO bar.sig21.net) (80.81.252.164) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Dec 2011 11:43:09 +0000 Received: from p5099b351.dip0.t-ipconnect.de ([80.153.179.81] helo=zzz.local) by bar.sig21.net with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.69) (envelope-from ) id 1RanEp-0007fZ-AV; Wed, 14 Dec 2011 12:43:08 +0100 Received: from js by zzz.local with local (Exim 4.77) (envelope-from ) id 1RanEo-0008EC-Km; Wed, 14 Dec 2011 12:43:06 +0100 Date: Wed, 14 Dec 2011 11:43:00 -0000 From: Johannes Stezenbach To: "Yann E. MORIN" Cc: crossgcc@sourceware.org Subject: Re: gold vs. CT_STATIC_TOOLCHAIN Message-ID: <20111214114306.GA27923@sig21.net> References: <20111202132450.GA24105@sig21.net> <201112140109.21263.yann.morin.1998@anciens.enib.fr> <20111214111524.GA27754@sig21.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111214111524.GA27754@sig21.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-21-Score: -2.9 (--) X-Spam-21-Report: No, score=-2.9 required=8.0 tests=ALL_TRUSTED=-1,BAYES_00=-1.9 autolearn=ham X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00062.txt.bz2 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