Bug 243778 - Building 12.1-RELEASE-p2 GENERIC kernel fails with error
Summary: Building 12.1-RELEASE-p2 GENERIC kernel fails with error
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-01 15:18 UTC by Serge Volkov
Modified: 2020-02-03 22:00 UTC (History)
0 users

See Also:


Attachments

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