Skip to contentSkip to conversation

firefox fails at xpidl: missing glib

DISCUSSION Neil MacMunn 2 participants 4 messages Apr 8, 2011 – Apr 12, 2011

lore
Share & tools
lore
#0 lore raw

I'm trying to bitbake firefox with this configuration.

Quoted 10 lines

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

Quoted 10 lines

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.

Quoted 1 line

-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

#1 lore raw
Quoted 14 lines · Neil MacMunn

I'm trying to bitbake firefox with this configuration.

Quoted 10 lines

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"
Quoted 4 lines

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.

Hi,

copying the headers wild around don't get you further, the right include option is needed. As pkg-config --cflags glib-2.0 returns it. So in the end you need to fix the Makefile.

Bye Henning

#2 lore raw
In reply to Neil MacMunn
Quoted 75 lines · Neil MacMunn

I'm trying to bitbake firefox with this configuration.

Quoted 10 lines

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

Quoted 34 lines

gcc -o host_xpidl.o -c

(quoted diff) +0 -6
-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

(quoted diff) +0 -6
-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

(quoted diff) +0 -6
-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

(quoted diff) +0 -6
-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
Quoted 5 lines

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.

Review

Quoted 5 lines
(quoted diff) +0 -4
-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

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

I manually changed this line

Quoted 1 line

HOST_LIBIDL_CFLAGS =

to

Quoted 1 line

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?

--
Neil

--
Neil

#3 lore raw
Quoted 105 lines · Neil MacMunn
Quoted 95 lines · Neil MacMunn

I'm trying to bitbake firefox with this configuration.

Quoted 10 lines

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

Quoted 50 lines

gcc -o host_xpidl.o -c

(quoted diff) +0 -6
-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

(quoted diff) +0 -6
-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

(quoted diff) +0 -6
-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

(quoted diff) +0 -6
-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
Quoted 5 lines

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.

Review

Quoted 8 lines
(quoted diff) +0 -4
-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

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

I manually changed this line

Quoted 1 line

HOST_LIBIDL_CFLAGS =

to

Quoted 10 lines

Review

Quoted 5 lines

HOST_LIBIDL_CFLAGS = -pthread

(quoted diff) +0 -3
-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

Quoted 2 lines

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.