When I try to emerge either dosbox or dosbox-cvs I get the same error during compile: In file included from core_dyn_x86.cpp:143: core_dyn_x86/cache.h:302:2: warning: no newline at end of file {standard input}: Assembler messages: {standard input}:655: Error: missing ')' {standard input}:655: Error: junk `(%ebp))' after expression {standard input}:658: Error: missing ')' {standard input}:658: Error: junk `(%ebp))' after expression make[4]: *** [core_dyn_x86.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/var/tmp/portage/dosbox-0.61/work/dosbox-0.61/src/cpu' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/dosbox-0.61/work/dosbox-0.61/src/cpu' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/dosbox-0.61/work/dosbox-0.61/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dosbox-0.61/work/dosbox-0.61' make: *** [all] Error 2 !!! ERROR: games-emulation/dosbox-0.61 failed. !!! Function src_compile, Line 35, Exitcode 2 !!! emake failed Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.4-mm2) ================================================================= System uname: 2.6.4-mm2 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz Gentoo Base System version 1.4.3.13p1 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -funroll-loops -fpic -pipe -mfpmath=sse,387 -ffast-math -msse2 -mmmx -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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=pentium4 -O2 -funroll-loops -fpic -pipe -mfpmath=sse,387 -ffast-math -msse2 -mmmx -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-gnome-current" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa apache2 apm avi berkdb bonobo cdr clamav crypt cups directfb divx dvd encode esd fbcon flac flash foomaticdb gd gd-external gdbm gif gnome gpm gstreamer gtk gtk2 imlib java jpeg jpg libg++ libwww mad mbox mikmod motif mozilla mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl shn slang spell sse ssl svg svga tcltk tcpd truetype usb x86 xml2 xmms xv xvid zlib"
Does it work if you use MAKEOPTS=-j1 ?
no, doesn't help... Same error.
How about with CXXFLAGS="-pipe" ?
Yep, that works! Thanks :)
I'm betting you want to take -fpic out of your C/CXXFLAGS. I really don't think you want to be compiling everything with that set. Since things are working for you, I'll go ahead and close this bug.
*** Bug 46742 has been marked as a duplicate of this bug. ***
Sorry for asking, but could this bug be reopened? See bug 46742.
I just reinstalled and didn't encounter any problems. The only difference is that I used the default-x86-2004.0 profile instead of hardened-x86-2004.0.