public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/29348] New: gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long')
@ 2022-07-10  3:03 lienze at sourceware dot org
  0 siblings, 0 replies; only message in thread
From: lienze at sourceware dot org @ 2022-07-10  3:03 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29348

            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 argument
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 = 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

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-10  3:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-10  3:03 [Bug build/29348] New: gdb/build: format specifies type 'unsigned long' but the argument has type 'bfd_size_type' (aka 'unsigned long long') lienze at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).