[GHC] #14028: ghc panic: -fexternal-interpreter + .o + QuasiQuotes?
GHC
ghc-devs at haskell.org
Tue Jul 25 17:30:41 UTC 2017
#14028: ghc panic: -fexternal-interpreter + .o + QuasiQuotes?
-------------------------------------+-------------------------------------
Reporter: blynn | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.2
Keywords: ghc panic | Operating System: Linux
impossible |
Architecture: x86_64 | Type of failure: Compile-time
(amd64) | crash or panic
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
1. Compile an object file with -fPIC, e.g:
{{{
cat > hello.c << EOF
#include <stdio.h>
void hi(){puts("Hello, World!");}
EOF
gcc -c -fPIC hello.c
}}}
2. Write Haskell that uses QuasiQuotes, e.g:
{{{
cat > h.hs << EOF
{-# LANGUAGE QuasiQuotes #-}
import Text.Heredoc (here)
s :: String
s = [here|goes nothing|]
EOF
}}}
3. Compile with -fexternal-interpreter:
{{{
cabal install heredoc
ghc -fexternal-interpreter h.hs hello.o
}}}
I saw:
[1 of 1] Compiling Main ( h.hs, h.o )
ghc: panic! (the 'impossible' happened)
(GHC version 8.0.2 for x86_64-unknown-linux):
Loading temp shared object failed:
/home/blynn/.local/lib/ghc-8.0.2/ghc-prim-0.5.0.0/libHSghc-
prim-0.5.0.0-ghc8.0.2.so: undefined symbol: stg_thawArrayzh
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14028>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list