Solved DRM-KMOD does not compile.

Hello,

I updated the kernel (GENERIC) and World/Userland to the latest FreeBSD 13 STABLE branch.

I am now updating the ports. I am starting from zero (thanks Python for your versions). I cleaned everything according to the procedure at the end of the postmaster man page.

I have been installing a few ports but graphics/drm-kmod fails to compile.

I don't have any related option in make.conf or src.conf, that I am aware of. Besides it compiled fine before the updates.

The compiling error seems like some mismatch between /usr/ports/graphics/drm-fbsd13-kmod/work/.../include/linux/irqdomain.h. And /usr/src/sys/compat/linuxkpi/.../linux/kernel.h.

-> format specifies type 'char *' but the argument has type 'int'.

Any idea what could be going on?
 
Last edited:
Hello,

I updated the kernel (GENERIC) and World/Userland to the latest FreeBSD 13 STABLE branch.

I am now updating the ports. I am starting from zero (thanks Python for your versions). I cleaned everything according to the procedure at the end of the postmaster man page.

I have been installing a few ports but drm-kmod fails to compile.
Do you have correct kernel source installed? To compile kernel bound modules you need the source.
 
Uhmm... I am tempted to answer yes. But, I am not sure how to properly check this.

In /usr/src I am on branch stable/13. And, I updated it to commit c926cf71d4445575069214881bf13bdeb4a6a6d1 (HEAD -> stable/13, freebsd/stable/13)

In /usr/ports I am on branch 2021Q3; updated it to commit 06719384395709157ea2781e760ae8e694c70ea6 (HEAD -> 2021Q3, origin/2021Q3).
 
Uhmm... I am tempted to answer yes. But, I am not sure how to properly check this.

In /usr/src I am on branch stable/13. And, I updated it to commit c926cf71d4445575069214881bf13bdeb4a6a6d1 (HEAD -> stable/13, freebsd/stable/13)

In /usr/ports I am on branch 2021Q3; updated it to commit 06719384395709157ea2781e760ae8e694c70ea6 (HEAD -> 2021Q3, origin/2021Q3).
If you already go out of the release circle then I also recommend to use the latest ports tree. (This how it get served by FreeBSD itself when taking a -STABLE iso)

Here you can see that there was an compiling issue fixed after 2021Q3 but don't know if it is yours.

Please note that the kernel source must match your running kernel when compiling drm-kmod or the driver prevent your system from booting.
 
Perfect. It solved the problem.

Now, I am tracking freebsd/stable/13 in /usr/src, and origin/main in /usr/ports.
(As T-Daemon suggested, origin/2021Q4 would solve the problem too, the fix is also included in that branch)

And, I could compile and install graphics/drm-kmod (i.e. graphics/drm-fbsd13-kmod) without issues.

Thanks.
 
Back
Top