Unable to build Kernel - Updating from Source

As I was updating FreeBSD 14 Stable from source, I got the following error:

Code:
Building /usr/obj/usr/src/amd64.amd64/sys/GENERIC/modules/usr/src/sys/modules/accf_http/accf_http.ko.full
Segmentation fault (core dumped)
***[aacraid.ko.full] Error code 139
make[4]: *** aacraid.ko.full removed
        2.29 real         5.15 user         3.34 sys

make[1]: stopped in /usr/src

make: stopped in /usr/src
error: Unable to build Kernel

I'm using the GENERIC kernel, no changes to the default. I tried again after make cleanworld, but still got a similar but more detailed error:

Code:
*** [accf_data.ko.full] Error code 139
make[4]: *** accf_data.ko.full removed
Building /usr/obj/usr/src/amd64.amd64/sys/GENERIC/modules/usr/src/sys/modules/accf_http/accf_http.o

make[4]: stopped in /usr/src/sys/modules/accf_data
.ERROR_TARGET='accf_data.ko.full'
.ERROR_META_FILE='/usr/obj/usr/src/amd64.amd64/sys/GENERIC/modules/usr/src/sys/modules/accf_data/accf_data.ko.full.meta'
.MAKE.LEVEL='4'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose'
_ERROR_CMD='ld -m elf_x86_64_fbsd -warn-common --build-id=sha1 -T /usr/src/sys/conf/ldscript.kmod.amd64 -r  -o accf_data.ko.full accf_data.o ; ctfmerge -L VERSION -g -o accf_data.ko.full accf_data.o ; :> export_syms; awk -f /usr/src/sys/conf/kmod_syms.awk accf_data.ko.full  export_syms | xargs -J% objcopy % accf_data.ko.full;'
.CURDIR='/usr/src/sys/modules/accf_data'
.MAKE='make'
.OBJDIR='/usr/obj/usr/src/amd64.amd64/sys/GENERIC/modules/usr/src/sys/modules/accf_data'
.TARGETS='all'
CPUTYPE=''
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='amd64'
MACHINE_ARCH='amd64'
MACHINE_CPUARCH='amd64'
MAKEOBJDIRPREFIX='/usr/obj/usr/src/amd64.amd64/sys/GENERIC/modules'
MAKESYSPATH='/usr/src/share/mk'
MAKE_VERSION='20230622'
        2.32 real         5.30 user         3.12 sys

make[1]: stopped in /usr/src

make: stopped in /usr/src
error: Unable to build Kernel

I'm using WITH META and have the following /etc/src.conf. I have been updating from source almost weekly for many months now without a problem.

Code:
WITH_CCACHE_BUILD=        # Speed up build time
WITHOUT_FLOPPY=            # No floppy
WITHOUT_WIRELESS=        # No wifi
WITHOUT_TESTS=            # No test suite
WITHOUT_HYPERV=            # No HyperV utilities
WITHOUT_LLVM_TARGET_ALL=    # No other architecture (arch, arm, powerpc,riscv)
WITHOUT_LIB32=            # No 32bit library. THis is needed for wine32
WITHOUT_HAST=            # No storage option for hast
WITHOUT_MAIL=            # No mail
WITHOUT_BHYVE=            # No virtualisation
WITHOUT_BSDINSTALL=        # No installation tools
WITHOUT_UNBOUND=        # No unbound as part of the base. Use it as a port in jail.
WITHOUT_LPR=            # No printer
WITHOUT_EE=            # No ee editor
WITHOUT_PPP=            # No dialup connection (point to point protocol)
WITHOUT_DEBUG_FILES=        # No debuging
WITHOUT_KERNEL_SYMBOLS=        # No debuging. These two options go together
WITHOUT_GAMES=            # No games
WITHOUT_TALK=            # No talk protocol
WITHOUT_TELNET=            # No telnet protocol

Any ideas how to resolve this?
 
Things might get stuck when a build was interrupted. You may try to clean out /usr/src manually and see if that helps.
 
Code:
su -
rm -vfR /usr/src
rm -vfR /usr/obj
mkdir /usr/src
mkdir /usr/obj
cd /usr/src
git clone -b releng/14.0 https://github.com/freebsd/freebsd-src.git /usr/src
make ...
If this does not work try do a "make clean" and use an empty "src.conf"
Anything specific in your KERNCONF file ?
 
I have tried all of the above and still the same problem. Here are my steps:

Code:
su -
rm -vfR /usr/src
rm -vfR /usr/obj
mkdir /usr/src
cd /usr/src
git clone -b stable/14 --depth 1 https://git.freebsd.org/src.git /usr/src
make -j8 buildworld
make -j8 buildkernel

I have removed src.conf and the option WITH_META_MODE=YES from src-env.conf. I have nothing specific in KERNCONF file.

buildworld is fine. buildkernel gets stuck in the same place giving me the following error:

Code:
--- all_subdir_accf_data ---
ctfconvert -L VERSION -g accf_data.o
--- accf_data.ko.full ---
ld -m elf_x86_64_fbsd -warn-common --build-id=sha1 -T /usr/src/sys/conf/ldscript.kmod.amd64 -r  -o accf_data.ko.full accf_data.o 
ctfmerge -L VERSION -g -o accf_data.ko.full accf_data.o 
Segmentation fault (core dumped)
        2.30 real         4.92 user         1.46 sys

make[1]: stopped in /usr/src

make: stopped in /usr/src

I'm a bit stuck and don't know how to proceed.
 
I get the same buildkernel problem whether I use or not the option WITH_META. The error message is a bit more elaborated when using WITH_META. The problem is still related to accf_data.ko.full
 
This is strange! I have tried different ways of doing the same thing and I still hit the same problem. The only workaround is to build my own kernel and use in /etc/make.conf
Code:
WITHOUT_MODULES=accf_data accf_dns accf_http

This will skip building the above three modules, which allows me to complete the build without a problem. I'm not sure if I will ever need those modules.
 
Back
Top