Hi.

After compiling a recent lfs-svn with gcc-4.2.2 and glibc-2.7, I'm trying to
compile other things, and I am having two problems with "asm". I explain.

First, mplayer-1.0-rc2. make fails like this:

make[1]: Entering directory `/sources/MPlayer-1.0rc2/libmpcodecs'
cc -O3 -march=athlon-tbird -pipe -ffast-math -fomit-frame-pointer -fPIC
-I./libavcodec -I./libavformat -Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -I. -I. -I./libavutil -Wall -Wno-switch
-Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe
-ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H
-I/usr/include/SDL  -D_REENTRANT -I/usr/include/artsc -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I../libavcodec -I../libavformat -Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall -Wno-switch
-Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe
-ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H
-I/usr/include/SDL  -D_REENTRANT -I/usr/include/artsc -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/freetype2   -c -o vf_decimate.o vf_decimate.c
vf_decimate.c: In function 'diff_MMX':
vf_decimate.c:26: error: can't find a register in class 'BREG' while
reloading 'asm'
vf_decimate.c:26: error: 'asm' operand has impossible constraints
make[1]: *** [vf_decimate.o] Error 1
make[1]: Leaving directory `/sources/MPlayer-1.0rc2/libmpcodecs'
make: *** [libmpcodecs/libmpcodecs.a] Error 2

And now, libsndfile-1.0.17, like this:

make[3]: se ingresa al directorio `/sources/libsndfile-1.0.17/src'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I.     -O3 -march=athlon-tbird -pipe -ffast-math -fomit-frame-pointer -fPIC
-std=gnu99 -W -Wall -Wdeclaration-after-statement -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align
-Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings
-pipe  -MT flac.lo -MD -MP -MF ".deps/flac.Tpo" -c -o flac.lo flac.c; \
        then mv -f ".deps/flac.Tpo" ".deps/flac.Plo"; else rm -f
".deps/flac.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -O3 -march=athlon-tbird -pipe -ffast-math
-fomit-frame-pointer -fPIC -std=gnu99 -W -Wall -Wdeclaration-after-statement
-Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return
-Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast
-Wwrite-strings -pipe -MT flac.lo -MD -MP -MF .deps/flac.Tpo -c flac.c
-fPIC -DPIC -o .libs/flac.o
flac.c:63: error: expected specifier-qualifier-list before
'FLAC__SeekableStreamDecoder'
flac.c:111: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'sf_flac_read_callback'
flac.c:112: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'sf_flac_seek_callback'
flac.c:113: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'sf_flac_tell_callback'
flac.c:114: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'sf_flac_length_callback'

and a ton of more things related to FLAC. I can post it if needed, but I
guess it's due to this first error. version 1.0.16 is the same.

Well, I remember that mplayer failed more or less like this in another lfs
system, but I did something that I don't remember (my fault) and the error
dissapeared. Mplayer-1.0-rc2 compiles fine in that system. Maybe I'm missing
some package? Ah, I've tried this with and without CFLAGS. The result is the
same. Could it be that gcc is too new?

thanks
Alberto
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to