From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F62F3857342; Thu, 1 Jun 2023 10:05:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F62F3857342 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685613910; bh=u+ZeOVNC0GR/yWDK9GQ6pJRZ0IcNKzCBXdYvWrsfmgw=; h=From:To:Subject:Date:From; b=TyMB5h1wiRHNWYZrRc52YNZKN/mPVYEPTSPCI5/VIeUQ+QOq79JRi+p5IBUJe8y9q vgnCkeZqO9yzawSFvbei2FCJsXEL3Cc9xtJibffEo1QSYwXDfnLxeyENTjE15a+Hck LPxS+ePS9JPeBHWblw+zRVlKKXQWUzyB4yDuzbTM= From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/110073] New: [14 regression] btfout.cc format errors break bootstrap Date: Thu, 01 Jun 2023 10:05:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110073 Bug ID: 110073 Summary: [14 regression] btfout.cc format errors break bootstrap Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: david.faust at oracle dot com Target Milestone: --- Target: i386-pc-solaris2.11 Created attachment 55230 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55230&action=3Dedit proposed patch This patch commit 7aae58b04b92303ccda3ead600be98f0d4b7f462 Author: David Faust Date: Wed May 31 08:31:24 2023 -0700 btf: improve -dA comments for testsuite broke (at least) Solaris/x86 bootstrap: /vol/gcc/src/hg/master/local/gcc/btfout.cc: In function 'void btf_asm_type(ctf_container_ref, ctf_dtdef_ref)': /vol/gcc/src/hg/master/local/gcc/btfout.cc:802:32: error: format '%lu' expe= cts argument of type 'long unsigned int', but argument 4 has type 'ctf_id_t' {a= ka 'long long unsigned int'} [-Werror=3Dformat=3D] 802 | "TYPE %lu BTF_KIND_%s '%s'", | ~~^ | | | long unsigned int | %llu 803 | get_btf_id (dtd->dtd_type), btf_kind_name (btf_kind), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | ctf_id_t {aka long long unsigned = int} ctf_id_t is uint64_t, from gcc/ctfc.h; should use PRIu64 instead /vol/gcc/src/hg/master/local/gcc/btfout.cc: In function 'void btf_asm_func_type(ctf_container_ref, ctf_dtdef_ref, std::size_t)': /vol/gcc/src/hg/master/local/gcc/btfout.cc:944:32: error: format '%lu' expe= cts argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Werror=3Dformat=3D] 944 | "TYPE %lu BTF_KIND_FUNC '%s'", | ~~^ | | | ~~^ | | | long unsigned int | %u 945 | num_types_added + num_vars_added + 1 + i, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int just use %u instead The attached patch allowed the build to succeed; make check still running.=