{standard input}: Assembler messages: {standard input}:40: Error: suffix or operands invalid for `movd' {standard input}:2321: Error: suffix or operands invalid for `movd' {standard input}:4865: Error: suffix or operands invalid for `movd' make[2]: *** [smallft.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... gcc -DPACKAGE=\"libvorbis\" -DVERSION=\"1.0\" -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_SQRTF=1 -DHAVE_LOGF=1 -DHAVE_EXPF=1 -DHAVE_ACOSF=1 -DHAVE_ATANF=1 -DHAVE_FREXPF=1 -DHAVE_RINTF=1 -DHAVE_FLOORF=1 -I. -I. -I../include -I/usr/include -O20 -ffast-math -D_REENTRANT -fsigned-char -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -mmmx -msse -msse2 -DUSE_MEMORY_H -c lsp.c -o lsp.o >/dev/null 2>&1 mv -f .libs/lsp.lo lsp.lo make[2]: Leaving directory `/var/tmp/portage/libvorbis-1.0-r4/work/libvorbis-1.0/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libvorbis-1.0-r4/work/libvorbis-1.0/lib' make: *** [all-recursive] Error 1 !!! ERROR: media-libs/libvorbis-1.0-r4 failed. !!! Function src_compile, Line 52, Exitcode 2 !!! (no error message) [ root@linuxbox /home/ddicks ] # emerge --info Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-wolk4.10s) ================================================================= System uname: 2.4.20-wolk4.10s i686 Intel(R) Pentium(R) 4 CPU 1.80GHz Gentoo Base System version 1.4.3.10p1 distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -mmmx -msse -msse2" 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/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -mmmx -msse -msse2" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox autoaddcvs fixpackages ccache distcc" GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo http://adelie.polymtl.ca/ ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/" 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 oss apm avi crypt encode foomaticdb jpeg libg++ libwww mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline aalib bonobo svga tcltk java guile X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome motif opengl mozilla cdr distcc gtk2 gtk imap mng tiff samba xft gif cups -kde -arts -qt"
append -mno-sse and -mno-sse2 in your CFLAGS and see if it fixes this ... looks like a bug with gcc 3.2.3 ... works fine with 3.3.x
Yes, that worked. Thanks. Shouldn't the ebuild be changed to strip out -msse and -msse2 and add in -mno-sse and -mno-sse2 since gcc 3.3 is not in stable gentoo yet? [ root@linuxbox /home/ddicks ] # emerge --info Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-wolk4.10s) ================================================================= System uname: 2.4.20-wolk4.10s i686 Intel(R) Pentium(R) 4 CPU 1.80GHz Gentoo Base System version 1.4.3.10p1 distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -mmmx -mno-sse -mno-sse2" 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/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -mmmx -mno-sse -mno-sse2" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox autoaddcvs fixpackages ccache distcc" GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo http://adelie.polymtl.ca/ ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/" 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 oss apm avi crypt encode foomaticdb jpeg libg++ libwww mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline aalib bonobo svga tcltk java guile X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome motif opengl mozilla cdr distcc gtk2 gtk imap mng tiff samba xft gif cups -kde -arts -qt"
libvorbis-1.0-r4 compiles fine for me here with gcc 3.2.3-r2, even with -msse. Full CFLAGS that worked for me are "-Os -s -pipe -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse -fforce-addr -fomit-frame-pointer -foptimize-sibling-calls". On the other hand, it doesn't compile with -fstack-protector; here's where it chokes: mkdir .libs gcc -O20 -ffast-math -D_REENTRANT -fsigned-char -Os -s -pipe -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse -fforce-addr -fomit-frame-pointer -foptimize-sibling-calls -fstack-protector -Dsimd_3dn -DUSE_MEMORY_H -static -o encoder_example encoder_example.o ../lib/.libs/libvorbisenc.a -L/usr/lib ../lib/.libs/libvorbis.a -lm /usr/lib/libogg.a gcc -O20 -ffast-math -D_REENTRANT -fsigned-char -Os -s -pipe -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse -fforce-addr -fomit-frame-pointer -foptimize-sibling-calls -fstack-protector -Dsimd_3dn -DUSE_MEMORY_H -static -o chaining_example chaining_example.o ../lib/.libs/libvorbisfile.a -L/usr/lib ../lib/.libs/libvorbis.a -lm /usr/lib/libogg.a /usr/lib/libc.a(ssp.o)(.data+0x0): multiple definition of `__guard' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.data+0x0):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2078: first defined here /usr/lib/libc.a(ssp.o)(.text+0x80): In function `__stack_smash_handler': : multiple definition of `__stack_smash_handler' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0x90):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2093: first defined here /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `__stack_smash_handler' changed from 722 in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS) to 565 in collect2: ld returned 1 exit status make[1]: *** [chaining_example] Error 1 make[1]: *** Waiting for unfinished jobs.... /usr/lib/libc.a(ssp.o)(.data+0x0): multiple definition of `__guard' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.data+0x0):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2078: first defined here /usr/lib/libc.a(ssp.o)(.text+0x80): In function `__stack_smash_handler': : multiple definition of `__stack_smash_handler' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0x90):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2093: first defined here /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `__stack_smash_handler' changed from 722 in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS) to 565 in collect2: ld returned 1 exit status make[1]: *** [encoder_example] Error 1 make[1]: Leaving directory `/var/tmp/portage/libvorbis-1.0-r4/work/libvorbis-1.0/examples' make: *** [all-recursive] Error 1 !!! ERROR: media-libs/libvorbis-1.0-r4 failed. !!! Function src_compile, Line 52, Exitcode 2 !!! (no error message) emerge info: Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.2.5-r2,2.3.2-r3, 2.4.20-gentoo-r8) ================================================================= System uname: 2.4.20-gentoo-r8 i686 AMD Duron(TM)Processor Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-Os -s -pipe -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse -fforce-addr -fomit-frame-pointer -foptimize-sibling-calls -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-Os -s -pipe -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse -fforce-addr -fomit-frame-pointer -foptimize-sibling-calls -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="ccache autoaddcvs sandbox userpriv" GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" 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="x86 oss apm avi cups foomaticdb gif libg++ mad mikmod ncurses nls spell xml2 gdbm berkdb slang readline svga tcltk java guile sdl gpm tcpd pam libwww perl python esd imlib motif scanner 3dnow 3dnowext mmx mmxext sse usb ssl opengl xv X rage128 alsa cdr pda gphoto2 jpeg png tiff dvd mpeg oggvorbis xmms encode mozilla mozcalendar mozsvg tetex quicktime xvid -kde -qt -qtmt -arts gnome gtk gtk2 bonobo evo gb gtkhtml imap mbox -maildir zlib crypt truetype pdflib"
it shouldnt try to strip out -msse and -msse2 since -march=pentium4 implies that if we do this the ebuild is fine: inherit flag-o-matic gcc [ "`gcc-fullversion`" == "3.2.3" ] && append-flags -mno-sse -mno-sse2 that way we wont affect gcc-3.3.x users
marc, please file your bug elsewhere your bug is completely unrelated to this one
is this fixed in 1.0.1 ?
I am getting this now with 1.0.1 me-pointer -fprefetch-loop-arrays -funroll-loops -mmmx -msse -msse2 -DUSE_MEMORY_H -c window.c -fPIC -DPIC -o .libs/window.o {standard input}: Assembler messages: {standard input}:40: Error: suffix or operands invalid for `movd' {standard input}:2321: Error: suffix or operands invalid for `movd' {standard input}:4865: Error: suffix or operands invalid for `movd' make[2]: *** [smallft.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... rm: cannot remove `': Invalid argument gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libvorbis\" -DVERSION=\"1.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I. -I../include -I/usr/include -O20 -ffast-math -D_REENTRANT -fsigned-char -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -mmmx -msse -msse2 -DUSE_MEMORY_H -c window.c -o window.o >/dev/null 2>&1 make[2]: Leaving directory `/var/tmp/portage/libvorbis-1.0.1/work/libvorbis-1.0.1/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libvorbis-1.0.1/work/libvorbis-1.0.1/lib' make: *** [all-recursive] Error 1 !!! ERROR: media-libs/libvorbis-1.0.1 failed. !!! Function src_compile, Line 56, Exitcode 2 !!! (no error message) I even change my CFLAGS to -march=pentium3 -O2 and I still get the error - was this tested at all before it was marked stable?
dale, did you try what i suggested originally ? -mno-sse2
I just tried that with this ebuild: CFLAGS="-march=pentium4 -O2 -mno-sse -mno-sse2 -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops" emerge libvorbis works.
added 'append-flags -mno-sse2' in cvs