[x264-devel] cannot compile svn > 19/11/07 - debian sid amd64

darkbasic darkbasic4 at gmail.com
Sat Nov 24 11:44:10 CET 2007


Hi! I can't compile any svn snapshot >= 20/11/07 with --enable-shared
This is the output:

gcc -O4 -ffast-math  -Wall -I. -DHAVE_MALLOC_H -DHAVE_MMX -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer   -c -o 
encoder/macroblock.o encoder/macroblock.c
encoder/macroblock.c: In function ‘x264_macroblock_probe_skip’:
encoder/macroblock.c:608: warning: ‘mvp[0]’ may be used uninitialized in this 
function
encoder/macroblock.c:608: warning: ‘mvp[1]’ may be used uninitialized in this 
function
gcc -O4 -ffast-math  -Wall -I. -DHAVE_MALLOC_H -DHAVE_MMX -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer   -c -o 
encoder/cabac.o encoder/cabac.c
gcc -O4 -ffast-math  -Wall -I. -DHAVE_MALLOC_H -DHAVE_MMX -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer   -c -o 
encoder/cavlc.o encoder/cavlc.c
gcc -O4 -ffast-math  -Wall -I. -DHAVE_MALLOC_H -DHAVE_MMX -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer   -c -o 
encoder/encoder.o encoder/encoder.c
encoder/encoder.c: In function ‘x264_thread_sync_context’:
encoder/encoder.c:1200: warning: cast from pointer to integer of different 
size
encoder/encoder.c:1200: warning: cast from pointer to integer of different 
size
encoder/encoder.c:1201: warning: cast from pointer to integer of different 
size
encoder/encoder.c:1201: warning: cast from pointer to integer of different 
size
gcc -O4 -ffast-math  -Wall -I. -DHAVE_MALLOC_H -DHAVE_MMX -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer   -c -o 
encoder/eval.o encoder/eval.c
gcc -O4 -ffast-math  -Wall -I. -DHAVE_MALLOC_H -DHAVE_MMX -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer   -c -o 
common/i386/mc-c.o common/i386/mc-c.c
gcc -O4 -ffast-math  -Wall -I. -DHAVE_MALLOC_H -DHAVE_MMX -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer   -c -o 
common/i386/predict-c.o common/i386/predict-c.c
yasm -f elf -m amd64 -D__PIC__ -Icommon/amd64 -o common/amd64/dct-a.o 
common/amd64/dct-a.asm
yasm -f elf -m amd64 -D__PIC__ -Icommon/amd64 -o common/amd64/cpu-a.o 
common/amd64/cpu-a.asm
yasm -f elf -m amd64 -D__PIC__ -Icommon/amd64 -o common/amd64/pixel-a.o 
common/amd64/pixel-a.asm
yasm -f elf -m amd64 -D__PIC__ -Icommon/amd64 -o common/amd64/mc-a.o 
common/amd64/mc-a.asm
yasm -f elf -m amd64 -D__PIC__ -Icommon/amd64 -o common/amd64/mc-a2.o 
common/amd64/mc-a2.asm
yasm -f elf -m amd64 -D__PIC__ -Icommon/amd64 -o common/amd64/predict-a.o 
common/amd64/predict-a.asm
yasm -f elf -m amd64 -D__PIC__ -Icommon/amd64 -o common/amd64/pixel-sse2.o 
common/amd64/pixel-sse2.asm
yasm -f elf -m amd64 -D__PIC__ -Icommon/amd64 -o common/amd64/quant-a.o 
common/amd64/quant-a.asm
yasm -f elf -m amd64 -D__PIC__ -Icommon/amd64 -o common/amd64/deblock-a.o 
common/amd64/deblock-a.asm
gcc -shared -o libx264.so.57 common/mc.o common/predict.o common/pixel.o 
common/macroblock.o common/frame.o common/dct.o common/cpu.o common/cabac.o 
common/common.o common/mdate.o common/csp.o common/set.o common/quant.o 
encoder/analyse.o encoder/me.o encoder/ratecontrol.o encoder/set.o 
encoder/macroblock.o encoder/cabac.o encoder/cavlc.o encoder/encoder.o 
encoder/eval.o common/i386/mc-c.o common/i386/predict-c.o 
common/amd64/dct-a.o common/amd64/cpu-a.o common/amd64/pixel-a.o 
common/amd64/mc-a.o common/amd64/mc-a2.o common/amd64/predict-a.o 
common/amd64/pixel-sse2.o common/amd64/quant-a.o 
common/amd64/deblock-a.o -Wl,-soname,libx264.so.57 -lm -lpthread -lgpac_static -s
/usr/bin/ld: common/amd64/pixel-sse2.o: relocation R_X86_64_PC32 against 
`x264_pixel_sad_8x4_mmxext' can not be used when making a shared object; 
recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *** [libx264.so.57] Error 1

gcc 4.2 - yasm 0.5.0 - glibc 2.7 - debian sid amd64
I have no problems with previous snapshots.

Darkbasic



More information about the x264-devel mailing list