[GHC] #13137: Dynamic linker not initialised.

GHC ghc-devs at haskell.org
Mon Jan 16 22:13:50 UTC 2017


#13137: Dynamic linker not initialised.
-------------------------------------+-------------------------------------
        Reporter:  djduke            |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by RyanGlScott):

 Just as a sanity check, I did confirm that this isn't an OS-specific
 thing, and that this affects all GHCs built with
 `DYNAMIC_GHC_PROGRAMS=NO`, as I managed to receive the same error on Linux
 with a version of GHC HEAD built with `DYNAMIC_GHC_PROGRAMS=NO`:

 {{{
 $ cabal build
 Building accelerate-llvm-1.0.0.0...
 Preprocessing library accelerate-llvm-1.0.0.0...
 ghc-stage2: /usr/lib/llvm-3.8/lib/libLLVMSupport.a: unknown symbol
 `_ZGVZN4llvm7hashing6detail18get_execution_seedEvE4seed'
 ghc-stage2: Could not on-demand load symbol
 '_ZN4llvm16FoldingSetNodeID10AddIntegerEj'

 ghc-stage2: /usr/lib/llvm-3.8/lib/libLLVMSupport.a: unknown symbol
 `_ZN4llvm16FoldingSetNodeID10AddIntegerEj'
 ghc-stage2: Could not on-demand load symbol
 '_ZNK4llvm5APInt13EqualSlowCaseEm'

 ghc-stage2: /usr/lib/llvm-3.8/lib/libLLVMCore.a: unknown symbol
 `_ZNK4llvm5APInt13EqualSlowCaseEm'
 ghc-stage2: Could not on-demand load symbol '_ZNK4llvm5Value7getNameEv'

 ghc-stage2: /usr/lib/llvm-3.8/lib/libLLVMNVPTXCodeGen.a: unknown symbol
 `_ZNK4llvm5Value7getNameEv'
 ghc-stage2: Could not on-demand load symbol
 '_ZN4llvm3sys10SmartMutexILb0EED1Ev'

 ghc-stage2: /usr/lib/llvm-3.8/lib/libLLVMSupport.a: unknown symbol
 `_ZN4llvm3sys10SmartMutexILb0EED1Ev'
 ghc-stage2: Could not on-demand load symbol
 '_ZNK4llvm17ManagedStaticBase21RegisterManagedStaticEPFPvvEPFvS1_E'

 ghc-stage2: /usr/lib/llvm-3.8/lib/libLLVMCore.a: unknown symbol
 `_ZNK4llvm17ManagedStaticBase21RegisterManagedStaticEPFPvvEPFvS1_E'
 ghc-stage2: Could not on-demand load symbol
 '_ZN4llvm12PassRegistry15getPassRegistryEv'

 ghc-stage2: /usr/lib/llvm-3.8/lib/libLLVMLTO.a: unknown symbol
 `_ZN4llvm12PassRegistry15getPassRegistryEv'
 ghc-stage2: Could not on-demand load symbol
 '_ZTVN4llvm17DiagnosticPrinterE'

 ghc-stage2: /usr/lib/llvm-3.8/lib/libLLVMCore.a: unknown symbol
 `_ZTVN4llvm17DiagnosticPrinterE'
 ghc-stage2: Could not on-demand load symbol 'LLVMIsMultithreaded'

 ghc-stage2: /home/rgscott/.cabal/lib/x86_64-linux-ghc-8.1.20170116/llvm-
 general-3.8.0.0-ANwvTQYpoC83vup0OmjiSV/HSllvm-
 general-3.8.0.0-ANwvTQYpoC83vup0OmjiSV.o: unknown symbol
 `LLVMIsMultithreaded'
 [25 of 52] Compiling Data.Array.Accelerate.LLVM.CodeGen.Monad[boot] (
 Data/Array/Accelerate/LLVM/CodeGen/Monad.hs-boot,
 dist/build/Data/Array/Accelerate/LLVM/CodeGen/Monad.o-boot )
 [26 of 52] Compiling Data.Array.Accelerate.LLVM.Util (
 Data/Array/Accelerate/LLVM/Util.hs,
 dist/build/Data/Array/Accelerate/LLVM/Util.o )

 <no location info>: error:
     ghc-stage2: unable to load package `llvm-general-3.8.0.0'
 [27 of 52] Compiling Data.Range.Range ( Data/Range/Range.hs,
 dist/build/Data/Range/Range.o )

 <no location info>: error:
     ghc-stage2: panic! (the 'impossible' happened)
   (GHC version 8.1.20170116 for x86_64-unknown-linux):
         Dynamic linker not initialised

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

 [34 of 52] Compiling Data.Array.Accelerate.LLVM.CodeGen.Ptr (
 Data/Array/Accelerate/LLVM/CodeGen/Ptr.hs,
 dist/build/Data/Array/Accelerate/LLVM/CodeGen/Ptr.o )

 <no location info>: error:
     ghc-stage2: panic! (the 'impossible' happened)
   (GHC version 8.1.20170116 for x86_64-unknown-linux):
         Dynamic linker not initialised

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

 [35 of 52] Compiling Data.Array.Accelerate.LLVM.CodeGen.IR (
 Data/Array/Accelerate/LLVM/CodeGen/IR.hs,
 dist/build/Data/Array/Accelerate/LLVM/CodeGen/IR.o )

 <no location info>: error:
     ghc-stage2: panic! (the 'impossible' happened)
   (GHC version 8.1.20170116 for x86_64-unknown-linux):
         Dynamic linker not initialised

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13137#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list