-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Fails to build with musl libc, undefined reference to `backtrace' #57193
Comments
Did you try build with |
I have not tried that, but I got it to link by patching the |
That's already what the code does: BoolVariable("execinfo", "Use libexecinfo on systems where glibc is not available", False),
...
if platform.system().find("BSD") >= 0:
env["execinfo"] = True
if env["execinfo"]:
env.Append(LIBS=["execinfo"]) You just need to build with I don't know if there's an easy way to detect the need for |
I'm not sure if there's a good way to test if libexecinfo is needed. Adding another special case for musl like we already have for BSD is probably the simplest fix. There's a file if glob.glob("/lib/ld-musl-*.so*"):
env["execinfo"] = True |
|
Godot version
4.0 alpha 1, commit 2b61d02
System information
Gentoo, with musl libc overlay
Issue description
When linking, it does not find
backtrace
orbacktrace_symbols
. Unlike glibc, the musl libc does not come with those symbols.From SCons output:
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: