Solved Warning: Latest 15 stable update breaks drm-*-kmod

I have both:
Code:
❯ cat /boot/loader.conf | egrep 'nvidia'
hw.nvidia.registry.EnableGpuFirmware="1"
hw.nvidiadrm.modeset="1"
# hw.nvidia.registry.EnableResizableBar=1 # OK
Hm... Are you using hybrid graphics (aka Optimus)?
If so, /dev/dri/card0 could pointing to iGPU and NVIDIA dGPU could be pointed by /dev/dri/card1 or later.
 
Hm... Are you using hybrid graphics (aka Optimus)?
If so, /dev/dri/card0 could pointing to iGPU and NVIDIA dGPU could be pointed by /dev/dri/card1 or later.
Nope, it's a desktop with one single discrete GPU.

graphics/drm-612-kmod fails to compile on my system, so I might be missing something:

Code:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/../drm_gem_ttm_helper.c:5:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem_ttm_helper.h:8:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_device.h:9:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mode_config.h:500:22: error: field has incomplete type 'struct raw_spinlock'
  500 |         struct raw_spinlock panic_lock;
      |                             ^
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mode_config.h:500:9: note: forward declaration of 'struct raw_spinlock'
  500 |         struct raw_spinlock panic_lock;
      |                ^
--- ttm_tt.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_tt.c:41:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_device.h:9:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mode_config.h:500:22: error: field has incomplete type 'struct raw_spinlock'
  500 |         struct raw_spinlock panic_lock;
      |                             ^
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mode_config.h:500:9: note: forward declaration of 'struct raw_spinlock'
  500 |         struct raw_spinlock panic_lock;
      |                ^
--- ttm_module.o ---

--- ttm_sys_manager.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_sys_manager.c:3:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_resource.h:34:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_bo_vm.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_bo_vm.c:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_sys_manager.o ---
1 error generated.
--- ttm_execbuf_util.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_execbuf_util.c:30:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- drm_gem_ttm_helper.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/../drm_gem_ttm_helper.c:5:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem_ttm_helper.h:9:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_bo.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_bo.c:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_sys_manager.o ---
*** [ttm_sys_manager.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_tt.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_tt.c:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_range_manager.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_range_manager.c:32:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_device.h:30:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_resource.h:34:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_pool.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_pool.c:46:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_bo_vm.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_bo_vm.c:38:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_drv.h:35:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_device.h:9:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mode_config.h:500:22: error: field has incomplete type 'struct raw_spinlock'
  500 |         struct raw_spinlock panic_lock;
      |                             ^
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mode_config.h:500:9: note: forward declaration of 'struct raw_spinlock'
  500 |         struct raw_spinlock panic_lock;
      |                ^
--- ttm_execbuf_util.o ---
1 error generated.
--- ttm_bo_util.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_bo_util.c:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_device.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_device.c:33:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
--- ttm_execbuf_util.o ---
*** [ttm_execbuf_util.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_device.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
--- ttm_resource.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_resource.c:30:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
--- ttm_device.o ---
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_resource.o ---
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- drm_gem_ttm_helper.o ---
2 errors generated.
--- ttm_bo_vm.o ---
2 errors generated.
--- drm_gem_ttm_helper.o ---
*** [drm_gem_ttm_helper.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_tt.o ---
2 errors generated.
--- ttm_bo_vm.o ---
*** [ttm_bo_vm.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_bo.o ---
1 error generated.
--- ttm_tt.o ---
*** [ttm_tt.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_bo.o ---
*** [ttm_bo.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_range_manager.o ---
1 error generated.
--- ttm_pool.o ---
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_pool.c:101:4: error: use of undeclared identifier '__GFP_THISNODE'
  101 |                         __GFP_THISNODE;
      |                         ^
--- ttm_bo_util.o ---
1 error generated.
--- ttm_range_manager.o ---
*** [ttm_range_manager.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_device.o ---
1 error generated.
--- ttm_bo_util.o ---
*** [ttm_bo_util.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_device.o ---
*** [ttm_device.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_pool.o ---
2 errors generated.
--- ttm_resource.o ---
1 error generated.
--- ttm_pool.o ---
*** [ttm_pool.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_resource.o ---
*** [ttm_resource.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
make[1]: 11 errors

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm

make: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped making "package" in /usr/ports/graphics/drm-612-kmod
 
Nope, it's a desktop with one single discrete GPU.

graphics/drm-612-kmod fails to compile on my system, so I might be missing something:

Code:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/../drm_gem_ttm_helper.c:5:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem_ttm_helper.h:8:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_device.h:9:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mode_config.h:500:22: error: field has incomplete type 'struct raw_spinlock'
  500 |         struct raw_spinlock panic_lock;
      |                             ^
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mode_config.h:500:9: note: forward declaration of 'struct raw_spinlock'
  500 |         struct raw_spinlock panic_lock;
      |                ^
--- ttm_tt.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_tt.c:41:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_device.h:9:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mode_config.h:500:22: error: field has incomplete type 'struct raw_spinlock'
  500 |         struct raw_spinlock panic_lock;
      |                             ^
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mode_config.h:500:9: note: forward declaration of 'struct raw_spinlock'
  500 |         struct raw_spinlock panic_lock;
      |                ^
--- ttm_module.o ---

--- ttm_sys_manager.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_sys_manager.c:3:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_resource.h:34:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_bo_vm.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_bo_vm.c:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_sys_manager.o ---
1 error generated.
--- ttm_execbuf_util.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_execbuf_util.c:30:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- drm_gem_ttm_helper.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/../drm_gem_ttm_helper.c:5:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem_ttm_helper.h:9:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_bo.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_bo.c:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_sys_manager.o ---
*** [ttm_sys_manager.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_tt.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_tt.c:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_range_manager.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_range_manager.c:32:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_device.h:30:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_resource.h:34:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_pool.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_pool.c:46:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_bo_vm.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_bo_vm.c:38:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_drv.h:35:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_device.h:9:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mode_config.h:500:22: error: field has incomplete type 'struct raw_spinlock'
  500 |         struct raw_spinlock panic_lock;
      |                             ^
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mode_config.h:500:9: note: forward declaration of 'struct raw_spinlock'
  500 |         struct raw_spinlock panic_lock;
      |                ^
--- ttm_execbuf_util.o ---
1 error generated.
--- ttm_bo_util.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_bo_util.c:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_device.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_device.c:33:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
--- ttm_execbuf_util.o ---
*** [ttm_execbuf_util.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_device.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
--- ttm_resource.o ---
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_resource.c:30:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/ttm/ttm_bo.h:34:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_gem.h:43:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_vma_manager.h:26:
In file included from /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_mm.h:51:
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/include/drm/drm_print.h:388:27: error: use of undeclared identifier '_THIS_IP_'
--- ttm_device.o ---
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- ttm_resource.o ---
  388 |                 .origin = (const void *)_THIS_IP_, /* it's fine as we will be inlined */
      |                                         ^
--- drm_gem_ttm_helper.o ---
2 errors generated.
--- ttm_bo_vm.o ---
2 errors generated.
--- drm_gem_ttm_helper.o ---
*** [drm_gem_ttm_helper.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_tt.o ---
2 errors generated.
--- ttm_bo_vm.o ---
*** [ttm_bo_vm.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_bo.o ---
1 error generated.
--- ttm_tt.o ---
*** [ttm_tt.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_bo.o ---
*** [ttm_bo.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_range_manager.o ---
1 error generated.
--- ttm_pool.o ---
/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/drivers/gpu/drm/ttm/ttm_pool.c:101:4: error: use of undeclared identifier '__GFP_THISNODE'
  101 |                         __GFP_THISNODE;
      |                         ^
--- ttm_bo_util.o ---
1 error generated.
--- ttm_range_manager.o ---
*** [ttm_range_manager.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_device.o ---
1 error generated.
--- ttm_bo_util.o ---
*** [ttm_bo_util.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_device.o ---
*** [ttm_device.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_pool.o ---
2 errors generated.
--- ttm_resource.o ---
1 error generated.
--- ttm_pool.o ---
*** [ttm_pool.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
--- ttm_resource.o ---
*** [ttm_resource.o] Error code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm
make[1]: 11 errors

make[1]: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2/ttm

make: stopped making "all" in /usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.85_2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped making "package" in /usr/ports/graphics/drm-612-kmod
did you pull the branch of /usr/src that matches your running kernel?
  • main, for 16/CURRENT
  • stable/15, for Stable 15.x
  • releng/15.1 for 15.1 release
?
 
did you pull the branch of /usr/src that matches your running kernel?
  • main, for 16/CURRENT
  • stable/15, for Stable 15.x
  • releng/15.1 for 15.1 release
?
No, I did not.
My understanding is that I shouldn't have to with pkgbase. The system was a 15.0-RELEASE pkgbase upgraded to 15.1-RELEASE.

EDIT:
I had locked FreeBSD-src and forgot to unlock after reboot and a second pkg upgrade.
Unlocked it, upgraded, recompiled and it's up and running. Thanks for poiting me on the right direction!
 
No, I did not.
My understanding is that I shouldn't have to with pkgbase. The system was a 15.0-RELEASE pkgbase upgraded to 15.1-RELEASE.

EDIT:
I had locked FreeBSD-src and forgot to unlock after reboot and a second pkg upgrade.
Unlocked it, upgraded, recompiled and it's up and running. Thanks for poiting me on the right direction!
Ah, yes, I forgot about FreeBSD-src, I don't install that package by default (or the debug symbols) as I'm on stable that gets changed a lot more than the times I compile some port from source.

Thanks for reminding me about that.
 
Back
Top