[GHC] #13786: GHC panic with "cabal repl" / "stack repl" on GHC 8.0.2 and 7.8.3

GHC ghc-devs at haskell.org
Mon Jun 5 16:49:39 UTC 2017


#13786: GHC panic with "cabal repl" / "stack repl" on GHC 8.0.2 and 7.8.3
-------------------------------------+-------------------------------------
        Reporter:  ppelleti          |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  GHCi              |              Version:  8.0.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         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 ppelleti):

 I fixed the circular dependency for isSecureAccessEnabled, and got this
 order to work:

 {{{
   c-sources:           cbits/api/serial_transport_posix.c
                      , cbits/api/osdep_posix.c
                      , cbits/api/tmr_strerror.c
                      , cbits/api/tmr_utils.c
                      , cbits/api/tmr_param.c
                      , cbits/api/hex_bytes.c
                      , cbits/api/serial_reader_l3.c
                      , cbits/api/serial_reader.c
                      , cbits/api/tm_reader_async.c
                      , cbits/api/tm_reader.c
                      , cbits/glue/glue.c
 }}}

 However, the unpleasant part is that Cabal seems to always put the
 conditional c-sources after the unconditional c-sources, even if I put the
 conditional c-sources first in the Cabal file.  So, the only workaround
 seems to be to list all the sources twice: once for POSIX and once for
 Windows.

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


More information about the ghc-tickets mailing list