[oe] firefox fails at xpidl: missing glib

Neil MacMunn neil at gumstix.com
Tue Apr 12 00:43:03 UTC 2011


On 11-04-08 02:22 PM, Neil MacMunn wrote:
> On 11-04-08 11:23 AM, Neil MacMunn wrote:
>> I'm trying to bitbake firefox with this configuration.
>>
>>> Build Configuration:
>>> BB_VERSION = "1.12.0"
>>> METADATA_BRANCH = "unstable"
>>> METADATA_REVISION = "219f1e9"
>>> TARGET_ARCH = "arm"
>>> TARGET_OS = "linux-gnueabi"
>>> MACHINE = "overo"
>>> DISTRO = "angstrom"
>>> DISTRO_VERSION = "v20110408"
>>> TARGET_FPU = "hard"
>>
>> But it fails in the directory
>> ...work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/xpcom/typelib/xpidl
>>
>>
>>
>>> gcc -o host_xpidl.o -c
>>> -isystem/home/neil/overo-oe/tmp-unstable/sysroots/x86_64-linux/usr/include
>>>
>>> -O2 -g -DXP_UNIX -O3 -DMDCPUCFG=\"md/_linux.cfg\" -I. -I.
>>> -I../../../dist/include -I../../../dist/include/nsprpub
>>> -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nspr
>>>
>>> -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nss
>>>
>>> -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nspr
>>>
>>> xpidl.c
>>> xpidl_idl.c
>>> gcc -o host_xpidl_idl.o -c
>>> -isystem/home/neil/overo-oe/tmp-unstable/sysroots/x86_64-linux/usr/include
>>>
>>> -O2 -g -DXP_UNIX -O3 -DMDCPUCFG=\"md/_linux.cfg\" -I. -I.
>>> -I../../../dist/include -I../../../dist/include/nsprpub
>>> -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nspr
>>>
>>> -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nss
>>>
>>> -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nspr
>>>
>>> xpidl_idl.c
>>> xpidl_util.c
>>> gcc -o host_xpidl_util.o -c
>>> -isystem/home/neil/overo-oe/tmp-unstable/sysroots/x86_64-linux/usr/include
>>>
>>> -O2 -g -DXP_UNIX -O3 -DMDCPUCFG=\"md/_linux.cfg\" -I. -I.
>>> -I../../../dist/include -I../../../dist/include/nsprpub
>>> -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nspr
>>>
>>> -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nss
>>>
>>> -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nspr
>>>
>>> xpidl_util.c
>>> xpidl_header.c
>>> gcc -o host_xpidl_header.o -c
>>> -isystem/home/neil/overo-oe/tmp-unstable/sysroots/x86_64-linux/usr/include
>>>
>>> -O2 -g -DXP_UNIX -O3 -DMDCPUCFG=\"md/_linux.cfg\" -I. -I.
>>> -I../../../dist/include -I../../../dist/include/nsprpub
>>> -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nspr
>>>
>>> -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nss
>>>
>>> -I/home/neil/overo-oe/tmp-unstable/work/armv7a-angstrom-linux-gnueabi/firefox-3.6.8-r3/mozilla-1.9.2/dist/include/nspr
>>>
>>> xpidl_header.c
>>> In file included from xpidl.c:42:
>>> xpidl.h:49: fatal error: glib.h: No such file or directoryIn file
>>> included from xpidl_util.c:42:
>>> xpidl.h:49: fatal error: glib.h: No such file or directory
>>
>> cp sysroots/x86_64-linux/usr/include/glib-2.0/glib.h
>> sysroots/x86_64-linux/usr/include/ got me to another missing header
>> error. Comparing the log of my last successful build, this is missing.
>>
>>> -pthread
>>> -I/home/neil/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/libIDL-2.0
>>>
>>> -I/home/neil/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/glib-2.0
>>>
>>> -I/home/neil/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/glib-2.0/include
>>>
>>>
>>
>> What would cause these includes to be omitted?
>>
>> --
>> Neil
>>
>>
>>
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel at lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
> I manually changed this line
>
>> HOST_LIBIDL_CFLAGS =
> to
>> HOST_LIBIDL_CFLAGS = -pthread
>> -I/home/neil/overo-oe/tmp-overo/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/libIDL-2.0
>> -I/home/neil/overo-oe/tmp-overo/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/glib-2.0
>> -I/home/neil/overo-oe/tmp-overo/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/glib-2.0/include
>>
>
> in autoconf.mk and the compile succeeded. autoconf.mk.in hasn't changed
> since my previous successful build. This is a clean build so maybe
> libIDL was missing?
>


I hit this problem again on another machine and found that
>
> HOST_LIBIDL_LIBS   = -pthread -lIDL-2 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0

also needs to be added and building libIDL first doesn't change anything.









More information about the Openembedded-devel mailing list