"emerge monotone" fails with a compiler error: ----------------------------------------------------------------------------- In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4/i686-pc-linux-gnu/bits/messages_members.h:42, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4/bits/locale_facets_nonio.h:1910, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4/locale:48, from /usr/include/boost/format.hpp:23, from sanity.cc:18: /usr/include/libintl.h:40: error: expected unqualified-id before 'const' /usr/include/libintl.h:40: error: expected `)' before 'const' /usr/include/libintl.h:40: error: expected `)' before 'const' /usr/include/libintl.h:40: error: expected initializer before 'const' /usr/include/libintl.h:45: error: expected unqualified-id before 'const' /usr/include/libintl.h:45: error: expected `)' before 'const' /usr/include/libintl.h:45: error: expected `)' before 'const' /usr/include/libintl.h:45: error: expected initializer before 'const' /usr/include/libintl.h:52: error: expected unqualified-id before 'const' /usr/include/libintl.h:52: error: expected `)' before 'const' /usr/include/libintl.h:52: error: expected `)' before 'const' /usr/include/libintl.h:52: error: expected initializer before 'const' /usr/include/libintl.h:62: error: expected unqualified-id before 'unsigned' /usr/include/libintl.h:62: error: expected `)' before 'unsigned' /usr/include/libintl.h:62: error: expected `)' before 'unsigned' /usr/include/libintl.h:62: error: expected initializer before 'unsigned' /usr/include/libintl.h:68: error: expected unqualified-id before 'unsigned' /usr/include/libintl.h:68: error: expected `)' before 'unsigned' /usr/include/libintl.h:68: error: expected `)' before 'unsigned' /usr/include/libintl.h:68: error: expected initializer before 'unsigned' /usr/include/libintl.h:74: error: expected unqualified-id before 'unsigned' /usr/include/libintl.h:74: error: expected `)' before 'unsigned' /usr/include/libintl.h:74: error: expected `)' before 'unsigned' /usr/include/libintl.h:74: error: expected initializer before 'unsigned' /usr/include/libintl.h:83: error: expected unqualified-id before 'const' /usr/include/libintl.h:83: error: expected `)' before 'const' /usr/include/libintl.h:83: error: expected `)' before 'const' /usr/include/libintl.h:83: error: expected initializer before 'const' /usr/include/libintl.h:87: error: expected unqualified-id before 'const' /usr/include/libintl.h:87: error: expected `)' before 'const' /usr/include/libintl.h:87: error: expected `)' before 'const' /usr/include/libintl.h:87: error: expected initializer before 'const' /usr/include/libintl.h:92: error: expected unqualified-id before 'const' /usr/include/libintl.h:92: error: expected `)' before 'const' /usr/include/libintl.h:92: error: expected `)' before 'const' /usr/include/libintl.h:92: error: expected initializer before 'const' if i686-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I. -I./lua -O2 -march=k8 -pipe -ggdb -fno-stack-protector -fno-strict-aliasing -fno-omit-frame-pointer -Wall -W -Wno-unused -fno-strict-aliasing -MT mtn-charset.o -MD -MP -MF ".deps/mtn-charset.Tpo" -c -o mtn-charset.o `test -f 'charset.cc' || echo './'`charset.cc; \ then mv -f ".deps/mtn-charset.Tpo" ".deps/mtn-charset.Po"; else rm -f ".deps/mtn-charset.Tpo"; exit 1; fi make[2]: *** [mtn-sanity.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/dev-util/monotone-0.40/work/monotone-0.40' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-util/monotone-0.40/work/monotone-0.40' make: *** [all] Error 2 ----------------------------------------------------------------------------- emerge --info: ----------------------------------------------------------------------------- Portage 2.2_rc9 (default-linux/x86/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24-gentoo-r8 i686) ================================================================= System uname: Linux-2.6.24-gentoo-r8-i686-AMD_Athlon-tm-_64_X2_Dual-Core_Processor_TK-53-with-glibc2.0 Timestamp of tree: Tue, 23 Sep 2008 17:04:02 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.26 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe -ggdb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=k8 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,--as-needed -Wl,-O1" LINGUAS="en_US" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl acpi alsa asf avi bash-completion berkdb cairo cdr cdrom cli cracklib crypt cups dbus dri dts dvd dvdr dvdread ffmpeg fortran gdbm gpm iconv imlib isdnlog ithreads javascript jpeg kdehiddenvisibility kdrive midi mmx mmxext mozdevelop mp3 mpeg mudflap nptl nptlonly nsplugin ogg opengl openmp pam pcmcia pcre pdf perl png pppd python quicktime readline real reflection sdk sdl session spell spl sse sse2 ssl tcpd tetex threads unicode userlocales webdav win32codecs x86 xcomposite xinerama xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="fglrx radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Reproducible: Always
Don't mix architectures, please: CFLAGS="-O2 -march=k8 -pipe -ggdb" CHOST="i686-pc-linux-gnu" Your system is an i686 configured OS, which is 32-bit. The CFLAGS you have there target a k8, which might be what you have but what GCC developers determine to be a 64-bit OS.
I've had that in there for more than a year, and it's never caused a problem. At any rate, I get more or less the same error with -march=athlon-xp -msse2: -------------------------------------------------------------------------------- In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4/i686-pc-linux-gnu/bits/messages_members.h:43, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4/bits/locale_facets_nonio.h:1911, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4/locale:49, from /usr/include/boost/format.hpp:24, from sanity.cc:19: /usr/include/libintl.h:40: error: expected unqualified-id before 'const' /usr/include/libintl.h:40: error: expected `)' before 'const' /usr/include/libintl.h:40: error: expected `)' before 'const' /usr/include/libintl.h:40: error: expected initializer before 'const' /usr/include/libintl.h:45: error: expected unqualified-id before 'const' /usr/include/libintl.h:45: error: expected `)' before 'const' /usr/include/libintl.h:45: error: expected `)' before 'const' /usr/include/libintl.h:45: error: expected initializer before 'const' /usr/include/libintl.h:52: error: expected unqualified-id before 'const' /usr/include/libintl.h:52: error: expected `)' before 'const' /usr/include/libintl.h:52: error: expected `)' before 'const' /usr/include/libintl.h:52: error: expected initializer before 'const' /usr/include/libintl.h:62: error: expected unqualified-id before 'unsigned' /usr/include/libintl.h:62: error: expected `)' before 'unsigned' /usr/include/libintl.h:62: error: expected `)' before 'unsigned' /usr/include/libintl.h:62: error: expected initializer before 'unsigned' /usr/include/libintl.h:68: error: expected unqualified-id before 'unsigned' /usr/include/libintl.h:68: error: expected `)' before 'unsigned' /usr/include/libintl.h:68: error: expected `)' before 'unsigned' /usr/include/libintl.h:68: error: expected initializer before 'unsigned' /usr/include/libintl.h:74: error: expected unqualified-id before 'unsigned' /usr/include/libintl.h:74: error: expected `)' before 'unsigned' /usr/include/libintl.h:74: error: expected `)' before 'unsigned' /usr/include/libintl.h:74: error: expected initializer before 'unsigned' /usr/include/libintl.h:83: error: expected unqualified-id before 'const' /usr/include/libintl.h:83: error: expected `)' before 'const' /usr/include/libintl.h:83: error: expected `)' before 'const' /usr/include/libintl.h:83: error: expected initializer before 'const' /usr/include/libintl.h:87: error: expected unqualified-id before 'const' /usr/include/libintl.h:87: error: expected `)' before 'const' /usr/include/libintl.h:87: error: expected `)' before 'const' /usr/include/libintl.h:87: error: expected initializer before 'const' /usr/include/libintl.h:92: error: expected unqualified-id before 'const' /usr/include/libintl.h:92: error: expected `)' before 'const' /usr/include/libintl.h:92: error: expected `)' before 'const' /usr/include/libintl.h:92: error: expected initializer before 'const' make[2]: *** [mtn-sanity.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/dev-util/monotone-0.40/work/monotone-0.40' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-util/monotone-0.40/work/monotone-0.40' make: *** [all] Error 2 -------------------------------------------------------------------------------- I'll recompile glibc, gcc, and boost, but I suspect this is not related to my -march flag.
I've recompiled boost, gcc, and glibc, and I still get the same error. Reopening....
I encountered this problem when compiling media-sound/ardour-2.5-r1. I had -nls in my global USE flags. I recompiled gcc, glibc, gettext and the offending package (in this case Ardour) with USE="nls" and the problem went away.
thanks Daniel J. - Reported upstream.
same error here. seems this bug haven't fixed in 0.4.2 too.
Based on comments on the mailing list, this bug was fixed in version 0.43. I have submitted an ebuild for this version in bug 263626
*** Bug 265001 has been marked as a duplicate of this bug. ***
*** Bug 260349 has been marked as a duplicate of this bug. ***
added 0.43