LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   External toolchain doesn't support --sysroot. (http://www.linuxquestions.org/questions/programming-9/external-toolchain-doesnt-support-sysroot-791717/)

knobby67 02-26-2010 06:39 AM

External toolchain doesn't support --sysroot.
 
I all I'm running a build system (buildroot) which produces some software.
I'm asked to put in the path to my cross compiler which I do. I then try to make the software but I get the following error.

External toolchain doesn't support --sysroot. Cannot use.


can anyone help. Thanks

gnashley 02-26-2010 10:16 AM

What version of gcc is your cross-compiler?

knobby67 02-27-2010 08:23 AM

version 4.1.1

arm-linux-gcc -v

Using built-in specs.
Target: arm-linux-uclibc
Configured with: /opt/buildroot.920t-cc/toolchain_build_arm_nofpu/gcc-4.1.1/configure --prefix=/usr/local/arm/4.1.1-920t --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=arm-linux-uclibc --enable-languages=c,c++ --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --with-gmp=/opt/buildroot.920t-cc/toolchain_build_arm_nofpu/gmp --with-mpfr=/opt/buildroot.920t-cc/toolchain_build_arm_nofpu/mpfr --enable-shared --disable-nls --enable-threads --disable-multilib --with-float=soft
Thread model: posix
gcc version 4.1.1

gnashley 02-27-2010 09:29 AM

You need to enable sysroot support for gcc and for binutils when configuring: '--enable-sysroot'

knobby67 03-01-2010 02:50 AM

Quote:

Originally Posted by gnashley (Post 3878975)
You need to enable sysroot support for gcc and for binutils when configuring: '--enable-sysroot'

Sorry I'm not sure what you mean here? Do you mean when the cross compiler is itself compiled? If so problem is it's from the chip manufacturer and I'd rather not build my own as I fear it may cause problems. Something to do with floating points which don't work in the way they should. Can I add --enable-syroot to the already built compiler?

gnashley 03-01-2010 05:51 AM

Can I add --enable-syroot to the already built compiler?
No, that's a compile-time option. I assumed you were using your own toolchain.


All times are GMT -5. The time now is 05:20 AM.