[Buildroot] libglib2 (or maybe libffi) build failure

Mark Jackson mpfj-list at newflow.co.uk
Wed Nov 27 16:25:59 UTC 2013


On 27/11/13 16:15, Thomas Petazzoni wrote:
> Dear Mark Jackson,
> 
> On Wed, 27 Nov 2013 15:28:12 +0000, Mark Jackson wrote:
>> Using the latest git top-of-tree, libglib2 fails to compile as follows:-
>>
>> $ git pull
>> Already up-to-date.
>> $ make
> 
> [...]
> 
>> Alternatively, you may set the environment variables LIBFFI_CFLAGS
>> and LIBFFI_LIBS to avoid the need to call pkg-config.
>> See the pkg-config man page for more details.
>> make: *** [/home/mpfj/buildroot-bt/output/build/libglib2-2.36.3/.stamp_configured] Error 1
>>
>> Any clues ?
> 
> Interesting, thanks. Can you see in output/staging/usr/lib/pkgconfig/
> if you have the file named libffi.pc ?

Yes ...

$ ls output/staging/usr/lib/pkgconfig/ -la
total 64
drwxrwxr-x 2 mpfj mpfj 4096 Nov 27 15:14 .
drwxrwxr-x 9 mpfj mpfj 4096 Nov 27 15:14 ..
-rw-r--r-- 1 mpfj mpfj  258 Nov  6 12:35 avahi-core.pc
-rw-r--r-- 1 mpfj mpfj  508 Nov 27 10:06 dbus-1.pc
-rw-r--r-- 1 mpfj mpfj  221 Nov 25 12:06 expat.pc
-rw-r--r-- 1 mpfj mpfj  255 Nov  6 12:36 libcrypto.pc
-rw-r--r-- 1 mpfj mpfj  260 Nov  6 12:35 libdaemon.pc
-rw-r--r-- 1 mpfj mpfj  169 Nov 27 15:14 libffi.pc
-rw-r--r-- 1 mpfj mpfj  222 Nov  6 12:36 libnl-3.0.pc
-rw-r--r-- 1 mpfj mpfj  298 Nov  6 12:36 libnl-cli-3.0.pc
-rw-r--r-- 1 mpfj mpfj  236 Nov  6 12:36 libnl-genl-3.0.pc
-rw-r--r-- 1 mpfj mpfj  240 Nov  6 12:36 libnl-nf-3.0.pc
-rw-r--r-- 1 mpfj mpfj  245 Nov  6 12:36 libnl-route-3.0.pc
-rw-r--r-- 1 mpfj mpfj  270 Nov  6 12:36 libssl.pc
-rw-r--r-- 1 mpfj mpfj  280 Nov  6 12:36 openssl.pc
-rw-r--r-- 1 mpfj mpfj  252 Nov 27 10:08 zlib.pc

> If that's the case, then, can you try:
> 
> 	./output/host/usr/bin/pkg-config --list-all
> 
> and see if libffi is part of the list ?

No ...

$ ./output/host/usr/bin/pkg-config --list-all 
libnl-route-3.0                libnl-route - Netlink Routing Family Library
avahi-core                     avahi-core - Avahi Multicast DNS Responder (Embeddable Stack)
zlib                           zlib - zlib compression library
libssl                         OpenSSL - Secure Sockets Layer and cryptography libraries
libnl-3.0                      libnl - Convenience library for netlink sockets
libnl-genl-3.0                 libnl-genl - Generic Netlink Library
libnl-nf-3.0                   libnl-nf - Netfilter Netlink Library
libnl-cli-3.0                  libnl-cli - Command Line Interface library for netlink sockets
libcrypto                      OpenSSL-libcrypto - OpenSSL cryptography library
openssl                        OpenSSL - Secure Sockets Layer and cryptography libraries and tools
libdaemon                      libdaemon - a lightweight C library that eases the writing of UNIX daemons

> If that's the case, can you pastebin (http://code.bulix.org) the entire
> output/build/libglib2-2.36.3/config.log file, and give us the URL at
> which it was posted?

http://code.bulix.org/aq3veb-85084

> Finally, can you inspect your environment (by running "env") to see if
> there's anything suspicious. Ideally, giving your environment might be
> useful, but read it first to remove any personal stuff from it, if
> applicable.

http://code.bulix.org/ng3wku-85083

>> BR2_TARGET_GENERIC_ROOT_PASSWD="rmfMPVaGP3nnjWUV"
> 
> Hopefully it's not an important password :)

Ho, ho ... nope !!

Cheers
Mark J.



More information about the buildroot mailing list