Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagesize issue with hls installed through ghcup #1140

Open
aikrahguzar opened this issue Oct 25, 2024 · 2 comments
Open

Pagesize issue with hls installed through ghcup #1140

aikrahguzar opened this issue Oct 25, 2024 · 2 comments

Comments

@aikrahguzar
Copy link

I have been using Asahi Linux which uses 16k pagesize for the past year or so. ghcup has worked perfectly on it. However today the hls died on me repeatedly. Checking log I see errors like:

.../share/ghcup/hls/2.9.0.1/lib/haskell-language-server-2.9.0.1/bin//haskell-language-server-9.8.2: error while loading shared libraries: libHSlibyaml-clib-0.2.5-b4e3b7f53c6f0e5b9f03710fec1a2dfaf4b1a44cd493ad6e2de7ecba6d945d76-ghc9.8.2.so: ELF load command address/offset not page-aligned

This happens with hls-2.9.0.1, hls-2.9.0.0 and hls-2.8.0.0. hls-2.7.0.0 works.

Maybe something changed and the aarch64 binaries for hls are now using 4k pagesize?

@hasufell
Copy link
Member

I have no idea.

CCing @angerman @wz1000

@vemek
Copy link

vemek commented Dec 1, 2024

I'm also on Asahi Linux. I'm not familiar with how page size affects the build, but as another data point, I've found that compiling locally with ghcup compile hls --version 2.9.0.0 --ghc 9.4.8 solves the issue. I'll try to investigate how asset compilation has changed upstream to see what introduced the incompatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants