haskell / haskell/haskell-language-server
arm64: /usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
- Dominant language
- Haskell
- Stars
- 3k
- Forks
- 455
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 13
Description
I am hitting linking errors on Fedora aarch64 when building HLS 1.9 for Fedora for ghc9.0 and ghc9.2:
see https://copr.fedorainfracloud.org/coprs/petersen/haskell-language-server/monitor/
(_edit_: plus https://copr.fedorainfracloud.org/coprs/petersen/haskell-language-server/build/5197512/)
### Your environment
Fedora Linux
### Steps to reproduce
Basically using cabal install but you can see the exact steps:
https://github.com/fedora-haskell/haskell-language-server/blob/main/haskell-language-server.spec#L409
### Expected behaviour
HLS 1.9 to build and link on aarch64
### Actual behaviour
Linking fails with many:
`/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.`
### Debug information
Build logs are available starting from the above link.
Has anyone else hit something like this before?
I have been building with `dynamic False` since 1.6.
This could well be a ghc issue: feels like HLS pushes it limits...
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the exact build steps in haskell-language-server.spec at line 409 and review the linked Fedora build logs. Reproduce the ld.gold stub-distance failure on Fedora aarch64 and determine whether the fix belongs in HLS, GHC, or the build configuration. Done means HLS 1.9 builds and links successfully for the reported GHC versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100