[GHC] #9386: GHCi cannot load .so in same ./

GHC ghc-devs at haskell.org
Wed Jul 30 16:01:38 UTC 2014


#9386: GHCi cannot load .so in same ./
-------------------------------------+-------------------------------------
       Reporter:  crockeea           |                   Owner:
           Type:  bug                |                  Status:  new
       Priority:  normal             |               Milestone:
      Component:  Compiler           |                 Version:  7.8.2
       Keywords:                     |        Operating System:
   Architecture:  Unknown/Multiple   |  Unknown/Multiple
     Difficulty:  Unknown            |         Type of failure:  GHCi crash
     Blocked By:                     |               Test Case:
Related Tickets:                     |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------
 In my directory ./ I have an empty file Foo.hs and a shared object file
 mylib.so. From that directory in the shell,

     $ ghci Foo *.so
     GHCi, version 7.8.2: 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 (dynamic) mylib.so ... failed.
     <command line>: user specified .o/.so/.DLL could not be loaded
 (mylib.so: cannot open shared object file: No such file or directory)
     Whilst trying to load:  (dynamic) mylib.so
     Additional directories searched: (none)

 It's interesting that GHCi searches ./ and identifies the correct object
 file, but then fails to load it. I have also tried the path ./*.so for the
 GHCi option.

 However, if I move mylib.so to a directory ./Temp,

     $ ghci Foo Temp/*.so

 loads without issue.

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


More information about the ghc-tickets mailing list