make[8]: Entering directory `/usr/local/portage/portage/ORBit2-2.8.2/work/ORBit2-2.8.2/include/orbit/orb-core' (rm -f corba-defs.h corba-defs-stubs.c corba-defs-skels.c corba-defs-common.c corba-defs-imodule.c corba-defs-skelimpl.c || true) > /dev/null ../../../src/idl-compiler/orbit-idl-2 -I../../../src/idl/CORBA_PIDL -I../../../src/idl/CORBA -I../../../src/idl/interop --noskels --nodefskels --nostubs --noidata --nocommon --showcpperrors --define=Object=OObject --define=TypeCode=TTypeCode --deps ./.deps/corba-defs.idl.P ../../../src/orb/orb-core/corba-defs.idl orbit-idl-2 2.8.2 compiling mode, show preprocessor errors, passes: headers skel_impl imodule Error: parse error, unexpected $undefined. ** (process:16995): WARNING **: ../../../src/orb/orb-core/corba-defs.idl compilation failed make[8]: *** [corba-defs.h] Error 1 make[8]: Leaving directory `/usr/local/portage/portage/ORBit2-2.8.2/work/ORBit2-2.8.2/include/orbit/orb-core' make[7]: *** [all-recursive] Error 1 make[7]: Leaving directory `/usr/local/portage/portage/ORBit2-2.8.2/work/ORBit2-2.8.2/include/orbit' make[6]: *** [all] Error 2 make[6]: Leaving directory `/usr/local/portage/portage/ORBit2-2.8.2/work/ORBit2-2.8.2/include/orbit' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/usr/local/portage/portage/ORBit2-2.8.2/work/ORBit2-2.8.2/include' make[4]: *** [all] Error 2 make[4]: Leaving directory `/usr/local/portage/portage/ORBit2-2.8.2/work/ORBit2-2.8.2/src/orb/include' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/portage/portage/ORBit2-2.8.2/work/ORBit2-2.8.2/src/orb' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/portage/portage/ORBit2-2.8.2/work/ORBit2-2.8.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/portage/portage/ORBit2-2.8.2/work/ORBit2-2.8.2' make: *** [all] Error 2 !!! ERROR: gnome-base/ORBit2-2.8.2 failed. !!! Function gnome2_src_compile, Line 39, Exitcode 2 !!! compile failure FWIW gnome-base/gnome-panel-2.4.0-r2 fails for me in exactly the same manner. Reproducible: Always Steps to Reproduce: 1. 2. 3. please root # emerge info Portage 2.0.49-r10 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r3, 2.4.22-ck2) ================================================================= System uname: 2.4.22-ck2 i686 AMD Athlon(tm) MP 2000+ Gentoo Base System version 1.4.3.10p1 ccache version 2.3 [disabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-mp -O2 -ftracer -ffast-math -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/local/portage/distfiles" FEATURES="sandbox autoaddcvs fixpackages" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/local/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/ebuilds" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm cups foomaticdb mad mikmod nls xml2 gdbm slang bonobo ruby libwww motif cdr X 3dnow mmx directfb sse dga opengl xv fbcon kde qt qtmt arts tcltk aalib imlib ncurses readline sdl svga lcms gif jpeg png tiff gd avi mpeg quicktime esd gtk gtk2 -gnome alsa ggi dvd xmms oggvorbis encode pam ssl crypt tcpd mozilla spell truetype xml pdflib plotutils tetex guile perl python libg++ atlas pic berkdb mysql postgres odbc samba gpm zlib java ppds threads"
and if you go with more conservative CFLAGS ?
CFLAGS="-pipe" results in the exact same behaviour. Also, add gnome-base/libbonobo-2.4.1 (and I assume pretty much assume that requires the orbit idl compiler) to the list of things that won't build for me with the same "Error: parse error, unexpected $undefined." from orbit-idl-2
it might just as well be a lower level lib that is giving the trouble with CFLAGS. The error seems to be coming from bison, what version are you using ? Try updating it to the latest in portage.
Re-emerging libIDL with CFLAGS="-pipe" seems to solve the problem. Afterwards, all packages I mentioned build fine, with my original CFLAGS restored. If I have time I will try and track down which of "-O2 -ftracer -omit-frame-pointer --fast-math" was the offending flag in libIDL.
i suspect -ftracer, the others are more common used i estimate.
closing as INVALID due to rare optimizations bug.