Closed andrewrk closed 1 year ago
Currently doesn't crash using x86_64-gentoo-linux-musl
as host, execinfo
is missing though (possible workaround is to cross-compile the library manually)
[ 15%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o
zig: warning: argument unused during compilation: '-mred-zone' [-Wunused-command-line-argument]
[ 16%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ThreadLocal.cpp.o
zig: warning: argument unused during compilation: '-mred-zone' [-Wunused-command-line-argument]
In file included from /home/user/zig-bootstrap/llvm/lib/Support/Signals.cpp:250:
/home/user/zig-bootstrap/llvm/lib/Support/Unix/Signals.inc:51:11: fatal error: 'execinfo.h' file not found
# include BACKTRACE_HEADER // For backtrace().
^~~~~~~~~~~~~~~~
/home/user/zig-bootstrap/out/build-llvm-powerpc64le-linux-musl-baseline/include/llvm/Config/config.h:29:26: note: expanded from macro 'BACKTRACE_HEADER'
#define BACKTRACE_HEADER <execinfo.h>
^~~~~~~~~~~~
<scratch space>:405:1: note: expanded from here
<execinfo.h>
^~~~~~~~~~~~
1 error generated.
make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/build.make:1994: lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:8259: lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
This one crashed clang!