Skip to content

Document why users might want to build from source #2825

@sullyj3

Description

@sullyj3

Is your feature request related to a problem? Please describe.

I had installed hls using the ghcup tui, and I was getting the following when trying to run hls in my project:

  Unexpected usage error
  /usr/lib/libldap.so.2: symbol close version GLIBC_2.2.5 not defined in file libpthread.so.0 with
  link time reference

After going without hls for a while, I eventually got sick of it and decided to try to figure out the issue.

I followed the troubleshooting guide (great job on that, by the way!), and eventually came across this section containing the arcane incantation:

$ ghcup compile hls -v 1.6.1.0 --ghc 9.0.2 --cabal-project cabal-ghc90.project

This potent spell seems to have done the trick.

In my opinion, my OS installation is not a particularly unusual setup, and I wouldn't be surprised if many people have similar issues to me and never resolve them.

Describe the solution you'd like

It would have saved me a lot of time if the documentation installation page mentioned this potential eventuality to me, as a reason for why I might want to use ghcup compile.

While the installation page does mention installing from source as a possibility, it doesn't explain that if you don't, you can potentially get weird linker errors that are totally inscrutable to non C programmers such as myself. I assumed it was there for people who like to build things from source for the fun of it.

It seems likely to me that adding this documentation would reduce pressure on this issue tracker.

Describe alternatives you've considered

none

Additional context

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: in discussionNot actionable, because discussion is still ongoing or there's no decision yettype: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions