Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save idontgetoutmuch/229af3bbdf5af49067c7986dfb587d66 to your computer and use it in GitHub Desktop.

Select an option

Save idontgetoutmuch/229af3bbdf5af49067c7986dfb587d66 to your computer and use it in GitHub Desktop.
accelerate-llvm build problem
cabal build
Building accelerate-llvm-1.0.0.0...
Preprocessing library accelerate-llvm-1.0.0.0...
[24 of 52] Compiling Data.Range.Range ( Data/Range/Range.hs, dist/build/Data/Range/Range.o )
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMLTO.a: unknown symbol `__ZN4llvm15PrintStatisticsEv'
ghc: Could not on-demand load symbol '__ZNSt3__16vectorIPN4llvm8ConstantENS_9allocatorIS3_EEE21__push_back_slow_pathIRKS3_EEvOT_'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZNSt3__16vectorIPN4llvm8ConstantENS_9allocatorIS3_EEE21__push_back_slow_pathIRKS3_EEvOT_
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMLTO.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMLTO.a(LTOCodeGenerator.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZN4llvm19SmallPtrSetImplBase10insert_impEPKv'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZN4llvm19SmallPtrSetImplBase10insert_impEPKv
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMObjCARCOpts.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMLTO.a(UpdateCompilerUsed.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZN4llvm4Pass14doFinalizationERNS_6ModuleE'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMSymbolize.a: unknown symbol `__ZN4llvm6object18computeSymbolSizesERKNS0_10ObjectFileE'
ghc: Could not on-demand load symbol '__ZN4llvm15SmallVectorImplINS_10DILineInfoEED2Ev'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a: unknown symbol `__ZN4llvm3pdb20PDBSymbolTypeManagedC1ERKNS0_11IPDBSessionENSt3__110unique_ptrINS0_13IPDBRawSymbolENS5_14default_deleteIS7_EEEE'
ghc: Could not on-demand load symbol '__ZNK4llvm3pdb9PDBSymbol9getSymTagEv'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a: unknown symbol `__ZNK4llvm3pdb9PDBSymbol9getSymTagEv'
ghc: Could not on-demand load symbol '__ZNK4llvm3pdb11IPDBSession21getConcreteSymbolByIdINS0_16PDBSymbolTypeUDTEEENSt3__110unique_ptrIT_NS4_14default_deleteIS6_EEEEj'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZN4llvm15SmallVectorImplINS_10DILineInfoEED2Ev
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMSymbolize.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMSymbolize.a(SymbolizableObjectFile.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZN4llvm9ErrorList4joinENS_5ErrorES1_'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZN4llvm9ErrorList4joinENS_5ErrorES1_
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMSymbolize.a(Symbolize.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZN4llvm11make_uniqueINS_3pdb8RawErrorEJNS1_14raw_error_codeERA32_KcEEENSt3__19enable_ifIXntsr3std8is_arrayIT_EE5valueENS7_10unique_ptrIS9_NS7_14default_deleteIS9_EEEEE4typeEDpOT0_'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a: unknown symbol `__ZN4llvm3pdb8RawErrorC1ENS0_14raw_error_codeERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE'
ghc: Could not on-demand load symbol '__ZN4llvm11make_uniqueINS_3pdb8RawErrorEJNS1_14raw_error_codeERA27_KcEEENSt3__19enable_ifIXntsr3std8is_arrayIT_EE5valueENS7_10unique_ptrIS9_NS7_14default_deleteIS9_EEEEE4typeEDpOT0_'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZN4llvm11make_uniqueINS_3pdb8RawErrorEJNS1_14raw_error_codeERA27_KcEEENSt3__19enable_ifIXntsr3std8is_arrayIT_EE5valueENS7_10unique_ptrIS9_NS7_14default_deleteIS9_EEEEE4typeEDpOT0_
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a(DbiStreamBuilder.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZN4llvm11make_uniqueINS_3pdb8RawErrorEJNS1_14raw_error_codeERA24_KcEEENSt3__19enable_ifIXntsr3std8is_arrayIT_EE5valueENS7_10unique_ptrIS9_NS7_14default_deleteIS9_EEEEE4typeEDpOT0_'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a: unknown symbol `__ZN4llvm3pdb8RawErrorC1ENS0_14raw_error_codeERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE'
ghc: Could not on-demand load symbol '__ZN4llvm11make_uniqueINS_3pdb8RawErrorEJNS1_14raw_error_codeERA28_KcEEENSt3__19enable_ifIXntsr3std8is_arrayIT_EE5valueENS7_10unique_ptrIS9_NS7_14default_deleteIS9_EEEEE4typeEDpOT0_'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a: unknown symbol `__ZN4llvm3pdb8RawErrorC1ENS0_14raw_error_codeERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE'
ghc: Could not on-demand load symbol '__ZN4llvm11make_uniqueINS_3pdb8RawErrorEJNS1_14raw_error_codeERA36_KcEEENSt3__19enable_ifIXntsr3std8is_arrayIT_EE5valueENS7_10unique_ptrIS9_NS7_14default_deleteIS9_EEEEE4typeEDpOT0_'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZN4llvm11make_uniqueINS_3pdb8RawErrorEJNS1_14raw_error_codeERA28_KcEEENSt3__19enable_ifIXntsr3std8is_arrayIT_EE5valueENS7_10unique_ptrIS9_NS7_14default_deleteIS9_EEEEE4typeEDpOT0_
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a(NameHashTable.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZN4llvm9StringMapIjNS_15MallocAllocatorEE14emplace_secondIJjEEENSt3__14pairINS_17StringMapIteratorIjEEbEENS_9StringRefEDpOT_'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a: unknown symbol `__ZNK4llvm3pdb7PDBFile22getDirectoryBlockArrayEv'
ghc: Could not on-demand load symbol '__ZN4llvm20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EED2Ev'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZN4llvm20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EED2Ev
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a(MappedBlockStream.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZN4llvm11make_uniqueINS_3pdb8RawErrorEJNS1_14raw_error_codeERA42_KcEEENSt3__19enable_ifIXntsr3std8is_arrayIT_EE5valueENS7_10unique_ptrIS9_NS7_14default_deleteIS9_EEEEE4typeEDpOT0_'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoPDB.a: unknown symbol `__ZNK4llvm8codeview15ModuleSubstream15getRecordLengthEv'
ghc: Could not on-demand load symbol '__ZN4llvm8codeview12StreamReader9readArrayINS0_8CVRecordINS0_10SymbolKindEEENS0_23VarStreamArrayExtractorIS5_EEEENS_5ErrorERNS0_14VarStreamArrayIT_T0_EEj'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMLTO.a: unknown symbol `__ZN4llvm10ThreadPoolD1Ev'
ghc: Could not on-demand load symbol '__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initIPcEENS_9enable_ifIXsr21__is_forward_iteratorIT_EE5valueEvE4typeES9_S9_'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a: unknown symbol `__ZNK4llvm14DWARFFormValue4dumpERNS_11raw_ostreamEPKNS_9DWARFUnitE'
ghc: Could not on-demand load symbol '__ZNK4llvm12DenseMapBaseINS_8DenseMapIyNSt3__14pairIhxEENS_12DenseMapInfoIyEENS_6detail12DenseMapPairIyS4_EEEEyS4_S6_S9_E15LookupBucketForIyEEbRKT_RPKS9_'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZNK4llvm12DenseMapBaseINS_8DenseMapIyNSt3__14pairIhxEENS_12DenseMapInfoIyEENS_6detail12DenseMapPairIyS4_EEEEyS4_S6_S9_E15LookupBucketForIyEEbRKT_RPKS9_
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a(DWARFAcceleratorTable.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZNSt3__113__vector_baseIN4llvm28DWARFAbbreviationDeclarationENS_9allocatorIS2_EEED2Ev'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a: unknown symbol `__ZN4llvm9DWARFUnitD2Ev'
ghc: Could not on-demand load symbol '__ZNK4llvm13format_objectIJhEE7snprintEPcj'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZNSt3__113__vector_baseIN4llvm28DWARFAbbreviationDeclarationENS_9allocatorIS2_EEED2Ev
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a(DWARFContext.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZNK4llvm13format_objectIJyEE7snprintEPcj'
ghc:
lookupSymbol failed in relocateSection (RELOC_GOT)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a: unknown symbol `__ZTVN4llvm13format_objectIJjyyEEE'
ghc: Could not on-demand load symbol '__ZN4llvm19DWARFDebugRangeList5clearEv'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a: unknown symbol `__ZN4llvm19DWARFDebugRangeList5clearEv'
ghc: Could not on-demand load symbol '__ZNSt3__113__vector_baseINS_4pairIyyEENS_9allocatorIS2_EEED2Ev'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZNSt3__113__vector_baseINS_4pairIyyEENS_9allocatorIS2_EEED2Ev
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a(DWARFDebugInfoEntry.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZNSt3__113__vector_baseINS_4pairIyyEENS_9allocatorIS2_EEED2Ev
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a(DWARFDebugInfoEntry.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZN4llvm19DWARFDebugRangeList7extractENS_13DataExtractorEPj'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a: unknown symbol `__ZN4llvm19DWARFDebugRangeList7extractENS_13DataExtractorEPj'
ghc: Could not on-demand load symbol '__ZN4llvm9DWARFUnit20collectAddressRangesERNSt3__16vectorINS1_4pairIyyEENS1_9allocatorIS4_EEEE'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a: unknown symbol `__ZN4llvm9DWARFUnit20collectAddressRangesERNSt3__16vectorINS1_4pairIyyEENS1_9allocatorIS4_EEEE'
ghc: Could not on-demand load symbol '__ZNSt3__16__treeIjNS_4lessIjEENS_9allocatorIjEEE16__insert_node_atEPNS_16__tree_node_baseIPvEERS9_S9_'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZNSt3__16__treeIjNS_4lessIjEENS_9allocatorIjEEE16__insert_node_atEPNS_16__tree_node_baseIPvEERS9_S9_
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMMIRParser.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a(DWARFDebugAranges.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZN4llvm23SmallVectorTemplateBaseIjLb1EE9push_backERKj'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZN4llvm23SmallVectorTemplateBaseIjLb1EE9push_backERKj
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMCoverage.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMMIRParser.a(MIRParser.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZN4llvm8coverage20BinaryCoverageReader6createERNSt3__110unique_ptrINS_12MemoryBufferENS2_14default_deleteIS4_EEEENS_9StringRefE'
ghc:
lookupSymbol failed in relocateSection (relocate external)
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMCoverage.a: unknown symbol `__ZN4llvm8coverage20BinaryCoverageReader6createERNSt3__110unique_ptrINS_12MemoryBufferENS2_14default_deleteIS4_EEEENS_9StringRefE'
ghc: Could not on-demand load symbol '__ZNSt3__16vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE8allocateEm'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZNSt3__16vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE8allocateEm
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMTableGen.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMCoverage.a(CoverageMapping.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZNSt3__16vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZNSt3__16vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMTableGen.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMTableGen.a(Main.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZNKSt3__16__treeINS_12__value_typeINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_10unique_ptrIN4llvm6RecordENS_14default_deleteISA_EEEEEENS_19__map_value_compareIS7_SE_NS_4lessIS7_EELb1EEENS5_ISE_EEE13__lower_boundIS7_EENS_21__tree_const_iteratorISE_PNS_11__tree_nodeISE_PvEElEERKT_SQ_SQ_'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZNK4llvm13format_objectIJhEE7snprintEPcj
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a(DWARFCompileUnit.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZNSt3__113__vector_baseIyNS_9allocatorIyEEED2Ev'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZNSt3__113__vector_baseIyNS_9allocatorIyEEED2Ev
whilst processing object file
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMOrcJIT.a
The symbol was previously defined in
/usr/local/Cellar/llvm/3.9.1/lib/libLLVMDebugInfoDWARF.a(DWARFDebugFrame.cpp.o)
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc: Could not on-demand load symbol '__ZN4llvm3sys17OwningMemoryBlockD2Ev'
Segmentation fault: 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment