From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] External Toolchain: Calculation of SYSROOT_DIR in toolchain/toolchain-external/ext-tool.mk wrong?
Date: Wed, 1 Feb 2012 10:38:42 +0100 [thread overview]
Message-ID: <20120201103842.546e6eb8@skate> (raw)
In-Reply-To: <4666169C600DD24C84F509DC90790D5007629FD2B5@DEMCHP99E75MSX.ww902.siemens.net>
Hello Christof,
Le Wed, 1 Feb 2012 09:35:06 +0100,
"Warlich, Christof" <christof.warlich@siemens.com> a ?crit :
> I have an issue with the integration of an external toolchain into buildroot. When I do this,
> buildroot complains "Incorrect selection of the C library".
>
> Digging for the root case of the problem, I found that SYSROOT_DIR is not calculated correctly
> in toolchain/toolchain-external/ext-tool.mk. To fix the problem, I had to replace line 272 of that file:
>
> SYSROOT_DIR=`readlink -f $$(LANG=C $(TOOLCHAIN_EXTERNAL_CC) -print-file-name=libc.a) |sed -r -e 's:usr/lib/libc\.a::;'` ; \
>
> with
>
> SYSROOT_DIR=`readlink -f $$(LANG=C $(TOOLCHAIN_EXTERNAL_CC) -print-file-name=libc.a) |sed -r -e 's:lib/libc\.a::;'` ; \
Interesting. In all external toolchains I have seen until now, the
dynamic version of libc is in lib/, but the static version is in
usr/lib/.
If we just do your change, then it will basically break the support for
all other external toolchains. We need to be a little bit smarter.
> and my PATH / PREFIX setting in menuconfig is: /someDirectory/linux_tools / $(ARCH)-v42 with $(ARCH) == i686.
>
> Can anyone help in telling me if I found (and fixed? :-)) a bug in buildroot or if something is wrong with my toolchain,
> and if so, what's wrong?
The directory organization of the various external toolchains available
is such that Buildroot does not necessarily support any random
toolchain.
Would it be possible to get your external toolchain, so that I could do
some testing, and integrate it in my set of external toolchains, so
that we keep it working in the future?
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2012-02-01 9:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 8:35 [Buildroot] External Toolchain: Calculation of SYSROOT_DIR in toolchain/toolchain-external/ext-tool.mk wrong? Warlich, Christof
2012-02-01 9:38 ` Thomas Petazzoni [this message]
2012-02-01 11:20 ` Warlich, Christof
2012-02-01 11:34 ` Thomas Petazzoni
2012-02-01 12:30 ` Warlich, Christof
2012-02-01 13:01 ` Thomas Petazzoni
2012-02-01 15:15 ` Grant Edwards
2012-02-01 15:48 ` Warlich, Christof
2012-02-01 15:25 ` Warlich, Christof
2012-02-01 16:16 ` Michael S. Zick
2012-02-01 15:05 ` Thomas De Schampheleire
2012-02-01 15:41 ` Warlich, Christof
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120201103842.546e6eb8@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox