-
Notifications
You must be signed in to change notification settings - Fork 31
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
backtrace not available on alpine linux #245
Comments
I think |
Actually I have tried all the available options at most of the implementations I have found related to backtrace they generally make it optional for alpine because of library incompatibility if that's an easier route to go with |
I was using libunwrap initially, and it worked. After a bunch of exploration I decided it wasn't any better than backtrace, which I thought was omnipresent, so I switched back to backtrace. I'd love to have a consistent solution that works averywhere, so maybe libunwrap is the one ... I don't think it is hard to try anyway (probably have the code in a git stash). |
That would be great I can help in trying it out if you can push it to some branch. |
The backtrace() interface is not available on Alpine. ([ZmnSCPxj#245])
I pushed a draft: #249
|
Left a comment on #249 |
52.27 ../../Util/BacktraceException.hpp:5:10: fatal error: execinfo.h: No such file or directory
52.27 5 | #include <execinfo.h>
52.27 | ^~~~~~~~~~~~ bare minimum clboss docker image FROM alphine:3.18
WORKDIR /build
RUN apk update && \
apk add \
git \
autoconf-archive \
automake \
bind-tools \
build-base \
curl-dev \
libev-dev \
libtool \
pkgconf \
sqlite-dev
# new package for backtrace
RUN apk add libunwind-dev
ARG CLBOSS_GIT_HASH \
CLBOSS_REPO
RUN git clone --recurse-submodules $CLBOSS_REPO clboss
RUN cd clboss && \
git checkout $CLBOSS_GIT_HASH && \
autoreconf -i && \
./configure --prefix=/usr && \
make -j $(nproc) && \
make -j $(nproc) install && \
make clean |
adding
|
@king-11 that probably needs an extra export LDFLAGS=-lexecinfo
./configure
make |
@king-11 Pls let me know if the additional |
The backtrace() interface is not available on Alpine. ([ZmnSCPxj#245])
The backtrace() interface is not available on Alpine. ([#245])
Fixed with #249 |
reported by @king-11:
The text was updated successfully, but these errors were encountered: