[LLVMbugs] [Bug 4298] New: Strange position-independent code, relocatable references problem.
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Jun 2 12:33:39 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4298
Summary: Strange position-independent code, relocatable
references problem.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: eocallaghan at auroraux.org
CC: llvmbugs at cs.uiuc.edu
Hi,
While trying to build the latest (At revision 72733.) svn trunk on AuroraUX (A
OpenSolaris derived distribution; Same result on SXCE snv_110), We hit a
strange position-independent code, relocatable references problem that has been
exceedingly hard to debug so far.
"ld: fatal: relocations remain against allocatable but non-writable sections"
Details of the failed build here:
http://pkg.auroraux.org/llvm_fail.txt
Configure Info:
./configure --prefix=/export/home2/edward/lab/TEST_BUILDS/llvm/test1
--enable-optimized --enable-assertions --enable-expensive-checks
Moving /usr/bin/ld aside 'fixes' the problem. Looking at a diff of the
config.log by moving /usr/bin/ld aside --export-dynamic gets set to 'yes' and
comes into effect, not sure of how much relevance's, although a very
interesting observation.
Tinkering around we figured that something may not have been getting built with
-fPIC somewhere somehow..
So we past --enable-pic=no at the end of the configure line seems to work
around this issue!
Details of the pass build (--enable-pic=no) here:
http://pkg.auroraux.org/llvm_pass_disable-pic.txt
The only other *idea* I could come up with is that there is hand-written
assembler code that has not been coded with the appropriate
position-independent prototypes.
I been trying very hard to try to fix this myself, however, am at a bit of a
loss, any pointers would be greatly appreciated.
System LD Info:
$ /usr/bin/ld --version
ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1652
$ /usr/sfw/bin/gld --version
GNU ld version 2.15
<snip>
Stock Solaris GCC Info:
$ /usr/sfw/bin/gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802)
<snip>
PATH setup:
$ echo $PATH
/usr/sfw/bin:/usr/gnu/bin:/opt/SUNWspro/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:/usr/sbin:/usr/X11/bin:/usr/ccs/bin
Thanks for your time,
Edward O'Callaghan.
-
http://www.auroraux.org/
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list