clang++ -O2 -pipe -I/usr/obj/usr/src/amd64.amd64/lib/clang/libllvm -I/usr/src/contrib/llvm/lib/Target/AArch64 -I/usr/src/contrib/llvm/lib/Targe$ clang++: error: unable to execute command: Segmentation fault (core dumped) clang++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1) Target: x86_64-unknown-freebsd12.1 Thread model: posix InstalledDir: /usr/bin clang++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed sour$ clang++: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: /tmp/MipsSERegisterInfo-6a10d6.cpp clang++: note: diagnostic msg: /tmp/MipsSERegisterInfo-6a10d6.sh clang++: note: diagnostic msg: ******************** *** [Target/Mips/MipsSERegisterInfo.o] Error code 254 make[6]: stopped in /usr/src/lib/clang/libllvm 1 error make[6]: stopped in /usr/src/lib/clang/libllvm *** [all_subdir_lib/clang/libllvm] Error code 2 make[5]: stopped in /usr/src/lib/clang 1 error make[5]: stopped in /usr/src/lib/clang *** [all_subdir_lib/clang] Error code 2 make[4]: stopped in /usr/src/lib 1 error
Created attachment 217406 [details] log and temp fiiles
make buildworld -j4 >> buildworld.log 2>&1 --- all_subdir_lib/libsysdecode --- clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1) Target: x86_64-unknown-freebsd12.1 Thread model: posix InstalledDir: /usr/bin clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. --- all_subdir_lib/ncurses --- --- fld_current.o --- clang -O2 -pipe -I. -I/usr/obj/usr/src/amd64.amd64/lib/ncurses/ncurses -I/usr/src/lib/ncurses/ncurses -I/usr/src/lib/ncurses/ncurses -I/usr/src/contrib/ncurses/include -I/usr/src/contrib/ncurses/ncurses -Wall$ --- all_subdir_lib/libxo --- --- libxo.a --- building static xo library ar -crD libxo.a `NM='nm' NMFLAGS='' lorder libxo.o xo_encoder.o xo_syslog.o | tsort -q` --- all_subdir_lib/ncurses --- --- fld_def.o --- clang -O2 -pipe -I. -I/usr/obj/usr/src/amd64.amd64/lib/ncurses/ncurses -I/usr/src/lib/ncurses/ncurses -I/usr/src/lib/ncurses/ncurses -I/usr/src/contrib/ncurses/include -I/usr/src/contrib/ncurses/ncurses -Wall$ --- all_subdir_lib/libxo --- ranlib -D libxo.a --- libxo.so.0.full --- building shared library libxo.so.0 clang -fstack-protector-strong -shared -Wl,-x -Wl,--fatal-warnings -Wl,--warn-shared-textrel -o libxo.so.0.full -Wl,-soname,libxo.so.0 `NM='nm' NMFLAGS='' lorder libxo.pico xo_encoder.pico xo_syslog.pico |$ --- all_subdir_lib/libsysdecode --- clang: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /tmp/ioctl-3faa5b.c clang: note: diagnostic msg: /tmp/ioctl-3faa5b.sh clang: note: diagnostic msg:
I've found cause of clang crashes and rebooting while compilation. It just was overheating of CPU when temperature of all cores raised above 70°C. Short time compilations didn't give such behaviour. Sorry. It's my fault but I think this case will be useful for someone with similar situation. Perhaps it's possible to make special exception when clang crashes by similar cause and write appropriate message to log. *** This bug has been marked as a duplicate of bug 250388 ***