Hi! When building for --target=sparc-leon-elf (using config-list.mk) with a current GCC, I get this error message (cf. http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=632317):
g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-fno-common -DHAVE_CONFIG_H -I. -I. -I/home/jbglaw/repos-configlist_mk/gcc/gcc
-I/home/jbglaw/repos-configlist_mk/gcc/gcc/.
-I/home/jbglaw/repos-configlist_mk/gcc/gcc/../include
-I/home/jbglaw/repos-configlist_mk/gcc/gcc/../libcpp/include
-I/opt/cfarm/mpc/include
-I/home/jbglaw/repos-configlist_mk/gcc/gcc/../libdecnumber
-I/home/jbglaw/repos-configlist_mk/gcc/gcc/../libdecnumber/dpd
-I../libdecnumber -I/home/jbglaw/repos-configlist_mk/gcc/gcc/../libbacktrace
-o dwarf2out.o -MT dwarf2out.o -MMD -MP -MF ./.deps/dwarf2out.TPo
/home/jbglaw/repos-configlist_mk/gcc/gcc/dwarf2out.c
/home/jbglaw/repos-configlist_mk/gcc/gcc/dwarf2out.c: In function ‘void
dwarf2out_do_cfi_startproc(bool)’:
/home/jbglaw/repos-configlist_mk/gcc/gcc/dwarf2out.c:942:1: error: may write a
terminating nul past the end of the destination [-Werror=format-length=]
dwarf2out_do_cfi_startproc (bool second)
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jbglaw/repos-configlist_mk/gcc/gcc/dwarf2out.c:973:36: note: format
output between 10 and 21 bytes into a destination of size 20
current_function_funcdef_no);
^
cc1plus: all warnings being treated as errors
Makefile:1102: recipe for target 'dwarf2out.o' failed
I haven't really tracked down since when that error/warning shows up
and whether or not it's valid, but maybe you might want to have a look?
MfG, JBG
--
Jan-Benedict Glaw [email protected] +49-172-7608481
Signature of: "Debugging is twice as hard as writing the code in the first
place.
the second : Therefore, if you write the code as cleverly as possible, you
are,
by definition, not smart enough to debug it." - Brian W.
Kernighan
signature.asc
Description: Digital signature
