WolfireGames / overgrowth

Open Source codebase of the game Overgrowth by Wolfire Games LLC
Apache License 2.0
2.49k stars 256 forks source link

Build failed on musl libc #116

Open blacklightpy opened 9 months ago

blacklightpy commented 9 months ago

OS: Void Linux C Library: musl libc

[ 12%] Building CXX object CMakeFiles/Ogda.dir/home/jyothish/repos/overgrowth/Source/Version/git_version.cpp.o
[ 12%] Linking CXX executable Ogda.bin.x86_64
/usr/bin/ld: CMakeFiles/Ogda.dir/home/jyothish/repos/overgrowth/Source/Memory/stack_allocator.cpp.o: in function `GenerateStacktrace[abi:cxx11]()':
/home/jyothish/repos/overgrowth/Projects/../Source/Utility/stacktrace.h:45: undefined reference to `backtrace'
/usr/bin/ld: /home/jyothish/repos/overgrowth/Projects/../Source/Utility/stacktrace.h:47: undefined reference to `backtrace_symbols'
/usr/bin/ld: /home/jyothish/repos/overgrowth/Projects/../Source/Utility/stacktrace.h:45: undefined reference to `backtrace'
/usr/bin/ld: /home/jyothish/repos/overgrowth/Projects/../Source/Utility/stacktrace.h:47: undefined reference to `backtrace_symbols'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/Ogda.dir/build.make:1536: Ogda.bin.x86_64] Error 1
make[1]: *** [CMakeFiles/Makefile2:855: CMakeFiles/Ogda.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
shinymerlyn commented 6 months ago

Looks like the common workaround for this is to optionally link to libexecinfo