Can anyone help point me in the right direction. Scons help returns no issues so the build environment is ok I presume. The project is compiling to 100% so that must be ok, the linking fails.
Is this Alpine specific problem or QEMU/KVM or some obscure linker issue?
QEMU/KVM on Ubuntu 18.04.5 LTS, building Godot inside Virtual Machine using Alpine Linux 3.12 (latest standard version). Installed all required dependencies for Godot dedicated server build environment. Getting more or less same error even with older stable versions of Godot from Git. What am I missing here? Even if i use more optimized export template the error is the same.
git init
cd .git
git clone -b 3.2 https://github.com/godotengine/godot
cd godot
scons help
-- no problems with build environment
scons -j8 platform=server use_llvm=yes tools=no target=release_debug
[Initial build] Linking Static Library ==> core/libcore.x11.opt.debug.64.llvm.a
Ranlib Library ==> core/libcore.x11.opt.debug.64.llvm.a
[Initial build] Linking Program ==> bin/godot_server.x11.opt.debug.64.llvm
/usr/bin/ld: platform/x11/crash_handler_x11.x11.opt.debug.64.llvm.o: in function `handle_crash(int)':
/root/.git/godot/platform/x11/crash_handler_x11.cpp:54: undefined reference to `backtrace'
/usr/bin/ld: /root/.git/godot/platform/x11/crash_handler_x11.cpp:70: undefined reference to `backtrace_symbols'
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [bin/godot_server.x11.opt.debug.64.llvm] Error 1
scons: building terminated because of errors.
delete godot folder entirely and clone new folder from Git
cd .git
git clone -b 3.1 https://github.com/godotengine/godot
cd godot
scons help
-- no problems with build environment
scons -j8 platform=server use_llvm=yes tools=no target=release_debug
[Initial build] Linking Program ==> bin/godot_server.x11.opt.debug.64.llvm
/usr/bin/ld: platform/x11/crash_handler_x11.x11.opt.debug.64.llvm.o: in function `handle_crash(int)':
/root/.git/godot/platform/x11/crash_handler_x11.cpp:54: undefined reference to `backtrace'
/usr/bin/ld: /root/.git/godot/platform/x11/crash_handler_x11.cpp:70: undefined reference to `backtrace_symbols'
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [bin/godot_server.x11.opt.debug.64.llvm] Error 1
scons: building terminated because of errors.