[LLVMdev] building LLVM 1.6 on Debian unstable ...

Marco Matthies marco-ml at gmx.net
Sat Nov 12 02:15:55 PST 2005


Sameer D. Sahasrabuddhe wrote:
> Hi,
> 
> Tried to build the 1.6 release on Debian unstable, but ran into link 
> problems for some utils ...
> 
> Copying the messages when building llc, the same error occurs for lli, 
> llvm-db and some of the examples. Is this a problem with the compiler 
> version? LLVMSelectionDAG.o itself builds correctly.
> 
> make[2]: Entering directory `/home/sameerds/data/llvm-1.6/tools/llc'
> llvm[2]: Linking Debug executable llc
> `.gnu.linkonce.t._ZNK4llvm14TargetLowering12getValueTypeEPKNS_4TypeE' 
> referenced
>  in section `.rodata' of 
> /home/sameerds/data/llvm-1.6/Debug/lib/LLVMSelectionDAG
> .o: defined in discarded section 
> `.gnu.linkonce.t._ZNK4llvm14TargetLowering12get
> ValueTypeEPKNS_4TypeE' of 
> /home/sameerds/data/llvm-1.6/Debug/lib/LLVMSelectionDA
> G.o
> collect2: ld returned 1 exit status

I believe this is a binutils issue (ld belongs to binutils).
See for example:
http://lists.debian.org/debian-gcc/2005/10/msg00305.html

Marco




More information about the llvm-dev mailing list