> http://build-failures.rhaalovely.net/powerpc/2019-08-09/lang/parrot.log

${LOCALBASE}/include/ffitarget.h is actually fine. The build is failing
due to the (aggressive) usage of -Werror.

According to what i've read, _CALL_ELF is used to separate ppc64be from
ppc64le. 

I could have removed the annoying -Werror, but i preferred to play fair
and defining it to (ELFv)1. While here, i've regen WANTLIB.

It indeed builds fine [0], there is only one test out of 47767 failing,
as seen on amd64.

Comments/feedback are welcome,

Charlène.


[0] https://bin.charlenew.xyz/parrot.log


Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/parrot/Makefile,v
retrieving revision 1.47
diff -u -p -u -p -r1.47 Makefile
--- Makefile    12 Jul 2019 20:47:21 -0000      1.47
+++ Makefile    27 Aug 2019 20:27:09 -0000
@@ -4,7 +4,7 @@ COMMENT=        virtual machine designed for in
 
 V=             7.10.0
 DISTNAME=      parrot-$V
-REVISION=      7
+REVISION=      8
 CATEGORIES=    lang perl6
 SHARED_LIBS=   parrot  11.0
 
@@ -16,10 +16,10 @@ MASTER_SITES=       http://ftp.parrot.org/rele
 # Artistic2
 PERMIT_PACKAGE=        Yes
 
-WANTLIB += GL GLU c glut gmp iconv icudata icuuc intl m ncurses pthread
-WANTLIB += readline ${COMPILER_LIBCXX} util z ffi
+WANTLIB += ${COMPILER_LIBCXX} GL GLU c ffi glut gmp icudata icuuc
+WANTLIB += intl m readline z
 
-COMPILER =             base-clang ports-gcc base-gcc
+COMPILER =             base-clang ports-gcc
 
 BUILD_DEPENDS=         graphics/glew \
                        devel/pcre
@@ -55,6 +55,11 @@ INSTALL_TARGET =     install install-doc
 TEST_TARGET=           fulltest
 
 SUBST_VARS +=          V
+
+# fix for error: "_CALL_ELF" is not defined, evaluates to 0
+.if ${MACHINE_ARCH:Mpowerpc}
+CFLAGS +=              -D_CALL_ELF=1
+.endif
 
 pre-configure:
        ${SUBST_CMD} ${WRKSRC}/config/init/hints/openbsd.pm

Reply via email to