From nobody Thu Oct 24 18:40:14 2024 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XZF8l01f5z5Zl05 for ; Thu, 24 Oct 2024 18:40:23 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [107.204.234.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4XZF8j6Qj7z4l5s for ; Thu, 24 Oct 2024 18:40:21 +0000 (UTC) (envelope-from david@catwhisker.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of david@catwhisker.org designates 107.204.234.170 as permitted sender) smtp.mailfrom=david@catwhisker.org; dmarc=none Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.18.1/8.18.1) with ESMTP id 49OIeE0s076852 for ; Thu, 24 Oct 2024 18:40:14 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.18.1/8.18.1/Submit) id 49OIeEYG076851 for current@freebsd.org; Thu, 24 Oct 2024 11:40:14 -0700 (PDT) (envelope-from david) Date: Thu, 24 Oct 2024 11:40:14 -0700 From: David Wolfskill To: current@freebsd.org Subject: Problem (re)building graphics/drm-61-kmod via PORTS_MODULES+= Message-ID: Reply-To: current@freebsd.org Mail-Followup-To: current@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KUXET/iWrXleRknr" Content-Disposition: inline X-Spamd-Result: default: False [-0.35 / 15.00]; REPLYTO_EQ_TO_ADDR(5.00)[]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.95)[-0.952]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_SPF_ALLOW(-0.20)[+ip4:107.204.234.170]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:7018, ipnet:107.192.0.0/12, country:US]; FREEFALL_USER(0.00)[david]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DMARC_NA(0.00)[catwhisker.org]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[current@freebsd.org]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; HAS_REPLYTO(0.00)[current@freebsd.org] X-Rspamd-Queue-Id: 4XZF8j6Qj7z4l5s X-Spamd-Bar: / --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--