Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Problem with external toolchain sysroot and eclipse
@ 2013-04-16  7:24 Lars Dunemark
  2013-04-16  7:33 ` Thomas Petazzoni
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Dunemark @ 2013-04-16  7:24 UTC (permalink / raw)
  To: buildroot

Hello

Recently, we discovered that it has become something strange with our external toolchain builds.

We discovered this when we wanted to start using Eclipse integration for buildroot and build applications outside buildroot.

After some investigation we discovered that the ext-toolchain-wrapper had changed and received support for relative paths.
After adding some debug prints:
toolchain/toolchain-external/ext-toolchain-wrapper.c
122         printf("path: %s, sysroot: %s\n", path, sysroot);

I got the the following result:

$ pwd
/media/build/source
$ arm-cortex_a8-linux-gnueabi-gcc
path: /media/build/source/toolchain/bin/arm-cortex_a8-linux-gnueabi-gcc, sysroot: /media/usr/arm-buildroot-linux-gnueabi/sysroot
arm-cortex_a8-linux-gnueabi-gcc: no input files


$ ./buildroot/output/host/usr/bin/arm-cortex_a8-linux-gnueabi-gcc
path: /media/build/source/toolchain/bin/arm-cortex_a8-linux-gnueabi-gcc, sysroot: /media/build/source/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/sysroot
arm-cortex_a8-linux-gnueabi-gcc: no input files

As you can see we get wrong sysroot if we using gcc directly from out PATH.
Our toolchain is located beside buildroot directory:
/buildroot
/toolchain

The only workaround that I have found is to add following patch but I think this will break the purpose with the original patch:
Commit: befb9a3ee0c5994162f527d8ef763d57d68ec48e

Is there any other better solution to this problem?

Best regards
Lars Dunemark

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

end of thread, other threads:[~2013-04-16 19:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-16  7:24 [Buildroot] Problem with external toolchain sysroot and eclipse Lars Dunemark
2013-04-16  7:33 ` Thomas Petazzoni
2013-04-16  9:51   ` Lars Dunemark
2013-04-16 11:16   ` Lars Dunemark
2013-04-16 11:47     ` Greg Beresford
2013-04-16 19:02       ` Lars Dunemark

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