14 May 00:54
relocation R_X86_64_PC32 error when compiling 5.10.0 on linux x86_64 platform
I'm trying to
compile 64-bit 5.10.0 release on the following 64-bit
platform:
$ uname -a
Linux pa501c1n9 2.6.9-89.0.2.EL.msdw.1largesmp #1 SMP Fri Jun 12 15:15:13 EDT 2009 x86_64
Linux pa501c1n9 2.6.9-89.0.2.EL.msdw.1largesmp #1 SMP Fri Jun 12 15:15:13 EDT 2009 x86_64
The build is
successful. However, when I try to build a lib that links the libswipl.a
lib, I got the following error:
ld: ..../lib/libswipl.a(pl-file.o): relocation
R_X86_64_PC32 against `unallocStream' can not be used when making a shared
object; recompile with -fPIC
I compiled the
libswipl.a with -fPIC, but it doesn't help. This flag worked for 5.8.2
release which I experienced similar error, I don't recall the exact error as I
did it a while back.
gcc -c -I.
-I/var/tmp/build.yuliu/prolog/swi/5.10.0/x86_64.linux.2.6.glibc.2.3/gcc34_64/
src
-I/var/tmp/build.yuliu/prolog/swi/5.10.0/x86_64.linux.2.6.glibc.2.3/gcc34_64/src/rc
-Wall -O3 -fno-strict-aliasing -fPIC -fPIC -fPIC
-pthread libtai/caldate_fmjd.c
-o libtai/caldate_fmjd.o
Comparing the source
code between 5.10.0 and 5.8.2 release, the 'unallocStream' is newly added to
5.10.0 in src/pl-funcs.h.
Can someone help on
how to fix this?
Yu
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.
RSS Feed