From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6BB463830646; Wed, 25 May 2022 21:14:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6BB463830646 From: "slyich at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug sim/29184] New: [PATCH] sim fails to build on 32-bit systems with -Werror=format-security Date: Wed, 25 May 2022 21:14:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: sim X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyich at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2022 21:14:29 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29184 Bug ID: 29184 Summary: [PATCH] sim fails to build on 32-bit systems with -Werror=3Dformat-security Product: gdb Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: sim Assignee: unassigned at sourceware dot org Reporter: slyich at gmail dot com CC: vapier at gentoo dot org Target Milestone: --- In https://github.com/NixOS/nixpkgs/pull/171216#issuecomment-1133541978 Vladim=C3=ADr =C4=8Cun=C3=A1t noticed gdb-12.1 build failure on 32-bit syst= ems with -Werror=3Dformat-security Build of gdb on i686-linux-gnu is in --enable-64-bit-bfd mode: sim/../../sim/cris/sim-if.c:576:28: error: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'bfd_size_type' {aka 'long long unsigned in= t'} [-Werror=3Dformat=3D] 576 | sim_do_commandf (sd, "memory region 0x%" BFD_VMA_FMT "x,0x%lx", | ^~~~~~~~~~~~~~~~~~~ 577 | interp_load_addr, interpsiz); | ~~~~~~~~~ | | | bfd_size_type {aka long long unsigned int} Proposed possible change as: https://sourceware.org/pipermail/gdb-patches/2022-May/189288.html --=20 You are receiving this mail because: You are on the CC list for the bug.=