help needed for builing gcc tool-chain
Jonathan Wakely
jwakely.gcc@gmail.com
Sat Feb 11 20:25:00 GMT 2012
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.
More information about the Gcc-help
mailing list