Bug 201435

Summary: Make buildworld failed in /usr/src/lib/clang/libclangstaticanalyzerfrontend
Product: Base System Reporter: claudius <ccs189>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: dim, jhb, rakuco
Priority: ---    
Version: CURRENT   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
AnalysisConsumer-ded77a none

Description claudius 2015-07-09 08:02:53 UTC
Created attachment 158558 [details]
AnalysisConsumer-ded77a

Hi FreeBSD team,

I currently update my src tree to r285299. When i try to buildworld, I encountered c++ error. 

c++: error: unable to execute command: Killed
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525
Target: x86_64-unknown-freebsd11.0
Thread model: posix

I am using laptop x1-carbon 1st version to build the system.
Comment 1 claudius 2015-07-09 08:15:41 UTC
I try to zip the buildword log, preprocessor script and file and upload to my google drive. Not sure if this is a proper way to summit bugs.

https://drive.google.com/file/d/0B54HQrZQWnfnb191NTZUVHZFR3c/view?usp=sharing
Comment 2 Dimitry Andric freebsd_committer freebsd_triage 2015-07-12 13:26:40 UTC
Most likely, your system is out of memory.  You can check this in dmesg, by looking for messages of the form:

pid xxxxx (clang), uid yy, was killed: out of swap space

Try adding more RAM and/or swap, lowering the concurrency level of your buildworld, by using a lower -j value, or if you are building with debug information, try turning that off.
Comment 3 claudius 2015-07-14 00:48:06 UTC
Thanks Dimitry. Reduce the -j numbers solved the problem.