Bug 252027

Summary: Buildworld problem
Product: Base System Reporter: Budi Janto <budijanto>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: yuripv
Priority: ---    
Version: 12.2-RELEASE   
Hardware: amd64   
OS: Any   

Description Budi Janto 2020-12-21 18:05:14 UTC
uname -smrin
FreeBSD BEC-STG-P1.studiokaraoke.co.id 12.2-RELEASE amd64 GENERIC

# svnlite info /usr/src/
Path: .
Working Copy Root Path: /usr/src
URL: https://svn.freebsd.org/base/releng/12.2
Relative URL: ^/releng/12.2
Repository Root: https://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 368820
Node Kind: directory
Schedule: normal
Last Changed Author: gordon
Last Changed Rev: 368463
Last Changed Date: 2020-12-09 02:10:40 +0700 (Wed, 09 Dec 2020)

# sysctl -a | grep hw.ncpu
hw.ncpu: 4

# cd /usr/src; make -j4 buildworld
[...]
cc -target x86_64-unknown-freebsd12.2 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -fpic -DPIC  -O2 -pipe -fno-common -DCTF_OLD_VERSIONS -I/usr/src/sys/cddl/compat/opensolaris  -I/usr/src/cddl/compat/opensolaris/include  -I/usr/src/cddl/lib/libctf/../../../cddl/contrib/opensolaris/head  -I/usr/src/cddl/lib/libctf/../../../cddl/contrib/opensolaris/common/ctf  -I/usr/src/cddl/lib/libctf/../../../cddl/contrib/opensolaris/lib/libctf/common  -I/usr/src/cddl/lib/libctf/../../../sys/cddl/contrib/opensolaris/uts/common   -DNEED_SOLARIS_BOOLEAN -g -MD  -MF.depend.ctf_lookup.pico -MTctf_lookup.pico -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-unknown-pragmas -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter  -Qunused-arguments  -c /usr/src/cddl/contrib/opensolaris/common/ctf/ctf_lookup.c -o ctf_lookup.pico
--- lib/libsqlite3__L ---
cc: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
cc: note: diagnostic msg: /tmp/sqlite3-292428.c
cc: note: diagnostic msg: /tmp/sqlite3-292428.sh
cc: note: diagnostic msg: 

********************
*** [sqlite3.o] Error code 254

make[4]: stopped in /usr/src/lib/libsqlite3
1 error

make[4]: stopped in /usr/src/lib/libsqlite3
--- cddl/lib/libctf__L ---
--- secure/lib/libcrypto__L ---
--- lib/libc++__L ---
[...]
Comment 1 Budi Janto 2020-12-21 18:11:05 UTC
sqlite3-292428.c - https://filebin.net/ba6bu8lxu4urg8ck
Comment 2 Yuri Pankov freebsd_committer freebsd_triage 2020-12-21 18:54:28 UTC
sqlite3.c is one huge compilation unit -- are you possibly running out of memory? i.e. check dmesg.
Comment 3 Budi Janto 2020-12-23 16:31:49 UTC
# dmesg | grep memory
real memory  = 17179869184 (16384 MB)
avail memory = 16483205120 (15719 MB)

I've try to restart machine first, remove /usr/obj and start with make -j4 buildworld again (Without svnlite up /usr/src). Finally, success without any problem. It's weird. Is there any possibility because hardware issue?