- 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 13:02:04 +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=1329636749; 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=WsWHChPa+8yj/Sm1he7c8qjtiNk=; b=kyEH3fsZzJoHCVL T9v6uPbEMlCVcw3Qo96Ji1WlYGBHAbCX7RKLUf6GC6bd8nKUJuoSJ62oWttZaDrk 5r1Daa9tZQdmQo2jTmxzjM3+eD5S9cqlNbipQENVVU2P7yQPupo2euunL7ByjmGF ZIkG6N6zhvK+uGH3Dqc75T0/BFY4=
- In-reply-to: <mcry5s8h61h.fsf@dhcp-172-18-216-180.mtv.corp.google.com>
-----Original Message-----
From: Ian Lance Taylor [mailto:iant@xxxxxxxxxx]
Sent: Sunday, February 12, 2012 12:50 PM
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:
> [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
This is odd, because the newly built gcc ought to be running the newly
built linker rather than /usr/bin/ld. I'm not sure why this would not
happen for you.
[Prashant] Actually after looking at the config status, I found gcc was
looking for x86_64-unknown-linux-gnu prefix
[Prashant] before all binutils utilities, but I did not configured
binutils with --program-prefix.
After doing that while configuring binutils, it seems to proceed and use
the custom linker.
And I see that the built is successful.
So, now I can take my built tree completely and relocate to all the
machines.
Is there a way to check this by seeing "--print-search-dirs" or some
other option with gcc/g++,
before actually relocating the tool-chains.
Ian
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]