Kernel linking error on -CURRENT

From: USER BSD <urtp5_at_yandex.ru>
Date: Wed, 24 Apr 2024 07:54:43 UTC
<div>Hi, FreeBSD Community!</div><div> </div><div>I have a teach with FreeBSD and use -CURRENT on my test machine.</div><div>And some days ago after</div><div>- git pull</div><div>- make buildworld</div><div>- make buildkernel</div><div> </div><div><div>There is /etc/src.conf and BSDSERV below, what can cause that error?</div><div>Thanks for help!</div><div> </div></div><div>kernel building failed with such messages:</div><div>--------------------------------------------------------------------------</div><div><div>--- force-dynamic-hack.pico ---</div><div>cc -target x86_64-unknown-freebsd15.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -shared -O2 -pipe -fno-strict-aliasing -march=native  -nostdinc  -I. -I/usr/src/sys -I/u</div><div>sr/src/sys/contrib/ck/include -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common    -MD  -MF.depend.force-dynamic-hack.pico -MTforce-dynamic-hack.pico -fdebug-pr</div><div>efix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -fdebug-prefix-map=./i386=/usr/src/sys/i386/include -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fn</div><div>o-asynchronous-unwind-tables -ffreestanding -fwrapv -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdi</div><div>agnostics-show-option -Wno-unknown-pragmas -Wswitch -Wno-error=tautological-compare -Wno-error=empty-body -Wno-error=parentheses-equality -Wno-error=unused-function -Wno-error=pointer-sign -Wno-error=shift-negativ</div><div>e-value -Wno-address-of-packed-member -Wno-format-zero-length   -mno-aes -mno-avx  -std=gnu99 -nostdlib  force-dynamic-hack.c -o force-dynamic-hack.pico</div><div>--- vers.c ---</div><div>MAKE="make" sh /usr/src/sys/conf/newvers.sh  BSDSERV</div><div>--- vers.o ---</div><div>cc -target x86_64-unknown-freebsd15.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe -fno-strict-aliasing -march=native  -nostdinc  -I. -I/usr/src/sys -I/usr/src</div><div>/sys/contrib/ck/include -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common     -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/</div><div>usr/src/sys/x86/include -fdebug-prefix-map=./i386=/usr/src/sys/i386/include -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -Wall -Wstrict-proto</div><div>types -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wswitch -Wno-error=tautologi</div><div>cal-compare -Wno-error=empty-body -Wno-error=parentheses-equality -Wno-error=unused-function -Wno-error=pointer-sign -Wno-error=shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length   -mno-aes</div><div> -mno-avx  -std=gnu99 -Werror vers.c</div><div>--- kernel ---</div><div>linking kernel</div><div>ld: error: undefined symbol: ktrcapfail</div><div>&gt;&gt;&gt; referenced by vfs_lookup.c</div><div>&gt;&gt;&gt;               vfs_lookup.o:(namei)</div><div>&gt;&gt;&gt; referenced by vfs_lookup.c</div><div>&gt;&gt;&gt;               vfs_lookup.o:(namei_setup)</div><div>&gt;&gt;&gt; referenced by vfs_lookup.c</div><div>&gt;&gt;&gt;               vfs_lookup.o:(vfs_lookup)</div><div>&gt;&gt;&gt; referenced 3 more times</div><div>*** [kernel] Error code 1</div><div> </div><div>make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/BSDSERV</div><div>make[2]: 1 error</div><div> </div><div>make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/BSDSERV</div><div>     1098.27 real      2002.17 user       176.26 sys</div><div> </div><div>make[1]: stopped in /usr/src</div><div> </div><div>make: stopped in /usr/src</div><div> </div><div>--------------------------------------------------------------------------------</div><div> </div><div>/etc/src.conf</div><div>=======================================</div><div><div>WITHOUT_APM=yes</div><div>WITHOUT_ASSERT_DEBUG=yes</div><div>WITHOUT_AUTHPF=yes</div><div>WITHOUT_BHYVE=yes</div><div>WITHOUT_BLACKLIST=yes</div><div>WITHOUT_BLUETOOTH=yes</div><div>WITHOUT_CCD=yes</div><div>WITHOUT_CXGBETOOL=yes</div><div>WITHOUT_DEBUG_FILES=yes</div><div>WITHOUT_DTRACE=yes</div><div>WITHOUT_FLOPPY=yes</div><div>WITHOUT_GOOGLETEST=yes</div><div>WITHOUT_HAST=yes</div><div>WITHOUT_HTML=yes</div><div>WITHOUT_HYPERV=yes</div><div>WITHOUT_INET6=yes</div><div>WITHOUT_IPFILTER=yes</div><div>WITHOUT_ISCSI=yes</div><div>WITHOUT_KDUMP=yes</div><div>WITHOUT_KERNEL_SYMBOLS=yes</div><div>WITH_MALLOC_PRODUCTION=yes</div><div>WITHOUT_MLX5TOOL=yes</div><div>WITHOUT_NVME=yes</div><div>WITHOUT_OFED=yes</div><div>WITHOUT_PF=yes</div><div>WITHOUT_PTHREADS_ASSERTIONS=yes</div><div>WITHOUT_RADIUS_SUPPORT=yes</div><div>WITHOUT_RELRO=yes</div><div>WITHOUT_SSP=yes</div><div>WITHOUT_WARNS=yes</div><div>WITHOUT_WERROR=yes</div><div>WITHOUT_TESTS=yes</div><div>WITHOUT_WIRELESS=yes</div><div> </div><div>BSDSERV</div><div>=======================================</div><div><div>cpu             HAMMER</div><div>ident           BSDSERV</div><div>device          amdtemp</div><div>options         SCHED_ULE               # ULE scheduler</div><div>options         PREEMPTION              # Enable kernel thread preemption</div><div>options         VIMAGE                  # Subsystem virtualization, e.g. VNET</div><div>options         INET                    # InterNETworking</div><div>options         TCP_OFFLOAD             # TCP offload</div><div>options         TCP_BLACKBOX            # Enhanced TCP event logging</div><div>options         TCP_HHOOK               # hhook(9) framework for TCP</div><div>options         TCP_RFC7413             # TCP Fast Open</div><div>options         KERN_TLS                # TLS transmit &amp; receive offload</div><div>options         FFS                     # Berkeley Fast Filesystem</div><div>options         SOFTUPDATES             # Enable FFS soft updates support</div><div>options         MD_ROOT                 # MD is a potential root device</div><div>options         MSDOSFS                 # MSDOS Filesystem</div><div>options         PROCFS                  # Process filesystem (requires PSEUDOFS)</div><div>options         PSEUDOFS                # Pseudo-filesystem framework</div><div>options         TMPFS                   # Efficient memory filesystem</div><div>options         GEOM_LABEL              # Provides labelization</div><div>options         EFIRT                   # EFI Runtime Services support</div><div>options         COMPAT_FREEBSD32        # Compatible with i386 binaries</div><div>options         COMPAT_FREEBSD11        # Compatible with FreeBSD11</div><div>options         COMPAT_FREEBSD12        # Compatible with FreeBSD12</div><div>options         COMPAT_FREEBSD13        # Compatible with FreeBSD13</div><div>options         COMPAT_FREEBSD14</div><div>options         SCSI_DELAY=5000         # Delay (in ms) before probing SCSI</div><div>options         SYSVSHM                 # SYSV-style shared memory</div><div>options         SYSVMSG                 # SYSV-style message queues</div><div>options         SYSVSEM                 # SYSV-style semaphores</div><div>options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions</div><div>options         PRINTF_BUFR_SIZE=128    # Prevent printf output being interspersed.</div><div>options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev</div><div>options         CAPABILITY_MODE         # Capsicum capability mode</div><div>options         CAPABILITIES            # Capsicum capabilities</div><div>options         INCLUDE_CONFIG_FILE     # Include this file in kernel</div><div>options         SMP                     # Symmetric MultiProcessor Kernel</div><div>options         EARLY_AP_STARTUP</div><div>device          cpufreq</div><div>device          acpi</div><div>device          smbios</div><div>options         IOMMU</div><div>device          pci</div><div>options         COMPAT_LINUXKPI</div><div>device          ahci                    # AHCI-compatible SATA controllers</div><div>device          scbus                   # SCSI bus (required for ATA/SCSI)</div><div>device          da                      # Direct Access (disks)</div><div>device          pass                    # Passthrough device (direct ATA/SCSI access)</div><div>device          atkbdc                  # AT keyboard controller</div><div>device          atkbd                   # AT keyboard</div><div>device          kbdmux                  # keyboard multiplexer</div><div>device          vga                     # VGA video card driver</div><div>device          splash                  # Splash screen and screen saver support</div><div>device          vt</div><div>device          vt_vga</div><div>device          vt_efifb</div><div><div>device          vt_vbefb</div><div>device          agp                     # support several AGP chipsets</div><div>device          uart                    # Generic UART driver</div><div>device          iflib</div><div>device          miibus                  # MII bus support</div><div>device          re                      # RealTek 8139C+/8169/8169S/8110S</div><div>device          crypto                  # core crypto support</div><div>device          aesni                   # AES-NI OpenCrypto module</div><div>device          loop                    # Network loopback</div><div>device          ether                   # Ethernet support</div><div>device          vlan                    # 802.1Q VLAN support</div><div>device          tuntap                  # Packet tunnel.</div><div>device          md                      # Memory "disks"</div><div>device          gif                     # IPv6 and IPv4 tunneling</div><div>device          firmware                # firmware assist module</div><div>device          xz                      # lzma decompression</div><div>device          bpf                     # Berkeley packet filter</div><div>options         USB_DEBUG               # enable debug msgs</div><div>device          ehci                    # EHCI PCI-&gt;USB interface (USB 2.0)</div><div>device          xhci                    # XHCI PCI-&gt;USB interface (USB 3.0)</div><div>device          usb                     # USB Bus (required)</div><div>device          ukbd                    # Keyboard</div><div>device          netmap                  # netmap(4) support</div><div>options         EVDEV_SUPPORT           # evdev support in legacy drivers</div><div>device          evdev                   # input event device support</div><div>device          uinput                  # install /dev/uinput cdev</div><div>options         HID_DEBUG               # enable debug msgs</div><div>device          hid                     # Generic HID support</div><div>options         IICHID_SAMPLING         # Workaround missing GPIO INTR support</div><div> </div><div> </div></div><div> </div></div></div></div>