monolith icon indicating copy to clipboard operation
monolith copied to clipboard

Relax glibc version requirement

Open CangyuanLi opened this issue 1 year ago • 3 comments

Would it be possible to relax the glibc version requirement? Currently, the environment I am in (no root access to upgrade unfortunately) runs glibc 2.28, so when I try to run the monolith binary (monolith-gnu-linux-x86_64), I get "/lib64/libm.so.6: version `GLIBC_2.29' not found". I found this issue https://github.com/Y2Z/monolith/issues/266 that seems to suggest that AARCH64 uses an older glibc version?

Thanks a lot!

CangyuanLi avatar Jun 25 '24 18:06 CangyuanLi

Hello Cangyuan,

Thank you for letting me know about this issue. I'll look into this, believe it should be super easy to resolve.

snshn avatar Jun 25 '24 19:06 snshn

It looks like GitHub no longer offers 18.04, only 20.04 is available as the oldest version of Ubuntu. I think I could in theory make it build in a Docker container of sorts, to target older glibc, or download and build against older glibc. Maybe I could statically link glibc into the binary... https://stackoverflow.com/questions/31770604/how-to-generate-statically-linked-executables claims that if I target musl, that C library will get embedded into the binary, I'll try that, will make it more portable.

snshn avatar Jun 27 '24 14:06 snshn

It looks like GitHub no longer offers 18.04, only 20.04 is available as the oldest version of Ubuntu. I think I could in theory make it build in a Docker container of sorts, to target older glibc, or download and build against older glibc. Maybe I could statically link glibc into the binary... https://stackoverflow.com/questions/31770604/how-to-generate-statically-linked-executables claims that if I target musl, that C library will get embedded into the binary, I'll try that, will make it more portable.

Thanks for all your help!

CangyuanLi avatar Jun 27 '24 19:06 CangyuanLi