public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: Dibyendu Majumdar <mobile@majumdar.org.uk>
To: jit@gcc.gnu.org
Subject: libgccjit 5.2 on Mac OSX Yosemite
Date: Thu, 01 Jan 2015 00:00:00 -0000	[thread overview]
Message-ID: <CACXZuxdE9RrAqOVYNCmVqwX85jYEYiG+-Oj8Z3achAonqZGsuA@mail.gmail.com> (raw)

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

             reply	other threads:[~2015-08-10 20:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-01  0:00 Dibyendu Majumdar [this message]
2015-01-01  0:00 ` David Malcolm
2015-01-01  0:00   ` David Malcolm
     [not found]     ` <CACXZuxcMbdLjzv01WyNReKCub=jZW4Qow1iZKz3juYfo-vEk=w@mail.gmail.com>
2015-01-01  0:00       ` David Malcolm
2015-01-01  0:00         ` Dibyendu Majumdar
  -- strict thread matches above, loose matches on Subject: below --
2015-01-01  0:00 Dibyendu Majumdar
2015-01-01  0:00 ` Dibyendu Majumdar
2015-01-01  0:00   ` David Malcolm
2015-01-01  0:00     ` Dibyendu Majumdar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACXZuxdE9RrAqOVYNCmVqwX85jYEYiG+-Oj8Z3achAonqZGsuA@mail.gmail.com \
    --to=mobile@majumdar.org.uk \
    --cc=jit@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).