Compiling toolchain fails on Ubuntu 8.10 - edje-sdk

Matthias Keller matthias.keller at
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:// 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 
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_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?



log.do_compile.26773 log.do_configure.4132 run.do_compile.26773 run.do_configure.4132 
View this message in context:
Sent from the Openmoko Devel mailing list archive at

More information about the devel mailing list