Opened 7 years ago

Last modified 21 months 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)

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).

Command failed:  cd "/Volumes/DEV0/var/macports/build/_Volumes_DEV0_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_MoarVM/MoarVM/work/MoarVM-2017.03" && /usr/bin/make -j7 -w all

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)

In 71e35c1157c3fe055d7772b63f0633114f772f90/macports-ports:

MoarVM: blacklist Apple's GCC

See: #53950

comment:5 Changed 7 years ago by mojca (Mojca Miklavec)

Description: modified (diff)
Note: See TracTickets for help on using tickets.