Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save idontgetoutmuch/a37e8262406000b5d662594aeb7d60eb to your computer and use it in GitHub Desktop.
accelerate-llvm fails to build
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 '__ZN4llvm12handleErrorsIJZNS_12consumeErrorENS_5ErrorEEUlRKNS_13ErrorInfoBaseEE_EEES1_S1_DpOT_'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
__ZN4llvm12handleErrorsIJZNS_12consumeErrorENS_5ErrorEEUlRKNS_13ErrorInfoBaseEE_EEES1_S1_DpOT_
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_'
Segmentation fault: 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment