haskell / ghcup-metadata

GHCup metadata repository
32 stars 30 forks source link

Provide GHC bindists built for Ubuntu 22.04 #248

Open Bodigrim opened 1 month ago

Bodigrim commented 1 month ago

The existing bindists are built for Ubuntu 20.04 and thus are not suitable for static linking of Haskell libraries on Ubuntu 22.04 because of the removal of __xmknod in glibc 2.33. The issue usually manifest itself in the following way:

libHSunix-2.7.3.a(Files.o):function ghczuwrapperZC1ZCunixzm2zi7zi3ZCSystemziPosixziFilesZCmknod: error: undefined reference to '__xmknod'

Cf. https://github.com/haskell/unix/issues/265 and https://discourse.haskell.org/t/statically-linked-binary-distributions-for-linux/7248/9 for the trail of destruction.

(I'm not talking about fully static linking to produce self-contained portable binaries, which is not something Ubuntu bindist is expected to be capable of. I'm talking about static linking of libHS* so that binaries at least can be transferred to another Ubuntu machine without depending on Cabal store)

mpickering commented 1 month ago

I opened a GHC issue to track building newer bindists for ubuntu - https://gitlab.haskell.org/ghc/ghc/-/issues/25319

mpickering commented 2 weeks ago

9.12.1-alpha1 now provides ubuntu-22.04 bindists.