emerge of sys-devel/flex-2.5.31 fails: ==================================================================== then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\" -I./intl -march=i386 -mtune=pentium4 -fomit-frame-pointer -pipe -MT misc.o -MD -MP -MF ".deps/misc.Tpo" -c -o misc.o misc.c; \ then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"; exit 1; fi main.c: In function `main': main.c:209: error: `LC_MESSAGES' undeclared (first use in this function) main.c:209: error: (Each undeclared identifier is reported only once main.c:209: error: for each function it appears in.) main.c:210: error: `LC_CTYPE' undeclared (first use in this function) make[2]: *** [main.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/flex-2.5.31/work/flex-2.5.31' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/flex-2.5.31/work/flex-2.5.31' make: *** [all] Error 2 !!! ERROR: sys-devel/flex-2.5.31 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile !!! (no error message) ==================================================================== irobot ~ # emerge info Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r2 i686) ================================================================= System uname: 2.6.15-gentoo-r2 i686 Intel(R) Xeon(TM) CPU 2.80GHz Gentoo Base System version 1.12.0_pre15 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.2-r1 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="-march=i386 -mtune=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=i386 -mtune=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://gentoo.ccccom.com" LANG="en_US.utf8" LC_ALL="en_US.utf8" MAKEOPTS="-j3" 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 acl acpi apm bash-completion berkdb bitmap-fonts bzip2 crypt cups eds emboss fortran gdbm gif gstreamer imlib ipv6 ithreads jpeg ldap libg++ libwww mad mikmod mmx mp3 ncurses nls nptl ogg pam pdflib perl png python readline sdl spell sse sse2 ssl tcpd threads truetype-fonts type1-fonts unicode vorbis xml2 zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, LINGUAS
This version doesn't exist in the tree, emerge sync and try 2.5.31-r1
same problem with sys-devel/flex-2.5.31-r1 ================================================== if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\" -I./intl -march=i386 -mtune=pentium4 -fomit-frame-pointer -pipe -MT misc.o -MD -MP -MF ".deps/misc.Tpo" -c -o misc.o misc.c; \ then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"; exit 1; fi main.c: In function `main': main.c:209: error: `LC_MESSAGES' undeclared (first use in this function) main.c:209: error: (Each undeclared identifier is reported only once main.c:209: error: for each function it appears in.) main.c:210: error: `LC_CTYPE' undeclared (first use in this function) make[2]: *** [main.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/flex-2.5.31-r1/work/flex-2.5.31' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/flex-2.5.31-r1/work/flex-2.5.31' make: *** [all] Error 2 !!! ERROR: sys-devel/flex-2.5.31-r1 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile !!! (no error message) ===============================================================
Adding that it will build with "-nls" but not with "nls" Also this is the only system out of 6 that fails this way, all others will build flex fine with "nls", the toochain has been completely rebuilt and system has been completely remerged except for flex with nls - it is the only package that fails.
bug is due to you not using -O1 or better in CFLAGS
Yes, indeed it is. Thought I had -O2 in there all this time :) Server performance has been just fine.
fixed in cvs
*** Bug 122042 has been marked as a duplicate of this bug. ***