Skip to content

Statically link the linux builds in actions. #251

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adakite1
Copy link
Contributor

@adakite1 adakite1 commented Mar 6, 2025

While testing the linux builds generated through the current actions on WSL2, I ran into the following errors:

./armips: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by ./armips)
./armips: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by ./armips)

This is due to linking dynamically against the standard library, and causes portability issues that can be difficult to resolve on the user's side (this issue does not exist when built locally). Instead, this pr changes the linux build on actions to be statically linked for maximum portability.

@Kingcom
Copy link
Owner

Kingcom commented Mar 11, 2025

Hm... I'm not sure about this one. Statically linking also statically links any potential vulnerabilities, and I'm not sure if there are not any implicit kernel dependencies after all. If interoperability with WSL is the goal, I think building on a sufficiently old LTS version of Ubuntu would be a good solution.

@adakite1
Copy link
Contributor Author

Yeah I thought you might prefer not merging this one haha, that's why I split the pull request to their components. I'll keep this open but feel free to close it!

@Kingcom
Copy link
Owner

Kingcom commented Mar 16, 2025

I've changed the runner to Ubuntu 22.04 in the master branch now. The result is at least compatible with a local WSL environment of that same version.

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

Successfully merging this pull request may close these issues.

2 participants