https://sourceware.org/bugzilla/show_bug.cgi?id=32072
Bug ID: 32072 Summary: ./dlltool.c:870:27: error: initializer-string for array of 'char' is too long Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: jbg...@lug-owl.de Target Milestone: --- Hi! While doing automated builds using a _very_ recent host GCC (gcc (basepoints/gcc-15-2866-g9d5c500c4fa, built at 1723293902) 15.0.0 20240810 (experimental)), I got issues with dlltool.c (for --target=i686-mingw32crt and -target=i686-cygwin): [all 2024-08-11 18:35:01] /var/lib/laminar/run/binutils-i686-cygwin/51/local-toolchain-install/bin/gcc -DHAVE_CONFIG_H -I. -I. -I. -I../bfd -I./../bfd -I./../include -DLOCALEDIR="\"/tmp/binutils-i686-cygwin/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror -I./../zlib -g -O2 -MT dlltool.o -MD -MP -MF .deps/dlltool.Tpo -c -o dlltool.o -DDLLTOOL_I386 -DDLLTOOL_DEFAULT_I386 ./dlltool.c [all 2024-08-11 18:35:01] ./dlltool.c: In function 'prefix_encode': [all 2024-08-11 18:35:01] ./dlltool.c:870:27: error: initializer-string for array of 'char' is too long [-Werror=unterminated-string-initialization] [all 2024-08-11 18:35:01] 870 | static char alpha[26] = "abcdefghijklmnopqrstuvwxyz"; [all 2024-08-11 18:35:01] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [all 2024-08-11 18:35:05] cc1: all warnings being treated as errors (See http://toolchain.lug-owl.de/laminar/jobs/binutils-i686-cygwin/51 or http://toolchain.lug-owl.de/laminar/jobs/binutils-i686-mingw32crt/51) Should be easy to fix but dropping the explicit array length and introduce a strlen() based lenght instead of sizeof. -- You are receiving this mail because: You are on the CC list for the bug.