Solved Cannot compile drm-kmod after 12.2 p1 update

I just updated my laptop from 12.2-RELEASE to 12.2-RELEASE-p1 using freebsd-update. I also updated my packages. Upon reboot, my video drivers were not loading, and X was not starting. I figured I may have overlooked and allowed pkg to update drm-kmod, so I uninstalled it and attempted to update from ports. When I try to install from ports, I get this message:

Code:
--- opt_acpi.h ---
make[4]: make[4]; don't know how to make bus_if.h. Stop

make[4]; stopped in /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-fa1387d/linuxkpi
===> Compilation failed unexpectedly.

For the full picture, I was wanting to install emulators/virtualbox-ose, and needed to install it from ports so I could get the guest additions options. I decided to check for any base OS updates first, and thus the upgrade to 12.2 p1. I had a fresh ports update, and to save on some time upgrading any programs from ports, I went ahead and ran pkg upgrade. Then I installed Virtualbox from ports. It was after this that I rebooted the system and then encountered my errors.

I have updated the ports tree, and deleted out the work folder, but still am getting this message. What can I try next?
 
Do you have any exotic/custom variable in /etc/make.conf? If there's any, get rid of them.
That did it! I didn't think of that because I normally don't do anything with make.conf, but had been experimenting with a custom minimal USB installation, and had the NO_MODULES=YES set. That would cause problems when you are trying to compile kernel modules! It's working now, thanks so very much!
 
  • Thanks
Reactions: a6h
Back
Top