Opened 4 years ago

Closed 4 years ago

#53950 closed defect (fixed)

MoarVM: unrecognized command line option "-Wno-logical-op-parentheses" on 10.5/PPC

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

comment:1 Changed 4 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 4 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 4 years ago by drennanelawar (Daniel Drennan ElAwar)

That did the trick. Thank you!

comment:4 Changed 4 years ago by mojca (Mojca Miklavec)

In 71e35c1157c3fe055d7772b63f0633114f772f90/macports-ports:

MoarVM: blacklist Apple's GCC

See: #53950

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

Description: modified (diff)

comment:6 Changed 4 years ago by mojca (Mojca Miklavec)

In e1c281ddbc16cba264cb5df1a7ea559750cb278f/macports-ports:

MoarVM: blacklist clang on PPC

See: #53950

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

Resolution: fixed
Status: newclosed

I don't know if MoarVM is actually functional on PPC, but it compiled, see:

so I'm closing this as fixed.

Note: See TracTickets for help on using tickets.