[MPlayer-dev-eng] libfaad2 cannot be compiled with gcc 3.2

Linards Ticmanis ticmanis at gmx.de
Sun Aug 31 14:18:23 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

½; wrote:
> Hi,
>
> I cannot compile today's mplayer CVS, the compilation stopped at the
newly
> added libfaad2 library, and I found when I remove "-mfpmath=sse" in the
> CFLAGS in config.mak, it can be compiled with a warning:

I get the same bug, without any custom CFLAGS or anything like that:

> make -C libfaad2
> make[1]: Entering directory `/home/linards/mpmod/libfaad2'
> gcc -c -I. -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math
- -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE
- -D_FILE_OFFSET_BITS=64  -o bits.o bits.c
> gcc -c -I. -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math
- -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE
- -D_FILE_OFFSET_BITS=64  -o cfft.o cfft.c
> cfft.c:556:2: warning: no newline at end of file
> cfft.c: In function `passf2':
> cfft.c:556: unable to find a register to spill in class `FLOAT_REGS'
> cfft.c:556: this is the insn:
> (insn 239 237 250 (set (subreg:SF (reg/v:DI 29 rmm0 [112]) 0)
>         (minus:SF (mem:SF (plus:SI (mult:SI (reg:SI 1 edx [114])
>                         (const_int 8 [0x8]))
>                     (reg/v/f:SI 3 ebx [62])) [4 S4 A32])
>             (reg:SF 8 st(0) [134]))) 533 {*fop_sf_1_nosse} (insn_list
236 (nil))
>     (expr_list:REG_DEAD (reg:SF 8 st(0) [134])
>         (nil)))
> cfft.c:556: confused by earlier errors, bailing out
> make[1]: *** [cfft.o] Error 1
> make[1]: Leaving directory `/home/linards/mpmod/libfaad2'
> make: *** [libfaad2/libfaad2.a] Error 2

I was able to continue by issuing the compilation command for that file
by hand, replacing -march=pentium4 with -march=pentium. There were three
more such bailouts, all in libfaad2, all worked with -march=pentium.

I'm using GCC 3.2 and I can't update it on this system myself. If
anybody could take a look into it and/or patch this -march=pentium
workaround for these files into configure, I'd be very grateful.

Thanks,
- --

Linards Ticmanis

 The Master said, "The business of laying on the colors follows the
preparation of the plain ground."




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/UeeOpXWZ5wbYWboRAhjHAKCGxF+SXlFha/jmQf9WwlIvk+9wcACeMTCS
WIjfLUB5nyHojCvE1veFh1g=
=pWwF
-----END PGP SIGNATURE-----



More information about the MPlayer-dev-eng mailing list