Bug 248513 - Buildworld fails on 12-STABLE r363128
Summary: Buildworld fails on 12-STABLE r363128
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.1-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2020-08-07 10:44 UTC by sirdice
Modified: 2020-08-09 11:27 UTC (History)
0 users

See Also:

msgio-55c433.c (335.37 KB, text/plain)
2020-08-07 10:44 UTC, sirdice
no flags Details
msgio-55c433.sh (2.11 KB, text/plain)
2020-08-07 10:45 UTC, sirdice
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description sirdice 2020-08-07 10:44:47 UTC
Created attachment 217066 [details]

Currently running: # uname -a
FreeBSD molly.dicelan.home 12.1-STABLE FreeBSD 12.1-STABLE r363128 MOLLY  amd64

Tried updating /usr/src several times but I seem to hit the exact same failure every time. It looks something's screwed up with my running r363128.

>>> stage 1.1: legacy release compatibility shims
cd /usr/src; INSTALL="sh /usr/src/tools/install.sh"  TOOLS_PREFIX=/usr/obj/usr/src/amd64.amd64/tmp  PATH=/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/usr/obj/usr/src/amd64.amd64/tmp  MAKEFLAGS="-m /usr/src/tools/build/mk  -m /usr/src/share/mk" make  -f Makefile.inc1  DESTDIR=  OBJTOP='/usr/obj/usr/src/amd64.amd64/tmp/obj-tools'  OBJROOT='${OBJTOP}/'  MAKEOBJDIRPREFIX=  BOOTSTRAPPING=1201519  BWPHASE=legacy  SSP_CFLAGS=  MK_HTML=no NO_LINT=yes MK_MAN=no  -DNO_PIC MK_PROFILE=no -DNO_SHARED  -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no  MK_CLANG_EXTRAS=no MK_CLANG_FORMAT=no MK_CLANG_FULL=no  MK_LLDB=no MK_RETPOLINE=no MK_TESTS=no  MK_INCLUDES=yes MK_LLVM_TARGET_ALL=no legacy
[Creating objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools...]
===> tools/build (obj,includes,all,install)
[Creating objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/tools/build...]
sh /usr/src/tools/install.sh  -C -o root -g wheel -m 444  /usr/src/sys/sys/nv.h /usr/src/sys/sys/cnv.h /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include/sys/
cc  -O2 -pipe -fno-common  -g -MD  -MF.depend.dummy.o -MTdummy.o -std=gnu99  -Qunused-arguments  -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -c /usr/src/tools/build/dummy.c -o dummy.o
building static egacy library
ar -crD libegacy.a `NM='nm' NMFLAGS=''  lorder dummy.o  | tsort -q`
ranlib -D libegacy.a
sh /usr/src/tools/install.sh  -C -o root -g wheel -m 444   libegacy.a /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/lib/
mkdir -p "/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin"
mkdir -p "/usr/obj/usr/src/amd64.amd64/tmp/legacy/sbin"
mkdir -p "/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin"
mkdir -p "/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin"
mkdir -p "/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/lib"
mkdir -p "/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include"
mkdir -p "/usr/obj/usr/src/amd64.amd64/tmp/legacy/lib/geom"
mkdir -p "/usr/obj/usr/src/amd64.amd64/tmp/legacy/lib/casper"
mkdir -p "/usr/obj/usr/src/amd64.amd64/tmp/legacy//usr/include/sys"
===> lib/libnv (obj,includes,all,install)
[Creating objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/libnv...]
cc  -O2 -pipe -fno-common  -I/usr/src/lib/libnv -g -MD  -MF.depend.cnvlist.o -MTcnvlist.o -std=gnu99  -Qunused-arguments  -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -c /usr/src/sys/contrib/libnv/cnvlist.c -o cnvlist.o
cc  -O2 -pipe -fno-common  -I/usr/src/lib/libnv -g -MD  -MF.depend.dnvlist.o -MTdnvlist.o -std=gnu99  -Qunused-arguments  -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -c /usr/src/sys/contrib/libnv/dnvlist.c -o dnvlist.o
cc  -O2 -pipe -fno-common  -I/usr/src/lib/libnv -g -MD  -MF.depend.msgio.o -MTmsgio.o -std=gnu99  -Qunused-arguments  -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -c /usr/src/lib/libnv/msgio.c -o msgio.o
Stack dump:
0.      Program arguments: cc -O2 -pipe -fno-common -I/usr/src/lib/libnv -g -MD -MF.depend.msgio.o -MTmsgio.o -std=gnu99 -Qunused-arguments -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -c /usr/src/lib/libnv/msgio.c -o msgio.o
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module '/usr/src/lib/libnv/msgio.c'.
4.      Running pass 'Dead Store Elimination' on function '@cred_send'
#0 0x0000000003809a1e PrintStackTrace /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:564:13
#1 0x0000000003807c95 RunSignalHandlers /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:69:18
#2 0x000000000380bca1 HandleCrash /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:77:5
#3 0x000000000380bca1 CrashRecoverySignalHandler /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:382:51
#4 0x00000000046e11a0 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 10.0.0 (git@github.com:llvm/llvm-project.git llvmorg-10.0.0-0-gd32170dbd5b)
Target: x86_64-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin
cc: 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.
cc: note: diagnostic msg:

Preprocessed source(s) and associated run script(s) are located at:
cc: note: diagnostic msg: /tmp/msgio-55c433.c
cc: note: diagnostic msg: /tmp/msgio-55c433.sh
cc: note: diagnostic msg:

*** Error code 254

make[3]: stopped in /usr/src/lib/libnv
*** Error code 1

make[2]: stopped in /usr/src
*** Error code 1

make[1]: stopped in /usr/src
*** Error code 1

make: stopped in /usr/src
Comment 1 sirdice 2020-08-07 10:45:25 UTC
Created attachment 217067 [details]
Comment 2 sirdice 2020-08-09 11:27:13 UTC
I have 16GB RAM and 16GB swap. Apparently there was not enough memory free. Doing the build right after a reboot seems to have cleared enough for the build to continue.