Compiling toolchain fails on Ubuntu 8.10 - edje-sdk

Matthias Keller matthias.keller at tik.ee.ethz.ch
Wed Apr 1 23:40:27 CEST 2009


Dear all

I'm experiencing a very odd behavior when I try to compile the OE toolchain on my Ubuntu 8.10 i686 box.

I checked out the repository from git://git.openembedded.net/openembedded and set my environment variables accordingly.

"bitbake meta-toolchain-openmoko" fails when it comes to compile edje-sdk. Some include and library paths are passed incorrectly so that header files such as "Eina.h" are not found any longer.

Here is the generated "edje.pc" pkg-config db file:

===
Name: edje
Description: Enlightened graphical design and layout engine.
Requires: embryo ecore-job ecore evas eet eina-0 
Version: 0.9.91.050
Libs: -L${libdir} -ledje
Libs.private: -L/home/user/openmoko/oe/build-om-gta02/tmp/staging/i686-linux-sdk/home/user/openmoko/oe/build-om-gta02/tmp/staging/i686-linux/usr/lib -leet -lssl -
lcrypto -lgcc -ldl -levas -lecore_job -lecore -leina -lembryo   
Cflags: -I${includedir}
===

Apparently, "/home/user/openmoko/oe/build-om-gta02/tmp/staging/i686-linux-sdk/home/user/openmoko/oe/build-om-gta02/tmp/staging/i686-linux/usr/lib" is the concatenation of two paths.

The following config has been used (run.do_configure log):

===
export PKG_CONFIG_DIR="/home/user/openmoko/oe/build-om-gta02/tmp/staging/armv4t-angstrom-linux-gnueabi/usr/lib/pkgconfig"
export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
export PKG_CONFIG_SYSROOT_DIR="/home/user/openmoko/oe/build-om-gta02/tmp/staging/i686-linux-sdk"
export PKG_CONFIG_PATH="/home/user/openmoko/oe/build-om-gta02/tmp/staging/armv4t-angstrom-linux-gnueabi/usr/lib/pkgconfig:/home/user/openmoko/oe/build-om-gta02/tmp/staging/i686-linux-sdk/usr/share/pkgconfig"
===

I've played around with pkg-config in the terminal, the error appears when these two pathes are in the search list:

1) /home/user/openmoko/oe/build-om-gta02/tmp/staging/i686-linux-sdk/usr/share/pkgconfig
2) /home/user/openmoko/oe/build-om-gta02/tmp/staging/i686-linux/usr/share/pkgconfig

Path 1) is empty/folder does not exist, path 2) is not part of PKG_CONFIG_PATH when concerning the log output.

Another observation is that pkg-config files in 2) contain full paths:

i.e. prefix=/home/user/openmoko/oe/build-om-gta02/tmp/staging/i686-linux/usr

My guess is that pkg-config adds a platform-specific cross-compile prefix to a path that already points to the build tree. However, it is definitely weird! :(

Log files are attached.

Any hints how I can fix this issue?


Best,

Matthias

log.do_compile.26773 log.do_configure.4132 run.do_compile.26773 run.do_configure.4132 
-- 
View this message in context: http://n2.nabble.com/Compiling-toolchain-fails-on-Ubuntu-8.10---edje-sdk-tp2571714p2571714.html
Sent from the Openmoko Devel mailing list archive at Nabble.com.




More information about the devel mailing list