pkgsrc-Users archive

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

[PATCH] x11/pixman: also disable ssse3 when disabling sse2



Hi,

x11/pixman does not build on an aging GNU/Linux system with gcc 4.1.x
because, while SSE2 is disabled correctly, it still tries to build
SSSE3 stuff:

	Making all in pixman
	--- libpixman_ssse3_la-pixman-ssse3.lo ---
	  CC       libpixman_ssse3_la-pixman-ssse3.lo
	/tmp/ccUavzLg.s: Assembler messages:
	/tmp/ccUavzLg.s:210: Error: no such instruction: `pmaddubsw %xmm1,%xmm0'
	/tmp/ccUavzLg.s:211: Error: no such instruction: `pabsw %xmm0,%xmm0'
	*** [libpixman_ssse3_la-pixman-ssse3.lo] Error code 1

The attached patch also disables ssse3 for old gcc and that works.


Alrighty then,

Thomas Orgis

-- 
Dr. Thomas Orgis
Universität Hamburg
RRZ / Zentrale Dienste / HPC
Schlüterstr. 70
20146 Hamburg
Tel.: 040/42838 8826
Fax: 040/428 38 6270
diff -ruN pkgsrc-2014Q3/x11/pixman/hacks.mk pkgsrc/x11/pixman/hacks.mk
--- pkgsrc-2014Q3/x11/pixman/hacks.mk	2012-07-15 07:18:30.000000000 +0200
+++ pkgsrc/x11/pixman/hacks.mk	2014-12-08 18:21:09.000000000 +0100
@@ -6,16 +6,17 @@
 .  include "../../mk/compiler.mk"
 ###
 ### XXX SSE2 intrinsics require gcc-4.2+ to build.
+### XXX Need to disable SSSE3 explicitly, too.
 ###
 .if empty(CC_VERSION:Mgcc-4.[2-9]*) && \
     empty(CC_VERSION:Mgcc-[5-9].*) && \
     empty(CC_VERSION:Mgcc-[1-9][0-9]*)
-CONFIGURE_ARGS+=	--disable-sse2
+CONFIGURE_ARGS+=	--disable-sse2 --disable-ssse3
 .endif
 .endif
 
 .if !empty(PKGSRC_COMPILER:Msunpro)
-CONFIGURE_ARGS+=	--disable-sse2 --disable-mmx
+CONFIGURE_ARGS+=	--disable-sse2 --disable-mmx --disable-ssse3
 .endif
 
 .if ${OPSYS} == "MirBSD"

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Home | Main Index | Thread Index | Old Index