From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com ([134.134.136.20]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SZIzk-0005DK-0J for openembedded-core@lists.openembedded.org; Tue, 29 May 2012 11:45:40 +0200 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 29 May 2012 02:35:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,352,1309762800"; d="scan'208,217";a="145706151" Received: from dell-desktop (HELO [10.237.104.210]) ([10.237.104.210]) by orsmga001.jf.intel.com with ESMTP; 29 May 2012 02:35:20 -0700 Message-ID: <4FC499C4.8000904@intel.com> Date: Tue, 29 May 2012 12:41:24 +0300 From: Radu Moisan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: openembedded-core@lists.openembedded.org References: <4FC35FAD.7090505@intel.com> <4FC35FBA.2060200@gherzan.ro> <4FC37C81.6080200@intel.com> <1338212677.20169.75.camel@ted> <4FC488CF.2030803@intel.com> <4FC49590.6030601@intel.com> In-Reply-To: Subject: Re: dbus test suite X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2012 09:45:40 -0000 Content-Type: multipart/alternative; boundary="------------090007020209050309080309" --------------090007020209050309080309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 05/29/2012 12:28 PM, Andrei Gherzan wrote: > On Tue, May 29, 2012 at 12:23 PM, Radu Moisan > wrote: > > > How do I add something in the dependency chain? With --enable-test > dbus fails at do_configure complaining about >> >> | configure: Full test coverage was requested with --enable-tests=yes >> | configure: This has many dependencies (GLib, dbus-glib, Python) >> | checking for i586-poky-linux-pkg-config... no >> | checking for pkg-config... >> /home/radu/Documents/Development/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/pkg-config >> | checking pkg-config is at least version 0.9.0... yes >> | checking for GLIB... yes >> | checking for DBUS_GLIB... yes >> | configure: Full test coverage (--enable-tests=yes) requires >> Python, dbus-python, pygobject >> | checking for a Python interpreter with version >= 2.6... python >> | checking for python... >> /home/radu/Documents/Development/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/python >> | checking for python version... 2.7 >> | checking for python platform... linux2 >> | checking for python script directory... >> ${libdir}/python2.7/site-packages >> | checking for python extension module directory... >> ${libdir}/python2.7/site-packages >> | checking for Python modules for full test coverage... Traceback >> (most recent call last): >> | File "", line 1, in >> | ImportError: No module named dbus >> | no > > > This says that the configure cannot find the dbus python module. This > is created in the python-dbus package. So compile that first. > >> >> >> Radu >> > Leaving --enable-tests aside for a moment, I'm trying to build > dbus with --enable-embedded-tests which is less but still good > instead of nothing. However, the build fails at do_compile > complaining about dbus/dbus-glib-lowlevel.h missing, although it's > there. So I think some variable in Makefile is not pointing > correctly, but I cannot find which. > > | i586-poky-linux-libtool: link: i586-poky-linux-ar cru > .libs/libdbus-testutils.a .libs/test-utils.o > | i586-poky-linux-libtool: link: i586-poky-linux-ranlib > .libs/libdbus-testutils.a > | i586-poky-linux-libtool: link: ( cd ".libs" && rm -f > "libdbus-testutils.la " && ln -s > "../libdbus-testutils.la " > "libdbus-testutils.la " ) > | dbus-daemon.c:32:37: fatal error: dbus/dbus-glib-lowlevel.h: No > such file or directory > | compilation terminated. > | i586-poky-linux-libtool: link: ccache i586-poky-linux-gcc -m32 > -march=i586 > --sysroot=/home/radu/Documents/Development/yocto/build/tmp/sysroots/qemux86 > -Wall -Wchar-subscripts -Wmissing-declarations > -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align > -Wno-address -Wfloat-equal -Wdeclaration-after-statement > -Wno-unused -Wno-sign-compare -Wno-pointer-sign > -Wno-deprecated-declarations -fno-common -fno-strict-aliasing -O2 > -pipe -g -feliminate-unused-debug-types -Wl,-O1 > -Wl,--hash-style=gnu -Wl,--as-needed -o test-segfault test-segfault.o > | make[3]: *** [test_dbus_daemon-dbus-daemon.o] Error 1 > | make[3]: *** Waiting for unfinished jobs.... > | i586-poky-linux-libtool: link: ccache i586-poky-linux-gcc -m32 > -march=i586 > --sysroot=/home/radu/Documents/Development/yocto/build/tmp/sysroots/qemux86 > -Wall -Wchar-subsERROR: Function failed: do_compile (see > /home/radu/Documents/Development/yocto/build/tmp/work/i586-poky-linux/dbus-1.4.20-r3.0/temp/log.do_compile.10606 > for further information) > | cripts -Wmissing-declarations -Wmissing-prototypes > -Wnested-externs -Wpointer-arith -Wcast-align -Wno-address > -Wfloat-equal -Wdeclaration-after-statement -Wno-unused > -Wno-sign-compare -Wno-pointer-sign -Wno-deprecated-declarations > -fno-common -fno-strict-aliasing -O2 -pipe -g > -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu > -Wl,--as-needed -o test-exit test-exit.o > | i586-poky-linux-libtool: link: ccache i586-poky-linux-gcc -m32 > -march=i586 > --sysroot=/home/radu/Documents/Development/yocto/build/tmp/sysroots/qemux86 > -Wall -Wchar-subscripts -Wmissing-declarations > -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align > -Wno-address -Wfloat-equal -Wdeclaration-after-statement > -Wno-unused -Wno-sign-compare -Wno-pointer-sign > -Wno-deprecated-declarations -fno-common -fno-strict-aliasing -O2 > -pipe -g -feliminate-unused-debug-types -Wl,-O1 > -Wl,--hash-style=gnu -Wl,--as-needed -o test-sleep-forever > test-sleep-forever.o > | loopback.c:32:37: fatal error: dbus/dbus-glib-lowlevel.h: No > such file or directory > | compilation terminated. > | make[3]: *** [test_loopback-loopback.o] Error 1 > | i586-poky-linux-libtool: link: ccache i586-poky-linux-gcc -m32 > -march=i586 > --sysroot=/home/radu/Documents/Development/yocto/build/tmp/sysroots/qemux86 > -Wall -Wchar-subscripts -Wmissing-declarations > -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align > -Wno-address -Wfloat-equal -Wdeclaration-after-statement > -Wno-unused -Wno-sign-compare -Wno-pointer-sign > -Wno-deprecated-declarations -fno-common -fno-strict-aliasing -O2 > -pipe -g -feliminate-unused-debug-types -Wl,-O1 > -Wl,--hash-style=gnu -Wl,--as-needed -o spawn-test spawn-test.o > ../dbus/.libs/libdbus-internal.a -lpthread -lrt > | corrupt.c:33:37: fatal error: dbus/dbus-glib-lowlevel.h: No such > file or directory > > > You will need dbus-glib. This is the package which provides this > header. This will be a dependency for your case. > > Hope i gave to the right hints. If you need more detailed info just > ping me. > > @g > tried to compile python-dbus already but ended up with the second failure about missing dbus/dbus-glib-lowlevel.h (that's when I started experimenting with --enable-embedded-tests and --enable-modular-tests). Radu --------------090007020209050309080309 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 05/29/2012 12:28 PM, Andrei Gherzan wrote:
On Tue, May 29, 2012 at 12:23 PM, Radu Moisan <radu.moisan@intel.com> wrote:

How do I add something in the dependency chain? With --enable-test dbus fails at do_configure complaining about

| configure: Full test coverage was requested with --enable-tests=yes
| configure: This has many dependencies (GLib, dbus-glib, Python)
| checking for i586-poky-linux-pkg-config... no
| checking for pkg-config... /home/radu/Documents/Development/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/pkg-config
| checking pkg-config is at least version 0.9.0... yes
| checking for GLIB... yes
| checking for DBUS_GLIB... yes
| configure: Full test coverage (--enable-tests=yes) requires Python, dbus-python, pygobject
| checking for a Python interpreter with version >= 2.6... python
| checking for python... /home/radu/Documents/Development/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/python
| checking for python version... 2.7
| checking for python platform... linux2
| checking for python script directory... ${libdir}/python2.7/site-packages
| checking for python extension module directory... ${libdir}/python2.7/site-packages
| checking for Python modules for full test coverage... Traceback (most recent call last):
|   File "<string>", line 1, in <module>
| ImportError: No module named dbus
| no

This says that the configure cannot find the dbus python module. This is created in the python-dbus package. So compile that first.


Radu

Leaving --enable-tests aside for a moment, I'm trying to build dbus with --enable-embedded-tests which is less but still good instead of nothing. However, the build fails at do_compile complaining about dbus/dbus-glib-lowlevel.h missing, although it's there. So I think some variable in Makefile is not pointing correctly, but I cannot find which.

| i586-poky-linux-libtool: link: i586-poky-linux-ar cru .libs/libdbus-testutils.a .libs/test-utils.o
| i586-poky-linux-libtool: link: i586-poky-linux-ranlib .libs/libdbus-testutils.a
| i586-poky-linux-libtool: link: ( cd ".libs" && rm -f "libdbus-testutils.la" && ln -s "../libdbus-testutils.la" "libdbus-testutils.la" )
| dbus-daemon.c:32:37: fatal error: dbus/dbus-glib-lowlevel.h: No such file or directory
| compilation terminated.
| i586-poky-linux-libtool: link: ccache i586-poky-linux-gcc -m32 -march=i586 --sysroot=/home/radu/Documents/Development/yocto/build/tmp/sysroots/qemux86 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wno-address -Wfloat-equal -Wdeclaration-after-statement -Wno-unused -Wno-sign-compare -Wno-pointer-sign -Wno-deprecated-declarations -fno-common -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o test-segfault test-segfault.o
| make[3]: *** [test_dbus_daemon-dbus-daemon.o] Error 1
| make[3]: *** Waiting for unfinished jobs....
| i586-poky-linux-libtool: link: ccache i586-poky-linux-gcc -m32 -march=i586 --sysroot=/home/radu/Documents/Development/yocto/build/tmp/sysroots/qemux86 -Wall -Wchar-subsERROR: Function failed: do_compile (see /home/radu/Documents/Development/yocto/build/tmp/work/i586-poky-linux/dbus-1.4.20-r3.0/temp/log.do_compile.10606 for further information)
| cripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wno-address -Wfloat-equal -Wdeclaration-after-statement -Wno-unused -Wno-sign-compare -Wno-pointer-sign -Wno-deprecated-declarations -fno-common -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o test-exit test-exit.o
| i586-poky-linux-libtool: link: ccache i586-poky-linux-gcc -m32 -march=i586 --sysroot=/home/radu/Documents/Development/yocto/build/tmp/sysroots/qemux86 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wno-address -Wfloat-equal -Wdeclaration-after-statement -Wno-unused -Wno-sign-compare -Wno-pointer-sign -Wno-deprecated-declarations -fno-common -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o test-sleep-forever test-sleep-forever.o
| loopback.c:32:37: fatal error: dbus/dbus-glib-lowlevel.h: No such file or directory
| compilation terminated.
| make[3]: *** [test_loopback-loopback.o] Error 1
| i586-poky-linux-libtool: link: ccache i586-poky-linux-gcc -m32 -march=i586 --sysroot=/home/radu/Documents/Development/yocto/build/tmp/sysroots/qemux86 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wno-address -Wfloat-equal -Wdeclaration-after-statement -Wno-unused -Wno-sign-compare -Wno-pointer-sign -Wno-deprecated-declarations -fno-common -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o spawn-test spawn-test.o  ../dbus/.libs/libdbus-internal.a -lpthread -lrt
| corrupt.c:33:37: fatal error: dbus/dbus-glib-lowlevel.h: No such file or directory

You will need dbus-glib. This is the package which provides this header. This will be a dependency for your case.

Hope i gave to the right hints. If you need more detailed info just ping me.

@g 

tried to compile python-dbus already but ended up with the second failure about missing dbus/dbus-glib-lowlevel.h (that's when I started experimenting with --enable-embedded-tests and --enable-modular-tests).

Radu --------------090007020209050309080309--