[x264-devel] compilation failure on NetBSD (ssse3 related)

hbent at cs.oberlin.edu hbent at cs.oberlin.edu
Wed Feb 11 00:54:44 CET 2009


After the large intra asm pred commit x264 no longer compiles on NetBSD 5.
 This appears to be because it is unconditionally emitting SSSE3
instructions, which binutils 2.16.1 doesn't understand.  Perhaps there
should be ifdefs around the ssse3 (and perhaps sse2?) functions.

/usr/gcc/bin/gcc -O4 -ffast-math  -Wall -I. -DHAVE_MMX -DARCH_X86
-DSYS_NETBSD -DHAVE_PTHREAD -s -fomit-frame-pointer   -c -o
common/x86/predict-c.o common/x86/predict-c.c
In file included from ./common/common.h:634,
                 from common/x86/predict-c.c:24:
./common/macroblock.h: In function 'x264_mb_transform_8x8_allowed':
./common/macroblock.h:465: warning: dereferencing type-punned pointer will
break strict-aliasing rules
common/x86/predict-c.c: Assembler messages:
common/x86/predict-c.c:179: Error: no such instruction: `pmaddubsw
pb_m32101234,%mm0'
common/x86/predict-c.c:120: Error: no such instruction: `palignr
$7,-8+-32(%eax),%mm1'
common/x86/predict-c.c:121: Error: no such instruction: `pmaddubsw
pb_12345678,%mm0'
common/x86/predict-c.c:122: Error: no such instruction: `pmaddubsw
pb_m87654321,%mm1'
gmake: *** [common/x86/predict-c.o] Error 1

aelfric% as --version
GNU assembler 2.16.1
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i386--netbsdelf'.

-Henry Bent




More information about the x264-devel mailing list