Opened 7 years ago
Last modified 2 years ago
#53950 closed defect
MoarVM: unrecognized command line option "-Wno-logical-op-parentheses" on 10.5/PPC — at Version 5
Reported by: | mojca (Mojca Miklavec) | Owned by: | mojca (Mojca Miklavec) |
---|---|---|---|
Priority: | Low | Milestone: | |
Component: | ports | Version: | |
Keywords: | leopard | Cc: | coke (Will Coleda) |
Port: | MoarVM |
Description (last modified by mojca (Mojca Miklavec))
Compilation of MoarVM fails on 10.5/PPC (and after fixing #53944 also on 10.6) due to a too old compiler.
See build logs:
make: Entering directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_MoarVM/MoarVM/work/MoarVM-2017.03' compiling src/main.o compiling src/core/callsite.o cc1: error: unrecognized command line option "-Wno-logical-op-parentheses" cc1: error: unrecognized command line option "-Wno-logical-op-parentheses"
It's not yet clear whether PPC is even theoretically supported and this has super low priority in case it's fixable at all. I just wanted to mark it somewhere, so that we can take a closer look at some point. In case PPC is not supported, the Portfile should at least say so.
After blacklisting the old apple's gcc in 71e35c11/macports-ports there are new problems when compiling with macports-clang-3.4
as seen in the build log:
/opt/local/include/atomic_ops/sysdeps/gcc/powerpc.h:84:5: error: invalid operand in inline asm: 'lwz${1:U}${1:X} $0,$1 cmpw $0,$0 bne- 1f 1: isync ' "lwz%U1%X1 %0,%1\n" ^ /opt/local/include/atomic_ops/sysdeps/gcc/powerpc.h:84:5: error: invalid operand in inline asm: 'lwz${1:U}${1:X} $0,$1 cmpw $0,$0 bne- 1f 1: isync '
Change History (5)
comment:1 Changed 7 years ago by drennanelawar (Daniel Drennan ElAwar)
comment:2 Changed 7 years ago by mojca (Mojca Miklavec)
Please try
sudo port build MoarVM configure.compiler=clang
I suspect that gcc on Mac is either too old or at least not properly supported/tested.
This must be new after I fixed #53944. I'll blacklist some compilers.
comment:3 Changed 7 years ago by drennanelawar (Daniel Drennan ElAwar)
That did the trick. Thank you!
comment:4 Changed 7 years ago by mojca (Mojca Miklavec)
comment:5 Changed 7 years ago by mojca (Mojca Miklavec)
Description: | modified (diff) |
---|
I have this same error on Snow Leopard. I think it is trying to use /usr/bin/make (3.8.1) and not the version that MacPorts has installed (4.2.1).