libgccjit 5.2 on Mac OSX Yosemite

Dibyendu Majumdar mobile@majumdar.org.uk
Thu Jan 1 00:00:00 GMT 2015


Hi

I tried building gcc 5.2 on Mac OSX but could not get the linking to
work. Then fortunately found that homebrew has a formula for deploy
gcc 5.2 with jit enabled.

All installed and then built Ravi successfully. But when I try to run
Ravi any attempt to invoke the JIT fails with:

Lua 5.3.1  Copyright (C) 1994-2015 Lua.org, PUC-Rio

> function x() return end

> ravi.compile(x)

Undefined symbols for architecture x86_64:

  "_luaD_poscall", referenced from:

      _ravif1 in cczhNq92.o

  "_luaF_close", referenced from:

      _ravif1 in cczhNq92.o

ld: symbol(s) not found for architecture x86_64

collect2: error: ld returned 1 exit status

libgccjit.so: error: error invoking gcc driver: exit_status: 256 err: 0

libgccjit.so: error: whilst attempting to run a driver named:
x86_64-apple-darwin14.4.0-gcc-5.2.0

libgccjit.so: error: PATH was:
/Users/username/github/ravi/build:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Library/TeX/texbin

aborting due to JIT error: error invoking gcc driver: exit_status: 256 err: 0

Abort trap: 6

Any clues?

I had set PATH and LD_LIBRARY_PATH.

Regards



More information about the Jit mailing list