This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug jit/64089] libgccjit.so.0.0.1 linkage failure on darwin
- From: "howarth at bromo dot med.uc.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Nov 2014 00:18:19 +0000
- Subject: [Bug jit/64089] libgccjit.so.0.0.1 linkage failure on darwin
- Auto-submitted: auto-generated
- References: <bug-64089-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64089
--- Comment #6 from howarth at bromo dot med.uc.edu ---
(In reply to dmalcolm from comment #5)
> (In reply to howarth from comment #1)
> > Failing build configured with...
> >
> > ../gcc-5-20141126/configure --prefix=/sw --prefix=/sw/lib/gcc5.0
> > --mandir=/sw/share/man --infodir=/sw/lib/gcc5.0/info
> > --enable-languages=c,c++,fortran,lto,objc,obj-c++,java,jit --with-gmp=/sw
> > --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib
> > --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
> > --program-suffix=-fsf-5.0
>
> BTW, if configuring with the jit enabled, --enable-host-shared is also
> required (or we won't have position-independent code, and the link will
> fail, or, at least, it will on Linux; am guessing the same will happen on
> Darwin).
>
> The configure script should probably enforce that, but it doesn't yet.
I don't believe this can be an issue on darwin as we always default to
producing PIC oode.