From: "Jörg Krause" <jkrause@posteo.de>
To: buildroot@busybox.net
Subject: [Buildroot] toolchain/helpers.mk: check_musl fails
Date: Sat, 29 Nov 2014 22:54:20 +0100 [thread overview]
Message-ID: <1417298060.18257.12.camel@posteo.de> (raw)
Hi all,
I've build an internal Buildroot toolchain with the latest musl C
library. Now I want to use this toolchain as an external toolchain. I've
copied output/host/usr/ to a new place and changed the KConfig menu
entry to external toolchain.
make fails with the following error:
Incorrect selection of the C library
toolchain/helpers.mk/check-musl is:
check_musl = \
SYSROOT_DIR="$(strip $1)"; \
if test ! -f $${SYSROOT_DIR}/lib/libc.so -o -e
$${SYSROOT_DIR}/lib/libm.so ; then \
echo "Incorrect selection of the C library" ; \
exit -1; \
fi
I've checked the SYSROOT_DIR variable in helpers.mk/check-musl:
SYSROOT_DIR: /home/joerg/Development/toolchain/musl-gcc/usr/arm-buildroot-linux-musleabi/sysroot/
[joerg at nzxt sysroot]$ cd /home/joerg/Development/toolchain/musl-gcc/usr/arm-buildroot-linux-musleabi/sysroot/
[joerg at nzxt sysroot]$ ls -l lib
total 1344
lrwxrwxrwx 1 joerg joerg 16 25. Nov 19:19 ld-musl-arm.so.1 -> /usr/lib/libc.so
-rw-r--r-- 1 joerg joerg 132 25. Nov 19:19 libgcc_s.so
-rw-r--r-- 1 joerg joerg 1368741 25. Nov 19:19 libgcc_s.so.1
[joerg at nzxt sysroot]$ ls -l usr/lib
total 14180
-rw-r--r-- 1 joerg joerg 920 25. Nov 19:19 crt1.o
-rw-r--r-- 1 joerg joerg 832 25. Nov 19:19 crti.o
-rw-r--r-- 1 joerg joerg 812 25. Nov 19:19 crtn.o
-rw-r--r-- 1 joerg joerg 1893224 25. Nov 19:19 libc.a
-rw-r--r-- 1 joerg joerg 8 25. Nov 19:19 libcrypt.a
-rwxr-xr-x 1 joerg joerg 737808 25. Nov 19:19 libc.so
-rw-r--r-- 1 joerg joerg 8 25. Nov 19:19 libdl.a
-rw-r--r-- 1 joerg joerg 8 25. Nov 19:19 libm.a
-rw-r--r-- 1 joerg joerg 8 25. Nov 19:19 libpthread.a
-rw-r--r-- 1 joerg joerg 8 25. Nov 19:19 libresolv.a
-rw-r--r-- 1 joerg joerg 8 25. Nov 19:19 librt.a
-rw-r--r-- 1 joerg joerg 7812470 25. Nov 19:19 libstdc++.a
lrwxrwxrwx 1 joerg joerg 19 25. Nov 19:19 libstdc++.so -> libstdc++.so.6.0.20
lrwxrwxrwx 1 joerg joerg 19 25. Nov 19:19 libstdc++.so.6 -> libstdc++.so.6.0.20
-rwxr-xr-x 1 joerg joerg 4013497 25. Nov 19:19 libstdc++.so.6.0.20
-rw-r--r-- 1 joerg joerg 2419 25. Nov 19:19 libstdc++.so.6.0.20-gdb.py
-rw-r--r-- 1 joerg joerg 8 25. Nov 19:19 libutil.a
-rw-r--r-- 1 joerg joerg 8 25. Nov 19:19 libxnet.a
-rw-r--r-- 1 joerg joerg 992 25. Nov 19:19 Scrt1.o
Any ideas or suggestions?
Best regards
J?rg
reply other threads:[~2014-11-29 21:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1417298060.18257.12.camel@posteo.de \
--to=jkrause@posteo.de \
--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