https://sourceware.org/bugzilla/show_bug.cgi?id=24028
Bug ID: 24028 Summary: PPC_INT_FMT should be "ll" on Mojave. Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: pjb at informatimago dot com Target Milestone: --- With binutils-gdb git head, compiling on Mojave, we get errors: ``` libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I. -I../bfd -I./../include -I./../bfd -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror -I/usr/local/gcc/include -I/opt/local/include -MT ppc-dis.lo -MD -MP -MF .deps/ppc-dis.Tpo -c ppc-dis.c -o ppc-dis.o ppc-dis.c: In function 'print_insn_powerpc': ppc-dis.c:764:43: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'int64_t' {aka 'long long int'} [-Werror=format=] (*info->fprintf_func) (info->stream, "r%" PPC_INT_FMT "d", value); ^~~~ ~~~~~ ppc-dis.c:764:61: note: format string is defined here (*info->fprintf_func) (info->stream, "r%" PPC_INT_FMT "d", value); ~~~~~~~~~~~~~~~~^ ppc-dis.c:766:43: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'int64_t' {aka 'long long int'} [-Werror=format=] ... etc ... ``` PPC_INT_FMT is defined to be "l" instead of "ll" because BFD_HOST_64BIT_LONG is defined as 1 (and BFD_HOST_64BIT_LONG_LONG as 0). -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils