Re: Build fail on 64 bit Ubuntu
Salvador Pinto Abreu <[email protected]> Sat, 7 Jan 2017 22:26:10 +0000
| Newsgroups | gmane.comp.gnu.prolog.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Sean, If you grab the latest on Ubuntu, it should work: https://launchpad.net/ubuntu/+source/gprolog I think this is about pie (position-independent executable), which appears to default to on in recent gcc releases; you can also recompile adding -no-pie to CFLAGS. Best -salvador > On 07 Jan 2017, at 22h16, emacstheviking <[email protected]> wrote: > > Hi, > > The repo version is 1.3 so I decided to download and build from source as I have done many times on OSX... however, I get this error at the end of the process, showing one line only for brevity: > > /usr/bin/ld: /home/sean/Downloads/gprolog-code/src/BipsPl/all_pl_bips.o: relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC > > I tried re-running configure as: > > $ ./configure CFLAGS=-fPIC but it did not apear in the build > > So I edited the CCFLAGS line in BipsPl/Makefile to be > > CFLAGS = -O3 -fomit-frame-pointer -fPIC > > And rebuilt... this time the -fPIC option was present in the calls to gplc however it still made no difference. I also manually entered a value of -fPIC for GPLCFLAGS as well in the same makefile. Again, it showed in the build but the link error persists? > > How do I solve this please anybody? I am going to install the repo version for now but I don't like not having the latest version. Presumably the repo version is 64 bit but I have not looked yet. > > Thanks. > Sean. > > > _______________________________________________ > Users-prolog mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/users-prolog _______________________________________________ Users-prolog mailing list [email protected] https://lists.gnu.org/mailman/listinfo/users-prolog
signature.asc
(application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJYcWsIAAoJEGgGLTqLOTKtMF4P/i0rMvvNXoSfoXWwUtOJtaJH 8JwQqh0+I5ZxZzTVsGH4K1b75Jo5Lk45C4nhM94DfjzTy6rYMYBzDIkGIv+NddVa 9fv42qYtJmV0Mnyx2FtVbqXDd7olKHDGcBXz90XnjF3jX1/3CPMow3FpxzJwD8w0 FhaqS3M3BScAon0OR/NVxL/B50ID9C6scClFxKkNz9XrLHGVNcwhjqoUcD732qvx TbqrOAbCxlHL/Tm7pNCSNWKobrTHTT3qZpUHdjrtJo+MVikLidgct7Zbx+ZabTQL +ptwhy8e1fAo5zKKGskVTVDB5zrgeYASVMP6l0zTYOUceyD/UA2tDka6B/J9fBHB uREzM6OfTtGdAmJC/I051hPHzxQFnF3Ywi48gF697mOFk7qY5m4kQDmKpkosTbAS KgzN/cGzvmgGRKuqTWWGVXHMW+CYH8FMr2stVFu6ItO+Vx8L+Uau04lctZAYBQcC j3TUsA4tWCBJwz+gkFk8ezZUHy3rzMWG3DXhUzrE3q7y2CwE2UZgqxiOMFT1kvcL OCEj4Oyq/Fc/0POxE/crZYmh3xeFMpfcyd/idQ7nA2/SmmZm+aOq8+fIxUPvm0// gpm7PFM07M3GrxUn385odBFmOEdmhMpxvcFIQn3pLrYi1MBTmJPx0+T7HcjaUI9Y R9fRkv+Hnh9rAq8FYNqw =Pye2 -----END PGP SIGNATURE-----