From nobody Thu Nov 20 02:12:46 2025 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dBhhL694fz6Gjdk for ; Thu, 20 Nov 2025 02:12:50 +0000 (UTC) (envelope-from ianfreislich@gmail.com) Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dBhhL43Cvz3nmP for ; Thu, 20 Nov 2025 02:12:50 +0000 (UTC) (envelope-from ianfreislich@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-787da30c53dso3619757b3.0 for ; Wed, 19 Nov 2025 18:12:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763604769; x=1764209569; darn=freebsd.org; h=mime-version:subject:user-agent:references:in-reply-to:message-id :date:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=/LBUSsUz6XOlG9qiuXS9nMGcX4lCjn8uXKrOGWcAoOg=; b=iOX8Ig16rMH3Yl0HKDbkayhyHeObSvoQjdeQiusLpiZWSuqCxqlYB3Hp3IUZc+F0Lg lJV43hyXLxXiSkccd31Op/LaMNyGRpdKKNGIziMqI5Sby1XJYtEnj0csXPZ0cZkjqk3h KBN+1m8IBKWBWEzNyzTlLnWRjeA0PJp0ACCkzVNUaaOGM0BfE25mwCxZdL5ZLv2Aybif NyWz5dg76+HpDYo5Wh7q9+ouZBtWyCmM79lfp//RAcKReiXeUXF4SGBwsaDpoAttg6Pu BpuukfUwfgUwGcyUMtiqDumeNeAvoqB+nWHVMY+feV0TcbSmwt1QVI3Sn+VJntc7ILaN V4TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763604769; x=1764209569; h=mime-version:subject:user-agent:references:in-reply-to:message-id :date:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/LBUSsUz6XOlG9qiuXS9nMGcX4lCjn8uXKrOGWcAoOg=; b=ufmFclWkesflkA2y65cGuwMQrJSqzgE//9Z5xzpagcwThLDOl8EtglYUgqUlW0yyPF OPgqQjfDwro5/gHjXLEwm8q7nO4mJMS1qO0Wf8FK4P/LxDEHbjQIhyjW2HaWAxZ3NBE0 R4H+GWE2++i6Xgr0T9NFJGq5jOm4WHMeSUjrVpxPar0xbCIgTotBw3bgofakCAmROI89 /+Nrxuh+EHny9vId2R6FXEbRaFvg4yeKk1el7hmr1yci8vtk5uDCN0devTQhPYe0vwQa 4t4SVXGVnaOgfian5FmL+f1VcbTUmP7v9W3njvUMpHmcz4qNWjIHGM6LjzCBqN1iXlXx Iy/g== X-Gm-Message-State: AOJu0YyE11faOTvoonC8kx17USUdg1hip6Jud3mZWuLQHYW9QDgzr6ex mwdINZBS/JvqrdT1Kl2HkiS+TjnHh30RqkbTIUr4gBAwLjQNMe8fnPDVenlUK1U9 X-Gm-Gg: ASbGncsCraZMY09LTPK7ZsdOPE+Wl7jMBXG/AKWQNdM26YdfbrQ38C3dQq1QKy3LcUW XYwxqHXaray6xMlNixghAcXV8JZ8lzyHTLTbKqb47ecVlKynqIJbsKD68Sc7Zh1zzD1UY1nzDyl DdP1dPR33sVkX76auAQeqx7uaMw5kAGWRRhs3uB0aZAJlaaVUJOT4ZFZFx1Xn8XaWPmaLbP8xkO KMN1wqLVgX8rAkHf4Hp+SBDi8Ge8FUXJ15v8+vYDUMmzxQdeMS+hpBH16YvozFC2QiQV5RZ4g1K v0nBcTlWnhqjV4YulEUusw+TUz/E+GMa6CtLSGH0vuX83jlFnZYDNuzxTLmKDATS+ig5kfrqXRb H96z6kSfj/egSFHJX+TOnRbCXhXNmLp/lAky0TXtsPMBGIcDR9UH/ec0foAvNm9v8eYVgLedNb3 BCOPwfJQMbW8Ejvys6Xtc467iR/SSPNMPIhK8oPquVv6XRbX0NNR3F6Q3ugtQGvIRrcW8= X-Google-Smtp-Source: AGHT+IFA8yO5t5gxm5E7Jiq8VFlkSpGpojTRC65dZN4YHkl9S3nR0EIv+/5vygu/NRYfgODUBnlpNA== X-Received: by 2002:a05:690c:350d:b0:783:afee:fc46 with SMTP id 00721157ae682-78a7abfb922mr8838257b3.37.1763604768609; Wed, 19 Nov 2025 18:12:48 -0800 (PST) Received: from [10.0.0.133] (107-128-20-168.lightspeed.tukrga.sbcglobal.net. [107.128.20.168]) by smtp.gmail.com with ESMTPSA id 00721157ae682-78a798a82a0sm3730897b3.17.2025.11.19.18.12.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Nov 2025 18:12:47 -0800 (PST) From: Ian Freislich To: Minsoo Choo CC: FreeBSD Current Date: Wed, 19 Nov 2025 21:12:46 -0500 Message-ID: <19a9f091d30.27e6.64e08aff09ba5a21b2fc9010d26a90e5@gmail.com> In-Reply-To: References: <814ce2bc-2a95-444b-9ab7-7e680a024c68@gmail.com> <60449f55-58e7-4f8b-aa0e-3f288dab5146@gmail.com> <531224d3-acaf-4f97-b39c-02b09dcd297c@gmail.com> User-Agent: AquaMail/1.55.2 (build: 105502562) Subject: Re: nvme.c:2012:2: error: call to undeclared function 'memmove' List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="19a9f0920d1632027e66b8608a" X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dBhhL43Cvz3nmP This is a multi-part message in MIME format. --19a9f0920d1632027e66b8608a Content-Type: text/plain; format=flowed; charset="us-ascii" Content-Transfer-Encoding: 8bit On November 19, 2025 21:04:28 Minsoo Choo wrote: > On Wednesday, November 19th, 2025 at 5:24 PM, Ian FREISLICH > wrote: > >> On 11/19/25 15:42, Minsoo Choo wrote: >> >>> On Wednesday, November 19th, 2025 at 2:51 PM, Ian FREISLICH >>> ianfreislich@gmail.com wrote: >>> >>>> On 11/19/25 14:24, Minsoo Choo wrote: >>>> >>>>> On Wednesday, November 19th, 2025 at 2:19 PM, Ian FREISLICH >>>>> ianfreislich@gmail.com wrote: >>>>> >>>>>> My kernel build started failing recently with the following error. I use >>>>>> a custom kernel config but looking at NOTES, it's not clear that I've >>>>>> missed an option that would make it compile. >>>>>> >>>>>> In file included from /usr/src/sys/dev/nvme/nvme_util.c:34: >>>>>> /usr/src/sys/dev/nvme/nvme.h:2012:2: error: call to undeclared function >>>>>> 'memmove'; ISO C99 and later do not support implicit function >>>>>> declarations [-Werror,-Wimplicit-function-declaration] >>>>>> 2012 | memmove(sn, cdata->sn, NVME_SERIAL_NUMBER_LENGTH); >>>>>> >>>>>> | ^ >>>>>> 1 error generated. >>>>>> *** Error code 1 >>>>>> >>>>>> I've also tried compiling after blowing away usr/obj. >>>>>> >>>>>> Ian >>>>> >>>>> memmove is declared in systm.h, but I don't see include statement for >>>>> systm.h in nvme.h. Could you try including in >>>>> sys/dev/nvme/nvme.h and build again? >>>> >>>> It builds with that, but coincidentally GENERIC builds without that change. >>>> >>>> Ian >>> >>> Could you send your kernel config? Maybe sys/systm.h is included under >>> GENERIC but not under some configs. >> >> >> --X-- >> cpu HAMMER >> ident ROUTER >> >> makeoptions DEBUG=-g # Build kernel with gdb(1) debug >> symbols >> >> options SCHED_ULE # ULE scheduler >> options NUMA # Non-Uniform Memory >> Architecture support >> options PREEMPTION # Enable kernel thread preemption >> >> options INET # IPv6 communications protocols >> options INET6 # IPv6 communications protocols >> options IPSEC >> options IPSEC_OFFLOAD # Inline ipsec offload infra >> options ROUTE_MPATH # Multipath routing support >> options FIB_ALGO # Modular fib lookups >> options TCP_OFFLOAD # TCP offload >> options TCP_BLACKBOX # Enhanced TCP event logging >> options TCP_HHOOK # hhook(9) framework for TCP >> options TCP_RFC7413 # TCP Fast Open >> options SCTP_SUPPORT # Allow kldload of SCTP >> options KERN_TLS # TLS transmit & receive offload >> options MAC >> options MAC_NTPD >> options MAC_PORTACL >> >> options FFS # Berkeley Fast Filesystem >> options SOFTUPDATES # Enable FFS soft updates support >> options UFS_ACL # Support for access control lists >> options UFS_DIRHASH # Improve performance on big >> directories >> options UFS_GJOURNAL # Enable gjournal-based UFS >> journaling >> options ZFS >> options ZSTDIO >> options PROCFS # Process filesystem (requires >> PSEUDOFS) >> options PSEUDOFS # Pseudo-filesystem framework >> options TMPFS # Efficient memory filesystem >> options GEOM_LABEL # Provides labelization >> options GEOM_PART_GPT >> options EFIRT # EFI Runtime Services support >> options COMPAT_FREEBSD32 # Compatible with i386 binaries >> options COMPAT_FREEBSD4 # Compatible with FreeBSD4 >> options COMPAT_FREEBSD5 # Compatible with FreeBSD5 >> options COMPAT_FREEBSD6 # Compatible with FreeBSD6 >> options COMPAT_FREEBSD7 # Compatible with FreeBSD7 >> options COMPAT_FREEBSD9 # Compatible with FreeBSD9 >> options COMPAT_FREEBSD10 # Compatible with FreeBSD10 >> options COMPAT_FREEBSD11 # Compatible with FreeBSD11 >> options COMPAT_FREEBSD12 # Compatible with FreeBSD12 >> options COMPAT_FREEBSD13 # Compatible with FreeBSD13 >> options COMPAT_FREEBSD14 # Compatible with FreeBSD14 >> #options COMPAT_FREEBSD15 # Compatible with FreeBSD15 >> options KTRACE # ktrace(1) support >> options STACK # stack(9) support >> options SYSVSHM # SYSV-style shared memory >> options SYSVMSG # SYSV-style message queues >> options SYSVSEM # SYSV-style semaphores >> >> options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time >> extensions >> options PRINTF_BUFR_SIZE=128 # Prevent printf output being >> interspersed. >> options KBD_INSTALL_CDEV # install a CDEV entry in /dev >> options HWPMC_HOOKS # Necessary kernel hooks for >> hwpmc(4) >> options INCLUDE_CONFIG_FILE # Include this file in kernel >> >> # Debugging support. Always need this: >> options KDB >> options KDB_UNATTENDED >> options DDB >> options GDB >> options KDB_TRACE >> options ALT_BREAK_TO_DEBUGGER >> >> # Kernel dump features. >> options EKCD # Support for encrypted kernel dumps >> options GZIO # gzip-compressed kernel and >> user dumps >> options ZSTDIO # zstd-compressed kernel and >> user dumps >> options DEBUGNET # debugnet networking >> options NETDUMP # netdump(4) client support >> options NETGDB # netgdb(4) client support >> >> device pf >> device pflog >> device pfsync >> >> # Make an SMP-capable kernel by default >> options SMP # Symmetric MultiProcessor Kernel >> device cpufreq >> >> # Bus support. >> device acpi >> device acpi_wmi >> device smbios >> device smbus >> device ichsmb >> device iicbus >> device ig4 >> options IOMMU >> device pci >> options PCI_HP # PCI-Express native HotPlug >> options PCI_IOV # PCI SR-IOV support >> >> >> # ATA controllers >> device ahci # AHCI-compatible SATA controllers >> device scbus # SCSI bus (required for ATA/SCSI) >> device ch # SCSI media changers >> device da # Direct Access (disks) >> device sa # Sequential Access (tape etc) >> device cd # CD >> device pass # Passthrough device (direct >> ATA/SCSI access) >> device ses # Enclosure Services (SES and >> SAF-TE) >> >> # NVM Express (NVMe) support >> device nvme # base NVMe driver >> device nvd # expose NVMe namespaces as >> disks, depends on nvme >> >> # atkbdc0 controls both the keyboard and the PS/2 mouse >> device atkbdc # AT keyboard controller >> device atkbd # AT keyboard >> device kbdmux # keyboard multiplexer >> >> # syscons is the legacy console driver, resembling an SCO console >> #device vga # VGA video card driver >> #device splash # Splash screen and screen saver >> support >> #device sc >> #options SC_PIXEL_MODE # add support for the raster >> text mode >> >> # vt is the default video console driver >> device vt >> device vt_vga >> device vt_efifb >> device vt_vbefb >> >> device agp # support several AGP chipsets >> >> options PPS_SYNC >> device uart # Generic UART driver >> >> device superio >> device gpio >> device gpiopps >> >> # PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure >> device iflib >> device igc # Intel I225 2.5G Ethernet >> device ix # Intel PRO/10GbE PCIE PF Ethernet >> >> # Pseudo devices. >> device crypto # core crypto support >> device cryptodev >> device aesni # AES-NI OpenCrypto module >> device ossl >> device loop # Network loopback >> device rdrand_rng # Intel Bull Mountain RNG >> device ether # Ethernet support >> device vlan # 802.1Q VLAN support >> device tuntap # Packet tunnel. >> device md # Memory "disks" >> device gif # IPv6 and IPv4 tunneling >> device firmware # firmware assist module >> device xz # lzma decompression >> >> options EVDEV_SUPPORT >> device evdev >> device uinput >> >> # The `bpf' device enables the Berkeley Packet Filter. >> # Be aware of the administrative consequences of enabling this! >> # Note that 'bpf' is required for DHCP. >> device bpf # Berkeley packet filter >> >> # USB support >> options USB_DEBUG # enable debug msgs >> device uhci # UHCI PCI->USB interface >> >> device ohci # OHCI PCI->USB interface >> >> device ehci # EHCI PCI->USB interface (USB 2.0) >> >> device xhci # XHCI PCI->USB interface (USB 3.0) >> >> device usb # USB Bus (required) >> device usbhid # USB HID Transport >> device hkbd # HID Keyboard >> device ukbd # USB Keyboard >> device umass # Disks/Mass storage - Requires >> scbus and da >> >> # Sound support >> device sound # Generic sound driver (required) >> device snd_hda # Intel High Definition Audio >> >> # Netmap provides direct access to TX/RX rings on supported NICs >> device netmap # netmap(4) support >> >> device hid # Generic HID support >> device hidbus # Generic HID Bus >> >> # EFI devices >> device efidev # EFI pseudo-device >> device efirtc # EFI RTC >> --X-- > > Could you `make cleankernel` and run `make buildkernel` again? And if it > fails for the same reason, could you add `#include ` and `make > cleankernel` then `make buildkernel` again? I did rm -rf /usr/obj/* and rebuilt before reporting. --19a9f0920d1632027e66b8608a Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
On November 19, 2025 21:= 04:28 Minsoo Choo <minsoochoo0122@proton.me> wrote:

On Wednesday, November 19th, 2025 at 5:24 PM, Ian FREISLI= CH <ianfreislich@gmail.com> wrote:

On 11/19/25 15:42, Minsoo Choo wrote:

On Wednesday, November 19th, 2025 at 2:51 PM, Ian FREISLI= CH ianfreislich@gmail.com wrote:

On 11/19/25 14:24, Minsoo Choo wrote:

On Wednesday, November 19th, 2025 at 2:19 PM, Ian FREISLI= CH ianfreislich@gmail.com wrote:

My kernel build started failing recently with the followi= ng error. I use
a custom kernel config but looking at NOTES, it's not cle= ar that I've
missed an option that would make it compile.

In file included from /usr/src/sys/dev/nvme/nvme_util.c:3= 4:
/usr/src/sys/dev/nvme/nvme.h:2012:2: error: call to undec= lared function
'memmove'; ISO C99 and later do not support implicit func= tion
declarations [-Werror,-Wimplicit-function-declaration]
2012 | memmove(sn, cdata->sn, NVME_SERIAL_NUMBER_LENGT= H);

| ^
1 error generated.
*** Error code 1

I've also tried compiling after blowing away usr/obj.

Ian

memmove is declared in systm.h, but I don't see include s= tatement for systm.h in nvme.h. Could you try including <sys/systm.h>= in sys/dev/nvme/nvme.h and build again?

It builds with that, but coincidentally GENERIC builds wi= thout that change.

Ian

Could you send your kernel config? Maybe sys/systm.h is i= ncluded under GENERIC but not under some configs.


--X--
cpu HAMMER
ident ROUTER

makeoptions DEBUG=3D-g # Build kernel with gdb(1) debug
symbols

options SCHED_ULE # ULE scheduler
options NUMA # Non-Uniform Memory
Architecture support
options PREEMPTION # Enable kernel thread preemption

options INET # IPv6 communications protocols
options INET6 # IPv6 communications protocols
options IPSEC
options IPSEC_OFFLOAD # Inline ipsec offload infra
options ROUTE_MPATH # Multipath routing support
options FIB_ALGO # Modular fib lookups
options TCP_OFFLOAD # TCP offload
options TCP_BLACKBOX # Enhanced TCP event logging
options TCP_HHOOK # hhook(9) framework for TCP
options TCP_RFC7413 # TCP Fast Open
options SCTP_SUPPORT # Allow kldload of SCTP
options KERN_TLS # TLS transmit & receive offload
options MAC
options MAC_NTPD
options MAC_PORTACL

options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big
directories
options UFS_GJOURNAL # Enable gjournal-based UFS
journaling
options ZFS
options ZSTDIO
options PROCFS # Process filesystem (requires
PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
options TMPFS # Efficient memory filesystem
options GEOM_LABEL # Provides labelization
options GEOM_PART_GPT
options EFIRT # EFI Runtime Services support
options COMPAT_FREEBSD32 # Compatible with i386 binaries<= /div>
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options COMPAT_FREEBSD6 # Compatible with FreeBSD6
options COMPAT_FREEBSD7 # Compatible with FreeBSD7
options COMPAT_FREEBSD9 # Compatible with FreeBSD9
options COMPAT_FREEBSD10 # Compatible with FreeBSD10
options COMPAT_FREEBSD11 # Compatible with FreeBSD11
options COMPAT_FREEBSD12 # Compatible with FreeBSD12
options COMPAT_FREEBSD13 # Compatible with FreeBSD13
options COMPAT_FREEBSD14 # Compatible with FreeBSD14
#options COMPAT_FREEBSD15 # Compatible with FreeBSD15
options KTRACE # ktrace(1) support
options STACK # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores

options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real= -time
extensions
options PRINTF_BUFR_SIZE=3D128 # Prevent printf output be= ing
interspersed.
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options HWPMC_HOOKS # Necessary kernel hooks for
hwpmc(4)
options INCLUDE_CONFIG_FILE # Include this file in kernel=

# Debugging support. Always need this:
options KDB
options KDB_UNATTENDED
options DDB
options GDB
options KDB_TRACE
options ALT_BREAK_TO_DEBUGGER

# Kernel dump features.
options EKCD # Support for encrypted kernel dumps
options GZIO # gzip-compressed kernel and
user dumps
options ZSTDIO # zstd-compressed kernel and
user dumps
options DEBUGNET # debugnet networking
options NETDUMP # netdump(4) client support
options NETGDB # netgdb(4) client support

device pf
device pflog
device pfsync

# Make an SMP-capable kernel by default
options SMP # Symmetric MultiProcessor Kernel
device cpufreq

# Bus support.
device acpi
device acpi_wmi
device smbios
device smbus
device ichsmb
device iicbus
device ig4
options IOMMU
device pci
options PCI_HP # PCI-Express native HotPlug
options PCI_IOV # PCI SR-IOV support


# ATA controllers
device ahci # AHCI-compatible SATA controllers
device scbus # SCSI bus (required for ATA/SCSI)
device ch # SCSI media changers
device da # Direct Access (disks)
device sa # Sequential Access (tape etc)
device cd # CD
device pass # Passthrough device (direct
ATA/SCSI access)
device ses # Enclosure Services (SES and
SAF-TE)

# NVM Express (NVMe) support
device nvme # base NVMe driver
device nvd # expose NVMe namespaces as
disks, depends on nvme

# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc # AT keyboard controller
device atkbd # AT keyboard
device kbdmux # keyboard multiplexer

# syscons is the legacy console driver, resembling an SCO= console
#device vga # VGA video card driver
#device splash # Splash screen and screen saver
support
#device sc
#options SC_PIXEL_MODE # add support for the raster
text mode

# vt is the default video console driver
device vt
device vt_vga
device vt_efifb
device vt_vbefb

device agp # support several AGP chipsets

options PPS_SYNC
device uart # Generic UART driver

device superio
device gpio
device gpiopps

# PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastruct= ure
device iflib
device igc # Intel I225 2.5G Ethernet
device ix # Intel PRO/10GbE PCIE PF Ethernet

# Pseudo devices.
device crypto # core crypto support
device cryptodev
device aesni # AES-NI OpenCrypto module
device ossl
device loop # Network loopback
device rdrand_rng # Intel Bull Mountain RNG
device ether # Ethernet support
device vlan # 802.1Q VLAN support
device tuntap # Packet tunnel.
device md # Memory "disks"
device gif # IPv6 and IPv4 tunneling
device firmware # firmware assist module
device xz # lzma decompression

options EVDEV_SUPPORT
device evdev
device uinput

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling= this!
# Note that 'bpf' is required for DHCP.
device bpf # Berkeley packet filter

# USB support
options USB_DEBUG # enable debug msgs
device uhci # UHCI PCI->USB interface

device ohci # OHCI PCI->USB interface

device ehci # EHCI PCI->USB interface (USB 2.0)

device xhci # XHCI PCI->USB interface (USB 3.0)

device usb # USB Bus (required)
device usbhid # USB HID Transport
device hkbd # HID Keyboard
device ukbd # USB Keyboard
device umass # Disks/Mass storage - Requires
scbus and da

# Sound support
device sound # Generic sound driver (required)
device snd_hda # Intel High Definition Audio

# Netmap provides direct access to TX/RX rings on support= ed NICs
device netmap # netmap(4) support

device hid # Generic HID support
device hidbus # Generic HID Bus

# EFI devices
device efidev # EFI pseudo-device
device efirtc # EFI RTC
--X--


Could you `make cleankernel` and run `make buildkernel` a= gain? And if it fails for the same reason, could you add `#include <sys/= systm.h>` and `make cleankernel` then `make buildkernel` again?

I did rm -rf /usr/obj/*= and rebuilt before reporting.
--19a9f0920d1632027e66b8608a--