NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

evbarm distribution compile error



Greetings,

I have tried to cross-compile userland for NetBSD 9 STABLE as of today,
but got an error. Is this is a bug or some inconsistency in my
build box? Building is done for evbarm/earmv7hf on amd64.

/usr/src/games/rogue/score.c: In function 'write_score_entry':
/usr/src/games/rogue/score.c:320:19: error: '%s' directive output may be truncated writing up to 79 bytes into a region of size between 51 and 65 [-Werror=format-truncation=]
    "%2d    %6ld   %s: %s",
                   ^~
--- dependall-external ---
#    format  wire-test/wire-test.html8
--- dependall-games ---
/usr/src/games/rogue/score.c:319:2: note: 'snprintf' output between 18 and 190 bytes into a destination of size 80
  snprintf(score_block, sizeof(score_block),
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    "%2d    %6ld   %s: %s",
    ~~~~~~~~~~~~~~~~~~~~~~~
    rank+1, se->gold, se->username, se->death);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- dependall-external ---
if test "" != "yes"; then  /export/build/tools/bin/nbmandoc -Thtml -Oman=../html%S/%N.html,style=../style.css  /usr/src/external/bsd/am-utils/dist/wire-test/wire-test.8 > wire-test.html8.tmp &&  mv -f wire-test.html8.tmp wire-test.html8;  else  GROFF_ENCODING=  GROFF_BIN_PATH=/export/build/tools/lib/groff  GROFF_FONT_PATH=/export/build/tools/share/groff/site-font:/export/build/tools/share/groff/font  GROFF_TMAC_PATH=/export/build/tools/share/groff/site-tmac:/export/build/tools/share/groff/tmac /export/build/tools/bin/nbgroff  -Tlatin1 -mdoc2html /usr/src/external/bsd/am-utils/dist/wire-test/wire-test.8   > wire-test.html8.tmp && mv -f wire-test.html8.tmp wire-test.html8;  fi
--- wire-test.o ---
#   compile  wire-test/wire-test.o
/export/build/tools/bin/armv7--netbsdelf-eabihf-gcc -O2 -g -O0   -fPIE    -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Werror     --sysroot=/export/build/distrib/evbarm -DHAVE_CONFIG_H -I/usr/src/external/bsd/am-utils/bin/wire-test/../../include -I/usr/src/external/bsd/am-utils/dist/libamu  -I/usr/src/external/bsd/am-utils/dist/include -I/export/build/obj/evbarm/external/bsd/am-utils/lib/libamu -DDEBUG -DHAVE_MAP_HESIOD=1 -DHAVE_MAP_LDAP=1 -DHAVE_LBER_H=1 -DHAVE_LDAP_H -DHAVE_LDAP_OPEN=1 -DLDAP_DEPRECATED=1 -DHAVE_MAP_NIS=1 -DYP  -c    /usr/src/external/bsd/am-utils/dist/wire-test/wire-test.c
--- dependall-games ---


--
Sincerely yours,
Dima Veselov
Physics R&D Establishment of Saint-Petersburg University


Home | Main Index | Thread Index | Old Index