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

Relax glibc version requirement #391

Open
CangyuanLi opened this issue Jun 25, 2024 · 3 comments
Open

Relax glibc version requirement #391

CangyuanLi opened this issue Jun 25, 2024 · 3 comments

Comments

@CangyuanLi
Copy link

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 #266 that seems to suggest that AARCH64 uses an older glibc version?

Thanks a lot!

@snshn
Copy link
Member

snshn commented Jun 25, 2024

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
Copy link
Member

snshn commented Jun 27, 2024

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.

@CangyuanLi
Copy link
Author

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!

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

2 participants