I get a failure when trying to run 'make buildworld' in /usr/src. $ uname -a FreeBSD destroyer 10.1-RELEASE-p6 FreeBSD 10.1-RELEASE-p6 #0: Tue Feb 24 19:00:21 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 Here is the stack dump output: Stack dump: 0. Program arguments: /usr/obj/usr/src/tmp/usr/bin/c++ -cc1 -triple x86_64-unknown-freebsd10.1 -emit-obj -disable-free -disable-llvm-verifier -main-file-name ASTConsumers.cpp - mrelocation-model static -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -coverage-file /usr/obj/usr/src/lib/clang/libclan gfrontend/ASTConsumers.o -resource-dir /usr/obj/usr/src/tmp/usr/bin/../lib/clang/3.4.1 -D LLVM_ON_UNIX -D LLVM_ON_FREEBSD -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -D NDEBUG -D CLANG_ENABLE_ARCMT -D CLANG_ENABLE_REWRITER -D CLANG_ENABLE_STATIC_ANALYZER -D LLVM_DEFAULT_TARGET_TRIPLE="x86_64-unknown-freebsd10.1" -D LLVM_HOST_TRIPLE="x86_64-unknown-freebsd 10.1" -D DEFAULT_SYSROOT="" -I /usr/src/lib/clang/libclangfrontend/../../../contrib/llvm/include -I /usr/src/lib/clang/libclangfrontend/../../../contrib/llvm/tools/clang/include -I /usr/src/lib/clang/libclangfrontend/../../../contrib/llvm/tools/clang/lib/Frontend -I . -I /usr/src/lib/clang/libclangfrontend/../../../contrib/llvm/../../lib/clang/include -isysroo t /usr/obj/usr/src/tmp -internal-isystem /usr/obj/usr/src/tmp/usr/include/c++/v1 -O2 -Wno-c++11-extensions -fdeprecated-macro -fdebug-compilation-dir /usr/obj/usr/src/lib/clang/libc langfrontend -ferror-limit 19 -fmessage-length 181 -stack-protector 1 -mstackrealign -fno-rtti -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o ASTConsumers.o -x c++ /usr/src/lib/clang/libclangfrontend/../../../contrib/llvm/tools/clang/lib/Frontend/ASTConsumers.cpp 1. <eof> parser at end of file 2. Per-function optimization 3. Running pass 'SROA' on function '@_ZN5clang19RecursiveASTVisitorIN12_GLOBAL__N_110ASTPrinterEE20TraverseBinShrAssignEPNS_22CompoundAssignOperatorE' c++: error: unable to execute command: Segmentation fault (core dumped) c++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: x86_64-unknown-freebsd10.1 Thread model: posix c++: 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. c++: note: diagnostic msg: Error generating preprocessed source(s). *** Error code 254 Please let me know if you need any more info. Thanks
I rebooted the machine, and tried again, and it worked successfully. I'm going to assume this was caused by running 'freebsd-update install' and not rebooting after an update.
c++ -O2 -pipe -I/usr/img/freebsd/lib/clang/libllvmx86codegen/../../../contrib/llvm/include -I/usr/img/freebsd/lib/clang/libllvmx86codegen/../../../contrib/ll vm/tools/clang/include -I/usr/img/freebsd/lib/clang/libllvmx86codegen/../../../contrib/llvm/lib/Target/X86 -I. -I/usr/img/freebsd/lib/clang/libllvmx86codegen/ ../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -fno-strict-aliasing -DLLVM_DEFA ULT_TARGET_TRIPLE=\"armv6-gnueabi-freebsd11.0\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd11.0\" -DDEFAULT_SYSROOT=\"/usr/obj/arm.armv6/usr/img/freebsd/tmp\" -Qunused-arguments -I/usr/obj/arm.armv6/usr/img/freebsd/tmp/legacy/usr/include -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions -c /usr/img/freebsd/lib/clang/libllvmx86codegen/../../../contrib/llvm/lib/Target/X86/X86ISelLowering.cpp -o X86ISelLowering.o Stack dump: 0. Program arguments: /usr/bin/c++ -cc1 -triple x86_64-unknown-freebsd10.2 -emit-obj -disable-free -disable-llvm-verifier -main-file-name X86ISelLowering.cpp -mrelocation-model static -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -coverage-file /usr/obj/arm.armv6/usr/img/freebsd/tmp/usr/img/freebsd/lib/clang/libllvmx86codegen/X86ISelLowering.o -resource-dir /usr/bin/../lib/clang/3.4.1 -D LLVM_ON_UNIX -D LLVM_ON_FREEBSD -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -D LLVM_DEFAULT_TARGET_TRIPLE="armv6-gnueabi-freebsd11.0" -D LLVM_HOST_TRIPLE="x86_64-unknown-freebsd11.0" -D DEFAULT_SYSROOT="/usr/obj/arm.armv6/usr/img/freebsd/tmp" -I /usr/img/freebsd/lib/clang/libllvmx86codegen/../../../contrib/llvm/include -I /usr/img/freebsd/lib/clang/libllvmx86codegen/../../../contrib/llvm/tools/clang/include -I /usr/img/freebsd/lib/clang/libllvmx86codegen/../../../contrib/llvm/lib/Target/X86 -I . -I /usr/img/freebsd/lib/clang/libllvmx86codegen/../../../contrib/llvm/../../lib/clang/include -I /usr/obj/arm.armv6/usr/img/freebsd/tmp/legacy/usr/include -internal-isystem /usr/include/c++/v1 -O2 -Wno-c++11-extensions -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /usr/obj/arm.armv6/usr/img/freebsd/tmp/usr/img/freebsd/lib/clang/libllvmx86codegen -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-rtti -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o X86ISelLowering.o -x c++ /usr/img/freebsd/lib/clang/libllvmx86codegen/../../../contrib/llvm/lib/Target/X86/X86ISelLowering.cpp 1. <eof> parser at end of file 2. Per-module optimization passes 3. Running pass 'Interprocedural Sparse Conditional Constant Propagation' on module '/usr/img/freebsd/lib/clang/libllvmx86codegen/../../../contrib/llvm/lib/Target/X86/X86ISelLowering.cpp'. c++: error: unable to execute command: Segmentation fault (core dumped) c++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: x86_64-unknown-freebsd10.2 Thread model: posix c++: 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. c++: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: c++: note: diagnostic msg: /tmp/X86ISelLowering-f06fc6.cpp c++: note: diagnostic msg: /tmp/X86ISelLowering-f06fc6.sh c++: note: diagnostic msg: ******************** *** [X86ISelLowering.o] Error code 254
If you want the attachments, please send me an e-mail. c++: note: diagnostic msg: /tmp/X86ISelLowering-f06fc6.cpp c++: note: diagnostic msg: /tmp/X86ISelLowering-f06fc6.sh
The issue is not reproducable.
/usr/bin/c++ --version FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: x86_64-unknown-freebsd10.2 Thread model: posix
Check dmesg. Might be an OOM issue (in which case, reduce -j).
pid 75727 (c++), uid 0: exited on signal 11 (core dumped) pid 55502 (ld), uid 0: exited on signal 11 (core dumped) pid 21918 (ld), uid 0: exited on signal 11 (core dumped) pid 80306 (tblgen), uid 0: exited on signal 11 (core dumped) pid 87129 (c++), uid 0: exited on signal 11 (core dumped) pid 90478 (cc), uid 0: exited on signal 11 (core dumped) pid 52610 (cc), uid 0: exited on signal 11 (core dumped) pid 55304 (ld), uid 0: exited on signal 11 (core dumped) pid 61053 (cc), uid 0: exited on signal 11 (core dumped) pid 66029 (cc), uid 0: exited on signal 11 (core dumped) pid 97412 (cc), uid 0: exited on signal 6 (core dumped) pid 99628 (ld), uid 0: exited on signal 11 (core dumped) pid 8119 (ld), uid 0: exited on signal 11 (core dumped) pid 9211 (c++), uid 0: exited on signal 11 (core dumped) pid 74708 (c++), uid 0: exited on signal 11 (core dumped) pid 44435 (cc), uid 0: exited on signal 11 (core dumped) pid 47832 (cc), uid 0: exited on signal 11 (core dumped) pid 52459 (as), uid 0: exited on signal 11 (core dumped) pid 53693 (c++), uid 0: exited on signal 11 (core dumped) pid 90482 (cc), uid 0: exited on signal 11 (core dumped) pid 95904 (cc), uid 0: exited on signal 11 (core dumped) pid 99442 (cc), uid 0: exited on signal 11 (core dumped) pid 25729 (cc), uid 0: exited on signal 11 (core dumped) pid 32706 (sh), uid 0: exited on signal 11 (core dumped) pid 1884 (cc), uid 0: exited on signal 11 (core dumped) pid 5031 (cc), uid 0: exited on signal 11 (core dumped) pid 7742 (cc), uid 0: exited on signal 11 (core dumped) Is there a particular error message you are looking for? Yes, it might be OOM.
Hello there, I am experiencing the same issue as the one described in this specific ticket. $ uname -a FreeBSD Von-Neumann 10.2-PRERELEASE FreeBSD 10.2-PRERELEASE #0 r284626M: Thu Jun 25 21:11:16 CEST 2015 User@Von-Neumann:/usr/obj/usr/src/sys/KERNEL_VT_ENABLED amd64 an excerpt from the compiler is provided here: Stack dump: 0. Program arguments: /usr/bin/c++ -cc1 -triple x86_64-unknown-freebsd10.2 -emit-obj -disable-free -disable-llvm-verifier -main-file-name CGBlocks.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -coverage-file /usr/obj/usr/src/tmp/usr/src/lib/clang/libclang/CodeGen/CGBlocks.o -resource-dir /usr/bin/../lib/clang/3.4.1 -dependency-file .depend.CodeGen_CGBlocks.o -sys-header-deps -MT CodeGen/CGBlocks.o -D LLVM_ON_UNIX -D LLVM_ON_FREEBSD -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -D NDEBUG -D LLVM_DEFAULT_TARGET_TRIPLE="x86_64-unknown-freebsd11.0" -D LLVM_HOST_TRIPLE="x86_64-unknown-freebsd11.0" -D DEFAULT_SYSROOT="/usr/obj/usr/src/tmp" -I /usr/obj/usr/src/tmp/usr/src/lib/clang/libclang -I /usr/obj/usr/src/tmp/usr/src/lib/clang/libllvm -I /usr/src/contrib/llvm/tools/clang/include -I /usr/src/lib/clang/include -I /usr/src/contrib/llvm/include -I /usr/obj/usr/src/tmp/legacy/usr/include -internal-isystem /usr/include/c++/v1 -O2 -Wno-c++11-extensions -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /usr/obj/usr/src/tmp/usr/src/lib/clang/libclang -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-rtti -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o CodeGen/CGBlocks.o -x c++ /usr/src/contrib/llvm/tools/clang/lib/CodeGen/CGBlocks.cpp 1. <eof> parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module '/usr/src/contrib/llvm/tools/clang/lib/CodeGen/CGBlocks.cpp'. 4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_ZN5clang7CodeGen15CodeGenFunction12EmitCallArgsINS_17FunctionProtoTypeEEEvRNS0_11CallArgListEPKT_N4llvm14iterator_rangeINS_4Stmt17ConstExprIteratorEEEPKNS_12FunctionDeclEj' c++: error: unable to execute command: Segmentation fault (core dumped) c++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: x86_64-unknown-freebsd10.2 Thread model: posix c++: 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. c++: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: c++: note: diagnostic msg: /tmp/CGBlocks-b40e37.cpp c++: note: diagnostic msg: /tmp/CGBlocks-b40e37.sh c++: note: diagnostic msg: ******************** *** Error code 254 Stop. bmake[4]: stopped in /usr/src/lib/clang/libclang *** Error code 1 Stop. bmake[3]: stopped in /usr/src/lib/clang *** Error code 1 Stop. bmake[2]: stopped in /usr/src *** Error code 1 Stop. bmake[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src
The CGBlocks-b40e37.sh is available here: http://pastebin.com/gLuGGTrS. The other file CGBlocks-b40e37.cpp is almost 10MB and it is not possible to share it directly via pastebin, therefore I am still searching for the right tool to do the job
The complete error log: https://drive.google.com/open?id=0B9IQer74JyvIdnUxSWZKUU41R2s Once again CGBlocks-b40e37.sh: https://drive.google.com/open?id=0B9IQer74JyvIVHNNSHRkZktOc2s Finally the CGBlocks-b40e37.cpp: https://drive.google.com/open?id=0B9IQer74JyvIQzd3dTVzUUtGamc
^Triage: close as OBE. I'm sorry that this PR did not get addressed in a timely fashion. Please let us know if this still occurs on a supported OSVERSION.