liboil cannot be built in the current macppc bulk:
> conv.c:78:51: error: invalid operand for instruction
> DEFINE_CLIPCONVERT_POWERPC(s8,f32, -128.0, 127.0, LFSUX, LBZ_STBUX)
(and more)
Disabling the integrated assembler fixes the build [0]. Because arm
has a similar issue, jca@ proposed to give it a chance with that flag
as well.
While here, i've moved HOMEPAGE to https.
Comments/feedback are welcome,
Charlène.
[0] https://bin.charlenew.xyz/macppc/paths/devel/liboil.log
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/liboil/Makefile,v
retrieving revision 1.23
diff -u -p -u -p -r1.23 Makefile
--- Makefile 6 Dec 2019 14:30:39 -0000 1.23
+++ Makefile 28 Apr 2020 12:45:20 -0000
@@ -1,17 +1,15 @@
# $OpenBSD: Makefile,v 1.23 2019/12/06 14:30:39 sthen Exp $
-BROKEN-arm= invalid asm
-
COMMENT= library of optimized inner loops
DISTNAME= liboil-0.3.17
-REVISION= 2
+REVISION= 3
CATEGORIES= devel
MASTER_SITES= ${HOMEPAGE}/download/
SHARED_LIBS+= oil-0.3 4.0
-HOMEPAGE= http://liboil.freedesktop.org/
+HOMEPAGE= https://liboil.freedesktop.org/
# BSD
PERMIT_PACKAGE= Yes
@@ -20,5 +18,10 @@ WANTLIB= c m
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --disable-glib
+
+# Workaround for invalid assembly code with clang
+.if ${MACHINE_ARCH:Mpowerpc} || ${MACHINE_ARCH:Marm}
+CFLAGS+= -fno-integrated-as
+.endif
.include <bsd.port.mk>
No comments:
Post a Comment