Current-Users archive

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

build.sh ... distribution fails (amd64)



Hi,

with current source cvs'uped some minutes ago:

    compile  amd64/partman.o
    /u/NetBSD/src/usr.sbin/sysinst/arch/amd64/../../partman.c: In function 'pm_getdevstring.constprop':
    /u/NetBSD/src/usr.sbin/sysinst/arch/amd64/../../partman.c:263:26: error: 'snprintf' output may be truncated before the last format character [-Werror=format-truncation=]
       snprintf(buf, len, "%sd", pm_cur->diskdev);
                                 ^
				 /u/NetBSD/src/usr.sbin/sysinst/arch/amd64/../../partman.c:263:3: note: 'snprintf' output between 2 and 31 bytes into a destination of size 30
				    snprintf(buf, len, "%sd", pm_cur->diskdev);
				       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
				       /u/NetBSD/src/usr.sbin/sysinst/arch/amd64/../../partman.c:270:27: error: 'snprintf' output may be truncated before the last format character [-Werror=format-truncation=]
				          snprintf(buf, len, "%s%c", pm_cur->diskdev, num + 'a');
					                             ^
								     /u/NetBSD/src/usr.sbin/sysinst/arch/amd64/../../partman.c:270:3: note: 'snprintf' output between 2 and 31 bytes into a destination of size 30
								        snprintf(buf, len, "%s%c", pm_cur->diskdev, num + 'a');
									   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
									   /u/NetBSD/src/usr.sbin/sysinst/arch/amd64/../../partman.c: In function 'pm_getrefdev':
									   /u/NetBSD/src/usr.sbin/sysinst/arch/amd64/../../partman.c:1924:12: error: ' (' directive output may be truncated writing 2 bytes into a region of size between 0 and 254 [-Werror=format-truncation=]
									            "%s (%s, %s)",
										                ^~
												/u/NetBSD/src/usr.sbin/sysinst/arch/amd64/../../partman.c:1922:7: note: 'snprintf' output 6 or more bytes (assuming 514) into a destination of size 254
												     r = snprintf(pm_cur->diskdev_descr,
												          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
													           sizeof(pm_cur->diskdev_descr)-1,
														            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
															             "%s (%s, %s)",
																              ~~~~~~~~~~~~~~
																	               pm_cur->diskdev_descr, dev,
																		                ~~~~~~~~~~~~~~~~~~~~~~~~~~~
																				         vnds[i].filepath);
																					          ~~~~~~~~~~~~~~~~~
																						  cc1: all warnings being treated as errors

*** Failed target:  partman.o
*** Failed command: /u/NetBSD/arch/amd64/TOOLS/bin/x86_64--netbsd-gcc -O2 -pipe -fPIE -Os -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wsystem-headers -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror -DBOOTSEL -DWSKBD -D_KERNTYPES --sysroot=/u/NetBSD/arch/amd64/dest -I. -I/u/NetBSD/src/usr.sbin/sysinst/arch/amd64/../.. -I/u/NetBSD/src/usr.sbin/sysinst/arch/amd64 -DSETS_TAR_SUFF=\"tar.xz\" -DREL=\"8.99.34\" -DMACH=\"amd64\" -DMACH_amd64 -DARCH_x86_64 -DSYSINST_FTP_HOST=\"nyftp.NetBSD.org\" -DSYSINST_HTTP_HOST=\"nycdn.NetBSD.org\" -DREL_PATH=\"HEAD\" -DPKG_SUBDIR="\"8.0\"" -DCATALOG_DIR=\"/usr/share/sysinst/catalog\" -DINET6 -c -Wno-format-nonliteral -Wno-stack-protector /u/NetBSD/src/usr.sbin/sysinst/arch/amd64/../../partman.c
*** Error code 1




Kurt


Home | Main Index | Thread Index | Old Index