- To: "Prashant Batra (prbatra)" <prbatra@xxxxxxxxx>
- Subject: Re: help needed for builing gcc tool-chain
- From: Jonathan Wakely <jwakely.gcc@xxxxxxxxx>
- Date: Sat, 11 Feb 2012 20:24:51 +0000
- Cc: 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=1329596715; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:In-Reply-To:References:Date: Message-ID:Subject:From:To:Cc:Content-Type:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=nWi8SGcLHhzJLnkrPx6vHWL4ITI=; b=g+BGys0OHjEih/w3C+Tqfehk4s2uI76lG0t4j0OyIJ8x5boCP40JOjx6w0kmEQ syeEFtmpL12SdkpjQg2UM7u3tDaZUARAa0oqaR7v/DWfbEfYxfpv9tUYtFzrs8Jd GnZ1CHX5HipdIjLRMdpaW65MhUV1afnorqQE6OWKSCn8U=
- In-reply-to: <B97B134FACB2024DB45F524AB0A7B7F205CFDD32@XMB-BGL-419.cisco.com>
On 11 February 2012 19:17, Prashant Batra (prbatra) wrote:
> Thanks, Jonathan,
>
> I am able to install gcc 4.1.2 with following configuration:
> ../gcc-4.1.2/configure --prefix=/auto/nobackup-bgl-mitg-dev56/prbatra/fresh/build/ --enable-languages=c,c++,objc
>
> Now, the tool-chain is present in "prefix" directory.
>
> In second try, to make the tool-chain relocatable, I used --with-sysroot=<prefix-dir> while configuring.
GCC is always relocatable, you can move the installation and it will
work in a different location.
> It fails saying /usr/include directory is not present in the <prefix-dir>.
> Have I missed something again?
Did you read the docs for --with-sysroot? It tells the build process
to use the headers and libraries under the sysroot directory instead
of the ones in /usr - so if you have no headers and libraries in the
sysroot directory then it will fail to find them.
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]