From: Evade Flow <evadeflow@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] "Incorrect selection of the C library" with Emdebian toolchain
Date: Wed, 22 Aug 2012 20:03:56 -0400 [thread overview]
Message-ID: <5035736C.1020205@gmail.com> (raw)
Hi. I'm having a problem similar to one reported earlier this year (see
http://goo.gl/lBYtC), namely: SYSROOT_DIR is being computed incorrectly
for my external toolchain. I'm trying to use Emdebian's ARM cross
toolchain, which I installed in my Ubuntu 12.04 VM using:
sudo apt-get install gcc-4.6-arm-linux-gnueabi
This puts arm-linux-gnueabi-gcc-4.6 in /usr/bin, and the dependent
package binutils-arm-linux-gnueabi adds things like
arm-linux-gnueabi-ar, arm-linux-gnueabi-as, etc in the same location.
However, the latter package also drops a bunch of files in
/usr/arm-linux-gnueabi:
/usr/arm-linux-gnueabi
|-- bin
| |-- ar
| |-- as
| |-- ld
| |-- ld.bfd
| |-- ld.gold
| |-- nm
| |-- objcopy
| |-- objdump
| |-- ranlib
| `-- strip
|-- include
| |-- aio.h
| |-- aliases.h
| <--SNIP!-->
| |-- wait.h
| |-- wchar.h
| |-- wctype.h
| |-- wordexp.h
| |-- xen
| `-- xlocale.h
`-- lib
|-- crt1.o
|-- crti.o
|-- crtn.o
|-- gcrt1.o
|-- ld-2.15.so
|-- ld-linux.so.3 -> ld-2.15.so
|-- libanl-2.15.so
<--SNIP--!>
|-- libstdc++.so.6 -> libstdc++.so.6.0.16
|-- libstdc++.so.6.0.16
|-- libthread_db-1.0.so
|-- libthread_db.so -> libthread_db.so.1
|-- libthread_db.so.1 -> libthread_db-1.0.so
|-- libutil-2.15.so
|-- libutil.a
|-- libutil.so -> libutil.so.1
|-- libutil.so.1 -> libutil-2.15.so
|-- Mcrt1.o
`-- Scrt1.o
So, as near as I can tell, SYSROOT_DIR should be /usr/arm-linux-gnueabi
for this toolchain. The following sed command in ext-tool.mk (~ line
311) is the problem:
SYSROOT_DIR=`echo $${LIBC_A_LOCATION} | sed -r -e
's:usr/lib(64)?/(.*/)?libc\.a::'` ; \
When the above is executed, LIBC_A_LOCATION has the value
"/usr/arm-linux-gnueabi/lib/libc.a" so the regex doesn't match anything,
and I get the error "Incorrect selection of the C library".
For now, I've temporarily hacked ext-tool.mk to hard-code SYSROOT_DIR to
'/usr/arm/arm-linux-gnueabi', which seems to work. Just figured I should
tell some folks who may be able to implement a 'real' fix... :-}
next reply other threads:[~2012-08-23 0:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-23 0:03 Evade Flow [this message]
2012-08-23 8:50 ` [Buildroot] "Incorrect selection of the C library" with Emdebian toolchain Thomas Petazzoni
2012-08-23 16:14 ` Evade Flow
2012-08-24 13:06 ` Evade Flow
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=5035736C.1020205@gmail.com \
--to=evadeflow@gmail.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 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.