Closed iron-udjin closed 1 year ago
Thanks for the report, I think what's happened here is some kind of conflict with __FreeBSD_version
. uname -a
should be able to tell what that number is for the installation iirc, or you can go track it down (it's in sys/param.h
). These dma functions are defined in both the FreeBSD src tree and drm-kmod, which one gets used depends on if the source tree has a high enough __FreeBSD_version
to signify that it has the definitions.
Basically I think what's happened is your src tree doesn't match your installation. According to the version string you linked your __FreeBSD_version
is 1301510
. I think your source tree has a newer version that contains these definitions (i.e. you checked out CURRENT in /usr/src) while the base system has the version I just mentioned. This leads to both being present and the error you see. Could you please check that your /usr/src/sys/sys/param.h
matches /usr/include/sys/param.h
by grepping for __FreeBSD_version
?
# uname -a
FreeBSD IRON 13.1-STABLE FreeBSD 13.1-STABLE #5 stable/13-n253339-39db0c62b210: Wed Dec 28 20:26:46 EET 2022 root@IRON:/usr/obj/usr/src/amd64.amd64/sys/IRON amd64
# cd /usr/src && git branch
* stable/13
# git log | head -1
commit 39db0c62b2104753c196fd1cb7257f33a95ce10f
# diff -Naur /usr/src/sys/sys/param.h /usr/include/sys/param.h
# (no output)
So... nothing wrong with the OS version and source tree.
What branch are you using on drm-kmod
? It sounds like you are using master, which is only supported on CURRENT, you should use 5.10-lts
instead.
Yes, I use master branch. As described in README I just did:
git clone https://github.com/freebsd/drm-kmod
There were no mention about other branches to use.
With 5.10-lts
branch it has been compiled fine. Please update documentation to reflect proper branches to use in the build process.
Thank you!
Right, sorry so far I've only been running current. Updated
13.1-STABLE n253290-47f21d91808c
Steps to reproduce:
Result: