[GHC] #15396: -staticlib is broken on GHC 8.4.3 on Linux under certain conditions

GHC ghc-devs at haskell.org
Mon Jul 16 14:17:29 UTC 2018


#15396: -staticlib is broken on GHC 8.4.3 on Linux under certain conditions
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.4.3
  (Linking)                          |
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by RyanGlScott):

 Note that I originally tried this with GHCs obtained
 https://launchpad.net/~hvr/+archive/ubuntu/ghc , but the same thing
 happens even if you use the official bindist (albeit with a ever-so-
 slightly different location in the panic):

 {{{
 $ ~/Software/ghc-8.4.3/bin/ghc -fforce-recomp -staticlib Bug.hs
 /u/rgscott/Software/ghc-8.4.3/lib/ghc-8.4.3/bin/ghc: /lib/x86_64-linux-
 gnu/libtinfo.so.5: no version information available (required by
 /home/rgscott/Software/ghc-8.4.3/lib/ghc-8.4.3/bin/../haskeline-0.7.4.2/libHShaskeline-0.7.4.2-ghc8.4.3.so)
 /u/rgscott/Software/ghc-8.4.3/lib/ghc-8.4.3/bin/ghc: /lib/x86_64-linux-
 gnu/libtinfo.so.5: no version information available (required by
 /home/rgscott/Software/ghc-8.4.3/lib/ghc-8.4.3/bin/../ghc-8.4.3/libHSghc-8.4.3-ghc8.4.3.so)
 /u/rgscott/Software/ghc-8.4.3/lib/ghc-8.4.3/bin/ghc: /lib/x86_64-linux-
 gnu/libtinfo.so.5: no version information available (required by
 /home/rgscott/Software/ghc-8.4.3/lib/ghc-8.4.3/bin/../terminfo-0.4.1.1/libHSterminfo-0.4.1.1-ghc8.4.3.so)
 [1 of 1] Compiling Main             ( Bug.hs, Bug.o )
 Linking Bug.a ...
 ghc: panic! (the 'impossible' happened)
   (GHC version 8.4.3 for x86_64-unknown-linux):
         Data.Binary.Get.runGet at position 27462451: Invalid archive
 header end marker
 CallStack (from HasCallStack):
   error, called at libraries/binary/src/Data/Binary/Get.hs:351:5 in
 binary-0.8.5.1:Data.Binary.Get
 }}}

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


More information about the ghc-tickets mailing list