Skip to content
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

Building recomp.cpp fails on alpine (undefined reference to `backtrace') #57

Open
mkst opened this issue May 27, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@mkst
Copy link
Contributor

mkst commented May 27, 2023

Compile log:

#0 8.193 /ido-static-recomp/recomp.cpp:3711: undefined reference to `backtrace'
#0 8.193 /usr/lib/gcc/i586-alpine-linux-musl/11.2.1/../../../../i586-alpine-linux-musl/bin/ld: /ido-static-recomp/recomp.cpp:3712: undefined reference to `backtrace_symbols'
#0 8.225 collect2: error: ld returned 1 exit status
#0 8.227 make[1]: *** [Makefile:169: build/recomp.elf] Error 1
#0 8.227 make[1]: Leaving directory '/ido-static-recomp'
#0 8.227 make: *** [Makefile:148: setup] Error 2

This can be fixed by linking against libexecinfo (i.e. ensuring libexecinfo-dev is installed and adding -lexecinfo to LDFLAGS).

I'm happy to submit a PR, but it feels a little awkward to determine the flavour of Linux in the Makefile - open to suggestions!

@AngheloAlf
Copy link
Contributor

We should probably make the traceback stuff toggleable with an ifdef, and turn it off by default, since it isn't a feature that we use much
For now you could comment out the #define UNIX_PLATFORM line and it should build fine in your distro

@AngheloAlf AngheloAlf added the bug Something isn't working label May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants