Problem building dbus-glib-0.72
I'm getting some errors building gpe-image, specifically on the dbus-glib-0.72 package, that seem to be related to include path problems.
My local.conf has these settings:
MACHINE = "compulab-pxa270"
DISTRO = "familiar-unstable"
And the log leading up to the error is:
NOTE: package dbus-glib-0.72: started
NOTE: package dbus-glib-0.72-r0: task do_compile: started
NOTE: SITE files/home/packet/OpenEmbedded/org.openembedded.dev/site/endian-little /home/packet/OpenEmbedded/org.openembedded.dev/site/arm-linux
ERROR: function do_compile failed
ERROR: log data follows (/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/temp/log.do_compile.7567)
| NOTE: make | make all-recursive | make[1]: Entering directory
`/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72' | Making all in dbus
| make[2]: Entering directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | make all-recursive
| make[3]: Entering directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | Making all in .
| make[4]: Entering directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | if /bin/sh ../arm-linux-libtool --tag=CC --mode=compile
arm-linux-gcc -march=armv5te -mtune=xscale -DHAVE_CONFIG_H -I. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus -I.. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72 -I.. -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/glib-2.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/glib-2.0/include
-DDBUS_COMPILATION=1 -DDBUS_LOCALEDIR=\"/usr/share/locale\"
-DDBUS_API_SUBJECT_TO_CHANGE=1 -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2
-Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal
-Wsign-compare -MT dbus-glib.lo -MD -MP -MF ".deps/dbus-glib.Tpo" -c
-o dbus-glib.lo dbus-glib.c; \
| then mv -f ".deps/dbus-glib.Tpo" ".deps/dbus-glib.Plo"; else
rm -f ".deps/dbus-glib.Tpo"; exit 1; fi
| arm-linux-gcc -march=armv5te -mtune=xscale -DHAVE_CONFIG_H -I. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus -I.. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72 -I.. -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/glib-2.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/glib-2.0/include -DDBUS_COMPILATION=1 -DDBUS_LOCALEDIR=\"/usr/share/locale\" -DDBUS_API_SUBJECT_TO_CHANGE=1 -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2
-Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal
-Wsign-compare -MT dbus-glib.lo -MD -MP -MF .deps/dbus-glib.Tpo -cdbus-glib.c -fPIC -DPIC -o .libs/dbus-glib.o
| In file included from dbus-glib.c:25:
| dbus-glib.h:28:30: dbus/dbus-shared.h: No such file or directory
<...and a bunch more of these...>
Sure enough, the missing files aren't in the -I paths:
packet@linuxdev0:~/OpenEmbedded/build/$ find tmp -name dbus-shared.h tmp/work/i686-linux/dbus-native-0.94-r0/dbus-0.94/dbus/dbus-shared.h tmp/work/armv5te-linux/dbus-0.92-r1/dbus-0.92/dbus/dbus-shared.h tmp/work/armv5te-linux/dbus-0.92-r1/install/dbus-dev/usr/include/dbus-1.0/dbus/dbus-shared.h tmp/staging/i686-linux/include/dbus-1.0/dbus/dbus-shared.h tmp/staging/arm-linux/include/dbus-1.0/dbus/dbus-shared.h
I'm new to this so I would really appreciate some guidance.
Quoted 3 lines · Andrew Paulsen
I'm getting some errors building gpe-image, specifically on the dbus-glib-0.72 package, that seem to be related to include path problems.
Maybe lacking
export DBUS_CFLAGS = " -I${STAGING_DIR}/${TARGET_SYS}/include/dbus-1.0"
or something similar from the dbus-glib-0.72.bb file
Also some similarity to http://bugs.openembedded.org/show_bug.cgi?id=1371
Jim
Quoted 10 lines · Jim Rayner
Quoted 3 lines · Andrew Paulsen
I'm getting some errors building gpe-image, specifically on the dbus-glib-0.72 package, that seem to be related to include path problems.
Maybe lacking
export
DBUS_CFLAGS= " -I${STAGING_DIR}/${TARGET_SYS}/include/dbus-1.0"or something similar from the dbus-glib-0.72.bb file
I added the following line to the dbus-glib-0.72.bb file:
export DBUS_CFLAGS = " -I${STAGING_DIR}/${TARGET_SYS}/include/dbus-1.0 -I${STAGING_DIR}/${TARGET_SYS}/lib/dbus-1.0/include"
This allowed a little more progress before failure:
| if /bin/sh ../arm-linux-libtool --tag=CC --mode=compile
arm-linux-gcc -march=armv5te -mtune=xscale -DHAVE_CONFIG_H -I. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus -I.. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72 -I.. -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/dbus-1.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/dbus-1.0/include -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/glib-2.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/glib-2.0/include
-DDBUS_COMPILATION=1 -DDBUS_LOCALEDIR=\"/usr/share/locale\"
-DDBUS_API_SUBJECT_TO_CHANGE=1 -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2
-Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal
-Wsign-compare -MT dbus-gobject.lo -MD -MP -MF
".deps/dbus-gobject.Tpo" -c -o dbus-gobject.lo dbus-gobject.c; \
| then mv -f ".deps/dbus-gobject.Tpo" ".deps/dbus-gobject.Plo";
else rm -f ".deps/dbus-gobject.Tpo"; exit 1; fi
| arm-linux-gcc -march=armv5te -mtune=xscale -DHAVE_CONFIG_H -I. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus -I.. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72 -I.. -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/dbus-1.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/dbus-1.0/include -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/glib-2.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/glib-2.0/include -DDBUS_COMPILATION=1 -DDBUS_LOCALEDIR=\"/usr/share/locale\" -DDBUS_API_SUBJECT_TO_CHANGE=1 -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2
-Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal
-Wsign-compare -MT dbus-gobject.lo -MD -MP -MF .deps/dbus-gobject.Tpo
-c dbus-gobject.c -fPIC -DPIC -o .libs/dbus-gobject.o
| dbus-gobject.c: In function `invoke_object_method': | dbus-gobject.c:997: warning: cast increases required alignment of target type | dbus-gobject.c:1137: warning: cast increases required alignment of target type | dbus-gobject.c:1230: warning: cast increases required alignment of target type | In file included from dbus-gobject.c:1539: | dbus-glib-error-switch.h: In function `dbus_error_to_gerror_code': | dbus-glib-error-switch.h:41: error: `DBUS_ERROR_FILE_EXISTS'
undeclared (first use in this function)
| dbus-glib-error-switch.h:41: error: (Each undeclared identifier is reported only once
| dbus-glib-error-switch.h:41: error: for each function it appears in.) | dbus-glib-error-switch.h:65: error:
`DBUS_ERROR_INVALID_FILE_CONTENT' undeclared (first use in this function)
| dbus-gobject.c: In function `dbus_g_object_register_marshaller': | dbus-gobject.c:1907: warning: cast increases required alignment of target type | dbus-gobject.c: In function `dbus_g_method_return': | dbus-gobject.c:2040: warning: cast increases required alignment of target type | make[4]: *** [dbus-gobject.lo] Error 1 | make[4]: Leaving directory
`/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | make[2]: *** [all] Error 2
| make[2]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72' | make: *** [all] Error 2
| FATAL: oe_runmake failed
NOTE: Task failed:/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/temp/log.do_compile.27174
NOTE: package dbus-glib-0.72-r0: task do_compile: failed
It appears that dbus-glib is trying to use defines from dbus 1.0, but version 0.92 is what is being installed.
Quoted 92 lines · Andrew Paulsen
Quoted 10 lines · Jim Rayner
Quoted 3 lines · Andrew Paulsen
I'm getting some errors building gpe-image, specifically on the dbus-glib-0.72 package, that seem to be related to include path problems.
Maybe lacking
export
DBUS_CFLAGS= " -I${STAGING_DIR}/${TARGET_SYS}/include/dbus-1.0"or something similar from the dbus-glib-0.72.bb file
I added the following line to the dbus-glib-0.72.bb file:
export
DBUS_CFLAGS= " -I${STAGING_DIR}/${TARGET_SYS}/include/dbus-1.0 -I${STAGING_DIR}/${TARGET_SYS}/lib/dbus-1.0/include"This allowed a little more progress before failure:
| if
/bin/sh../arm-linux-libtool --tag=CC --mode=compile arm-linux-gcc -march=armv5te -mtune=xscale -DHAVE_CONFIG_H -I.(quoted diff) +0
-13-I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus -I.. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72 -I.. -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/dbus-1.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/dbus-1.0/include -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/glib-2.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/glib-2.0/include -DDBUS_COMPILATION=1 -DDBUS_LOCALEDIR=\"/usr/share/locale\" -DDBUS_API_SUBJECT_TO_CHANGE=1 -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT dbus-gobject.lo -MD -MP -MF".deps/dbus-gobject.Tpo" -c -o dbus-gobject.lo
dbus-gobject.c; \
| then mv -f ".deps/dbus-gobject.Tpo" ".deps/dbus-gobject.Plo";
else rm -f ".deps/dbus-gobject.Tpo"; exit 1; fi
| arm-linux-gcc -march=armv5te -mtune=xscale -DHAVE_CONFIG_H -I.(quoted diff) +0
-15-I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus -I.. -I/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72 -I.. -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/dbus-1.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/dbus-1.0/include -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include/glib-2.0 -I/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/lib/glib-2.0/include -DDBUS_COMPILATION=1 -DDBUS_LOCALEDIR=\"/usr/share/locale\" -DDBUS_API_SUBJECT_TO_CHANGE=1 -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -isystem/home/packet/OpenEmbedded/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT dbus-gobject.lo -MD -MP -MF .deps/dbus-gobject.Tpo -c dbus-gobject.c -fPIC -DPIC -o .libs/dbus-gobject.o| dbus-gobject.c: In function `invoke_object_method': | dbus-gobject.c:997: warning: cast increases required alignment of target type | dbus-gobject.c:1137: warning: cast increases required alignment of target type | dbus-gobject.c:1230: warning: cast increases required alignment of target type | In file included from dbus-gobject.c:1539: | dbus-glib-error-switch.h: In function `dbus_error_to_gerror_code': | dbus-glib-error-switch.h:41: error: `DBUS_ERROR_FILE_EXISTS'undeclared (first use in this function)
| dbus-glib-error-switch.h:41: error: (Each undeclared identifier is reported only once
| dbus-glib-error-switch.h:41: error: for each function it appears in.) | dbus-glib-error-switch.h:65: error:
`DBUS_ERROR_INVALID_FILE_CONTENT' undeclared (first use in this function)| dbus-gobject.c: In function `dbus_g_object_register_marshaller': | dbus-gobject.c:1907: warning: cast increases required alignment of target type | dbus-gobject.c: In function `dbus_g_method_return': | dbus-gobject.c:2040: warning: cast increases required alignment of target type | make[4]: *** [dbus-gobject.lo] Error 1 | make[4]: Leaving directory`/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | make[2]: *** [all] Error 2
| make[2]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72/dbus' | make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/dbus-glib-0.72' | make: *** [all] Error 2
| FATAL:oe_runmakefailed
NOTE: Task failed:/home/packet/OpenEmbedded/build/tmp/work/armv5te-linux/dbus-glib-0.72-r0/temp/log.do_compile.27174
NOTE: package dbus-glib-0.72-r0: taskdo_compile: failed
Quoted 2 lines
It appears that dbus-glib is trying to use defines from dbus 1.0, but version 0.92 is what is being installed.
I think dbus-glib 0.72 needs dbus >= 0.94.
The dbus-1.0 in the include path only denotes the protocol version.
regards
Philipp
Quoted 5 lines
I think dbus-glib 0.72 needs dbus >= 0.94.
The dbus-1.0 in the include path only denotes the protocol version.regards
Philipp
Ok, I'll rephrase my question then. How do I change the package versions that are being built?
Again, my local.conf contains:
MACHINE = "compulab-pxa270"
DISTRO = "familiar-unstable"
and I'm trying to "bitbake gpe-image"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andrew Paulsen schreef:
Quoted 6 lines
Quoted 5 lines
I think dbus-glib 0.72 needs dbus >= 0.94.
The dbus-1.0 in the include path only denotes the protocol version.regards
Philipp
Quoted 8 lines
Ok, I'll rephrase my question then. How do I change the package versions that are being built?
Again, my local.conf contains:
MACHINE = "compulab-pxa270"
DISTRO = "familiar-unstable"and I'm trying to "bitbake gpe-image"
Familiar is unmaintained in OE, so your error messages don't surprise us.
You could try
DISTRO=angstrom-2007.1
DISTRO=celinux-test
DISTRO=generic
DISTRO=openzaurus-unstable
To get a distro that regularly checked for problems.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFXfjoMkyGM64RGpERAtaiAKCMvS1ZIhFUXepS/WmcVx+JUHbhaQCfbvj6 ZBxWeLlFiSK/YTc45Ulezpo=
=xN40
-----END PGP SIGNATURE-----
Quoted 10 lines · Koen Kooi
Familiar is unmaintained in OE, so your error messages don't surprise us.
You could try
DISTRO=angstrom-2007.1
DISTRO=celinux-test
DISTRO=generic
DISTRO=openzaurus-unstableTo get a distro that regularly checked for problems.
Ok, I've got angstrom-2007.1 building right now. I tried Familiar first since it was the example in local.conf.sample - maybe that should be changed to something that is maintained if you're not surprised that it doesn't work.
Quoted 13 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Andrew Paulsen schreef:
Quoted 9 lines
Quoted 5 lines
I think dbus-glib 0.72 needs dbus >= 0.94.
The dbus-1.0 in the include path only denotes the protocol version.regards
PhilippOk, I'll rephrase my question then. How do I change the package versions that are being built?
Quoted 7 lines
Quoted 5 lines
Again, my local.conf contains:
MACHINE = "compulab-pxa270"
DISTRO = "familiar-unstable"and I'm trying to "bitbake gpe-image"
Familiar is unmaintained in OE, so your error messages don't surprise us.
I try to keep up, but I am afraid I have too many chores to keep familiar as fresh as I would like in OE.
It is maintained here though:
http://familiar.handhelds.org/#build
E
Signature · 4 lines
Erik Hovland mail: erik AT hovland DOT org web: http://hovland.org/ PGP/GPG public key available on request
A note about familiar-instable, was: Re[2]: Problem building dbus-glib-0.72
Hello Erik,
Quoted 18 lines · you
Quoted 17 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Andrew Paulsen schreef:
Quoted 13 lines
Quoted 5 lines
I think dbus-glib 0.72 needs dbus >= 0.94.
The dbus-1.0 in the include path only denotes the protocol version.regards
PhilippOk, I'll rephrase my question then. How do I change the package versions that are being built?
Again, my local.conf contains:
MACHINE = "compulab-pxa270"
DISTRO = "familiar-unstable"
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
and I'm trying to "bitbake gpe-image"
Familiar is unmaintained in OE, so your error messages don't surprise us.
I try to keep up, but I am afraid I have too many chores to keep familiar as fresh as I would like in OE.
Well, the exact situation with "familiar-unstable" is that, taking
into account that Familiar development was forked into separate tree, familiar-unstable.conf as it is in OE, has no relation to the Familiar distro, because it does not build packages compatible with any existing Familiar release. Again, as future release planning of Familiar happens outside of mainline OE, it cannot be said that familiar-unstable represents any future Familiar version.
That is, "familiar-unstable" is just a random unmaintained distro,
nothing more.
I was interested to make OE build Familiar-0.8.4 compatible
packages, and I actually made a distro config which does exactly that, at least on few packages I tried. But for me, it was mostly a learning exercise, testing how well OE keeps to its promise of easily supporting different distros, consisting of different package versions. Well, I knew it does, I was interested how much effort it will take to do that for some real-world case. And while bitbake latency makes this a bit of chore, it's more than doable.
However, after communicating with OE maintainers, I decided not to
submit this config for mainline inclusion, nor even announce it publicly on Familiar lists. The motivation was the anticipation that such action may cause another coil of argument between Familiar and OE teams, and that would be the last thing I personally wanted.
Instead, I semi-privately contacted few persons I knew who might be
interested in that config, for example, for maintaining an updated local feed. I got zero response, and this message is essentially a last call, whether someone wants it. Note that while I initially wanted to make more or less maintainable config, possibly with bitbake external collection for packages already removed from OE.dev, I didn't finish this due to the described lack of interest, so the only thing I can offer is familiar-0.8.4-unstable.conf, which has PREFERRED_VERSIONs for *some* of packages required by Familiar 0.8.4. As OE.dev progresses rapidly, and old versions of packages are removed, it may be the case that this config won't any longer work OOB, and would need some tweaking before it will work.
Signature · 2 lines
Best regards, Paul mailto:[email protected]