- To: "Ian Lance Taylor" <iant@xxxxxxxxxx>
- Subject: RE: help needed for builing gcc tool-chain
- From: "Prashant Batra (prbatra)" <prbatra@xxxxxxxxx>
- Date: Sun, 12 Feb 2012 11:41:44 +0530
- Cc: "Jonathan Wakely" <jwakely.gcc@xxxxxxxxx>, <gcc-help@xxxxxxxxxxx>
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1329631936; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Content-class:MIME-Version:Content-Type: Content-Transfer-Encoding:Subject:Date:Message-ID:In-Reply-To: References:From:To:Cc:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=mbKj1p0G6vFH2jPwziy7+VltR84=; b=bsSdMu0URSO+Zaq iKxAqDgTSvJ7H5aMl3V2Ul0ISAMGsnabL3X6h5iTb0sTigiKZU+uOKHkjlluBr83 ZXSTg4b0Os1lFYnq+XH/HgAdjvgnhqvTcNCJtnPX/gE1XmetyS7a6qhNRn3rJsqZ g86C530y1R7KYOHqPpBDDyvtFSWs=
- In-reply-to: <mcrfwegiolm.fsf@dhcp-172-18-216-180.mtv.corp.google.com>
-----Original Message-----
From: Ian Lance Taylor [mailto:iant@xxxxxxxxxx]
Sent: Sunday, February 12, 2012 11:24 AM
To: Prashant Batra (prbatra)
Cc: Jonathan Wakely; gcc-help@xxxxxxxxxxx
Subject: Re: help needed for builing gcc tool-chain
"Prashant Batra (prbatra)" <prbatra@xxxxxxxxx> writes:
> /usr/bin/ld: this linker was not configured to use sysroots
...
> Do, I need to build binutils with sysroot as well, and install it into
> the same prefix?
>
This is necessary if you want to use a sysroot.
> If yes, after building and installing binutils, how do I make use of
> this linker while building gcc?
If you build and install the binutils and gcc with the same --prefix
option, then gcc will use the linker that you built.
[Prashant] Now I did,
../binutils-2.21/configure
--prefix=/auto/nobackup-bgl-mitg-dev56/prbatra/fresh2/build/
--with-sysroot=/auto/nobackup-bgl-mitg-dev56/prbatra/fresh2/build/sysroo
t/
make
make install
../gcc-4.1.2/configure
--prefix=/auto/nobackup-bgl-mitg-dev56/prbatra/fresh2/build/
--with-sysroot=/auto/nobackup-bgl-mitg-dev56/prbatra/fresh2/build/sysroo
t --enable-languages=c,c++,objc
make
It fails at the same point : /usr/bin/ld: this linker was not configured
to use sysroots
As, I can see binutls are properly installed at -
prbatra@bgl-mitg-dev56:/auto/nobackup-bgl-mitg-dev56/prbatra/fresh2/objd
ir$ ls /auto/nobackup-bgl-mitg-dev56/prbatra/fresh2/build/
bin include lib lib64 share sysroot x86_64-unknown-linux-gnu
prbatra@bgl-mitg-dev56:/auto/nobackup-bgl-mitg-dev56/prbatra/fresh2/objd
ir$ ls /auto/nobackup-bgl-mitg-dev56/prbatra/fresh2/build/bin
addr2line ar as c++filt elfedit gprof ld ld.bfd nm objcopy
objdump ranlib readelf size strings strip
prbatra@bgl-mitg-dev56:/auto/nobackup-bgl-mitg-dev56/prbatra/fresh2/objd
ir$ ls
/auto/nobackup-bgl-mitg-dev56/prbatra/fresh2/build/x86_64-unknown-linux-
gnu
bin include lib lib64 libexec
Is it that I missed something again?
Ian
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]