LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-26-2010, 06:39 AM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Rep: Reputation: 43
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
 
Old 02-26-2010, 10:16 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
What version of gcc is your cross-compiler?
 
Old 02-27-2010, 08:23 AM   #3
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Original Poster
Rep: Reputation: 43
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
 
Old 02-27-2010, 09:29 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You need to enable sysroot support for gcc and for binutils when configuring: '--enable-sysroot'
 
Old 03-01-2010, 02:50 AM   #5
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by gnashley View Post
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?
 
Old 03-01-2010, 05:51 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting from external HDD without BIOS support miguelg Linux - Newbie 11 10-28-2009 05:04 PM
mount : mount error 2 mounting ext 3 Pivotroot: pivot_root(/sysroot,/sy TONYSUCCAR Linux - Enterprise 3 09-07-2009 05:08 AM
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2 5150 Red Hat 2 04-17-2004 02:41 PM
mount for external filesystem support cold Linux - General 3 02-16-2004 02:00 PM
Kernel Panic: pivot_root (/sysroot, /sysroot/initrd) Faild: 2 Help Needed KingofBLASH Linux - General 8 12-20-2003 09:43 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration