-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
Released protoc 3.7.0 require libatomic1 (not statically linked?) #5875
Comments
Just encountered the same issue when using |
Thanks for reporting this, I think the change with respect to libatomic was introduced in #5615. Let me see if there is some way we can build without this runtime dependency on libatomic. |
+1 here from In case anyone else hits this on Cent, a quick
|
We ran into problems with precompiled protoc binaries not working on some systems because of the dependence on a dynamically linked libatomic. However, I found that linking against libatomic is not actually necessary in our protoc build environment. Inside configure.ac there's a test which figures out if we need to pass -latomic, and it does this by attempting to build a test binary. That binary was failing to build, but it turns out this was because we need to pass -std=c++11, not -latomic. This fixes #5875.
same issue for alpine and using /go # find / -name "libatomic*" |
We ran into problems with precompiled protoc binaries not working on some systems because of the dependence on a dynamically linked libatomic. However, I found that linking against libatomic is not actually necessary in our protoc build environment. Inside configure.ac there's a test which figures out if we need to pass -latomic, and it does this by attempting to build a test binary. That binary was failing to build, but it turns out this was because we need to pass -std=c++11, not -latomic. This fixes #5875.
This fixes the bug outlined here protocolbuffers/protobuf#5875
This fixes the bug outlined here protocolbuffers/protobuf#5875
What version of protobuf and what language are you using?
Version: v3.7.0
Language: n/a
What operating system (Linux, Windows, ...) and version?
Linux
Docker image
debian:stretch-slim
What runtime / compiler are you using (e.g., python version or gcc version)
None
What did you do?
Steps to reproduce the behavior:
What did you expect to see
protoc runs and prints some help text
What did you see instead?
loader error
It runs if I install libatomic
apt -y install libatomic1
Is this an intended change? I guess it's supposed to be statically linked into the prebuilt binaries. v3.7.0 is the first version I see this issue with.
The text was updated successfully, but these errors were encountered: