* [Buildroot] External toolchain doesn't support --sysroot.
@ 2010-08-06 16:09 anthony henderson
2010-08-06 16:44 ` Yann E. MORIN
0 siblings, 1 reply; 3+ messages in thread
From: anthony henderson @ 2010-08-06 16:09 UTC (permalink / raw)
To: buildroot
Hi all,
I'm trying to use an external ARM tool chain to build some packages.
However build root does not see the compiler "Incorrect selection of the C
library". Some exploration shows that the compiler does not have a sysroot
set
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
Can anyone tell me if there is a way round this? I'm running the copiler
from within /root/ArmDevelopment/....... do I need to move it or can I set
a flag when I make buildroot. Thanks all
--
Regards Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100806/576347fe/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] External toolchain doesn't support --sysroot.
2010-08-06 16:09 [Buildroot] External toolchain doesn't support --sysroot anthony henderson
@ 2010-08-06 16:44 ` Yann E. MORIN
2010-08-06 18:00 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Yann E. MORIN @ 2010-08-06 16:44 UTC (permalink / raw)
To: buildroot
Anthony, All,
On Friday 06 August 2010 18:09:21 anthony henderson wrote:
> I'm trying to use an external ARM tool chain to build some packages.
> However build root does not see the compiler "Incorrect selection of the C
> library". Some exploration shows that the compiler does not have a sysroot
> set
AFAIK, sysroot support in the toolchain is mandatory for use as an external
toolchain in buildroot.
> 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
gcc-4.1.1 is old... Can't you upgrade?
> Can anyone tell me if there is a way round this?
Ask your 'provider' for a sysrooted toolchain.
Or better yet, ask them for the _sources_, and build your own toolchain.
Or even better yet, build your own toolchain with up-to-date components.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] External toolchain doesn't support --sysroot.
2010-08-06 16:44 ` Yann E. MORIN
@ 2010-08-06 18:00 ` Thomas Petazzoni
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2010-08-06 18:00 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 6 Aug 2010 18:44:48 +0200
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> wrote:
> AFAIK, sysroot support in the toolchain is mandatory for use as an
> external toolchain in buildroot.
Correct.
We have an enhancement request, at
https://bugs.busybox.net/show_bug.cgi?id=1315, to extend Buildroot to
support non sysroot toolchains.
However, when I initially updated the support for external toolchains,
I tried *not* to use the sysroot capability, and in turned out to be a
nightmare. You could fairly easily get a basic build to work, but as
soon as you started adding slightly more complicated packages, it was
failing with strange issues. Using the --sysroot capability of the
toolchain turned out to be the most reasonable solution, and with gcc
supporting --sysroot since the beginning of the 4.x era, restricting
ourselves to sysrooted toolchains only didn't sound terribly
unreasonable.
Of course, if you want non-sysroot toolchains to work, feel free to
work on such a patch, and check that it indeed works to build a large
set of Buildroot packages. Bug #1315 mentionned above has such a patch,
but I'm not sure how well all the Buildroot packages behave with such a
patch applied. Don't hesitate to report your tries, successes and
failures.
Regards!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-08-06 18:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-06 16:09 [Buildroot] External toolchain doesn't support --sysroot anthony henderson
2010-08-06 16:44 ` Yann E. MORIN
2010-08-06 18:00 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.