[Bug 294870] graphics/drm-66-kmod, graphics/drm-61-kmod: Fails to build on stable/15 after commit ports d94082fc799f

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294870

--- Comment #8 from Tomoaki AOKI <[email protected]> ---
(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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.