Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 2026 13:23:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 294870] graphics/drm-66-kmod, graphics/drm-61-kmod: Fails to build on stable/15 after commit ports d94082fc799f
Message-ID:  <bug-294870-7141-Yv88XCuF71@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-294870-7141@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294870

--- Comment #8 from Tomoaki AOKI <junchoon@dec.sakura.ne.jp> ---
(In reply to Emmanuel Vadot from comment #4)
Isn't the added COMPILER_VERSION comparison in reverse?

I thinl the option "-Wno-address-of-packed-member" is to suppress
the exact error, not to activate the check.

And another thing I've noticed (but not 100% sure which is correct).

Manually editing ${WRKSRC}/i915/Makefile after `make patch` with
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 211
allows following `make` to finish successfully on stable/15.
(Possibly "<=" instead of "<" is correct, though.)

The modified code compares COMPILER_VERSION >= 211, while existing
graphics/drm-66-kmod/files/patch-i915_Makefile has comparison as below. As seen
in the patch, comparing with 210000, not 210.


--- i915/Makefile.orig  2025-12-11 14:11:14 UTC
+++ i915/Makefile
@@ -360,6 +360,9 @@ CWARNFLAGS += -Wno-pointer-arith -Wno-format -Wno-cast
 # Reason: More or less all files need it due to use of test_bit() macro
 # error: cast from 'const unsigned long *' to 'volatile unsigned long *'
 CWARNFLAGS += -Wno-pointer-arith -Wno-format -Wno-cast-qual
+.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 210000
+CWARNFLAGS += -Wno-default-const-init-var-unsafe
+.endif

 CWARNFLAGS.intel_acpi.c=       -Wno-incompatible-pointer-types
 CWARNFLAGS.intel_audio.c=      -Wno-unused-function

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

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