From nobody Wed Apr 29 13:38:01 2026 X-Original-To: freebsd-ports@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 4g5JKN075pz6bdRF for ; Wed, 29 Apr 2026 13:38:16 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 4g5JKM1K7Nz47Yq; Wed, 29 Apr 2026 13:38:14 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from delta.joker.local (124-18-6-240.area1c.commufa.jp [124.18.6.240]) (authenticated bits=0) by www121.sakura.ne.jp (8.18.1/8.17.1/[SAKURA-WEB]/20201212) with ESMTPA id 63TDc1Aq059158; Wed, 29 Apr 2026 22:38:02 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dec.sakura.ne.jp; s=s2405; t=1777469882; bh=9hQ1YaztUneRykg6sQCKsKd6t56Zck8D7lIBJbi9YCE=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=HqzjUAx1zqttg3WaFZ4kbEv9ifvwMEb449RAxwwqMte89ok8QV2yrt/x0smfNsAWx Du0eY9C92HwWX3X+YqD/aQH9F5UQEqo1sJbQvB69kk9i4Aus9p3XB32isS8HU+MHWH c+2mA2nk07q8ng4740hyPGB4Q01h/d1s/80FtBxA= Date: Wed, 29 Apr 2026 22:38:01 +0900 From: Tomoaki AOKI To: freebsd-ports@freebsd.org Cc: David Wolfskill , manu@FreeBSD.org Subject: Re: Failed attempt to update graphics/drm-66-kmod Message-Id: <20260429223801.73c449e82ffd7934ac13f889@dec.sakura.ne.jp> In-Reply-To: References: Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd15.0) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP] X-Rspamd-Queue-Id: 4g5JKM1K7Nz47Yq X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated On Wed, 29 Apr 2026 04:11:59 -0700 David Wolfskill wrote: > It's possible that I'm doing something stupid (or just "wrong").... > > On my main laptop, I track stable/15 & head (different slices -- I > started doing this over 20 years ago & update to a new laptop by copying > the disk drive -- the laptop is only about 10 years old). > > In /etc/src.conf, I have: > > g1-120(15.1-P)[2] grep '^PORT' /etc/src.conf > PORTS_MODULES+=graphics/drm-66-kmod > PORTS_MODULES+=graphics/gpu-firmware-amd-kmod > PORTS_MODULES+=graphics/gpu-firmware-intel-kmod > PORTS_MODULES+=x11/nvidia-kmod-390 > > so the various kmod ports get rebuilt when I rebuild the kernel. > > Today, I noticed the update from drm-66-kmod-6.6.25.1500508_8 to > drm-66-kmod-6.6.25.1500508_9; no problem (so I thought). > > I had built and run > > FreeBSD g1-120.catwhisker.org 15.1-PRERELEASE FreeBSD 15.1-PRERELEASE #798 stable/15-n283363-8d584f064885: Tue Apr 28 10:39:26 UTC 2026 root@g1-120.catwhisker.org:/common/S1/obj/usr/src/amd64.amd64/sys/CANARY amd64 1500508 1500508 > > yesterday (without issue), but after updating sources to > stable/15-n283375-bf1529d83918, then firing up the usual "buildworld" > & friends, the kernel build failed while attempting to build > drm-66-kmod, with whines about "taking address of packed member..." > of a class or structure: > > --- intel_guc_ct.o --- > /common/S1/obj/usr/src/amd64.amd64/sys/CANARY/common/ports/graphics/drm-66-kmod/work/drm-kmod-drm_v6.6.25_10/drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c:606:19: error: taking address of packed member 'head' of class or structure 'guc_ct_buffer_desc' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member] > 606 | head = READ_ONCE(desc->head); > | ^~~~~~~~~~ > /usr/src/sys/compat/linuxkpi/common/include/linux/compiler.h:81:37: note: expanded from macro 'READ_ONCE' > 81 | (*(const volatile __typeof(x) *)&(x)); \ > | ^ > > > Any suggestions for suitable evasive action? > > Thanks! > > Peace, > david > -- > David H. Wolfskill david@catwhisker.org > > See https://www.catwhisker.org/~david/publickey.gpg for my public key. For anyone not yet noticed it (David and manu@ is already there): I've filed Bug 294870 for this. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294870 graphics/drm-61-kmod has the same issue, too. Noticed just before submitting updates for NVIDIA driver sets 595.71.05, pending it for now (need regenerating patch anyway). Regards. -- Tomoaki AOKI