View previous topic :: View next topic |
Author |
Message |
dolfin n00b
Joined: 04 May 2002 Posts: 19 Location: Haifa, Israel
|
Posted: Sat Jul 20, 2002 10:04 pm Post subject: avifile won't compile with gcc3.1.1 |
|
|
I don't know if I'm the only one who gets it, or if there is a solution for that, but when I try to compile avifile (because I need KDE and XMMS) I get this error:
Code: |
gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -DHAVE_AV_CONFIG_H -I./.. -I./../.. -Wall -Wno-unused -I../../../include -O4 -fomit-frame-pointer -march=i686 -march=pentium4 -fomit-frame-pointer -pipe -pipe -c mpegvideo_mmx.c -MT mpegvideo_mmx.lo -MD -MP -MF .deps/mpegvideo_mmx.TPlo -fPIC -DPIC -o mpegvideo_mmx.lo
mpegvideo_mmx.c: In function `dct_unquantize_mpeg1_mmx':
mpegvideo_mmx.c:199: warning: operation on `nCoeffs' may be undefined
mpegvideo_mmx.c: In function `dct_unquantize_mpeg2_mmx':
mpegvideo_mmx.c:325: warning: operation on `nCoeffs' may be undefined
mpegvideo_mmx.c: In function `dct_quantize_MMX':
mpegvideo_mmx_template.c:86: can't find a register in class `GENERAL_REGS' while reloading `asm'
make[3]: *** [mpegvideo_mmx.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/avifile-0.7.7.20020523/work/avifile0.7-0.7.7/ffmpeg/libavcodec/i386'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/avifile-0.7.7.20020523/work/avifile0.7-0.7.7/ffmpeg/libavcodec'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/avifile-0.7.7.20020523/work/avifile0.7-0.7.7/ffmpeg'
make: *** [all-recursive] Error 1
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 62, Exitcode 2
!!! (no error message)
!!! emerge aborting on /usr/portage/media-video/avifile/avifile-0.7.7.20020523.ebuild |
Those are my flags:
Code: | CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -fomit-frame-pointer -pipe"
CXXFLAGS="-march=pentium4 -O3 -fomit-frame-pointer -pipe" |
And as I said, I'm using gcc 3.1.1. any ideas?
Thanks!
Gil _________________ [img:efc02f0a33]http://www.rpg.org.il/signatures/dolf_sig.gif[/img:efc02f0a33] |
|
Back to top |
|
|
eheintz n00b
Joined: 16 Jul 2002 Posts: 12
|
Posted: Sun Jul 21, 2002 12:07 am Post subject: |
|
|
This is a known issue with avifile and gcc311. According to the avifile website it's the compiler's fault. They are aware of it since in addition to Gentoo, Mandrake Cooker also users a gcc311 prerelease.
Unfortuately there's been at least two code releases since the bug surfaced with no news that I was able to find with regards to a solution. |
|
Back to top |
|
|
fhimpe n00b
Joined: 30 May 2002 Posts: 9
|
|
Back to top |
|
|
enesideme n00b
Joined: 20 Apr 2002 Posts: 46 Location: france
|
Posted: Mon Jul 22, 2002 3:27 pm Post subject: patch works |
|
|
I've just applied the patch on the latest sources gotten from cvs and building works. It should also works for the gentoo bzipped package
if you want the sources from cvs just:
cvs -z3-d:pserver:anonymous@cvs.avifile.sourceforge.net:/cvsroot/avifile co avifile
an then cd avifile and sh autogen.sh and (with your flags) ./configure make ...
you can also untar the packages patch the file compress again remake the digest and emerge avifile |
|
Back to top |
|
|
enesideme n00b
Joined: 20 Apr 2002 Posts: 46 Location: france
|
Posted: Tue Jul 23, 2002 9:02 pm Post subject: patching avifile to compile it with gcc3.1.1 |
|
|
if you want to patch avifile here is how to proceed
1) ebuild /usr/portage/media-video/avifile/avifile-0.7.7.20020523.ebuild unpack
2)patch /var/tmp/portage/avifile-0.7.7.20020523/work/avifile0.7-0.7.7/ffmpeg/libavcodec/i386/mpegvideo_mmx_template.c /avifile.0.7.0.7.8-asmfixes.patch
I suppose of course you got the patch
3)ebuild /usr/portage/media-video/avifile/avifile-0.7.7.20020523.ebuild compile
4)ebuild /usr/portage/media-video/avifile/avifile-0.7.7.20020523.ebuild install
5)ebuild /usr/portage/media-video/avifile/avifile-0.7.7.20020523.ebuild qmerge
It works I've watched final fantasy without any problem
of course you can wait until the ebuild script is updated |
|
Back to top |
|
|
fidler Apprentice
Joined: 03 Jul 2002 Posts: 162 Location: Utah
|
Posted: Tue Jul 30, 2002 9:56 pm Post subject: |
|
|
Thanks. That was helpful |
|
Back to top |
|
|
|