Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Build fails with external toolchain (sysroots error)
@ 2009-03-24 20:26 Daniel Jabbour
  2009-03-25 10:24 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jabbour @ 2009-03-24 20:26 UTC (permalink / raw)
  To: buildroot

Hi,

I have configured buildroot to use an external toolchain provided by  
the manufacturer of my board. This is a glibc toolchain. I am able to  
cross compile against it outside of buildroot.

However, when I try to make buildroot, it exits with the following  
configure error when trying to build "lzo":

configure:2090: checking for C compiler default output file name
configure:2093: /opt/jztoolchain//bin/mipsel-linux-gcc -O2  -I/home/ 
djabbour/source/buildroot/build_mips/staging_dir/include -I/home/ 
djabbour/source/buildroot/build_mips/staging_dir/usr/include -I/opt/ 
jztoolchain//mipsel-linux/include --sysroot /home/djabbour/source/ 
buildroot/build_mips/staging_dir/ -O2  -I/home/djabbour/source/ 
buildroot/build_mips/staging_dir/include -I/home/djabbour/source/ 
buildroot/build_mips/staging_dir/usr/include -I/opt/jztoolchain// 
mipsel-linux/include --sysroot /home/djabbour/source/buildroot/ 
build_mips/staging_dir/  -L/home/djabbour/source/buildroot/build_mips/ 
staging_dir/lib -L/home/djabbour/source/buildroot/build_mips/ 
staging_dir/usr/lib conftest.c  >&5
/opt/jztoolchain/bin/../lib/gcc/mipsel-linux/4.1.2/../../../../mipsel- 
linux/bin/ld: this linker was not configured to use sysroots
collect2: ld returned 1 exit status
configure:2096: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "lzo"
| #define PACKAGE_TARNAME "lzo"
| #define PACKAGE_VERSION "2.03"
| #define PACKAGE_STRING "lzo 2.03"
| #define PACKAGE_BUGREPORT "markus at oberhumer.com"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2135: error: C compiler cannot create executables

How can I resolve this issue? From my understanding, it seems like the  
sysroots flag is unsupported in my toolchain. Can buildroot work  
without this option? Thanks,

--
Daniel Jabbour
Software Engineer
Laptouch, Inc.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] Build fails with external toolchain (sysroots error)
  2009-03-24 20:26 [Buildroot] Build fails with external toolchain (sysroots error) Daniel Jabbour
@ 2009-03-25 10:24 ` Thomas Petazzoni
  2009-03-25 10:41   ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2009-03-25 10:24 UTC (permalink / raw)
  To: buildroot

Le Tue, 24 Mar 2009 16:26:19 -0400,
Daniel Jabbour <daniel@laptouchinc.com> a ?crit :

> How can I resolve this issue? From my understanding, it seems like
> the sysroots flag is unsupported in my toolchain.

Right.

> Can buildroot work without this option?

As it works today, no. Only sysroot-able toolchains can be used as
external toolchains. The external toolchain support has followed quite
a few variations until we settled on the --sysroot solution, which is
the one that works, on the condition that sysroot is supported by the
toolchain. We had issues with other approaches (based on
--rpath-link).

I'm not sure what to do with this request :

 *) Say that we officially only support sysroot-able toolchains ;

 *) Work more on the --rpath-link issues, and try to find
    solutions to them (if they ever exist)

Sincerly,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] Build fails with external toolchain (sysroots error)
  2009-03-25 10:24 ` Thomas Petazzoni
@ 2009-03-25 10:41   ` Peter Korsgaard
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2009-03-25 10:41 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

Hi,

 Thomas> I'm not sure what to do with this request :

 Thomas>  *) Say that we officially only support sysroot-able toolchains ;

 Thomas>  *) Work more on the --rpath-link issues, and try to find
 Thomas>     solutions to them (if they ever exist)

I would personally go for only supporting sysroot - It has been
working since 4.2.0, so the non-sysroot toolchains are bound to
disappear relatively soon.

But ofcourse, if someone wants to work on support for !sysroot (and
the patches are not to dirty), then we can include that as well.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-25 10:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-24 20:26 [Buildroot] Build fails with external toolchain (sysroots error) Daniel Jabbour
2009-03-25 10:24 ` Thomas Petazzoni
2009-03-25 10:41   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox