-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I posted a solution to this on bugs.gentoo.org, but here it is again for you.
If you append -mno-sse2 to the flags, it will compile with -march=pentium4.
I hand edited the gcc-version if statement to 3.3 instead of 3.2 and it
compiled
fine.
In media-libs/xine-lib/xine-lib-1_rc3-31.ebuild
Change:
# fix build errors with sse2
if [ "`gcc-version`" == "3.2" ]; then
use x86 && append-flags -mno-sse2
fi # fix build errors with sse2
To:
if [ "`gcc-version`" == "3.3" ]; then
use x86 && append-flags -mno-sse2
fi
Worked great for me. :)
Good luck!
Todd
On Friday 13 February 2004 05:29 pm, Thomas Sjolshagen wrote:
> Hi,
>
> I'm trying to merge kde 3.2 and while merging one of the dependencies
> (xine-lib-1), the build stops with the following trace. I've tried to
> disable every USE flag I set (ie comment out the USE flag setting in
> /etc/make.conf, as well as reduced optimizations to 2 (-02)).
>
> Seems like a couple of function definitions somehow go missing. (am
> using NPTL and thus running gcc-3.3.2 with the "appropriate" glibc).
>
> Any suggestions are welcomed :-)
>
> Tia,
>
> // Thomas
>
> Snippet from ACCEPT_KEYWORDS="~x86" emerge xine-lib output at the point
> where it fails.
>
>
> Making all in goom
> make[4]: Entering directory
> `/var/tmp/portage/xine-lib-1_rc3-r1/work/xine-lib-1-rc3a/src/post/goom'
> source='zoom_filter_mmx.c' object='zoom_filter_mmx.lo' libtool=yes \
> depfile='.deps/zoom_filter_mmx.Plo'
> tmpdepfile='.deps/zoom_filter_mmx.TPlo' \
> depmode=gcc3 /bin/sh ../../../depcomp \
> /bin/sh ../../../libtool-nofpic --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I. -I../../.. -I../../.. -I../../../include -I../../../include
> -I../../../src -I../../../src/xine-engine -I../../../src/xine-engine
> -I../../../src/xine-utils -I../../../src/input -I../../../src/input
> -DHAVE_MMX `echo -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64
> -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align
> -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -O3
> -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe | sed -e
> 's/-fomit-frame-pointer//g;s/-Os//g'` -c -o zoom_filter_mmx.lo `test -f
> 'zoom_filter_mmx.c' || echo './'`zoom_filter_mmx.c
> zoom_filter_mmx.c:16: warning: no previous prototype for
> `zoom_filter_mmx_supported'
> source='zoom_filter_xmmx.c' object='zoom_filter_xmmx.lo' libtool=yes \
> depfile='.deps/zoom_filter_xmmx.Plo'
> tmpdepfile='.deps/zoom_filter_xmmx.TPlo' \
> depmode=gcc3 /bin/sh ../../../depcomp \
> /bin/sh ../../../libtool-nofpic --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I. -I../../.. -I../../.. -I../../../include -I../../../include
> -I../../../src -I../../../src/xine-engine -I../../../src/xine-engine
> -I../../../src/xine-utils -I../../../src/input -I../../../src/input
> -DHAVE_MMX `echo -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64
> -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align
> -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -O3
> -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe | sed -e
> 's/-fomit-frame-pointer//g;s/-Os//g'` -c -o zoom_filter_xmmx.lo `test -f
> 'zoom_filter_xmmx.c' || echo './'`zoom_filter_xmmx.c
> zoom_filter_xmmx.c:23: warning: no previous prototype for
> `zoom_filter_xmmx_supported'
> zoom_filter_xmmx.c:31: warning: no previous prototype for
> `zoom_filter_xmmx'
> zoom_filter_xmmx.c: In function `zoom_filter_xmmx':
> zoom_filter_xmmx.c:40: warning: unused variable `interpix'
> {standard input}: Assembler messages:
> {standard input}:73: Error: suffix or operands invalid for `add'
> make[4]: *** [zoom_filter_xmmx.lo] Error 1
> make[4]: Leaving directory
> `/var/tmp/portage/xine-lib-1_rc3-r1/work/xine-lib-1-rc3a/src/post/goom'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/var/tmp/portage/xine-lib-1_rc3-r1/work/xine-lib-1-rc3a/src/post'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/var/tmp/portage/xine-lib-1_rc3-r1/work/xine-lib-1-rc3a/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/var/tmp/portage/xine-lib-1_rc3-r1/work/xine-lib-1-rc3a'
> make: *** [all] Error 2
>
> !!! ERROR: media-libs/xine-lib-1_rc3-r1 failed.
> !!! Function src_compile, Line 107, Exitcode 2
> !!! Parallel make failed
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFALVcHbyYhYICNb7oRArUZAJ0cSUnOEdZ0mY54C7RRkqxCY7yIwwCfZZ5t
w6lFb8dapdSPmeDRaooCRwI=
=EKH+
-----END PGP SIGNATURE-----
--
[EMAIL PROTECTED] mailing list