From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A9ACE385737B; Sun, 10 Jul 2022 03:03:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9ACE385737B From: "lienze at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug build/29348] New: gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long') Date: Sun, 10 Jul 2022 03:03:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lienze at sourceware dot org X-Bugzilla-Status: NEW 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 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: Sun, 10 Jul 2022 03:03:05 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29348 Bug ID: 29348 Summary: gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long') Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: lienze at sourceware dot org Target Milestone: --- On macOS 10.15.7, I ran into this error, CC archive.lo archive.c:195:56: error: format specifies type 'unsigned long' but the argu= ment has type 'bfd_size_type' (aka 'unsigned long long') [-Werror,-Wformat] snprintf (buf, sizeof (buf), "%-10" BFD_VMA_FMT "u", size); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ %-10llu /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/secure= /_stdio.h:57:62: note: expanded from macro 'snprintf' __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ archive.c:517:52: error: format specifies type 'unsigned long *' but the argument has type 'bfd_size_type *' (aka 'unsigned long long *') [-Werror,-Wformat] scan =3D sscanf (hdr.ar_size, "%" BFD_VMA_FMT "u", &parsed_size); ~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~ %llu 2 errors generated. make[4]: *** [archive.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-bfd] Error 2 make: *** [all] Error 2 --=20 You are receiving this mail because: You are on the CC list for the bug.=