From: Bernd Kuhls <bernd.kuhls@t-online.de>
To: buildroot@busybox.net
Subject: [Buildroot] Analysis of build results for 2017-02-13
Date: Thu, 16 Feb 2017 21:34:14 +0100 [thread overview]
Message-ID: <6vehndx4lc.ln2@ID-313208.user.individual.net> (raw)
In-Reply-To: 20170214142725.1b9e98ae@free-electrons.com
Hi Thomas,
Am Tue, 14 Feb 2017 14:27:25 +0100 schrieb Thomas Petazzoni:
>> i586 | libcec-4.0.2 | NOK | http://
autobuild.buildroot.net/results/95bbcebc8768d1be026a83d9437a9b206b94df20
>
> /usr/lib32/libstdc++.so.6: undefined reference to
`__towlower_l at GLIBC_2.1'
> /usr/lib32/libstdc++.so.6: undefined reference to `wmemchr at GLIBC_2.0'
> /usr/lib32/libstdc++.so.6: undefined reference to `fputs at GLIBC_2.0'
>
> It's incorrectly picking some host libraries, which is wrong. Bernd,
> you did the bump of libcec, could you fix this?
I think I found the reason but I have no idea to fix it, sorry.
libcec-4.0.2/CMakeCache.txt contains these lines:
p8-platform_DIR:PATH=/home/bernd/buildroot/buildroot/output/host/usr/i586-
buildroot-linux-musl/sysroot/usr/lib32/p8-platform
This CMake build step
[ 97%] Linking C executable cecc-client
is done by using these commands:
/home/buildroot/buildroot/output/host/usr/bin/i586-linux-gcc --sysroot=/
home/buildroot/buildroot/output/host/usr/i586-buildroot-linux-musl/
sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -
Os -DNDEBUG CMakeFiles/cecc-client.dir/cecc-client.c.o -o cecc-
client-4.0.2 -Wl,-rpath,/usr/lib32: -rdynamic /home/bernd/buildroot/
buildroot/output/host/usr/i586-buildroot-linux-musl/sysroot/usr/lib32/
libp8-platform.so -ldl
"-Wl,-rpath,/usr/lib32" is the reason for the linking error, imho.
Now the interesting solution:
$ cd /home/buildroot/buildroot/output/host/usr/i586-buildroot-linux-musl/
sysroot/usr/
$ LC_ALL=C ls -la
total 24
drwxr-xr-x 6 buildroot buildroot 4096 Feb 16 21:27 .
drwxr-xr-x 6 buildroot buildroot 4096 Feb 16 21:24 ..
drwxr-xr-x 2 buildroot buildroot 4096 Dec 3 16:55 bin
drwxr-xr-x 20 buildroot buildroot 4096 Feb 16 21:24 include
drwxr-xr-x 4 buildroot buildroot 4096 Feb 16 21:24 lib
lrwxrwxrwx 1 buildroot buildroot 3 Dec 3 16:55 lib32 -> lib
drwxr-xr-x 2 buildroot buildroot 4096 Dec 3 16:55 sbin
$ rm lib32
Now building libcec will work, most likely because the value of p8-
platform_DIR changed:
p8-platform_DIR:PATH=/home/bernd/buildroot/buildroot/output/host/usr/i586-
buildroot-linux-musl/sysroot/usr/lib/p8-platform
Regards, Bernd
next prev parent reply other threads:[~2017-02-16 20:34 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-14 7:28 [Buildroot] [autobuild.buildroot.net] Build results for 2017-02-13 Thomas Petazzoni
2017-02-14 13:27 ` [Buildroot] Analysis of build " Thomas Petazzoni
2017-02-14 14:51 ` Peter Korsgaard
2017-02-14 15:10 ` Thomas Petazzoni
2017-02-14 19:21 ` Peter Korsgaard
2017-02-14 20:03 ` Thomas Petazzoni
2017-02-14 20:21 ` Peter Korsgaard
2017-02-14 15:44 ` Philippe Proulx
2017-02-14 16:39 ` Yann E. MORIN
2017-02-14 20:02 ` Thomas Petazzoni
2017-02-14 20:05 ` Yann E. MORIN
2017-02-14 18:02 ` Baruch Siach
2017-02-14 19:37 ` Peter Korsgaard
2017-02-14 22:29 ` Thomas Petazzoni
2017-02-15 7:38 ` Peter Korsgaard
2017-02-15 8:33 ` Thomas Petazzoni
2017-02-15 23:14 ` Arnout Vandecappelle
2017-02-16 8:36 ` Thomas Petazzoni
2017-02-15 2:45 ` Sam Bobroff
2017-02-15 8:37 ` Thomas Petazzoni
2017-02-15 13:22 ` Gustavo Zacarias
2017-02-16 20:34 ` Bernd Kuhls [this message]
2017-02-22 11:26 ` [Buildroot] [arc-buildroot] " Vlad Zakharov
2017-02-22 12:48 ` Thomas Petazzoni
2017-02-22 13:01 ` Vlad Zakharov
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=6vehndx4lc.ln2@ID-313208.user.individual.net \
--to=bernd.kuhls@t-online.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