Parrot fails to build in the current macppc bulk, same as:
> http://build-failures.rhaalovely.net/mips64/2020-04-11/lang/parrot.log
I already had to provide a workaround `-Werror', but this time i'm
proposing to remove all warnings.
Note that 'Configure.pl' provides a `--ccwarn' flag, but these flags
are placed before the warnings, so it doesn't work. Putting `-w' at
the end of the flags generated by `Configure.pl' does not work as well.
REVISION bump is needed, because `-maccumulate-outgoing-args' and
`-falign-functions' are zapped. I've read the docs about these flags,
and i don't get why they are here to start with.
I've run the tests on amd64 and macppc [0], and there is no difference
between the two archs, and between tests i did with my previous fix;
1 failure out of 47763 tests.
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.48
diff -u -p -u -p -r1.48 Makefile
--- Makefile 17 Oct 2019 14:03:55 -0000 1.48
+++ Makefile 27 Apr 2020 18:49:07 -0000
@@ -4,7 +4,7 @@ COMMENT= virtual machine designed for in
V= 7.10.0
DISTNAME= parrot-$V
-REVISION= 8
+REVISION= 9
CATEGORIES= lang perl6
SHARED_LIBS= parrot 11.0
@@ -55,11 +55,6 @@ 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
Index: patches/patch-config_auto_warnings_pm
===================================================================
RCS file: patches/patch-config_auto_warnings_pm
diff -N patches/patch-config_auto_warnings_pm
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-config_auto_warnings_pm 27 Apr 2020 18:49:07 -0000
@@ -0,0 +1,19 @@
+$OpenBSD$
+
+Drop all -Werror, fix the build on powerpc and mips64.
+The build breaks due to some libffi defines being undefined,
+issue that doesn't cause runtime errors at least on powerpc.
+
+Index: config/auto/warnings.pm
+--- config/auto/warnings.pm.orig
++++ config/auto/warnings.pm
+@@ -169,9 +169,6 @@ sub _init {
+ -Werror=strict-prototypes
+ );
+
+- $gcc->{'basic'} = [ @gcc_or_gpp_basic, @gcc_basic ];
+- $gpp->{'basic'} = [ @gcc_or_gpp_basic ];
+-
+ my @gcc_or_gpp_cage = qw(
+ -std=c89
+ -Wfloat-equal
No comments:
Post a Comment