From nobody Thu Oct 24 19:28:31 2024 X-Original-To: freebsd-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 4XZGDY6txTz5ZmvF for ; Thu, 24 Oct 2024 19:28:45 +0000 (UTC) (envelope-from freebsd@dev.thsi.be) Received: from mail.thsi.be (mail.thsi.be [78.46.184.143]) (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 4XZGDV6XSQz4q9V for ; Thu, 24 Oct 2024 19:28:42 +0000 (UTC) (envelope-from freebsd@dev.thsi.be) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=thsi.be header.s=20230901 header.b=UxkghX+g; spf=pass (mx1.freebsd.org: domain of freebsd@dev.thsi.be designates 78.46.184.143 as permitted sender) smtp.mailfrom=freebsd@dev.thsi.be; dmarc=pass (policy=reject) header.from=dev.thsi.be DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thsi.be; s=20230901; t=1729798114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NL7W9aDhuLExQTQXA/ywtb287zgvLFGipxgjHbtd9Dk=; b=UxkghX+gSPUAahXiwJutUMpmjGJg9cUtgEUpK8zASTTrPl/JGDdy/EDy47jS83XUhDkKWe wLlCtfTPyet0V+ZVL+JaYcj53pxAB2WyD6O5eqCb65vPnKVoEgOY8vkWR9ffyi7I6KF7VY tZgngHRVzcXARlqn7iM1pL8rakXZra1g25XRn43VBUqY9vx6yOS5q/LOUy5999qLijC/Ev 65z6we8nzr9lQIjk7icZYHkCMwyiaL4wllEAsuVtjSkrcGPeJd+ZuP2LD50SeEvB966+mP cftypxmAy7NysJUFvhAt/gCuwryeRMdqQQwgSSmcPjth/poj1Fg2IJMSvtbn4Q== Received: from [127.0.0.1] (fw01.rscg.gr [213.249.50.34]) by thsi-smtp-01.fk.thsi.be (OpenSMTPD) with ESMTPSA id 6d0a9ab5 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Thu, 24 Oct 2024 19:28:33 +0000 (UTC) Date: Thu, 24 Oct 2024 22:28:31 +0300 From: Benjamin Jacobs To: freebsd-current@freebsd.org Subject: Re: upgrade llvm19 broke drm-6.1 kmod User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <87FE1F9A-9510-4579-96BE-1DB6EFE8C1B4@dev.thsi.be> 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/alternative; boundary=----QGTIZK91VSF9WPQ135TH5HQ95LU7UQ Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[dev.thsi.be,reject]; R_DKIM_ALLOW(-0.20)[thsi.be:s=20230901]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:24940, ipnet:78.46.0.0/15, country:DE]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[thsi.be:+] X-Rspamd-Queue-Id: 4XZGDV6XSQz4q9V X-Spamd-Bar: --- ------QGTIZK91VSF9WPQ135TH5HQ95LU7UQ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On October 24, 2024 9:25:35 PM GMT+03:00, Michael Butler wrote: >It seems there are some additional constraints about non-existent directo= ries that now count as errors =2E=2E > >--- sync_file=2Eo --- >cc -O2 -pipe -fno-strict-aliasing -DLINUXKPI_VERSION=3D60100 '-DKBUILD_M= ODNAME=3D"dmabuf"' -DCONFIG_DRM_AMDGPU_CIK -DCONFIG_DRM_AMDGPU_SI -DCONFIG_= DRM_AMD_DC -DCONFIG_DRM_AMD_DC_SI -DCONFIG_AMD_PMC -DCONFIG_DRM_I915_FORCE_= PROBE=3D'"*"' -DCONFIG_DRM_I915_REQUEST_TIMEOUT=3D20000 -DCONFIG_DRM_I915_C= APTURE_ERROR -DCONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=3D250 -DCONFIG_DRM_I91= 5_STOP_TIMEOUT=3D100 -DCONFIG_DRM_I915_PREEMPT_TIMEOUT=3D640 -DCONFIG_DRM_I= 915_HEARTBEAT_INTERVAL=3D2500 -DCONFIG_DRM_I915_TIMESLICE_DURATION=3D1 -DCO= NFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=3D8000 -DCONFIG_DRM_I915_FENCE_TIMEOUT= =3D10000 -DCONFIG_DRM_MIPI_DSI -DCONFIG_DRM_PANEL_ORIENTATION_QUIRKS -DCONF= IG_APERTURE_HELPERS -DCONFIG_DRM_FBDEV_EMULATION -DCONFIG_DRM_FBDEV_OVERALL= OC=3D100 -DCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG -DCONFIG_BACKLIGHT_CLASS_DEVIC= E -DCONFIG_DEBUG_FS -DCONFIG_DMI -DCONFIG_FB -DCONFIG_MTRR -DCONFIG_PCI -DC= ONFIG_PM -DCONFIG_PM_SLEEP -DCONFIG_SMP -DCONFIG_SUSPEND -DCONFIG_ACPI -DCO= NFIG_ACPI_SLEEP -DCONFIG_X86 -DCONFIG_X86_PAT -DCONFIG_64BIT -DCONFIG_AS_MO= VNTDQA -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 -DCO= NFIG_DRM_AMD_DC_DCN3_1 -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/usr/por= ts/graphics/drm-61-kmod/work/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/gplv2/incl= ude -I/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6=2E1=2E92_0/linux= kpi/bsd/include -I/usr/src/sys/compat/linuxkpi/common/include -I/usr/ports/= graphics/drm-61-kmod/work/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/dummy/include= -I/usr/src/sys/compat/linuxkpi/dummy/include -include /usr/ports/graphics/= drm-61-kmod/work/drm-kmod-drm_v6=2E1=2E92_0/obj/usr/ports/graphics/drm-61-k= mod/work/drm-kmod-drm_v6=2E1=2E92_0/dmabuf/opt_global=2Eh -I=2E -I/usr/src/= sys -I/usr/src/sys/contrib/ck/include -fno-common -fno-omit-frame-pointer -= mno-omit-leaf-frame-pointer -fdebug-prefix-map=3D=2E/machine=3D/usr/src/sys= /amd64/include -fdebug-prefix-map=3D=2E/x86=3D/usr/src/sys/x86/include -fde= bug-prefix-map=3D=2E/i386=3D/usr/src/sys/i386/include -MD -MF=2Edepend= =2Esync_file=2Eo -MTsync_file=2Eo -mcmodel=3Dkernel -mno-red-zone -mno-mmx = -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwra= pv -fstack-protector -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpoint= er-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=3D__freebsd_kpr= intf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragma= s -Wswitch -Wno-error=3Dtautological-compare -Wno-error=3Dempty-body -Wno-e= rror=3Dparentheses-equality -Wno-error=3Dunused-function -Wno-error=3Dpoint= er-sign -Wno-error=3Dshift-negative-value -Wno-address-of-packed-member -Wn= o-format-zero-length -mno-aes -mno-avx -std=3Dgnu99 -c /usr/ports/graphi= cs/drm-61-kmod/work/drm-kmod-drm_v6=2E1=2E92_0/drivers/dma-buf/sync_file=2E= c -o sync_file=2Eo >--- dma-fence-chain=2Eo --- >cc: error: no such include directory: '/usr/ports/graphics/drm-61-kmod/wo= rk/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/dummy/include' [-Werror,-Wmissing-in= clude-dirs] >--- dma-fence=2Eo --- >cc: error: no such include directory: '/usr/ports/graphics/drm-61-kmod/wo= rk/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/dummy/include' [-Werror,-Wmissing-in= clude-dirs] >--- sync_file=2Eo --- >cc: error: no such include directory: '/usr/ports/graphics/drm-61-kmod/wo= rk/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/dummy/include' [-Werror,-Wmissing-in= clude-dirs] >--- dma-buf=2Eo --- >cc: error: no such include directory: '/usr/ports/graphics/drm-61-kmod/wo= rk/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/dummy/include' [-Werror,-Wmissing-in= clude-dirs] >--- dma-buf-kmod=2Eo --- >cc: error: no such include directory: '/usr/ports/graphics/drm-61-kmod/wo= rk/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/dummy/include' [-Werror,-Wmissing-in= clude-dirs] >--- dma-resv=2Eo --- >cc: error: no such include directory: '/usr/ports/graphics/drm-61-kmod/wo= rk/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/dummy/include' [-Werror,-Wmissing-in= clude-dirs] >--- dma-fence-unwrap=2Eo --- >cc: error: no such include directory: '/usr/ports/graphics/drm-61-kmod/wo= rk/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/dummy/include' [-Werror,-Wmissing-in= clude-dirs] >--- dma-fence-array=2Eo --- >cc: error: no such include directory: '/usr/ports/graphics/drm-61-kmod/wo= rk/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/dummy/include' [-Werror,-Wmissing-in= clude-dirs] >--- dma-resv=2Eo --- >*** [dma-resv=2Eo] Error code 1 > >make[1]: stopped making "all" in /usr/ports/graphics/drm-61-kmod/work/drm= -kmod-drm_v6=2E1=2E92_0/dmabuf >--- sync_file=2Eo --- >*** [sync_file=2Eo] Error code 1 > >make[1]: stopped making "all" in /usr/ports/graphics/drm-61-kmod/work/drm= -kmod-drm_v6=2E1=2E92_0/dmabuf >--- dma-fence-unwrap=2Eo --- >*** [dma-fence-unwrap=2Eo] Error code 1 > > The following workaround did the trick for me=2E Works for drm-515 too and= probably 510? (Sorry if the patch is mangled, sent with phone MUA) diff --git a/graphics/drm-61-kmod/Makefile b/graphics/drm-61-kmod/Makefile index 6db21111f255=2E=2Ed195829ac987 100644 --- a/graphics/drm-61-kmod/Makefile +++ b/graphics/drm-61-kmod/Makefile @@ -49,6 +49,9 @@ PLIST_SUB+=3D I915=3D"@comment " MAKE_ENV+=3D MAKEOBJDIRPREFIX=3D${WRKSRC}/obj +post-patch: + ${MKDIR} ${WRKSRC}/linuxkpi/dummy/include + pre-build: ${MKDIR} ${WRKSRC}/obj (cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} obj) ------QGTIZK91VSF9WPQ135TH5HQ95LU7UQ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Oc= tober 24, 2024 9:25:35 PM GMT+03:00, Michael Butler <imb@protected-netwo= rks=2Enet> wrote:
It seems there are some additional= constraints about non-existent directories that now count as errors =2E=2E=

--- sync_file=2Eo ---
cc -O2 -pipe -fno-strict-aliasing -DLINUX= KPI_VERSION=3D60100 '-DKBUILD_MODNAME=3D"dmabuf"' -DCONFIG_DRM_AMDGPU_CIK -= DCONFIG_DRM_AMDGPU_SI -DCONFIG_DRM_AMD_DC -DCONFIG_DRM_AMD_DC_SI -DCONFIG_A= MD_PMC -DCONFIG_DRM_I915_FORCE_PROBE=3D'"*"' -DCONFIG_DRM_I915_REQUEST_TIME= OUT=3D20000 -DCONFIG_DRM_I915_CAPTURE_ERROR -DCONFIG_DRM_I915_USERFAULT_AUT= OSUSPEND=3D250 -DCONFIG_DRM_I915_STOP_TIMEOUT=3D100 -DCONFIG_DRM_I915_PREEM= PT_TIMEOUT=3D640 -DCONFIG_DRM_I915_HEARTBEAT_INTERVAL=3D2500 -DCONFIG_DRM_I= 915_TIMESLICE_DURATION=3D1 -DCONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=3D8000 -D= CONFIG_DRM_I915_FENCE_TIMEOUT=3D10000 -DCONFIG_DRM_MIPI_DSI -DCONFIG_DRM_PA= NEL_ORIENTATION_QUIRKS -DCONFIG_APERTURE_HELPERS -DCONFIG_DRM_FBDEV_EMULATI= ON -DCONFIG_DRM_FBDEV_OVERALLOC=3D100 -DCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG -= DCONFIG_BACKLIGHT_CLASS_DEVICE -DCONFIG_DEBUG_FS -DCONFIG_DMI -DCONFIG_FB -= DCONFIG_MTRR -DCONFIG_PCI -DCONFIG_PM -DCONFIG_PM_SLEEP -DCONFIG_SMP -DCONF= IG_SUSPEND -DCONFIG_ACPI -DCONFIG_ACPI_SLEEP -DCONFIG_X86 -DCONFIG_X86_PAT = -DCONFIG_64BIT -DCONFIG_AS_MOVNTDQA -DCONFIG_COMPAT -DCONFIG_X86_64 -DCONFI= G_DRM_AMD_DC_DCN -DCONFIG_DRM_AMD_DC_DCN3_0 -DCONFIG_DRM_AMD_DC_DCN3_01 -DC= ONFIG_DRM_AMD_DC_DCN3_02 -DCONFIG_DRM_AMD_DC_DCN3_1 -Werror -D_KERNEL -DKL= D_MODULE -nostdinc -I/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6= =2E1=2E92_0/linuxkpi/gplv2/include -I/usr/ports/graphics/drm-61-kmod/work/d= rm-kmod-drm_v6=2E1=2E92_0/linuxkpi/bsd/include -I/usr/src/sys/compat/linuxk= pi/common/include -I/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6=2E= 1=2E92_0/linuxkpi/dummy/include -I/usr/src/sys/compat/linuxkpi/dummy/includ= e -include /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6=2E1=2E92_0/= obj/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6=2E1=2E92_0/dmabuf/o= pt_global=2Eh -I=2E -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-c= ommon -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-m= ap=3D=2E/machine=3D/usr/src/sys/amd64/include -fdebug-prefix-map=3D=2E/x86= =3D/usr/src/sys/x86/include -fdebug-prefix-map=3D=2E/i386=3D/usr/src/sys/i3= 86/include -MD -MF=2Edepend=2Esync_file=2Eo -MTsync_file=2Eo -mcmodel= =3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-u= nwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wstrict-protot= ypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-= sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostic= s-show-option -Wno-unknown-pragmas -Wswitch -Wno-error=3Dtautological-compa= re -Wno-error=3Dempty-body -Wno-error=3Dparentheses-equality -Wno-error=3Du= nused-function -Wno-error=3Dpointer-sign -Wno-error=3Dshift-negative-value = -Wno-address-of-packed-member -Wno-format-zero-length -mno-aes -mno-avx = -std=3Dgnu99 -c /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6=2E1=2E= 92_0/drivers/dma-buf/sync_file=2Ec -o sync_file=2Eo
--- dma-fence-chain= =2Eo ---
cc: error: no such include directory: '/usr/ports/graphics/drm-= 61-kmod/work/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/dummy/include' [-Werror,-W= missing-include-dirs]
--- dma-fence=2Eo ---
cc: error: no such includ= e directory: '/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6=2E1=2E92= _0/linuxkpi/dummy/include' [-Werror,-Wmissing-include-dirs]
--- sync_fil= e=2Eo ---
cc: error: no such include directory: '/usr/ports/graphics/drm= -61-kmod/work/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/dummy/include' [-Werror,-= Wmissing-include-dirs]
--- dma-buf=2Eo ---
cc: error: no such include= directory: '/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6=2E1=2E92_= 0/linuxkpi/dummy/include' [-Werror,-Wmissing-include-dirs]
--- dma-buf-k= mod=2Eo ---
cc: error: no such include directory: '/usr/ports/graphics/d= rm-61-kmod/work/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/dummy/include' [-Werror= ,-Wmissing-include-dirs]
--- dma-resv=2Eo ---
cc: error: no such incl= ude directory: '/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6=2E1=2E= 92_0/linuxkpi/dummy/include' [-Werror,-Wmissing-include-dirs]
--- dma-fe= nce-unwrap=2Eo ---
cc: error: no such include directory: '/usr/ports/gra= phics/drm-61-kmod/work/drm-kmod-drm_v6=2E1=2E92_0/linuxkpi/dummy/include' [= -Werror,-Wmissing-include-dirs]
--- dma-fence-array=2Eo ---
cc: error= : no such include directory: '/usr/ports/graphics/drm-61-kmod/work/drm-kmod= -drm_v6=2E1=2E92_0/linuxkpi/dummy/include' [-Werror,-Wmissing-include-dirs]=
--- dma-resv=2Eo ---
*** [dma-resv=2Eo] Error code 1

make[1]:= stopped making "all" in /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_= v6=2E1=2E92_0/dmabuf
--- sync_file=2Eo ---
*** [sync_file=2Eo] Error = code 1

make[1]: stopped making "all" in /usr/ports/graphics/drm-61-k= mod/work/drm-kmod-drm_v6=2E1=2E92_0/dmabuf
--- dma-fence-unwrap=2Eo ---<= br>*** [dma-fence-unwrap=2Eo] Error code 1



The following workaround did = the trick for me=2E Works for drm-515 too and probably 510? (Sorry if the p= atch is mangled, sent with phone MUA)

diff --git a/graphics/drm-61-k= mod/Makefile b/graphics/drm-61-kmod/Makefile
index 6db21111f255=2E=2Ed19= 5829ac987 100644
--- a/graphics/drm-61-kmod/Makefile
+++ b/graphics/d= rm-61-kmod/Makefile
@@ -49,6 +49,9 @@ PLIST_SUB+=3D I915=3D"@comment "
MAKE_ENV+=3D MAKEOBJDIRPREFIX=3D${WRKSRC}/obj

+post-patch:+ ${MKDIR} ${WRKSRC}/linuxkpi/dummy/include
+
pre-build:
${MKDI= R} ${WRKSRC}/obj
(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} obj)=
------QGTIZK91VSF9WPQ135TH5HQ95LU7UQ--