[GHC] #16257: -fexternal-interpreter with external C shared library leads to undefined symbol during template haskell phase

GHC ghc-devs at haskell.org
Wed Jan 30 17:34:10 UTC 2019


#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 mpickering):

 If I add a dependency between `libgsl.so` and `libgslcblas.so` then it
 works.

 {{{
 patchelf --add-needed /nix/store/6dhcmmfgy5fa0p3d235yaz4qfx8jhpar-
 gsl-2.5/lib/libgslcblas.so /nix/store/6dhcmmfgy5fa0p3d235yaz4qfx8jhpar-
 gsl-2.5/lib/libgsl.so
 readelf /nix/store/6dhcmmfgy5fa0p3d235yaz4qfx8jhpar-gsl-2.5/lib/libgsl.so
 -a | grep NEEDED
  0x0000000000000001 (NEEDED)             Shared library: [/nix/store
 /6dhcmmfgy5fa0p3d235yaz4qfx8jhpar-gsl-2.5/lib/libgslcblas.so]
  0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
  0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

 }}}

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


More information about the ghc-tickets mailing list