[GHC] #11531: ghci with ffi to inline assembly results in "the 'impossible'"
GHC
ghc-devs at haskell.org
Wed Feb 3 04:51:27 UTC 2016
#11531: ghci with ffi to inline assembly results in "the 'impossible'"
--------------------------------------+---------------------------------
Reporter: isovector | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.4
Keywords: ffi, asm, ghci | Operating System: Linux
Architecture: x86_64 (amd64) | Type of failure: None/Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
--------------------------------------+---------------------------------
I'm attempting to run some assembly in Haskell; in order to do that I
wrote a FFI to some inline C asm. Attempting to load it in ghci results
in:
$ g++ -c ffi.cpp -fPIC
$ ghci ffi.o Main.hs
GHCi, version 7.8.4: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading object (static) ffi.o ... ghc: panic! (the 'impossible' happened)
(GHC version 7.8.4 for x86_64-unknown-linux):
Loading temp shared object failed: /tmp/ghc8684_0/ghc8684_1.so:
undefined symbol: _ZNSt8ios_base4InitD1Ev
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
It said to report a bug, so here it is!
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11531>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list