-
Notifications
You must be signed in to change notification settings - Fork 91
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
Compilation fails on latest Alpine Linux (missing execinfo.h) #124
Comments
@cmil Hi cmil, I also encounter the same issue, and I add tried package ( RUN apk add libexecinfo-dev ) and another compile error come out ( Dl_info undefine ) . so far luck to continue. May I know which version of alpine you use can pass the compile ? |
Apparently https://alpinelinux.org/posts/Alpine-Linux-has-switched-to-musl-libc.html Looks like it can still be installed manually (not with |
I got to exactly the same point by doing
It looks like |
The issue is that The compiler gets to this point without having included it, but it is required: Lines 243 to 246 in 5959e2f
|
Should be fixed now. Also, add |
This problem has been noted at the AWS C Common project: awslabs/aws-c-common#322 That project ended up making |
Perhaps it would make sense to make backtrace support optional, and print a message suggesting to install |
Fails on latest alpine, anyone happen to know what package to use instead of
|
It looks like other projects are running into the same issue (DataDog/dd-trace-php#1824, dmlc/xgboost#8595) that the
Does it mean no more backtrace support in Alpine? |
FYI: Succeeded in installing on Alpine 3.17 by providing |
worked for me too... diff --git a/examples/Dockerfile b/examples/Dockerfile
index 1aabd59..87d4bcf 100644
--- a/examples/Dockerfile
+++ b/examples/Dockerfile
@@ -1,3 +1,3 @@
FROM alpine:latest
-RUN apk add --no-cache cmake make g++ git bash zip curl-dev zlib-dev libexecinfo-dev
+RUN apk add --no-cache cmake make g++ git bash zip curl-dev zlib-dev elfutils-dev |
Note that elfutils-dev and libexecinfo-dev are not always interchangeable. The elfutils-dev gave me cmake error at build time. |
found this comment explaining how to install libexecinfo - aws/aws-lambda-nodejs-runtime-interface-client#68 (comment) |
works "beautifully" DockerfileFROM alpine
RUN \
apk add --virtual builders git g++ make cmake unzip libtool curl-dev automake && \
apk add --repository=https://dl-cdn.alpinelinux.org/alpine/v3.16/main/ libexecinfo-dev && \
git clone --depth 1 https://github.com/awslabs/aws-lambda-cpp.git && \
cd aws-lambda-cpp && \
mkdir build && \
cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/lambda-install && \
make && make install && \
apk del builders unfortunately does not do much to remedy the awful aws/aws-lambda-nodejs-runtime-interface-client#16 situation - at least not on its own |
Reproducing the build instructions in the README with the following Dockerfile
and running
docker build -t aws-lambda-cpp .
I get
What's missing?
The text was updated successfully, but these errors were encountered: