Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,351
    • Issues 5,351
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 567
    • Merge requests 567
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #5313
Closed
Open
Issue created Jul 11, 2011 by mwotton@trac-mwotton

wrong dylib name using GHC package

> 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.

Trac metadata
Trac field Value
Version 7.0.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHC API
Test case
Differential revisions
BlockedBy
Related
Blocking
CC jcpetruzza@gmail.com
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking