[LLVMbugs] [Bug 1055] NEW: LLVMlto library does not build on Linux (amd64)

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Dec 16 12:38:41 PST 2006


http://llvm.org/bugs/show_bug.cgi?id=1055

           Summary: LLVMlto library does not build on Linux (amd64)
           Product: Build scripts
           Version: cvs
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Makefiles
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: chandlerc at gmail.com


The library LLVMlto is only built on Darwin. Commenting out lines 26 and 28 of
tools/Makefile, to add lto to the build, results in the following error:

...
make[2]: Entering directory `/home/chandlerc/code/compilers/build/llvm/tools/lto'
llvm[2]: Linking Debug Loadable Module LLVMlto.so

*** Warning: Linking the shared library
/home/chandlerc/code/compilers/build/llvm/Debug/lib/LLVMlto.la against the
non-libtool
*** objects  /home/chandlerc/code/compilers/build/llvm/Debug/lib/LLVMARM.o
/home/chandlerc/code/compilers/build/llvm/Debug/lib/LLVMIA64.o
/home/chandlerc/code/compilers/build/llvm/Debug/lib/LLVMAlpha.o
/home/chandlerc/code/compilers/build/llvm/Debug/lib/LLVMPowerPC.o
/home/chandlerc/code/compilers/build/llvm/Debug/lib/LLVMSparc.o
/home/chandlerc/code/compilers/build/llvm/Debug/lib/LLVMX86.o
/home/chandlerc/code/compilers/build/llvm/Debug/lib/LLVMCBackend.o is not portable!
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/home/chandlerc/code/compilers/build/llvm/Debug/lib/LLVMARM.o: relocation
R_X86_64_32 against `llvm::SupportDwarfLinkVar' can not be used when making a
shared object; recompile with -fPIC
/home/chandlerc/code/compilers/build/llvm/Debug/lib/LLVMARM.o: could not read
symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [/home/chandlerc/code/compilers/build/llvm/Debug/lib/LLVMlto.la]
Error 1
make[2]: Leaving directory `/home/chandlerc/code/compilers/build/llvm/tools/lto'
...

The same error is generated using './configure --with-pic' and without.

I am running Gentoo Linux, amd64 architecture, gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3)
.

-Chandler



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list