make buildkernel on 14.2 tries to build graphics/drm-510-kmod and fails

From: Tomek CEDRO <tomek_at_cedro.info>
Date: Tue, 24 Jun 2025 00:31:20 UTC
Hello world :-)

I am trying to build custom kernel to test a driver, kernel seems to
build fine but then a graphics/drm-510-kmod build kicks in and fails.
I do not use drm-510-kmod, it is not installed, why it is built here??
o_O

I also found someone with the same problem but no solution at
https://github.com/freebsd/drm-kmod/issues/337.

Any hints welcome :-)

# cat /etc/make.conf
DEVELOPER=yes
DEFAULT_VERSIONS+=ssl=libressl
MAKE_JOBS_NUMBER=24
#WITH_DEBUG_PORTS= comms/limesuite
WRKDIRPREFIX=/usr/obj/usr/ports


# git branch
  main
* releng/14.2

# pwd
/usr/src

# make buildkernel -j24
(..)

cc -target x86_64-unknown-freebsd14.2
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe
-fno-strict-aliasing  -g -nostdinc  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/ck/include -I/usr/src/sys/contrib/libfdt
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
-fno-common    -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-fdebug-prefix-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
-fno-asynchronous-unwind-tables -ffreestanding -fwrapv
-fstack-protector -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
-D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas
-Wno-error=tautological-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
-mno-avx  -std=gnu99 -Werror vers.c
ctfconvert -L VERSION -g vers.o
--- kernel.full ---
linking kernel.full
ctfmerge -L VERSION -g -o kernel.full ...
      text      data       bss        dec         hex   filename
  20055000   1605377   4685440   26345817   0x1920159   kernel.full
--- kernel.debug ---
objcopy --only-keep-debug kernel.full kernel.debug
--- kernel ---
objcopy --strip-debug --add-gnu-debuglink=kernel.debug  kernel.full kernel
--- all ---
===> Ports module graphics/drm-510-kmod (all)
cd /usr/ports/graphics/drm-510-kmod; env  -u CC  -u CXX  -u CPP  -u
MAKESYSPATH  -u MK_AUTO_OBJ  -u MAKEOBJDIR  MAKEFLAGS="-j 24 -J 15,16
-j 24 -J 15,16 -D NO_MODULES_OBJ KERNEL=kernel TARGET=amd64
TARGET_ARCH=amd64"  SYSDIR=/usr/src/sys
PATH=/usr/obj/usr/src/amd64.amd64/tmp/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
 SRC_BASE=/usr/src  OSVERSION=1402000  WRKDIRPREFIX=/usr/obj/usr/ports
make -B clean build
===>  Cleaning for drm-510-kmod-5.10.163.1402000_12
===>  drm-510-kmod-5.10.163.1402000_12 not supported on FreeBSD 14.2 and
higher.
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/graphics/drm-510-kmod
*** [all] Error code 1

make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC
1 error

make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC
       51.68 real       890.11 user        80.91 sys

make[1]: stopped in /usr/src

make: stopped in /usr/src


-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info