You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
error while loading shared libraries: libatomic.so.1 #1312
docker run envoyproxy/nighthawk-dev:latest nighthawk_client
nighthawk_client: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
It looks like this issue was introduced in #1309. @eric846
Sorry about that. The -lrt -latomic was needed for the CI build to work after updating to the latest Envoy. But these flags were actually not needed to build on my local Debian.
I would like to find a way to enable those flags only when building on CI, so we could remove the flags by default, including when building for Docker.
There are signs that these libraries are complicated, if you search for "In particular" here: envoyproxy/envoy#1069
Activity
eric846 commentedon Mar 12, 2025
Sorry about that. The -lrt -latomic was needed for the CI build to work after updating to the latest Envoy. But these flags were actually not needed to build on my local Debian.
I would like to find a way to enable those flags only when building on CI, so we could remove the flags by default, including when building for Docker.
There are signs that these libraries are complicated, if you search for "In particular" here: envoyproxy/envoy#1069
eric846 commentedon Mar 12, 2025
Meanwhile if it's possible to edit the docker file locally before you run it, you might be able to fix it with:
apk add libatomic
zirain commentedon Mar 13, 2025
@eric846 there's no image base on tag, we can send a workaround fix with
apk add libatomicin Dockerfile for short term?eric846 commentedon Mar 13, 2025
I see what you mean about the tags on docker hub. The most recent tag is 3 years old.
Unfortunately I tried the
apk add libatomicworkaround locally and it doesn't seem to work:Please let me know if you find a workaround with the image. We will keep trying to find a solution.
zhaohuabing commentedon Mar 13, 2025
@eric846 I'm not familiar with the bazel build, but would static link be an option to solve this?
eric846 commentedon Mar 13, 2025
That is a great idea, and it appears to work. Created #1314
zirain commentedon Mar 13, 2025
I can workaround with following dockerfile:
eric846 commentedon Mar 13, 2025
Thank you @zirain for validating Ubuntu. #1315 will migrate the image to Ubuntu.
switch Docker from Alpine to Ubuntu (#1315)
eric846 commentedon Mar 13, 2025
The new image is live. Let us know if it works!