elf-attrs.c compliation errors

Bill Morgan
2018-08-01T00:44:32Z

Hello,

I'm building this commit: 33633d9f5b138a211405d482436db2f7661b190e

With this configuration:

./configure \
--build=x86_64-w64-mingw64 \
--host=x86_64-w64-mingw64 \
--target=arm-none-eabi \
--with-python \
--without-tcl \
--without-tk \
--without-guile \
--with-expat \
--with-lzma \
--with-system-readline \
--with-zlib \
--enable-tui

I am getting the compilation errors below:

MINGW64 /d/git/binutils-gdb (master)*
$ make -j16 -k
make[1]: Entering directory '/d/git/binutils-gdb'
make[1]: Nothing to be done for 'all-target'.
make[2]: Entering directory '/d/git/binutils-gdb/libiberty'
make[2]: Entering directory '/d/git/binutils-gdb/intl'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/d/git/binutils-gdb/intl'
make[2]: Entering directory '/d/git/binutils-gdb/zlib'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/d/git/binutils-gdb/zlib'
make[2]: Entering directory '/d/git/binutils-gdb/libdecnumber'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/d/git/binutils-gdb/libdecnumber'
make[2]: Entering directory '/d/git/binutils-gdb/etc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/d/git/binutils-gdb/etc'
make[3]: Entering directory '/d/git/binutils-gdb/libiberty/testsuite'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/d/git/binutils-gdb/libiberty/testsuite'
make[2]: Entering directory '/d/git/binutils-gdb/readline'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/d/git/binutils-gdb/readline'
make[2]: Leaving directory '/d/git/binutils-gdb/libiberty'
make[2]: Entering directory '/d/git/binutils-gdb/bfd'
Making info in doc
make[3]: Entering directory '/d/git/binutils-gdb/bfd/doc'
make[3]: Leaving directory '/d/git/binutils-gdb/bfd/doc'
Making info in po
make[3]: Entering directory '/d/git/binutils-gdb/bfd/po'
make[3]: Nothing to be done for 'info'.
make[3]: Leaving directory '/d/git/binutils-gdb/bfd/po'
make[3]: Entering directory '/d/git/binutils-gdb/bfd'
make[3]: Nothing to be done for 'info-am'.
make[3]: Leaving directory '/d/git/binutils-gdb/bfd'
make all-recursive
make[3]: Entering directory '/d/git/binutils-gdb/bfd'
Making all in doc
make[4]: Entering directory '/d/git/binutils-gdb/bfd/doc'
make[4]: Leaving directory '/d/git/binutils-gdb/bfd/doc'
Making all in po
make[4]: Entering directory '/d/git/binutils-gdb/bfd/po'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/d/git/binutils-gdb/bfd/po'
make[4]: Entering directory '/d/git/binutils-gdb/bfd'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-DBINDIR='"/mingw64/bin"' -I. -I. -I./../include -DHAVE_arm_elf32_le_vec
-DHAVE_arm_elf32_fdpic_le_vec -DHAVE_arm_elf32_be_vec
-DHAVE_arm_elf32_fdpic_be_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec
-DHAVE_plugin_vec -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wshadow -Wstack-usage=262144 -Werror -I./../zlib -g -O2
-D__USE_MINGW_ACCESS -MT elf-attrs.lo -MD -MP -MF .deps/elf-attrs.Tpo -c -o
elf-attrs.lo elf-attrs.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -DBINDIR=\"/mingw64/bin\" -I.
-I. -I./../include -DHAVE_arm_elf32_le_vec -DHAVE_arm_elf32_fdpic_le_vec
-DHAVE_arm_elf32_be_vec -DHAVE_arm_elf32_fdpic_be_vec -DHAVE_elf32_le_vec
-DHAVE_elf32_be_vec -DHAVE_plugin_vec -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror -I./../zlib -g
-O2 -D__USE_MINGW_ACCESS -MT elf-attrs.lo -MD -MP -MF .deps/elf-attrs.Tpo
-c elf-attrs.c -o elf-attrs.o
In file included from elf-attrs.c:21:0:
elf-attrs.c: In function '_bfd_elf_parse_attributes':
elf-attrs.c:446:29: error: unknown conversion type character 'l' in format
[-Werror=format=]
_bfd_error_handler (_("%pB: error: attribute section '%pA' too big:
%#llx"),
^
sysdep.h:204:44: note: in definition of macro 'gettext'
# define gettext(Msgid) dgettext (PACKAGE, Msgid)
^~~~~
elf-attrs.c:446:27: note: in expansion of macro '_'
_bfd_error_handler (_("%pB: error: attribute section '%pA' too big:
%#llx"),
^
elf-attrs.c:446:29: error: too many arguments for format
[-Werror=format-extra-args]
_bfd_error_handler (_("%pB: error: attribute section '%pA' too big:
%#llx"),
^
sysdep.h:204:44: note: in definition of macro 'gettext'
# define gettext(Msgid) dgettext (PACKAGE, Msgid)
^~~~~
elf-attrs.c:446:27: note: in expansion of macro '_'
_bfd_error_handler (_("%pB: error: attribute section '%pA' too big:
%#llx"),
^
cc1.exe: all warnings being treated as errors
make[4]: *** [Makefile:1599: elf-attrs.lo] Error 1
make[4]: Target 'all-am' not remade because of errors.
make[4]: Leaving directory '/d/git/binutils-gdb/bfd'
make[3]: *** [Makefile:1642: all-recursive] Error 1
make[3]: Leaving directory '/d/git/binutils-gdb/bfd'
make[2]: *** [Makefile:1168: all] Error 2
make[2]: Leaving directory '/d/git/binutils-gdb/bfd'
make[1]: *** [Makefile:2699: all-bfd] Error 2
make[1]: Target 'all-host' not remade because of errors.
make[1]: Leaving directory '/d/git/binutils-gdb'
make: *** [Makefile:857: all] Error 2
MINGW64 /d/git/binutils-gdb (master)*
$