#5313: wrong dylib name using GHC package
---------------------------------+------------------------------------------
Reporter: mwotton | Owner:
Type: bug | Status: new
Priority: normal | Component: GHC API
Version: 7.0.3 | Keywords:
Testcase: | Blockedby:
Os: Linux | Blocking:
Architecture: Unknown/Multiple | Failure: Runtime crash
---------------------------------+------------------------------------------
{{{
> import qualified GHC
> import qualified GHC.Paths
>
> main = GHC.runGhcT (Just GHC.Paths.libdir) $ do
> -- begin initialize
> df0 <- GHC.getSessionDynFlags
> let df1 = df0{GHC.ghcMode = GHC.CompManager,
> GHC.hscTarget = GHC.HscInterpreted,
> GHC.ghcLink = GHC.LinkInMemory,
> GHC.verbosity = 0}
> _ <- GHC.setSessionDynFlags df1
> -- begin reset
> GHC.setContext [] []
> GHC.setTargets []
> _ <- GHC.load GHC.LoadAllTargets
> return ()
}}}
compiling this on ubuntu with ghc 7.0.3
$ ghc --make test.lhs -dynamic -package ghc
{{{
[1 of 1] Compiling Main ( test.lhs, test.o )
Linking test ...
vagrant@lucid64:~$ ./test
test: <command line>: can't load .so/.DLL for: /usr/local/lib/ghc-7.0.3
/ghc-prim-0.2.0.0/libHSghc-prim-0.2.0.0-ghc7.0.3.so
(lib/usr/local/lib/ghc-7.0.3/ghc-prim-0.2.0.0/libHSghc-
prim-0.2.0.0-ghc7.0.3.so.so: cannot open shared object file: No such file
or directory)
}}}
notice the -so.so link.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5313>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs