[LLVMdev] llvm build broken with "--enable-targets=x86, x86_64, arm"

Jean-Daniel Dupas devlists at shadowlab.org
Mon Aug 2 16:02:55 PDT 2010


This is a known issue. 
To workaround it, you can remove either x86 or x86_64 in the configure line. 
FWIK, adding just one of this two target is enough to support both 32 bit and 64 bit architecture.

./configure --enable-optimized --disable-assertions --enable-targets=x86_64,arm --build=x86_64-apple-darwin10

Le 3 août 2010 à 00:41, Greg Clayton a écrit :

> The following configure/make is failing on the top of tree llvm/clang sources:
> 
> ./configure --enable-optimized --disable-assertions --enable-targets=x86,x86_64,arm --build=x86_64-apple-darwin10
> ./make clang-only
> 
> llvm[2]: Compiling Tool.cpp for Release build
> In file included from /Volumes/work/gclayton/Documents/src/llvm/include/llvm/Target/TargetSelect.h:38,
>                from EDDisassembler.cpp:37:
> /Volumes/work/gclayton/Documents/src/llvm/include/llvm/Config/AsmPrinters.def: In function 'void LLVMInitializeX86TargetAsmPrinter()':
> /Volumes/work/gclayton/Documents/src/llvm/include/llvm/Config/AsmPrinters.def:27: error: redefinition of 'void LLVMInitializeX86TargetAsmPrinter()'
> /Volumes/work/gclayton/Documents/src/llvm/include/llvm/Config/AsmPrinters.def:27: error: 'void LLVMInitializeX86TargetAsmPrinter()' previously defined here
> make[3]: *** [/Volumes/work/gclayton/Documents/src/llvm/lib/MC/MCDisassembler/Release/EDDisassembler.o] Error 1
> make[2]: *** [MCDisassembler/.makeall] Error 2
> make[1]: *** [MC/.makeall] Error 2
> make[1]: *** Waiting for unfinished jobs....
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-- Jean-Daniel








More information about the llvm-dev mailing list