[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


           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
*** objects  /home/chandlerc/code/compilers/build/llvm/Debug/lib/LLVMARM.o
/home/chandlerc/code/compilers/build/llvm/Debug/lib/LLVMCBackend.o is not portable!
/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)


------- 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