[GHC] #10355: Dynamic linker not initialised

#10355: Dynamic linker not initialised -------------------------------------+------------------------------------- Reporter: dpiponi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- I get this message: [ 3 of 24] Compiling Cable ( src/Cable.hs, dist/build/ui/ui- tmp/Cable.o ) <no location info>: ghc: panic! (the 'impossible' happened) (GHC version 7.10.1 for x86_64-apple-darwin): Dynamic linker not initialised Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug when building my code here: https://github.com/dpiponi/Moodler/tree/master/Moodler/src under Yosemite 10.10.2 So I'm reporting it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10355 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10355: Dynamic linker not initialised -------------------------------------+------------------------------------- Reporter: dpiponi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.10.1 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: 9868 | Differential Revisions: -------------------------------------+------------------------------------- Changes (by ezyang): * component: Compiler => Runtime System (Linker) * related: => 9868 Comment: Related #9868 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10355#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10355: Dynamic linker not initialised -------------------------------------+------------------------------------- Reporter: dpiponi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.10.1 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9868 | Differential Revisions: -------------------------------------+------------------------------------- Changes (by ezyang): * related: 9868 => #9868 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10355#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10355: Dynamic linker not initialised -------------------------------------+------------------------------------- Reporter: dpiponi | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Runtime System | Version: 7.10.1 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9868 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => infoneeded Comment: dpiponi: could you check if this is still a problem with ghc-7.10.2? Thanks. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10355#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10355: Dynamic linker not initialised -------------------------------------+------------------------------------- Reporter: dpiponi | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Runtime System | Version: 7.10.1 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9868, #10919 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by adamgundry): * related: #9868 => #9868, #10919 Comment: See also #10919, which suggests this may be fixed in 7.10.3. I've just seen it in a large codebase using 7.10.2, where it appears to be related to the fact that my `.cabal` file was missing some `exposed-modules`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10355#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10355: Dynamic linker not initialised -------------------------------------+------------------------------------- Reporter: dpiponi | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Runtime System | Version: 7.10.1 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9868, #10919 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by _deepfire): I have this with 7.10.3. Thankfully I'm also using NixOS, so reproduction /should/ be easier. {{{ [nix-shell:~/src/corr]$ cabal clean && cabal build cleaning... Package has never been configured. Configuring with default flags. If this fails, please run configure manually. Warning: The package list for 'hackage.haskell.org' is 83.0 days old. Run 'cabal update' to get the latest list of available packages. Resolving dependencies... Configuring youtrack-tools-0.0.5... Building youtrack-tools-0.0.5... Preprocessing executable 'corr' for youtrack-tools-0.0.5... [1 of 8] Compiling Table ( Table.hs, dist/build/corr/corr- tmp/Table.o ) <no location info>: ghc: panic! (the 'impossible' happened) (GHC version 7.10.3 for x86_64-unknown-linux): Dynamic linker not initialised Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug [2 of 8] Compiling Supplementary ( Supplementary.hs, dist/build/corr /corr-tmp/Supplementary.o ) <no location info>: Failed to load interface for ‘Types’ There are files missing in the ‘youtrack-0.0.5’ package, try running 'ghc-pkg check'. Use -v to see a list of the files searched for. [3 of 8] Compiling Radio ( Radio.hs, dist/build/corr/corr- tmp/Radio.o ) <no location info>: <command line>: can't load .so/.DLL for: /nix/store /l4m6gibfh45d6z9401j3p2rzrmj8zi4q- youtrack-0.0.5/lib/ghc-7.10.3/youtrack-0.0.5/libHSyoutrack-0.0.5-DFajfBx8BmuHqbhbeFC750-ghc7.10.3.so (/nix/store/l4m6gibfh45d6z9401j3p2rzrmj8zi4q- youtrack-0.0.5/lib/ghc-7.10.3/youtrack-0.0.5/libHSyoutrack-0.0.5-DFajfBx8BmuHqbhbeFC750-ghc7.10.3.so: undefined symbol: youtrzuDFajfBx8BmuHqbhbeFC750_Exchanges_requestzutype_info) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10355#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10355: Dynamic linker not initialised -------------------------------------+------------------------------------- Reporter: dpiponi | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Runtime System | Version: 7.10.1 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9868, #10919 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by _deepfire): GHC 8.0.1-rc4 fails differently: {{{ <- [1 of 8] Compiling Table ( Table.hs, interpreted ) <- [2 of 8] Compiling Supplementary ( Supplementary.hs, interpreted ) <- Supplementary.hs:120:20-25: error: • Can't find interface-file declaration for type constructor or class MLogin Probable cause: bug in .hi-boot file, or inconsistent .hi file Use -ddump-if-trace to get an idea of which file caused the error • In the first argument of ‘Default’, namely ‘MLogin’ In the instance declaration for ‘Default MLogin’ Supplementary.hs:121:20-25: error: • Can't find interface-file declaration for type constructor or class MLogin Probable cause: bug in .hi-boot file, or inconsistent .hi file Use -ddump-if-trace to get an idea of which file caused the error • In the first argument of ‘Arbitrary’, namely ‘MLogin’ In the instance declaration for ‘Arbitrary MLogin’ Supplementary.hs:122:20-28: error: • Can't find interface-file declaration for type constructor or class MFullName Probable cause: bug in .hi-boot file, or inconsistent .hi file Use -ddump-if-trace to get an idea of which file caused the error • In the first argument of ‘Default’, namely ‘MFullName’ In the instance declaration for ‘Default MFullName’ Supplementary.hs:123:20-28: error: • Can't find interface-file declaration for type constructor or class MFullName Probable cause: bug in .hi-boot file, or inconsistent .hi file Use -ddump-if-trace to get an idea of which file caused the error • In the first argument of ‘Arbitrary’, namely ‘MFullName’ In the instance declaration for ‘Arbitrary MFullName’ Supplementary.hs:125:20-25: error: • Can't find interface-file declaration for type constructor or class Member Probable cause: bug in .hi-boot file, or inconsistent .hi file Use -ddump-if-trace to get an idea of which file caused the error • In the first argument of ‘Default’, namely ‘Member’ In the instance declaration for ‘Default Member’ Supplementary.hs:126:20-25: error: • Can't find interface-file declaration for type constructor or class Member Probable cause: bug in .hi-boot file, or inconsistent .hi file Use -ddump-if-trace to get an idea of which file caused the error • In the first argument of ‘Arbitrary’, namely ‘Member’ In the instance declaration for ‘Arbitrary Member’ Failed, modules loaded: Table. }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10355#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10355: Dynamic linker not initialised -------------------------------------+------------------------------------- Reporter: dpiponi | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Runtime System | Version: 7.10.1 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9868, #10919 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by _deepfire): * cc: _deepfire@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10355#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10355: Dynamic linker not initialised -------------------------------------+------------------------------------- Reporter: dpiponi | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Runtime System | Version: 7.10.1 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9868, #10919 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by _deepfire): adamgundry: indeed, I can independently verify that 7.10.3 was healed by adding modules to the Cabal `exposed-modules`! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10355#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10355: Dynamic linker not initialised -------------------------------------+------------------------------------- Reporter: dpiponi | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: Component: Runtime System | Version: 7.10.1 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9868, #10919, | Differential Rev(s): Phab:D5012 #13137, #13531, #13607 | Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: infoneeded => patch * differential: => Phab:D5012 * related: #9868, #10919 => #9868, #10919, #13137, #13531, #13607 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10355#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10355: Dynamic linker not initialised
-------------------------------------+-------------------------------------
Reporter: dpiponi | Owner: (none)
Type: bug | Status: patch
Priority: normal | Milestone:
Component: Runtime System | Version: 7.10.1
(Linker) |
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #9868, #10919, | Differential Rev(s): Phab:D5012
#13137, #13531, #13607 |
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#10355: Dynamic linker not initialised -------------------------------------+------------------------------------- Reporter: dpiponi | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: Runtime System | Version: 7.10.1 (Linker) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9868, #10919, | Differential Rev(s): Phab:D5012 #13137, #13531, #13607 | Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed * milestone: => 8.6.1 Comment: I believe this should be fixed in 8.6. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10355#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC