I've read both Bugs #15578 and #20709 which seem to describe the same error, but none of the fixes in there have done me any good. I have tried using -mmmx in the CFLAGS, and -march=athlon-xp, but the build still fails. In fact the linker error is identical to that in 15578: gcc -c `cat i686/c_flags` dump.c -o i686/dump.o gcc -o i686/qtdump i686/dump.o i686/libquicktime.a -lpng -lz -lpthread -lglib -ldl -lm i686/libquicktime.a(dv.o)(.text+0x180): In function `dv_init': : undefined reference to `mmx_ok' i686/libquicktime.a(parse.o)(.text+0x407): In function `dv_find_spilled_vlc': : undefined reference to `dv_peek_vlc' i686/libquicktime.a(parse.o)(.text+0x62f): In function `dv_parse_ac_coeffs': : undefined reference to `dv_peek_vlc' collect2: ld returned 1 exit status make: *** [i686/qtdump] Error 1 !!! ERROR: media-libs/quicktime4linux-1.5.5-r1 failed. !!! Function src_compile, Line 30, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. emerge quicktime4linux 2. 3. Actual Results: gcc -o i686/qtdump i686/dump.o i686/libquicktime.a -lpng -lz -lpthread -lglib -ldl -lm i686/libquicktime.a(dv.o)(.text+0x180): In function `dv_init': : undefined reference to `mmx_ok' i686/libquicktime.a(parse.o)(.text+0x407): In function `dv_find_spilled_vlc': : undefined reference to `dv_peek_vlc' i686/libquicktime.a(parse.o)(.text+0x62f): In function `dv_parse_ac_coeffs': : undefined reference to `dv_peek_vlc' collect2: ld returned 1 exit status make: *** [i686/qtdump] Error 1 !!! ERROR: media-libs/quicktime4linux-1.5.5-r1 failed. !!! Function src_compile, Line 30, Exitcode 2 !!! (no error message) Expected Results: emerged propoerly ant@afghan ant $ emerge info Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts tetex svga ggi tcltk java guile mysql X gpm tcpd pam libwww perl python esd imlib oggvorbis qt kde motif opengl mozilla cdr -quicktime sdl ssl Xaw3d curl doc dvd emacs flash leim samba usb xinerama -cups -gnome -gtk" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -pipe -mmmx" CXXFLAGS="-march=pentium3 -pipe -mmmx" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" FEATURES="sandbox ccache strict"
could you please try again with CFLAGS="-march=pentium3 -pipe -O2"
I've tried with "-march=Pentium3 -02 -pipe" and it didn't work. Since I keep getting "Unkown Option: '-02'" from gcc I tried also removing the -02 part, but the result was the same.
Using CFLAGS="-march=pentium3 -pipe -O2" works fine.
Sorry. I used zero (-02) instead of O (-O2). Now it works.
can i close this now ?
good enough for me ;)
I am having this exact same issue. It appears that it has shown up a couple times before (bug #15578, bug #20709, and bug #19492). I have tried this both with and without mmx in my USE. I am in the process of an emerge -w world, and this is holding me up. Does anyone have any suggestions?
closing