From nobody Thu Dec 30 15:06:07 2021 X-Original-To: bugs@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 056C019183E9 for ; Thu, 30 Dec 2021 15:06:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JPs6R5F2hz3nQb for ; Thu, 30 Dec 2021 15:06:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 940531AA92 for ; Thu, 30 Dec 2021 15:06:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BUF67Vg002172 for ; Thu, 30 Dec 2021 15:06:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BUF67vY002171 for bugs@FreeBSD.org; Thu, 30 Dec 2021 15:06:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260818] ctfconvert errors when processing iwlwifi object files Date: Thu, 30 Dec 2021 15:06:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640876767; 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; bh=wmc6FNaY0Ivf1Jyq7sT174B6OZ35d52oOzFLUNN9FLI=; b=NHSJwtbkBGMxWhBAXbXs4JPUHPJu1fcDfugyUq3uRkiXV3vdhVjjC8IlKOycU6sAnT8zGp 441X16pjJLn2D8aDpTpiDiegsRFC1MZE4PjLPQKkMYFYSTspBstvh+ElnJd9p5Upru4l7O qsXMClhJ5TrnXO12xv2LfnnIYN0Wi08f/dZkMQ1sbfuLyN050v46kjiBezzXy2Kaf1DElP z4sQZc+WtW6dDfRlUkkmq6Ih5/ua6Y5nZSJB6UWhiOwjI3WGW02TPWxoHVcV6hRP/tGx7v NuQfe6QqLReDVJbmF0FvYqgj4UNkdN6dCPRtQKpVkbtASB6fsfPGIuc7FWdBOQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640876767; a=rsa-sha256; cv=none; b=grrhe23wR9yOung9QMylqXx3hauLP1nDJ8URDXrEUVgvMLjB9VTeeaVDJznNsWNww3ohJA Lgh8uz1HNwOTMSfUaqsS9vDq+clKZ3z4vACzM4HKGDr1auRPdao+59vXI4B0SK5mnW84qe J0M1E5WrgHt3MJRoxHpq0g6i0EFHYVb2reteUN7OflmGuLMpfEv9ZZR8hkpw3m8QoLbWGi QLSwc6fx4/oljUzD4LqYTRc9y4ajO5wORXOOSnokwXw7NQbRVlayTwyJ3+Ba+CEXLfpFgN Kn7PVXT7pjLd6etEjm8Sny45Yh7YKVsMF+BaD9Rsi01noYGYWAaayKZ7uUtwdA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260818 Bug ID: 260818 Summary: ctfconvert errors when processing iwlwifi object files Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: markj@FreeBSD.org $ cd sys/modules/iwlwifi $ make -s WITH_CTF=3D DEBUG_FLAGS=3D-g ctfconvert: failed to resolve the following types:=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 struct 65360 : failed to size member "desc" of type (65453 )= =20=20=20=20=20=20 ERROR: ctfconvert: failed to resolve types=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 ctfconvert: failed to resolve the following types:=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 struct 66979 <105a3>: failed to size member "desc" of type (67072 <10600>)= =20=20=20=20=20 ERROR: ctfconvert: failed to resolve types=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 ctfconvert: failed to resolve the following types:=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 struct 66556 <103fc>: failed to size member "desc" of type (66649 <10459>)= =20=20=20=20=20 ERROR: ctfconvert: failed to resolve types=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 ctfconvert: failed to resolve the following types: ... Looks like all the warnings are about the "desc" field of struct iwl_p2p_noa_attr, which is: struct ieee80211_p2p_noa_desc desc[IWL_P2P_NOA_DESC_COUNT]; and we have struct ieee80211_p2p_noa_desc { /* TODO FIXME */ }; Adding a dummy field to the latter "fixes" the problem. Looking at ctfconvert, empty structs and unions are permitted and handled, = as are flexible array members. The problem is that here we have an array of e= mpty structs. I think die_sou_resolve() needs some extra logic to handle this c= ase. --=20 You are receiving this mail because: You are the assignee for the bug.=