-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
VHACD does not compile with musl libc #31555
Comments
Same file, a bit higher up: godot/thirdparty/vhacd/inc/vhacdMutex.h Lines 74 to 76 in 3bd49da
I guess it tries to detect clang by checking for |
Pull request opened upstream: kmammou/v-hacd#70 |
Something similar happens when cross-compiling from linux to windows with mingw.
|
@chiguireitor That's a different issue though. What version of MinGW do you use? It might be too old, we use mingw-w64 6.0.0 with GCC 9.1 successfully to build official Godot binaries for Windows from Linux. Your version doesn't seem to support C++11. |
i just followed instructions to install it on ubuntu 19.10.... i'm away from my build box, will check back when i'm at home. If it makes a difference, it's using the latest master head, so stuff could be broken. |
Ok, finally made it work, had to switch alternative mingw from the |
The original issue has not been fixed. I just tried compiling on Alpine Linux and it does not work. |
Did you try using posix threads? In ubuntu i know there's the update-alternative utilities, but dunno how it goes in Alpine.... also, Alpine uses Musl instead of Libc, so you might be having a slight incompatibility there. |
Yes, the incompatibility is caused by Alpine's use of musl. The pull request above fixes the problem, but it needs to also be in Godot's copy. |
On some systems, including Alpine Linux, musl is used instead of glibc. This commit patches the third-party V-HACD module to provide a macro not provided by musl. Fixes godotengine#31555.
On some systems, including Alpine Linux, musl is used instead of glibc. This commit patches the third-party V-HACD module to provide a macro not provided by musl. Fixes godotengine#31555.
@chiguireitor Seems to be #40853 now |
Godot version: 3bd49da
OS: Alpine Linux (Docker)
Issue description:
Godot Engine does not compile on Alpine (or other musl-based systems) due to the use of
PTHREAD_MUTEX_RECURSIVE_NP
in the third-party VHACD module. This appears to be a glibc-specific macro.Here is the relevant log output:
The text was updated successfully, but these errors were encountered: