[x264-devel] Build problem with pthreads

Werner Scheinast W.Scheinast at web.de
Thu Aug 24 21:10:47 CEST 2006


With the snapshots of the last three days (21-22) I could not compile x264 
with this configuration:
./configure --prefix=/usr --enable-mp4-output --enable-gtk --enable-shared --extra-cflags='-O3 -march=pentium4 -mfpmath=sse -msse2'

make stopped with this message:

gcc -O4 -ffast-math -Wall -I. -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86 -DSYS_LINUX -O3 -march=pentium4 -mfpmath=sse -msse2 -DHAVE_PTHREAD -s -fomit-frame-pointer   -c -o common/cpu.o common/cpu.c
common/cpu.c: In function `x264_cpu_num_processors':
common/cpu.c:172: Warnung: dereferencing type-punned pointer will break strict-aliasing rules
common/cpu.c:172: Warnung: passing arg 2 of `sched_getaffinity' makes pointer from integer without a cast
common/cpu.c:172: error: too many arguments to function `sched_getaffinity'
make: *** [common/cpu.o] Fehler 1

(Although I did not provide the configure option --enable-pthread, it was 
enabled by default. Perhaps this should be mentioned in the output of
"configure --help"?)

The build worked after disabling pthread:
./configure --prefix=/usr --enable-mp4-output --enable-gtk --disable-pthread --enable-shared --extra-cflags='-O3 -march=pentium4 -mfpmath=sse -msse2'

My system is based on a SuSE 9.0, including glibc 2.3.2.
My CPU is a Pentium 4 mobile, a single processor.

Is this a bug?

Regards,
Werner

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list