<div dir="ltr">I switched to clang-3.7, and ran into the same problem<br><br>[1484/2025] Building CXX object tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.o<br>FAILED: /usr/bin/clang++-3.7 -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_OBJC_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-stack-protector -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -Itools/clang/lib/ASTMatchers/Dynamic -I/home/buckley/swift/llvm/tools/clang/lib/ASTMatchers/Dynamic -I/home/buckley/swift/llvm/tools/clang/include -Itools/clang/include -Iinclude -I/home/buckley/swift/llvm/include -UNDEBUG -fno-exceptions -fno-rtti -MMD -MT tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.o -MF tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.o.d -o tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.o -c /home/buckley/swift/llvm/tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp<br>clang: error: unable to execute command: Killed<br>clang: error: clang frontend command failed due to signal (use -v to see invocation)<br>Ubuntu clang version 3.7.0-2ubuntu4 (tags/RELEASE_370/final) (based on LLVM 3.7.0)<br>Target: x86_64-pc-linux-gnu<br>Thread model: posix<br>clang: note: diagnostic msg: PLEASE submit a bug report to <a href="http://bugs.debian.org/">http://bugs.debian.org/</a> and include the crash backtrace, preprocessed source, and associated run script.<br>clang: note: diagnostic msg: <br>********************<br><br>PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:<br>Preprocessed source(s) and associated run script(s) are located at:<br>clang: note: diagnostic msg: /tmp/Registry-f30d0f.cpp<br>clang: note: diagnostic msg: /tmp/Registry-f30d0f.sh<br>clang: note: diagnostic msg: <br><br>********************<br>[1484/2025] Building CXX object tools/clang/lib/ASTMatchers/CMakeFiles/clangASTMatchers.dir/ASTMatchFinder.cpp.o<br>ninja: build stopped: subcommand failed.<br>./swift/utils/build-script: command terminated with a non-zero exit status 1, aborting<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 2, 2016 at 12:42 PM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Mar 2, 2016 at 12:25 PM, Michael Buckley<br>
<<a href="mailto:michael@buckleyisms.com">michael@buckleyisms.com</a>> wrote:<br>
> Thanks. Apt-get reports that my clang is up to date (Ubuntu clang version<br>
> 3.6.2-1), but I'm happy to wait for a newer version. I was just attempting<br>
> to compile it to make sure a change I made worked on Linux, but it's not<br>
> urgent.<br>
<br>
</span>There's clang-3.7 in the repo, could you try that?<br>
<div class="HOEnZb"><div class="h5"><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</div></div></blockquote></div><br></div>