Bug 201435 - Make buildworld failed in /usr/src/lib/clang/libclangstaticanalyzerfrontend
Summary: Make buildworld failed in /usr/src/lib/clang/libclangstaticanalyzerfrontend
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-09 08:02 UTC by claudius
Modified: 2015-10-19 22:44 UTC (History)
3 users (show)

See Also:


Attachments
AnalysisConsumer-ded77a (948 bytes, application/x-download)
2015-07-09 08:02 UTC, claudius
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.