Bug 243778

Summary: Building 12.1-RELEASE-p2 GENERIC kernel fails with error
Product: Base System Reporter: Serge Volkov <sv>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Not A Bug    
Severity: Affects Only Me    
Priority: ---    
Version: 12.1-RELEASE   
Hardware: amd64   
OS: Any   

Description Serge Volkov 2020-02-01 15:18:41 UTC
I updated the system from 12.1-RELEASE-p1 to 12.1-RELEASE-p2 using the next commands:

freebsd-update fetch
freebsd-update install

After that, I started rebuilding the GENERIC kernel with next commands:

cd /usr/src/
make buildkernel KERNCONF=GENERIC

Kernel rebuild aborts with the following error:

In file included from /usr/src/sys/amd64/amd64/genassym.c:44:
In file included from /usr/src/sys/sys/systm.h:126:
In file included from /usr/src/sys/sys/kpilite.h:33:
./offset.inc:13:26: error: array is too large (18446744073709550697 elements)
        u_char  pad_td_epochnest[0xf9 - (0x48c + sizeof(u_int))];
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
*** Error code 1

Stop.
make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC
*** Error code 1

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

Stop.
make: stopped in /usr/src

What is it? And how to fix it?
Comment 1 Serge Volkov 2020-02-03 21:59:14 UTC
I found the cause of the error. I accidentally replaced awk with gawk. Sorry.