[LLVMdev] Compliation broken

Óscar Fuentes ofv at wanadoo.es
Thu Oct 2 16:04:36 PDT 2008


Haohui Mai <haohui.mai at gmail.com> writes:

> Hi all,
>
> The current repository (revision 56968.) does not compile on my Linux  
> box (with GCC 3.4.6):
>
> X86TargetAsmInfo.cpp:41: error: duplicate explicit instantiation of  
> `bool  
> llvm::X86TargetAsmInfo<BaseTAI>::ExpandInlineAsm(llvm::CallInst*)  
> const [with BaseTAI = llvm::TargetAsmInfo]'
> X86TargetAsmInfo.cpp:43: error: duplicate explicit instantiation of  
> `bool llvm::X86TargetAsmInfo<BaseTAI>::LowerToBSwap(llvm::CallInst*)  
> const [with BaseTAI = llvm::TargetAsmInfo]'

In

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

a user reports the same problem while using the CMake build system, and
then says that it compiles okay with configure && make. Now you say that
it fails with configure && make.

OTOH, as a comment on that bug report says, gcc 3.4.x is known to be
broken on AMD64:

http://llvm.org/docs/GettingStarted.html#brokengcc

> I'm not seeing this issue on my Macbook with GCC 4.0.1.
>
> And it seems that there is a file missing at llvm/tools/llvmc2/ 
> plugins. The Makefile  in llvm/tools/llvmc2/plugins/Base says:
>
> LLVMC_PLUGIN = Base
>
> include ../Makefile.common
>
> In which ../Makefile.common is missing.

There was a commit related to this very recently. Update and try again.

-- 
Oscar




More information about the llvm-dev mailing list