Skip to content

ci: statically link libc #546

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

Closed

Conversation

alandefreitas
Copy link
Collaborator

Move configuration values to the matrix action and statically links both libgcc and libstdc++.

Since we are using the latest version of ubuntu in our workflow, this is intended to allow the release binaries to work on any earlier version of ubuntu. This is required by the Antora scripts in the Boost release tools.

@alandefreitas alandefreitas force-pushed the ci-static-libc branch 8 times, most recently from ba33375 to aa384aa Compare March 19, 2024 00:46
@alandefreitas
Copy link
Collaborator Author

@sdkrystian I'm getting

    Target "mrdocs" links to target "Terminfo::terminfo" but the target was not
    found.  Perhaps a find_package() call is missing for an IMPORTED target, or
    an ALIAS target is missing?

in CI. Do we need to recompile LLVM to fix that?

@alandefreitas alandefreitas force-pushed the ci-static-libc branch 4 times, most recently from 4e5aefe to 0bd480d Compare March 19, 2024 18:29
Move configuration values to the matrix action and statically links both `libgcc` and `libstdc++`.

Since we are using the latest version of ubuntu in our workflow, this is intended to allow the release binaries to work on any earlier version of ubuntu. This is required by the Antora scripts in the Boost release tools.
@alandefreitas
Copy link
Collaborator Author

Yes. I can't get this to work the simple way. If I use -static I get

/usr/bin/ld: attempted static link of dynamic object `/usr/lib/x86_64-linux-gnu/libtinfo.so'

On the other hand, -static-libgcc compiles in ubuntu 23.04 but it's not enough to make it work on ubuntu 20.04.

+ mrdocs --version
mrdocs: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by mrdocs)

@alandefreitas
Copy link
Collaborator Author

Closing this PR as this is not the best alternative to fix #547. See #547 and #548.

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.

1 participant