On Wednesday, 2 October 2013 at 02:22:42 UTC, Alan wrote:
Hello! I'm working on a project and I was going to use LLVM
with the LLVM-D wrapper which has it's own Dub package and
everything https://github.com/Calrama/llvm-d
I've installed the package with Dub, added it to my
packages/builds dependencies.
When I build however I get an error:
Linking...
/usr/bin/ld: error: /home/apott/projects/Hyphen/temp.o:
multiple definition of
'_D4llvm1d2ir10basicblock10BasicBlock16removeFromParentMFZv'
/usr/bin/ld: /home/apott/projects/Hyphen/temp.o: previous
definition here
/home/apott/projects/Hyphen/temp.o:../../.dub/packages/llvm-d-master/llvm/d/ir/globalvariable.d:function
_D4llvm1d2ir8constant8Constant6__vtblZ: error: undefined
reference to
'_D4llvm1d2ir8constant8Constant27replaceUsesOfWithOnConstantMFC4llvm1d2ir5value5ValueC4llvm1d2ir5value5ValueC4llvm1d2ir3use3UseZv'
/home/apott/projects/Hyphen/temp.o:../../.dub/packages/llvm-d-master/llvm/d/ir/globalvariable.d:function
_D4llvm1d2ir11globalvalue11GlobalValue6__vtblZ: error:
undefined reference to
'_D4llvm1d2ir8constant8Constant27replaceUsesOfWithOnConstantMFC4llvm1d2ir5value5ValueC4llvm1d2ir5value5ValueC4llvm1d2ir3use3UseZv'
/home/apott/projects/Hyphen/temp.o:../../.dub/packages/llvm-d-master/llvm/d/ir/globalvariable.d:function
_D4llvm1d2ir12llvmfunction8Function6__vtblZ: error: undefined
reference to
'_D4llvm1d2ir8constant8Constant27replaceUsesOfWithOnConstantMFC4llvm1d2ir5value5ValueC4llvm1d2ir5value5ValueC4llvm1d2ir3use3UseZv'
/home/apott/projects/Hyphen/temp.o:../../.dub/packages/llvm-d-master/llvm/d/ir/globalvariable.d:function
_D4llvm1d2ir9constants10UndefValue6__vtblZ: error: undefined
reference to
'_D4llvm1d2ir8constant8Constant27replaceUsesOfWithOnConstantMFC4llvm1d2ir5value5ValueC4llvm1d2ir5value5ValueC4llvm1d2ir3use3UseZv'
collect2: error: ld returned 1 exit status
--- errorlevel 1
Error: Link command failed with exit code 1
I want to know if anyone here has any experience witht his by
any chance? The source of the problem? Is it a bug? Thanks for
any suggestions.
The errors are now fixed in llvm-d master. They were very silly
typos I overlooked repeatedly. Shame on me.