Skip to content

ghci with ffi to inline assembly results in "the 'impossible'"

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!

Trac metadata
Trac field Value
Version 7.8.4
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Edited by Peter Trommler
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information