I see that the flag -fPIC is there while compiling ClangInternalState.cpp.o. So, I run out of ideas for the time being.
Hi Pere,
do you think this could help?
stackoverflow.com/questions/1477 … te-compila
stackoverflow.com/questions/2670 … fpic-issue
sourceware.org/ml/binutils/2006 … 00149.html
sourceware.org/ml/binutils/2012 … 00308.html
Thanks for the suggestions. I think we need to investigate the visibility of the symbol _ZNK5clang12CapturedDecl7getBodyEv
Can you now from the build directory do:
cd interpreter
find . -name *.cpp.o -exec nm {} \; | grep _ZNK5clang12CapturedDecl7getBodyEv
In SLC6 I get all weak symbols for this.
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
...
Can you also tell me the version of the linker
ld --version
Thanks
[root@rhes564 root6]# cd interpreter
[root@rhes564 interpreter]# find . -name *.cpp.o -exec nm {} ; | grep _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
0000000000000000 W _ZNK5clang12CapturedDecl7getBodyEv
[root@rhes564 interpreter]# ld --version
GNU ld version 2.17.50.0.6-6.el5 20061020
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
[root@rhes564 interpreter]#
There seem to be ld patches after 2.17 for relocation errors, see:
gcc.gnu.org/bugzilla/show_bug.cgi?id=65248
bugs.debian.org/cgi-bin/bugrepo … bug=503052
Maybe try to build by yourself the binutils package, and retry then with some extra flags in the configuration or something like alias ld="/opt/binutils/ld" …
Hi,
Is this the problem reported below:
Thanks