GProlog version 1.4.4 not compiling with clang 3.7

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

GProlog version 1.4.4 not compiling with clang 3.7

Gaurang Shastri
Hi Devs,

I am trying to compile GProlog version 1.4.4 with clang 3.7, but end up with following error:
==
[ ! -f  pl2wam ] || cp pl2wam pl2wam0
gplc -o pl2wam -fPIC --no-fd-lib-warn --no-top-level pl2wam.o read_file.o syn_sugar.o internal.o code_gen.o reg_alloc.o inst_codif.o first_arg.o indexing.o wam_emit.o
/mnt/Ubuntu-12.04/x86_64/llvm/3.7/20170315/bin/ld: pl2wam.o: relocation R_X86_64_32S against `pl_reg_bank' can not be used when making a shared object; recompile with -fPIC
pl2wam.o: error adding symbols: Bad value
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
compilation failed
make[1]: *** [pl2wam] Error 1
make[1]: Leaving directory `/build/gprolog/src/gprolog-1.4.4/src/Pl2Wam'
make: *** [all] Error 1
==

I have tried "-fPIC" option with CFLAGS, LDFLAGS but no use. Is this known issue for GProlog?

FYI, I am able to build GProlog v1.4.4 without any issue on stock Ubuntu 12.04 (./configure, make).

Let me know if I am missing anything.

Regards,
Gaurang

_______________________________________________
Users-prolog mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/users-prolog