
#16257: -fexternal-interpreter with external C shared library leads to undefined symbol during template haskell phase -------------------------------------+------------------------------------- Reporter: guibou | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by guibou): Note that instead of patching the library, `LD_PRELOAD` can be used: {{{ LD_PRELOAD=/nix/store/6dhcmmfgy5fa0p3d235yaz4qfx8jhpar- gsl-2.5/lib/libgslcblas.so ghc -package hmatrix-gsl Foo.hs -fexternal- interpreter -fforce-recomp [1 of 1] Compiling Main ( Foo.hs, Foo.o ) Linking Foo ... }}} Succeed after 25s. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16257#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler