Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2024 11:40:14 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        current@freebsd.org
Subject:   Problem (re)building graphics/drm-61-kmod via PORTS_MODULES+=
Message-ID:  <ZxqUjjK22lEkVfqf@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--KUXET/iWrXleRknr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

So... I've been tracking FreeBSD (generally, daily) on various machines
for a couple of decades or so.  And I learned long ago to rebuild kmods
=66rom ports whenever I rebuilt the kernel, and that generally, the
simplest way to ensure that that is done is to augment /etc/src.conf
with (e.g.):

PORTS_MODULES+=3Dgraphics/drm-61-kmod

which (again, generally) works a treat. :-)

It even worked Just Fine yesterday (main-n273108-d1d839d0b593 ->
main-n273133-419249c1cacc).

This morning, however, after updating sources to
main-n273188-1c83996beda7, running:

g1-48(15.0-C)[12] uname -aUK
FreeBSD g1-48.catwhisker.org 15.0-CURRENT FreeBSD 15.0-CURRENT #110 main-n2=
73133-419249c1cacc: Wed Oct 23 11:19:30 UTC 2024     root@g1-48.catwhisker.=
org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY amd64 1500025 1500025

the attempt to rebuild graphics/drm-61-kmod failed on my laptops, thus:

=2E..
--- sync_file.o ---
cc  -O2 -pipe -fno-strict-aliasing -DLINUXKPI_VERSION=3D60100 '-DKBUILD_MOD=
NAME=3D"d
mabuf"' -DCONFIG_DRM_AMDGPU_CIK -DCONFIG_DRM_AMDGPU_SI -DCONFIG_DRM_AMD_DC =
-DCON
FIG_DRM_AMD_DC_SI -DCONFIG_AMD_PMC -DCONFIG_DRM_I915_FORCE_PROBE=3D'"*"' -D=
CONFIG_DRM_I915_REQUEST_TIMEOUT=3D20000 -DCONFIG_DRM_I915_CAPTURE_ERROR -DC=
ONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=3D250 -DCONFIG_DRM_I915_STOP_TIMEOUT=
=3D100 -DCONFIG_DRM_I915_PREEMPT_TIMEOUT=3D640 -DCONFIG_DRM_I915_HEARTBEAT_=
INTERVAL=3D2500 -DCONFIG_DRM_I915_TIMESLICE_DURATION=3D1 -DCONFIG_DRM_I915_=
MAX_REQUEST_BUSYWAIT=3D8000 -DCONFIG_DRM_I915_FENCE_TIMEOUT=3D10000 -DCONFI=
G_DRM_MIPI_DSI -DCONFIG_DRM_PANEL_ORIENTATION_QUIRKS -DCONFIG_APERTURE_HELP=
ERS -DCONFIG_DRM_FBDEV_EMULATION -DCONFIG_DRM_FBDEV_OVERALLOC=3D100 -DCONFI=
G_ARCH_HAVE_NMI_SAFE_CMPXCHG -DCONFIG_BACKLIGHT_CLASS_DEVICE -DCONFIG_DEBUG=
_FS -DCONFIG_DMI -DCONFIG_FB -DCONFIG_MTRR -DCONFIG_PCI -DCONFIG_PM -DCONFI=
G_PM_SLEEP -DCONFIG_SMP -DCONFIG_SUSPEND -DCONFIG_ACPI -DCONFIG_ACPI_SLEEP =
-DCONFIG_X86 -DCONFIG_X86_PAT -DCONFIG_64BIT -DCONFIG_AS_MOVNTDQA -DCONFIG_=
COMPAT -DCONFIG_X86_64 -DCONFIG_DRM_AMD_DC_DCN -DCONFIG_DRM_AMD_DC_DCN3_0 -=
DCONFIG_DRM_AMD_DC_DCN3_01 -DCONFIG_DRM_AMD_DC_DCN3_02 -DCONFIG_DRM_AMD_DC_=
DCN3_1  -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/common/S4/obj/usr/src/=
amd64.amd64/sys/CANARY/common/ports/graphics/drm-61-kmod/work/drm-kmod-drm_=
v6.1.92_0/linuxkpi/gplv2/include -I/common/S4/obj/usr/src/amd64.amd64/sys/C=
ANARY/common/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/linuxkp=
i/bsd/include -I/usr/src/sys/compat/linuxkpi/common/include -I/common/S4/ob=
j/usr/src/amd64.amd64/sys/CANARY/common/ports/graphics/drm-61-kmod/work/drm=
-kmod-drm_v6.1.92_0/linuxkpi/dummy/include -I/usr/src/sys/compat/linuxkpi/d=
ummy/include -include /common/S4/obj/usr/src/amd64.amd64/sys/CANARY/common/=
ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/obj/common/S4/obj/us=
r/src/amd64.amd64/sys/CANARY/common/ports/graphics/drm-61-kmod/work/drm-kmo=
d-drm_v6.1.92_0/dmabuf/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contr=
ib/ck/include -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-poi=
nter -fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include -fdebug-pr=
efix-map=3D./x86=3D/usr/src/sys/x86/include -fdebug-prefix-map=3D./i386=3D/=
usr/src/sys/i386/include     -MD  -MF.depend.sync_file.o -MTsync_file.o -mc=
model=3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchron=
ous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wstrict-p=
rototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-poi=
nter-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs -fdiagn=
ostics-show-option -Wno-unknown-pragmas -Wswitch -Wno-error=3Dtautological-=
compare -Wno-error=3Dempty-body -Wno-error=3Dparentheses-equality -Wno-erro=
r=3Dunused-function -Wno-error=3Dpointer-sign -Wno-error=3Dshift-negative-v=
alue -Wno-address-of-packed-member -Wno-format-zero-length   -mno-aes -mno-=
avx  -std=3Dgnu99 -c /common/S4/obj/usr/src/amd64.amd64/sys/CANARY/common/p=
orts/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/drivers/dma-buf/sync_=
file.c -o sync_file.o
--- dma-buf-kmod.o ---
cc: error: no such include directory: '/common/S4/obj/usr/src/amd64.amd64/s=
ys/CANARY/common/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/lin=
uxkpi/dummy/include' [-Werror,-Wmissing-include-dirs]
--- dma-fence-array.o ---
cc: error: no such include directory: '/common/S4/obj/usr/src/amd64.amd64/s=
ys/CANARY/common/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/lin=
uxkpi/dummy/include' [-Werror,-Wmissing-include-dirs]
--- dma-fence-unwrap.o ---
cc: error: no such include directory: '/common/S4/obj/usr/src/amd64.amd64/s=
ys/CANARY/common/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/lin=
uxkpi/dummy/include' [-Werror,-Wmissing-include-dirs]
--- dma-fence.o ---
cc: error: no such include directory: '/common/S4/obj/usr/src/amd64.amd64/s=
ys/CANARY/common/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/lin=
uxkpi/dummy/include' [-Werror,-Wmissing-include-dirs]
--- sync_file.o ---
cc: error: no such include directory: '/common/S4/obj/usr/src/amd64.amd64/s=
ys/CANARY/common/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/lin=
uxkpi/dummy/include' [-Werror,-Wmissing-include-dirs]
--- dma-buf.o ---
cc: error: no such include directory: '/common/S4/obj/usr/src/amd64.amd64/s=
ys/CANARY/common/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/lin=
uxkpi/dummy/include' [-Werror,-Wmissing-include-dirs]
--- dma-fence-chain.o ---
cc: error: no such include directory: '/common/S4/obj/usr/src/amd64.amd64/s=
ys/CANARY/common/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/lin=
uxkpi/dummy/include' [-Werror,-Wmissing-include-dirs]
--- dma-resv.o ---
cc: error: no such include directory: '/common/S4/obj/usr/src/amd64.amd64/s=
ys/CANARY/common/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/lin=
uxkpi/dummy/include' [-Werror,-Wmissing-include-dirs]
--- sync_file.o ---
*** [sync_file.o] Error code 1

make[1]: stopped making "all" in /common/S4/obj/usr/src/amd64.amd64/sys/CAN=
ARY/common/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/dmabuf
--- dma-fence.o ---
*** [dma-fence.o] Error code 1
=2E...


A bit of poking around showed that /common/S4/obj/usr/src/amd64.amd64/sys/C=
ANARY/common/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/linuxkpi
exists, but it does not contain a "dummy" subdirectory:

g1-70(14.2-P)[6] ls -laT /common/S4/obj/usr/src/amd64.amd64/sys/CANARY/comm=
on/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_0/linuxkpi/
total 16
drwxr-xr-x   4 root wheel 512 Jun  4 04:09:58 2024 .
drwxr-xr-x  16 root wheel 512 Oct 24 08:09:48 2024 ..
drwxr-xr-x   3 root wheel 512 Jun  4 04:09:58 2024 bsd
drwxr-xr-x   3 root wheel 512 Jun  4 04:09:58 2024 gplv2
g1-70(14.2-P)[7]

As an experiment, I then ran "portmaster graphics/drm-61-kmod" on the
system in question; that succeeded.

I have copied typescripts for both the build and the portmaster invocation
to https://www.catwhisker.org/~david/FreeBSD/head/n273188/.

(My headless build machine -- which runs GENERIC and has no kmods
=66rom ports -- had no issues (of course).)

I would appreciate being loaned a clue about what I might be doing wrong.

Thanks!

Peace,
david
--=20
David H. Wolfskill                              david@catwhisker.org
It has been said that history repeats itself. This is perhaps not quite
correct; it merely rhymes. -- Theodor Reik

See https://www.catwhisker.org/~david/publickey.gpg for my public key.

--KUXET/iWrXleRknr
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iNUEARYKAH0WIQSTLzOSbomIK53fjFliipiWhXYx5QUCZxqUjl8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0OTMy
RjMzOTI2RTg5ODgyQjlEREY4QzU5NjI4QTk4OTY4NTc2MzFFNQAKCRBiipiWhXYx
5bJeAP4uIoZX2vtKjAuFeEcMY+rUUDuoQuXjd5XgD3YUGE79WwEA8V5oTTSkyPrt
sGYO6Xp5+pA6O6DFAiaCROftqlnLJA4=
=RtNE
-----END PGP SIGNATURE-----

--KUXET/iWrXleRknr--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZxqUjjK22lEkVfqf>