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

Statically link binary hlint distributions #1533

Open
phadej opened this issue Jul 7, 2023 · 4 comments
Open

Statically link binary hlint distributions #1533

phadej opened this issue Jul 7, 2023 · 4 comments

Comments

@phadej
Copy link
Contributor

phadej commented Jul 7, 2023

From haskell-CI/haskell-ci#666

One thing that I discovered when trying out the hlint-3.6.1 bindist is that dynamically links against the glibc version provided by Ubuntu 22.04 (Jammy). This will not work if you run hlint-3.6.1 on Ubuntu 20.04 (Bionic),

For that reason, I build cabal-docspec and cabal-plan etc on alpine linux with --enable-executable-static (see e.g. https://github.com/haskell-hvr/cabal-plan/blob/master/Makefile)

@benz0li
Copy link

benz0li commented Sep 12, 2023

If my multi-arch (linux/amd64, linux/arm64/v8) glcr.b-data.ch/ghc/ghc-musl docker image was used to build hlint, this project could provide statically linked binaries for both Linux/x86_64 and Linux/AArch64.

Cross references:

@ndmitchell
Copy link
Owner

Happy to take patches to https://github.com/ndmitchell/hlint/blob/master/.github/workflows/release.yml. I'm not a Linux user, but this does sound desirable.

@benz0li
Copy link

benz0li commented Jan 15, 2024

I'm not a Linux user

I am not a GitHub user 😉.

@benz0li
Copy link

benz0li commented Jan 15, 2024

I build my own multi-arch (linux/amd64, linux/arm64/v8) docker images containing the statically linked hlint executable at /usr/local now.

This, to copy the latest executable from said docker images into my multi-arch (linux/amd64, linux/arm64/v8) GHC musl Dev Containers.

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

No branches or pull requests

3 participants