Opened 7 years ago

Closed 7 years ago

Last modified 21 months ago

#53944 closed defect (fixed)

MoarVM: not using the right compiler

Reported by: mojca (Mojca Miklavec) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: coke (Will Coleda)
Port: MoarVM

Description

See this build:

CC='/usr/bin/gcc-4.2'
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_MoarVM/MoarVM/work/.CC_PRINT_OPTIONS'
CFLAGS='-pipe -Os -arch ppc'
CPATH='/opt/local/include'
CPPFLAGS='-I/opt/local/include'
CXX='/usr/bin/g++-4.2'
CXXFLAGS='-pipe -Os -arch ppc'
F77FLAGS='-m32'
F90FLAGS='-pipe -Os -m32'
FCFLAGS='-pipe -Os -m32'
FFLAGS='-pipe -Os'
INSTALL='/usr/bin/install -c'
LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.5'
OBJC='/usr/bin/gcc-4.2'
OBJCFLAGS='-pipe -Os -arch ppc'
OBJCXX='/usr/bin/g++-4.2'
OBJCXXFLAGS='-pipe -Os -arch ppc'

Welcome to MoarVM!

Configuring native build environment ................... OK
    trying to compile a simple C program ............... ERROR

    Can't compile simple C program.
    Failing command: clang -o try.o -c try.c 2>&1
    Error: No such file or directory

Cannot continue after this error.

Change History (2)

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

Resolution: fixed
Status: newclosed

In f09323ee18a2c54dcd66edf90fa0ced05127614c/macports-ports:

MoarVM: use the right compiler

Closes: #53944

comment:2 Changed 21 months ago by barracuda156

On 10.6.8 when building for ppc, clang is pulled, and the build fails. My earlier fix is ignored by Macports build system (why?).

Trying to figure out what to do about that now.

UPD: Okay, we just need to move the relevant chunk of code above configure.args. Then all is good, gcc12 is chosen.

Last edited 21 months ago by barracuda156 (previous) (diff)
Note: See TracTickets for help on using tickets.