Trouble cross building target libraries

Christer Solskogen
Tue Sep 3 12:02:00 GMT 2013


I have a gcc cross compiler that at least seems to work (I'm able to
cross compile binutils) - but I can't seem to be able to cross compile
gcc properly. The toplevel config.log seems fine:
configure:3896: checking for x86_64-builder-linux-gnu-gcc
configure:3912: found /home/ubuntu/obj/ntools/bin/x86_64-builder-linux-gnu-gcc
configure:3923: result: x86_64-builder-linux-gnu-gcc
But for instance x86_64-builder-linux-gnu/libstdc++-v3/config.log says
something that I did not expect:
configure:3559: checking for x86_64-builder-linux-gnu-gcc
configure:3586: result: cc

and cc is the compiler from the build system. Not the cross compiler.
I also see that this happens for libgcc. I guess it happens for all
target libraries.

The crossed gcc is configured like this:
--prefix=/home/ubuntu/obj/btools/usr --host=x86_64-builder-linux-gnu
--build=x86_64-unknown-linux-gnu --enable-languages=c,c++
--disable-multilib --with-sysroot=/home/ubuntu/obj/btools

Any hints?


More information about the Gcc-help mailing list