Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 117960

Summary: dbus-0.60-r3 fails to emerge with USE="gcj"
Product: Gentoo Linux Reporter: Devils-Hawk <dev>
Component: New packagesAssignee: Project Gentopia <gentopia>
Status: VERIFIED TEST-REQUEST    
Severity: normal CC: abraham, alfredh, cbm, christophe, dopey, fauli, fredrik, holy.smoking.floorboards.batman, kristiaan.lenaerts, luto, maekke, mephinet, michael.kiermaier, notellin, olc, samuel.robyr, schiotz, toto, weeve
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Devils-Hawk 2006-01-05 16:56:06 UTC
Build error when trying to emerge dbus:
gcj -C Message.java -d ../../..
/bin/sh ../../../../libtool --mode=compile i686-pc-linux-gnu-g++ -I../../../.. -I../../../../gcj/org/freedesktop/dbus   -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DDBUS_API_SUBJECT_TO_CHANGE=1  -c -o 'natMessage.lo' 'natMessage.cc'
/bin/sh ../../../../libtool --mode=compile gcj -I../../../.. -I../../../../gcj/org/freedesktop/dbus    -c -o 'Message.lo' 'Message.java'
mkdir .libs
 i686-pc-linux-gnu-g++ -I../../../.. -I../../../../gcj/org/freedesktop/dbus -O3 -march=athlon-xp -pipe -fomit-frame-pointer -DDBUS_API_SUBJECT_TO_CHANGE=1 -c natMessage.cc  -fPIC -DPIC -o .libs/natMessage.o
natMessage.cc:8:21: Message.h: No such file or directory
natMessage.cc:15: error: `org' has not been declared
make[5]: *** [natMessage.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
Comment 1 Brendan Rankin 2006-01-06 14:15:35 UTC
Right....and if you remove that dependency, then the qt bindings fail.
Comment 2 Colin Macdonald 2006-01-06 15:29:24 UTC
I'm seeing this too with gcc 3.4.5.  Emerged ok in dbus-0.60-r2.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2006-01-06 17:52:26 UTC
Brendan: remove what dependancy?

Colin: -r3 originally was identical to -r2, just bumped for a initscript change. Now -r3 is changed to respect the value of gcc-config rather then using the highest versioned gcc by default. Verify with gcc-config -l that you're using gcc 3.4.5 please.
Comment 4 Colin Macdonald 2006-01-06 18:24:25 UTC
Here's the output of gcc-config -l
 [1] i686-pc-linux-gnu-2.95.3
 [2] i686-pc-linux-gnu-3.3.6
 [3] i686-pc-linux-gnu-3.3.6-hardened
 [4] i686-pc-linux-gnu-3.3.6-hardenednopie
 [5] i686-pc-linux-gnu-3.3.6-hardenednopiessp
 [6] i686-pc-linux-gnu-3.3.6-hardenednossp
 [7] i686-pc-linux-gnu-3.4.5 *
 [8] i686-pc-linux-gnu-3.4.5-hardened
 [9] i686-pc-linux-gnu-3.4.5-hardenednopie
 [10] i686-pc-linux-gnu-3.4.5-hardenednopiessp
 [11] i686-pc-linux-gnu-3.4.5-hardenednossp

Could be I'm wrong about -r2 working...
Comment 5 Colin Macdonald 2006-01-06 18:29:55 UTC
Looked through my log files and found the following in 8492-dbus-0.60-r2.log:
/bin/sh ../../../../libtool --mode=compile i686-pc-linux-gnu-g++ -I../../../.. -I../../../../gcj/org/freedesktop/dbus   -march=i686 -O3 -pipe -fomit-frame-pointer -DDBUS_API_SUBJECT_TO_CHANGE=1  -c -o 'natMessage.lo' 'natMessage.cc'
/bin/sh ../../../../libtool --mode=compile gcj -I../../../.. -I../../../../gcj/org/freedesktop/dbus    -c -o 'Message.lo' 'Message.java'
mkdir .libs
 gcj -I../../../.. -I../../../../gcj/org/freedesktop/dbus -c Message.java  -fPIC -o .libs/Message.o
 gcj -I../../../.. -I../../../../gcj/org/freedesktop/dbus -c Message.java -o Message.o >/dev/null 2>&1
 i686-pc-linux-gnu-g++ -I../../../.. -I../../../../gcj/org/freedesktop/dbus -march=i686 -O3 -pipe -fomit-frame-pointer -DDBUS_API_SUBJECT_TO_CHANGE=1 -c natMessage.cc  -fPIC -DPIC -o .libs/natMessage.o
gcjh Message
 i686-pc-linux-gnu-g++ -I../../../.. -I../../../../gcj/org/freedesktop/dbus -march=i686 -O3 -pipe -fomit-frame-pointer -DDBUS_API_SUBJECT_TO_CHANGE=1 -c natMessage.cc -o natMessage.o >/dev/null 2>&1
/bin/sh ../../../../libtool --tag=GCJ --mode=link gcj -L   -o libdbus-gcj-1.la -rpath /usr/lib -no-undefined  natMessage.lo Message.lo -lnsl
gcj -shared  .libs/natMessage.o .libs/Message.o  -L/var/tmp/portage/dbus-0.60-r2/work/dbus-0.60/gcj/org/freedesktop/dbus -lnsl
-Wl,-soname -Wl,libdbus-gcj-1.so.0 -o .libs/libdbus-gcj-1.so.0.0.0
(cd .libs && rm -f libdbus-gcj-1.so.0 && ln -s libdbus-gcj-1.so.0.0.0 libdbus-gcj-1.so.0)
(cd .libs && rm -f libdbus-gcj-1.so && ln -s libdbus-gcj-1.so.0.0.0 libdbus-gcj-1.so)
i686-pc-linux-gnu-ar cru .libs/libdbus-gcj-1.a  natMessage.o Message.o
i686-pc-linux-gnu-ranlib .libs/libdbus-gcj-1.a
creating libdbus-gcj-1.la

So it did indeed work with -r2 and gcj.
Comment 6 Guy 2006-01-06 20:49:10 UTC
Ditto on AMD64
Comment 7 Brendan Rankin 2006-01-06 22:40:00 UTC
Sorry for being unclear.  If you emerge with USE="-gcj -qt", the latest version of dbus will emerge, but (for me anyway) all other attempts fail.  I'm trying to compile this using

gcc-3.4.5 and qt-4.1.0-r1

Here's what 'emerge info' returns:
Portage 2.1_pre3-r1 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.14-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.12.0_pre13
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.2.3-r5, 2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://ftp.ndlug.nd.edu/pub/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.seren.com/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo ftp://gentoo.chem.wisc.edu/gentoo/ ftp://130.207.108.135/pub/gentoo ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aalib acl alsa amd64 apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cdr crypt cups curl db dba dvd dvdread eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gcj gd gd-external gdbm gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile idn imagemagick imlib ipv6 java jpeg junit kde lcms ldap libwww lua lzw lzw-tiff mad mhash mikmod mng motif mozilla mp3 mpeg mplayer-bin mysql nas ncurses nls nptl nptlonly objc ogg openal opengl pam pcre pda pdflib perl php png postgres ppds python qt quicktime readline recode ruby samba sdl slang spell sqlite ssl svg tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb userlocales vorbis xfce4 xml xml2 xmms xpm xv xvid zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2006-01-07 08:24:02 UTC
qt issues go in another bug, and since we don't build QT4 bindings, I'm more interested what QT3 version you have. specificially bug #116582
Comment 9 Ana Andrés 2006-01-07 10:22:36 UTC
This bug is still here:

 i686-pc-linux-gnu-g++ -I../../../.. -I../../../../gcj/org/freedesktop/dbus -O2 -march=pentium4 -pipe -fomit-frame-pointer -DDBUS_API_SUBJECT_TO_CHANGE=1 -c natMessage.cc  -fPIC -DPIC -o .libs/natMessage.o
natMessage.cc:8:21: Message.h: No such file or directory
 gcj -I../../../.. -I../../../../gcj/org/freedesktop/dbus -c Message.java  -fPIC -o .libs/Message.o
 gcj -I../../../.. -I../../../../gcj/org/freedesktop/dbus -c Message.java -o Message.o >/dev/null 2>&1
gcjh Message
natMessage.cc:15: error: `org' has not been declared
make[5]: *** [natMessage.lo] Error 1
make[5]: Leaving directory `/var/tmp/portage/dbus-0.60-r3/work/dbus-0.60/gcj/org/freedesktop/dbus'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/dbus-0.60-r3/work/dbus-0.60/gcj/org/freedesktop'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dbus-0.60-r3/work/dbus-0.60/gcj/org'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dbus-0.60-r3/work/dbus-0.60/gcj'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dbus-0.60-r3/work/dbus-0.60'
make: *** [all] Error 2

!!! ERROR: sys-apps/dbus-0.60-r3 failed.
!!! Function src_compile, Line 106, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.

my emerge --info:

Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.14-gentoo-r6 i686)
=================================================================
System uname: 2.6.14-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.0_pre13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/hda2/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/  ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/  http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/  ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/  http://pandemonium.tiscali.de/pub/gentoo/  ftp://pandemonium.tiscali.de/pub/gentoo/  http://ftp.caliu.info/pub/gentoo/ ftp://ftp.caliu.info/pub/gentoo/ "
LANG="es_ES@euro"
LC_ALL="es_ES@euro"
LINGUAS="es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acl acpi alsa apm arts asf audiofile avi bash-completion berkdb bitmap-fonts bmp bonobo bzip2 cairo cdparanoia cdr crypt cups curl dbus dga doc dri dts dvb dvd dvdr eds emboss encode esd evo exif expat fam fbsplash ffmpeg flac fontconfig foomaticdb fortran ftp gcj gd gdbm ggi ghkhtml gif gimp glitz glut gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 hal howl idn ieee1394 imagemagick imlib ipv6 java javascript jikes joystick jpeg kde lcms ldap libg++ libwww lm_sensors mad mikmod mmx mng motif mozilla mp3 mpeg msn ncurses nls nptl nsplugin objc ogg oggvorbis openal opengl oss pam pcmcia pcre pdflib perl png ppds pwdb python qt quicktime readline ruby samba scanner sdl sharedmem slp spell sse sse2 ssl svg tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb vcd verbose videos vorbis win32codecs wmf xface xine xinerama xml xml2 xmms xpm xprint xv xvid xvmc zlib elibc_glibc kernel_linux linguas_es userland_GNU video_cards_radeon"
Unset:  ASFLAGS, CTARGET, LDFLAGS


Comment 10 Ole Craig 2006-01-12 10:12:16 UTC
The problem is due to a missing -I option in one of the makefiles, or perhaps to an updated OpenJade package. Dbus wants /usr/include/OpenSP/Message.h but can't find it; workaround by emerging with 

CXXFLAGS="-I/usr/include/OpenSP" emerge dbus

did it for me.
Comment 11 Ole Craig 2006-01-12 10:30:00 UTC
Sorry, make that "opensp" rather than OpenJade. (Duh.) 

too many packages, not enough braincells^Wcoffee...
Comment 12 Berthold Humkamp 2006-01-13 10:43:00 UTC
(In reply to comments #10 and #11)
The problem is due to a missing -I option in one of the makefiles, or perhaps
to an updated OpenJade package. Dbus wants /usr/include/OpenSP/Message.h but
can't find it; workaround by emerging with 

CXXFLAGS="-I/usr/include/OpenSP" emerge dbus

did it for me.

> Sorry, make that "opensp" rather than OpenJade. (Duh.) 
> too many packages, not enough braincells^Wcoffee...

Hi all,
I jumped on exactly the same error (missing message.h) during

emerge --update --deep world

I tried your solution (first with both OpenSP and then with OpenJade, just because my English isn't so good), but the emerge ends with the same error.

Any other idea?

Thanks,
Berthold 
Comment 13 Ole Craig 2006-01-14 11:00:23 UTC
Well, does /usr/include/OpenSP contain a Message.h on your system? The reason that worked for me is that it rectified this problem:

[...]
i686-pc-linux-gnu-g++ -I../../../.. -I../../../../gcj/org/freedesktop/dbus -O2
-march=pentium4 -pipe -fomit-frame-pointer -DDBUS_API_SUBJECT_TO_CHANGE=1 -c
natMessage.cc  -fPIC -DPIC -o .libs/natMessage.o
natMessage.cc:8:21: Message.h: No such file or directory

(line 8 of natMessage.cc is 
       #include <Message.h>;
...which is why putting OpenSP in the include path worked for me.)

You might also try this:
export CXXFLAGS="-I/usr/include/OpenSP/"
emerge dbus
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-01-18 01:08:01 UTC
*** Bug 119369 has been marked as a duplicate of this bug. ***
Comment 15 Greisberger Christophe 2006-01-19 10:34:02 UTC
Sorry, this workaround doesn't work for me. I have following error:
(I use gcc 3.4.4)

 i686-pc-linux-gnu-g++ -I../../../.. -I../../../../gcj/org/freedesktop/dbus -I/usr/include/OpenSP -DDBUS_API_SUBJECT_TO_CHANGE=1 -c natMessage.cc  -fPIC -DPIC -o .libs/natMessage.o
 gcj -I../../../.. -I../../../../gcj/org/freedesktop/dbus -c Message.java  -fPIC -o .libs/Message.o
 gcj -I../../../.. -I../../../../gcj/org/freedesktop/dbus -c Message.java -o Message.o >/dev/null 2>&1
In file included from /usr/include/OpenSP/Location.h:11,
                 from /usr/include/OpenSP/Message.h:12,
                 from natMessage.cc:8:
/usr/include/OpenSP/Boolean.h:33: error: redeclaration of C++ built-in type `bool'
gcjh Message
/usr/include/OpenSP/Boolean.h:35: error: expected unqualified-id before "true"
/usr/include/OpenSP/Boolean.h:35: error: expected `,' or `;' before "true"
/usr/include/OpenSP/Boolean.h:36: error: expected unqualified-id before "false"
/usr/include/OpenSP/Boolean.h:36: error: expected `,' or `;' before "false"
Comment 16 Andy Lutomirski 2006-01-20 09:39:49 UTC
(In reply to comment #10)
> The problem is due to a missing -I option in one of the makefiles, or perhaps
> to an updated OpenJade package. Dbus wants /usr/include/OpenSP/Message.h but
> can't find it; workaround by emerging with 
> 
> CXXFLAGS="-I/usr/include/OpenSP" emerge dbus
> 

Nope.  Now I get:

In file included from /usr/include/OpenSP/Location.h:11,
                 from /usr/include/OpenSP/Message.h:12,
                 from natMessage.cc:8:
/usr/include/OpenSP/Boolean.h:33: error: redeclaration of C++ built-in type `bool'
/usr/include/OpenSP/Boolean.h:35: error: expected unqualified-id before "true"
/usr/include/OpenSP/Boolean.h:35: error: expected `,' or `;' before "true"
/usr/include/OpenSP/Boolean.h:36: error: expected unqualified-id before "false"
/usr/include/OpenSP/Boolean.h:36: error: expected `,' or `;' before "false"
In file included from /usr/include/OpenSP/Location.h:13,
                 from /usr/include/OpenSP/Message.h:12,
                 from natMessage.cc:8:
/usr/include/OpenSP/Resource.h:11: error: invalid function declaration
/usr/include/OpenSP/Resource.h:23: error: `Resource' has not been declared
... and many more ...

# gcc-config -l
 [1] x86_64-pc-linux-gnu-3.4.4 *
 [2] x86_64-pc-linux-gnu-3.4.4-hardened
 [3] x86_64-pc-linux-gnu-3.4.4-hardenednopie
 [4] x86_64-pc-linux-gnu-3.4.4-hardenednopiessp
 [5] x86_64-pc-linux-gnu-3.4.4-hardenednossp
 [6] x86_64-pc-linux-gnu-4.0.2

I have opensp-1.5.1, qt-4.1.0, and qt-3.3.4.

Portage 2.0.53 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/boot/grub:/usr/lib/perl5/vendor_perl/5.8.4/Netcomics/etc /etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org"
MAKEOPTS="-j2"
PKGDIR="/var/tmp/safe/portage-pkg"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib acl alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts boo bzip2 cairo cdr crypt cups curl dvd eds emboss encode esd ethereal exif expat f77 fam ffmpeg flac foomaticdb fortran gcj gd gdbm gif glitz glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml idn imagemagick imlib ipv6 ithreads java jpeg kde kerberos krb4 lcms libedit libwww lzw lzw-tiff mad mhash mikmod mng mono mozilla mozsvg mp3 mpeg mysql ncurses network nls nptl nsplugin ogg opengl pam pcre pdflib perl png postgres python qt quicktime readline samba sasl sdl slang snmp spell sqlite ssl svg tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts udev usb userlocales v4l2 vhosts vorbis xine xml xml2 xmms xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 17 Christian Faulhammer (RETIRED) gentoo-dev 2006-01-23 03:04:01 UTC
In reply to comment #16)
I can confirm the errors, the CXXFLAGS with the additional -I did not help.  Disabling Java via USE="-gcj" and the additional CXXFLAGS did help


Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 acpi alsa apm artworkextra asf audiofile avi bash-completion berkdb bidi bitmap-fonts bootsplash bzip2 cairo cdda cddb cdparanoia cdr cracklib crypt css cups curl custom-cflags dbus dga directfb divx4linux doc dts dvd dvdr dvdread dvi eds emacs emboss encode esd exif expat fam fbcon fdftk ffmpeg firefox flac foomaticdb fortran ftp gb gcj gd gdbm gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl icq idn imagemagick imap imlib ipv6 java javascript jikes jpeg junit lcms ldap leim libg++ libwww mad maildir matroska mbox mikmod mime mmx mmxext mng mono motif mp3 mpeg mpeg2 mule nautilus ncurses nls nocardbus nptl nptlonly ogg oggvorbis opengl pam pcre pdflib perl plotutils png ppds preview-latex print python qt quicktime readline recode samba sdk slang spell sse ssl svg svga t1lib tcltk tcpd theora thunderbird tiff truetype truetype-fonts type1-fonts udev usb vcd videos vorbis win32codecs wmf wxwindows xine xinerama xml xml2 xmms xosd xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS

 [1] i686-pc-linux-gnu-3.3.6 *
 [2] i686-pc-linux-gnu-3.3.6-hardened
 [3] i686-pc-linux-gnu-3.3.6-hardenednopie
 [4] i686-pc-linux-gnu-3.3.6-hardenednopiessp
 [5] i686-pc-linux-gnu-3.3.6-hardenednossp
 [6] i686-pc-linux-gnu-3.4.4
 [7] i686-pc-linux-gnu-3.4.4-hardened
 [8] i686-pc-linux-gnu-3.4.4-hardenednopie
 [9] i686-pc-linux-gnu-3.4.4-hardenednopiessp
 [10] i686-pc-linux-gnu-3.4.4-hardenednossp

Comment 18 Fredrik Tolf 2006-01-23 12:04:10 UTC
It seems to be a problem with parellel compiling. It seems that everyone who has reported this bug uses at least MAKEOPTS=-j2, including me, and I got the same error.

I tried the following workaround, which worked for me: I stopped emerge (with Ctrl+S) after the configure was done, went into the gcj/org/freedesktop/dbus directory and ran make manually (implying -j1, never tried parallel compiling to make it break). I then resumed emerge and everything worked dandy.
Comment 19 toto 2006-01-23 13:00:17 UTC
Xm,
If set MAKEOPTS="-j1" it's realy works.
Comment 20 Colin Macdonald 2006-01-23 13:09:58 UTC
-j1 fixes it for me too.
Comment 21 Christian Faulhammer (RETIRED) gentoo-dev 2006-01-24 05:29:43 UTC
Confirmation!  With -j1 it works without leaving gcj out or using additional CXXFLAGS...
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2006-01-26 02:27:35 UTC
*** Bug 120393 has been marked as a duplicate of this bug. ***
Comment 23 Kristiaan Lenaerts 2006-01-26 02:29:28 UTC
(In reply to comment #22)
> *** Bug 120393 has been marked as a duplicate of this bug. ***
> 

not a duplicate, Bug 120393 is a problem with gcc 4.* and USE="gcj"...
Comment 24 alfredtaipei 2006-01-26 05:19:13 UTC
Set MAKEOPTS="-j1" me can work too, but we use "-j1" always or can chage back to "-j2" at next version?
Comment 25 Greisberger Christophe 2006-01-28 16:36:26 UTC
Well, I can also confirm -j1
Comment 26 Jakub Moc (RETIRED) gentoo-dev 2006-01-31 00:00:18 UTC
*** Bug 120990 has been marked as a duplicate of this bug. ***
Comment 27 Jon 2006-01-31 06:30:56 UTC
I can give a big 'thumbs up' this solution as well. I simply ran it as 'MAKEOPTS="-j1" emerge dbus' and it worked. Now to see if updating my world will also be solved (since this was my original problem) Thanks all :)
Comment 28 Jason Wever (RETIRED) gentoo-dev 2006-01-31 07:42:30 UTC
MAKEOPTS does not work for me on amd64.
Comment 29 Doug Goldstein (RETIRED) gentoo-dev 2006-02-01 07:41:59 UTC
Please test with dbus-0.60-r4
Comment 30 Colin Macdonald 2006-02-01 17:29:29 UTC
dbus-0.60-r4 works for me on ~x86
Comment 31 Guy 2006-02-01 19:49:54 UTC
(In reply to comment #29)
> Please test with dbus-0.60-r4
> 

Works for me on ~amd64

Thank you very, very much. :-D
Comment 32 Christian Faulhammer (RETIRED) gentoo-dev 2006-02-04 02:14:14 UTC
x86, no problems anymore, thanks.
Comment 33 Mike DeSimone 2006-02-07 06:20:08 UTC
Same problem, MAKEOPTS solved it.  Looking at the compiling going by (and ignoring the mountain of warnings), it seems like the build process is simply incompatible with -j2 or greater.  If there is a way to force -j1 for this package, that would be the best solution.
Comment 34 Doug Goldstein (RETIRED) gentoo-dev 2006-02-07 08:54:06 UTC
Use dbus-0.60-r4...
Comment 35 Jakub Moc (RETIRED) gentoo-dev 2006-02-09 02:02:28 UTC
*** Bug 122219 has been marked as a duplicate of this bug. ***
Comment 36 Jakub Moc (RETIRED) gentoo-dev 2006-02-09 04:16:59 UTC
*** Bug 122237 has been marked as a duplicate of this bug. ***