Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 5.5k
    • Issues 5.5k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 639
    • Merge requests 639
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Analytics
    • Analytics
    • 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
  • #16498

Broken bindist install with hadrian

Building a bindist with Hadrian works:

> ./hadrian/build.stack.sh -c -j binary-dist
> ./_build/bindist/ghc-8.9.20190320-x86_64-unknown-linux/bin/ghc
ghc: no input files
Usage: For basic information, try the `--help' option.

But installing it with "make install" doesn't:

> mkdir /tmp/ghc-install
> cd _build/bindist/ghc-8.9.20190320-x86_64-unknown-linux
> ./configure --prefix=/tmp/ghc-install
> make install
[...]
/tmp/ghc-install/lib/ghc-8.9.20190320/bin/ghc-pkg: error while loading shared libraries: libHSterminfo-0.4.1.3-ghc8.9.20190320.so: cannot open shared object file: No such file or directory
make: *** [Makefile:122: update_package_db] Error 127
> /tmp/ghc-install/bin/ghc
/tmp/ghc-install/lib/ghc-8.9.20190320/bin/ghc: error while loading shared libraries: libHShaskeline-0.7.5.0-ghc8.9.20190320.so: cannot open shared object file: No such file or directory

It seems to be a problem with RPATH and/or file copy as we can see with the following session:

> readelf -d /tmp/ghc-install/lib/ghc-8.9.20190320/bin/ghc | grep RUNPATH
 0x000000000000001d (RUNPATH)            Bibliothèque runpath:[$ORIGIN/../lib/x86_64-linux-ghc-8.9.20190320:_build/stage1/lib/../lib/x86_64-linux-ghc-8.9.20190320]
> mkdir /tmp/ghc-install/lib/ghc-8.9.20190320/lib
> mv /tmp/ghc-install/lib/* /tmp/ghc-install/lib/ghc-8.9.20190320/lib
> /tmp/ghc-install/lib/ghc-8.9.20190320/bin/ghc
ghc: no input files
Usage: For basic information, try the `--help' option.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking