Zulip Chat Archive

Stream: lean4

Topic: musl binaries


Stefano Volpe (Nov 20 2023 at 22:19):

Lean4 only releases glibc binaries. No musl binaries. @Sebastian Ullrich suggested opening a new (low priority) issue. Anybody else on a musl distribution?

Stefano Volpe (Nov 20 2023 at 22:23):

Relevant issue: https://github.com/leanprover/lean4/issues/2931

Bulhwi Cha (Nov 21 2023 at 10:45):

I'm thinking of installing Alpine Linux on an old laptop when I can find time.

Stefano Volpe (Nov 21 2023 at 13:47):

my daily driver has been alpine for almost one year now. Love it! I was on void linux before

Sofia Snow (Jan 19 2024 at 11:05):

I also use Alpine. Removing the check for musl from the elan setup script, it successfully installs the glibc version. With gcompat installed, I can run lake and lean just fine. However, lake new fails with

error: could not detect the configuration of the Lake installation

Sofia Snow (Jan 19 2024 at 11:07):

I'd rather musl builds of course, but gcompat should probably just work here.

Sofia Snow (Jan 19 2024 at 11:07):

https://wiki.alpinelinux.org/wiki/Running_glibc_programs

Sofia Snow (Jan 19 2024 at 11:09):

https://git.adelielinux.org/adelie/gcompat

Sofia Snow (Jan 19 2024 at 11:13):

In the meantime I'm probably going to just use an archlinux user-mode chroot with bubblewrap.

Stefano Volpe (Mar 07 2024 at 12:22):

So, I am the author of the PR adding the musl check to the elan setup script. Gcompat did not work properly for me back in the days. What I did was compiling lean from source. I consider gcompat to be a hack anyway

Stefano Volpe (Mar 07 2024 at 12:23):

It makes sense to me to check for a gcompat installation if people are able to properly use it to run lean's glibc binaries (I am not)


Last updated: May 02 2025 at 03:31 UTC