Bug 219473 - make buildworld fails on raspberry pi 3 with c++: error: unable to execute command: Killed
Summary: make buildworld fails on raspberry pi 3 with c++: error: unable to execute co...
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: arm64 Any
: --- Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-23 14:41 UTC by Lokesh Mandvekar
Modified: 2019-11-06 06:45 UTC (History)
3 users (show)

See Also:


Attachments
associated run script (4.42 KB, application/x-shellscript)
2017-05-23 14:41 UTC, Lokesh Mandvekar
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lokesh Mandvekar 2017-05-23 14:41:30 UTC
Created attachment 182831 [details]
associated run script

Not sure if this is the right place to post raspbsd bugs, but here it is..

# uname -a
FreeBSD rpi3 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r313109M: Thu Feb  2 16:16:39 MST 2017     raspberry@hive.raspbsd.org:/usr/home/brd/rpi3/crochet/work/obj/arm64.aarch64/usr/src/sys/GENERIC  arm64


I ran "make buildworld" on freebsd CURRENT, (master branch from git, commit id  25ba95ba2f9a6bef9f899033546e4dfecf1a36eb ), and it failed with this...

(/usr/src is symlinked to /usr/home/lsm5/repositories/freebsd)

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.9.1 (tags/RELEASE_391/final 289601) (based on LLVM 3.9.1)
Target: aarch64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin
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/Registry-6cca15.cpp
c++: note: diagnostic msg: /tmp/Registry-6cca15.sh
c++: note: diagnostic msg: 

********************
*** Error code 254

Stop.
make[4]: stopped in /usr/home/lsm5/repositories/freebsd/lib/clang/libclang
*** Error code 1

Stop.
make[3]: stopped in /usr/home/lsm5/repositories/freebsd/lib/clang
*** Error code 1

Stop.
make[2]: stopped in /usr/home/lsm5/repositories/freebsd
*** Error code 1

Stop.
make[1]: stopped in /usr/home/lsm5/repositories/freebsd
*** Error code 1

Stop.
make: stopped in /usr/home/lsm5/repositories/freebsd
Comment 1 Lokesh Mandvekar 2017-05-23 14:55:11 UTC
seems like the preprocessed source is too large to add as attachment.
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2017-05-24 07:06:56 UTC
Make sure you have enough swap space.
Comment 3 Lokesh Mandvekar 2017-05-29 14:27:58 UTC
Thanks Mikael. So, with 1 GB RAM and 3 GB swap, I now see this:


---------ERROR------------
(cd /mnt/disk/repositories/freebsd/lib/msun/tests &&  DEPENDFILE=.depend.fmaxmin_test  NO_SUBDIR=1 make -f Makefile _RECURSING_PROGS=t  PROG=fmaxmin_test  cleandir)
rm -f  fmaxmin_test fmaxmin_test.bc fmaxmin_test.ll fmaxmin_test.full fmaxmin_test.full.bc fmaxmin_test.debug fmaxmin_test.full.ll fmaxmin_test.o fmaxmin_test.bco fmaxmin_test.llo
rm -f .depend.fmaxmin_test .depend.fmaxmin_test.* GPATH GRTAGS GSYMS GTAGS
(cd /mnt/disk/repositories/freebsd/lib/msun/tests &&  DEPENDFILE=.depend.ilogb2_test  NO_SUBDIR=1 make -f Makefile _RECURSING_PROGS=t  PROG=ilogb2_test  cleandir)
rm -f  ilogb2_test ilogb2_test.bc ilogb2_test.ll ilogb2_test.full ilogb2_test.full.bc ilogb2_test.debug ilogb2_test.full.ll ilogb_test.o ilogb_test.bco ilogb_test.llo
*** Signal 11

Stop.
make[6]: stopped in /mnt/disk/repositories/freebsd/lib/msun/tests
*** Error code 1

Stop.
make[5]: stopped in /mnt/disk/repositories/freebsd/lib/msun/tests
*** Error code 1

Stop.
make[4]: stopped in /mnt/disk/repositories/freebsd/lib/msun
*** Error code 1

Stop.
make[3]: stopped in /mnt/disk/repositories/freebsd/lib
*** Error code 1

Stop.
make[2]: stopped in /mnt/disk/repositories/freebsd
*** Error code 1

Stop.
make[1]: stopped in /mnt/disk/repositories/freebsd
*** Error code 1

Stop.
make: stopped in /mnt/disk/repositories/freebsd


---------ERROR------------


I'm building commit 40978d0a86031b466a0bd8a5bd105c88f5d18dcd on master branch this time.
Comment 4 Mark Millard 2018-09-17 10:10:13 UTC
(In reply to Lokesh Mandvekar from comment #3)

See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230402
comments #11, #12, #13 for help on avoiding these types of
build problems.

Other bugzilla's beyond 230402 are: 227609 230454.
Comment 5 Dimitry Andric freebsd_committer freebsd_triage 2019-11-06 06:45:19 UTC
Yes, this is almost certainly an out-of-memory crash.  Check dmesg for "out of swap errors", add more RAM and/or swap, lower your -j level or lower your optimization level.  If you are certain this is not an OOM issue, please reopen.