pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: multimedia/libvpx and netbsd 5



On Fri, Jan 10, 2014 at 04:13:19PM +0000, Patrick Welche wrote:
> Just came across:
> 
>     [CC] vp8/common/x86/variance_ssse3.c.o
> libtool: compile:  cc -O2 -m32 -O3 -fPIC -U_FORTIFY_SOURCE 
> -D_FORTIFY_SOURCE=0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall 
> -Wdeclaration-after-statement -Wdisabled-optimization -Wpointer-arith 
> -Wcast-qual -Wimplicit-function-declaration -Wuninitialized -Wunused-variable 
> -Wno-unused-function -I. 
> -I/usr/obj/pkgsrc/multimedia/libvpx/work.i386/libvpx-1.3.0 -mssse3 -c 
> vp8/common/x86/variance_ssse3.c  -fPIC -DPIC -o 
> vp8/common/x86/.libs/variance_ssse3.c.o
> cc1: error: unrecognized command line option "-mssse3"
> 
> while building multimedia/libvpx, which makes NetBSD 5's gcc 4.1.3 unhappy:
> 
> $ gcc -o hellow hellow.c -mssse3
> cc1: error: unrecognized command line option "-mssse3"
> 
> NetBSD 6's gcc 4.5.3 is happy...

The attached patch gets me further, but then:

libtool: compile:  cc 
-I/usr/obj/pkgsrc/multimedia/libvpx/work.i386/libvpx-1.3.0/vp8 
-I/usr/obj/pkgsrc/multimedia/libvpx/work.i386/libvpx-1.3.0/vp9 -O2 -m32 -O3 
-fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -Wall -Wdeclaration-after-statement 
-Wdisabled-optimization -Wpointer-arith -Wcast-qual 
-Wimplicit-function-declaration -Wuninitialized -Wunused-variable 
-Wno-unused-function -I. 
-I/usr/obj/pkgsrc/multimedia/libvpx/work.i386/libvpx-1.3.0 -c 
nestegg/src/nestegg.c -o nestegg/src/nestegg.c.o >/dev/null 2>&1
/var/tmp//cclLdQ8F.s: Assembler messages:
/var/tmp//cclLdQ8F.s:196: Error: no such instruction: `pmaddubsw %xmm5,%xmm0'
/var/tmp//cclLdQ8F.s:197: Error: no such instruction: `pmaddubsw %xmm5,%xmm1'
Makefile:128: recipe for target 'third_party/libyuv/source/scale.c.o' failed

Cheers,

Patrick
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/libvpx/Makefile,v
retrieving revision 1.34
diff -u -r1.34 Makefile
--- Makefile    10 Jan 2014 08:43:42 -0000      1.34
+++ Makefile    10 Jan 2014 16:47:08 -0000
@@ -95,6 +95,11 @@
 CONFIGURE_ARGS+=       --disable-runtime-cpu-detect
 .endif
 
+# e.g., NetBSD 5 has gcc 4.1.3
+.if !empty(CC_VERSION:Mgcc-4.1.*)
+CONFIGURE_ENV+=                ssse3=no
+.endif
+
 BUILD_TARGET=  # none
 
 post-extract:


Home | Main Index | Thread Index | Old Index