Hi, I am having trouble building world. Currently running 10.1-PRERELEASE r270922. I have update source a few times in case it was a temporary breakage but am now trying to build r274327. It always stops in the same place: clang++ -O2 -pipe -I/usr/src/lib/clang/libllvmscalaropts/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmscalaropts/../../../contrib/llvm/to ols/clang/include -I/usr/src/lib/clang/libllvmscalaropts/../../../contrib/llvm/lib/Transforms/Scalar -I. -I/usr/src/lib/clang/libllvmscalaropts/../../.. /contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -DCLANG_ENABLE_ARCMT -DCL ANG_ENABLE_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd10.1\" -DLLVM_HOST_TRIPLE=\ "x86_64-unknown-freebsd10.1\" -DDEFAULT_SYSROOT=\"\" -Qunused-arguments -fstack-protector -fno-exceptions -fno-rtti -Wno-c++11-extensions -c /usr/src/ lib/clang/libllvmscalaropts/../../../contrib/llvm/lib/Transforms/Scalar/Reassociate.cpp -o Reassociate.o Stack dump: 0. Program arguments: /usr/obj/usr/src/tmp/usr/bin/clang++ -cc1 -triple x86_64-unknown-freebsd10.1 -emit-obj -disable-free -disable-llvm-verifier - main-file-name Reassociate.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/libllvmscalaropts/Reassociate.o -resource-dir /usr/obj/usr/src/tmp/usr/bin/../lib/clang/3.4.1 -D L LVM_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-freebsd10.1" -D DEFAULT_SYSROOT="" -I /u sr/src/lib/clang/libllvmscalaropts/../../../contrib/llvm/include -I /usr/src/lib/clang/libllvmscalaropts/../../../contrib/llvm/tools/clang/include -I /u sr/src/lib/clang/libllvmscalaropts/../../../contrib/llvm/lib/Transforms/Scalar -I . -I /usr/src/lib/clang/libllvmscalaropts/../../../contrib/llvm/../../ lib/clang/include -isysroot /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/libllvmscalaropts -ferror-limit 19 -fmessage-length 168 -stack-protector 1 -mstackrealign -fno-rtti -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o Reassociate.o -x c++ /usr/src/lib/clang/libllvmscalaropts/../../../contrib/llvm/lib/Transforms/Scalar/Reassociate.cpp 1. /usr/obj/usr/src/tmp/usr/include/c++/v1/type_traits:1113:1 <Spelling=/usr/obj/usr/src/tmp/usr/include/c++/v1/type_traits:1113:40>: current parser token '0x4000' 2. /usr/obj/usr/src/tmp/usr/include/c++/v1/type_traits:209:1 <Spelling=/usr/obj/usr/src/tmp/usr/include/c++/v1/__config:339:37>: parsing namespace 'std' 3. /usr/obj/usr/src/tmp/usr/include/c++/v1/type_traits:209:1 <Spelling=/usr/obj/usr/src/tmp/usr/include/c++/v1/__config:339:59>: parsing namespace '__1' 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 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: x86_64-unknown-freebsd10.1 Thread model: posix 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. clang++: note: diagnostic msg: Error generating preprocessed source(s). *** Error code 254 Stop. make[6]: stopped in /usr/src/lib/clang/libllvmscalaropts I have ?make clean?ed. I am using a straight ?make buildworld?, no -j options. make.conf contains: TOP_TABLE_SIZE=197 NO_I4B=YES NO_PROFILE=YES The machine only has 1GB of RAM (but plenty of swap space) and in Intel Atom 230 (1.6GHz) CPU. I don?t know if the root cause s a clang bug, as it suggests, or something else wrong. Thanks, Andrew
On 15 Nov 2014, at 16:14, Andrew Stevenson <andrew at ugh.net.au> wrote:> > I am having trouble building world. Currently running 10.1-PRERELEASE r270922. I have update source a few times in case it was a temporary breakage but am now trying to build r274327. > > It always stops in the same place:...> 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 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 > Target: x86_64-unknown-freebsd10.1 > Thread model: posix > 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. > clang++: note: diagnostic msg: Error generating preprocessed source(s)....> The machine only has 1GB of RAM (but plenty of swap space) and in Intel Atom 230 (1.6GHz) CPU. I don?t know if the root cause s a clang bug, as it suggests, or something else wrong.Can you check dmesg and/or syslog for any messages regarding clang being out of memory? If it always crashes in the same place, then it could indeed be a clang bug (but it's unlikely, since you seem to be the only one having this problem), but it could also be some RAM problem that only manifests when you are actively using a lot of memory. I would do a few memcheck passes on the machine, just to be sure. Since clang does not seem to be able to generate the preprocessed sources, this will be tricky or impossible to reproduce. Maybe you can try getting a backtrace from the core dump? But this will require debug symbols, unfortunately. -Dimitry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 194 bytes Desc: Message signed with OpenPGP using GPGMail URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20141115/51a41a2e/attachment.sig>