cross compile dbus

yoma sophian sophian.yoma at
Wed Mar 16 00:36:00 PDT 2011

Hi all:
i try to cross compile dbus for mips.
i google the same topic,
and follow th instructions it mentioned.
but it is still fail during compile.

below is my configure setting:
./configure --prefix=/media/sdb1/software/dbus/dbus-1.4.0.mips/build
CC=mipsel-linux-gnu-gcc --disable-x11

below is the error:
make[2]: Entering directory `/media/sdb1/software/dbus/dbus-1.4.0.mips/tools'
mipsel-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I..  -I/usr/include
-ffunction-sections -fdata-sections -g -O2 -Wall -Wchar-subscripts
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wcast-align -Wdeclaration-after-statement -fno-common
-Wno-unused -Wno-sign-compare -Wno-pointer-sign -fno-strict-aliasing
-MT dbus-launch.o -MD -MP -MF .deps/dbus-launch.Tpo -c -o
dbus-launch.o dbus-launch.c
cc1: warning: include location "/usr/include" is unsafe for cross-compilation
dbus-launch.c: In function 'kill_bus_when_session_ends':
dbus-launch.c:507: error: impossible constraint in 'asm'
dbus-launch.c:508: error: impossible constraint in 'asm'
dbus-launch.c:513: error: impossible constraint in 'asm'
dbus-launch.c:537: error: impossible constraint in 'asm'
dbus-launch.c:478: error: can't find a register in class 'COP3_REGS'
while reloading 'asm'
dbus-launch.c:479: error: can't find a register in class 'COP3_REGS'
while reloading 'asm'
dbus-launch.c:478: error: 'asm' operand has impossible constraints
dbus-launch.c:479: error: 'asm' operand has impossible constraints
make[2]: *** [dbus-launch.o] Error 1
make[2]: Leaving directory `/media/sdb1/software/dbus/dbus-1.4.0.mips/tools'
make[1]: *** [all-recursive] Error 1

I have some questions about above error:
1. why it will try to include "/usr/include" even I give another CPPFLAGS.
2. the error comes from it try to compile something related to x11,
but I have disable it in configure. Did I use the wrong way?
3. why dbus need x11?

Thank you.

More information about the dbus mailing list