Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/jfsutils.spec'], chrootPath='/var/lib/mock/f29-build-27462-14514/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/jfsutils.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/jfsutils-1.1.15-11.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/jfsutils.spec'], chrootPath='/var/lib/mock/f29-build-27462-14514/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/jfsutils.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.CAfQCS + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf jfsutils-1.1.15 + /usr/bin/gzip -dc /builddir/build/SOURCES/jfsutils-1.1.15.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd jfsutils-1.1.15 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find . -type f -name '*.[ch]' -exec chmod -x '{}' ';' + echo 'Patch #0 (jfsutils-1.1.15_stdint.patch):' Patch #0 (jfsutils-1.1.15_stdint.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file libfs/devices.h Patch #1 (jfsutils_format-security_ftbs.patch): + echo 'Patch #1 (jfsutils_format-security_ftbs.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file fscklog/display.c patching file fscklog/fscklog.c patching file logdump/helpers.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.DnA5p4 + umask 022 + cd /builddir/build/BUILD + cd jfsutils-1.1.15 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ find . -name ltmain.sh + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for gawk... (cached) gawk checking for riscv64-koji-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking for ln... /usr/bin/ln checking whether ln -s works... yes checking for riscv64-koji-linux-gnu-ranlib... no checking for ranlib... ranlib checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking endian.h usability... yes checking endian.h presence... yes checking for endian.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking mntent.h usability... yes checking mntent.h presence... yes checking for mntent.h... yes checking for unistd.h... (cached) yes checking stdbool.h usability... yes checking stdbool.h presence... yes checking for stdbool.h... yes checking for stdint.h... (cached) yes checking machine/endian.h usability... no checking machine/endian.h presence... no checking for machine/endian.h... no checking sys/byteorder.h usability... no checking sys/byteorder.h presence... no checking for sys/byteorder.h... no checking sys/mount.h usability... yes checking sys/mount.h presence... yes checking for sys/mount.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/statvfs.h usability... yes checking sys/statvfs.h presence... yes checking for sys/statvfs.h... yes checking sys/sysmacros.h usability... yes checking sys/sysmacros.h presence... yes checking for sys/sysmacros.h... yes checking sys/disklabel.h usability... no checking sys/disklabel.h presence... no checking for sys/disklabel.h... no checking uuid/uuid.h usability... yes checking uuid/uuid.h presence... yes checking for uuid/uuid.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for mode_t... yes checking for off_t... yes checking for size_t... yes checking for struct stat.st_rdev... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for working memcmp... yes checking for getcwd... yes checking for getmntinfo... no checking for strtol... yes checking for strtoul... yes checking for posix_memalign... yes checking for memalign... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for _LARGEFILE_SOURCE value needed for large files... no configure: creating ./config.status config.status: creating Makefile config.status: creating libfs/Makefile config.status: creating include/Makefile config.status: creating fsck/Makefile config.status: creating fscklog/Makefile config.status: creating logdump/Makefile config.status: creating mkfs/Makefile config.status: creating tune/Makefile config.status: creating xpeek/Makefile config.status: creating jfsutils.spec config.status: creating config.h config.status: executing depfiles commands + make -j4 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/jfsutils-1.1.15' Making all in libfs make[2]: Entering directory '/builddir/build/BUILD/jfsutils-1.1.15/libfs' gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fssubs.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c unicode_to_utf8.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c devices.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c utilsubs.c BUILDSTDERR: utilsubs.c: In function 'prompt': BUILDSTDERR: utilsubs.c:60:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(cmd, 81, stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: utilsubs.c: In function 'more': BUILDSTDERR: utilsubs.c:76:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(cmd, 80, stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c super.c BUILDSTDERR: devices.c: In function 'ujfs_rw_diskblocks': BUILDSTDERR: devices.c:441:58: warning: format '%lld' expects argument of type 'long long int', but argument 6 has type 'int64_t' {aka 'long int'} [-Wformat=] BUILDSTDERR: "ujfs_rw_diskblocks: %s %zd of %d bytes at offset %lld\n", BUILDSTDERR: ~~~^ BUILDSTDERR: %ld BUILDSTDERR: devices.c:443:36: BUILDSTDERR: Bytes_Transferred, disk_count, disk_offset); BUILDSTDERR: ~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c inode.c BUILDSTDERR: devices.c: In function 'ujfs_flush_dev': BUILDSTDERR: devices.c:469:6: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] BUILDSTDERR: if (major(buf.st_rdev) != RAMDISK_MAJOR) BUILDSTDERR: ^~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c diskmap.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c message.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c uniupr.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c jfs_endian.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c open_by_label.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c log_dump.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c logform.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c logredo.c BUILDSTDERR: log_dump.c: In function 'jfs_logdump': BUILDSTDERR: log_dump.c:333:37: warning: pointer targets in passing argument 3 of 'logRead' differ in signedness [-Wpointer-sign] BUILDSTDERR: nextaddr = logRead(logaddr, &ld, afterdata); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: log_dump.c:167:12: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} BUILDSTDERR: extern int logRead(int32_t, struct lrd *, char *); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: open_by_label.c: In function 'open_check_label': BUILDSTDERR: open_by_label.c:72:18: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (!strncmp(uuid, logsup.label, 16)) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from open_by_label.c:21: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: log_dump.c: In function 'ldmp_xdump': BUILDSTDERR: log_dump.c:652:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] BUILDSTDERR: i = (int) saddr % 4; BUILDSTDERR: ^ BUILDSTDERR: open_by_label.c:84:18: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (!strncmp(uuid, super.s_label, 16)) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from open_by_label.c:21: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: open_by_label.c: In function 'open_by_label': BUILDSTDERR: open_by_label.c:276:39: warning: '%s' directive writing up to 255 bytes into a region of size 86 [-Wformat-overflow=] BUILDSTDERR: sprintf(lv_dirname, "/proc/lvm/VGs/%s/LVs", vg_ent->d_name); BUILDSTDERR: ^~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from open_by_label.c:20: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 19 and 274 bytes into a destination of size 100 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: open_by_label.c:284:27: warning: '%s' directive writing up to 255 bytes into a region of size 95 [-Wformat-overflow=] BUILDSTDERR: sprintf(device, "/dev/%s/%s", vg_ent->d_name, lv_ent->d_name); BUILDSTDERR: ^~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from open_by_label.c:20: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 7 and 517 bytes into a destination of size 100 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: logredo.c: In function 'jfs_logredo': BUILDSTDERR: logredo.c:617:36: warning: pointer targets in passing argument 3 of 'logRead' differ in signedness [-Wpointer-sign] BUILDSTDERR: nextaddr = logRead(logaddr, &ld, afterdata); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: logredo.c:173:12: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} BUILDSTDERR: extern int logRead(int32_t, struct lrd *, char *); BUILDSTDERR: ^~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c log_work.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c log_read.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c log_map.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsckmsgdef.c rm -f libfs.a ar cru libfs.a fssubs.o unicode_to_utf8.o devices.o utilsubs.o super.o inode.o diskmap.o message.o uniupr.o jfs_endian.o open_by_label.o log_dump.o logform.o logredo.o log_work.o log_read.o log_map.o fsckmsgdef.o ranlib libfs.a make[2]: Leaving directory '/builddir/build/BUILD/jfsutils-1.1.15/libfs' Making all in include make[2]: Entering directory '/builddir/build/BUILD/jfsutils-1.1.15/include' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/builddir/build/BUILD/jfsutils-1.1.15/include' Making all in fsck make[2]: Entering directory '/builddir/build/BUILD/jfsutils-1.1.15/fsck' gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsckbmap.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsckconn.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsckdire.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsckdtre.c BUILDSTDERR: fsckdtre.c: In function 'dTree_key_extract_cautiously': BUILDSTDERR: fsckdtre.c:1641:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] BUILDSTDERR: (unsigned short) NULL) { BUILDSTDERR: ^ BUILDSTDERR: fsckdtre.c: In function 'dTree_key_extract_record': BUILDSTDERR: fsckdtre.c:1777:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] BUILDSTDERR: (unsigned short) NULL) { BUILDSTDERR: ^ BUILDSTDERR: fsckdire.c: In function 'dtSplitPage': BUILDSTDERR: fsckdire.c:940:8: warning: pointer targets in assignment from 'int8_t *' {aka 'signed char *'} to 'uint8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] BUILDSTDERR: stbl = DT_GETSTBL(rp); BUILDSTDERR: ^ BUILDSTDERR: fsckbmap.c: In function 'dmap_pwmap_rebuild': BUILDSTDERR: fsckbmap.c:391:22: warning: pointer targets in passing argument 1 of 'ujfs_maxbuddy' differ in signedness [-Wpointer-sign] BUILDSTDERR: ujfs_maxbuddy((char *) &(wsp_bits[map_wordidx])); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from fsckbmap.c:22: BUILDSTDERR: ../libfs/diskmap.h:25:8: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int8_t ujfs_maxbuddy(unsigned char *); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fsckbmap.c: In function 'dmap_pmap_verify': BUILDSTDERR: fsckbmap.c:478:29: warning: pointer targets in passing argument 1 of 'ujfs_maxbuddy' differ in signedness [-Wpointer-sign] BUILDSTDERR: max_buddy = ujfs_maxbuddy((char *) &(wsp_bits[map_wordidx])); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from fsckbmap.c:22: BUILDSTDERR: ../libfs/diskmap.h:25:8: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int8_t ujfs_maxbuddy(unsigned char *); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fsckdtre.c: In function 'reconnect_fs_inodes': BUILDSTDERR: fsckdtre.c:3917:14: warning: pointer targets in passing argument 2 of 'UTF8_String_To_Unicode_String' differ in signedness [-Wpointer-sign] BUILDSTDERR: ino_name, BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from fsckdtre.c:30: BUILDSTDERR: ../libfs/unicode_to_utf8.h:18:5: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' BUILDSTDERR: int UTF8_String_To_Unicode_String(uint16_t * pwcs, const uint8_t * s, int maxLen); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsckea.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsckimap.c BUILDSTDERR: fsckimap.c: In function 'AIS_redundancy_check': BUILDSTDERR: fsckimap.c:1001:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] BUILDSTDERR: tree_offset = (int32_t) &(((struct dinode *)0)->di_btroot); BUILDSTDERR: ^ gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsckino.c BUILDSTDERR: fsckino.c: In function 'validate_record_fileset_inode': BUILDSTDERR: fsckino.c:1844:6: warning: variable 'intermed_rc' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int intermed_rc = FSCK_OK; BUILDSTDERR: ^~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsckmeta.c BUILDSTDERR: fsckdtre.c:3911:25: warning: '%s' directive writing up to 299 bytes into a region of size 16 [-Wformat-overflow=] BUILDSTDERR: sprintf(ino_name, "%s%06d%s", BUILDSTDERR: ^~ BUILDSTDERR: msg_defs[fsck_inopfx].msg_txt, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fsckdtre.c:3911:24: note: using the range [-2147483648, 2147483647] for directive argument BUILDSTDERR: sprintf(ino_name, "%s%06d%s", BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from xfsckint.h:21, BUILDSTDERR: from fsckdtre.c:21: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 7 and 610 bytes into a destination of size 16 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fsckdtre.c:3906:25: warning: '%s' directive writing up to 299 bytes into a region of size 16 [-Wformat-overflow=] BUILDSTDERR: sprintf(ino_name, "%s%06d%s", BUILDSTDERR: ^~ BUILDSTDERR: msg_defs[fsck_dirpfx].msg_txt, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fsckdtre.c:3906:24: note: using the range [-2147483648, 2147483647] for directive argument BUILDSTDERR: sprintf(ino_name, "%s%06d%s", BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from xfsckint.h:21, BUILDSTDERR: from fsckdtre.c:21: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 7 and 610 bytes into a destination of size 16 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsckpfs.c BUILDSTDERR: fsckpfs.c: In function 'blkmap_flush': BUILDSTDERR: fsckpfs.c:347:28: warning: variable 'fsck_bmpt_ptr' set but not used [-Wunused-but-set-variable] BUILDSTDERR: struct fsck_blk_map_page *fsck_bmpt_ptr; BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fsckpfs.c: In function 'blkmap_get_page': BUILDSTDERR: fsckpfs.c:490:28: warning: variable 'fsck_bmpt_ptr' set but not used [-Wunused-but-set-variable] BUILDSTDERR: struct fsck_blk_map_page *fsck_bmpt_ptr; BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fsckpfs.c: In function 'blktbl_dmap_get': BUILDSTDERR: fsckpfs.c:768:15: warning: variable 'dmap_t_ptr' set but not used [-Wunused-but-set-variable] BUILDSTDERR: struct dmap *dmap_t_ptr; BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: fsckpfs.c: In function 'blktbl_dmaps_flush': BUILDSTDERR: fsckpfs.c:918:15: warning: variable 'dmap_t_ptr' set but not used [-Wunused-but-set-variable] BUILDSTDERR: struct dmap *dmap_t_ptr; BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: fsckpfs.c: In function 'imapleaf_get': BUILDSTDERR: fsckpfs.c:2125:12: warning: variable 'xtpage_t_ptr' set but not used [-Wunused-but-set-variable] BUILDSTDERR: xtpage_t *xtpage_t_ptr; BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fsckpfs.c: In function 'node_get': BUILDSTDERR: fsckpfs.c:3090:12: warning: variable 'xtpage_t_ptr' set but not used [-Wunused-but-set-variable] BUILDSTDERR: xtpage_t *xtpage_t_ptr; BUILDSTDERR: ^~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c dirindex.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsckwsp.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsckxtre.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c xchkdsk.c BUILDSTDERR: fsckwsp.c: In function 'establish_wsp_block_map_ctl': BUILDSTDERR: fsckwsp.c:1503:11: warning: '%d' directive writing between 1 and 11 bytes into a region of size between 0 and 16 [-Wformat-overflow=] BUILDSTDERR: "%d/%d/%d %d:%02d:%02d", fsck_DateTime->tm_mon + 1, BUILDSTDERR: ^~ BUILDSTDERR: fsckwsp.c:1503:4: note: directive argument in the range [-2147481748, 2147483647] BUILDSTDERR: "%d/%d/%d %d:%02d:%02d", fsck_DateTime->tm_mon + 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from xfsckint.h:21, BUILDSTDERR: from fsckwsp.c:26: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 14 and 72 bytes into a destination of size 20 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsckruns.c gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c fsck_message.c BUILDSTDERR: xchkdsk.c: In function 'initial_processing': BUILDSTDERR: xchkdsk.c:1432:6: warning: variable 'iml_rc' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int iml_rc = FSCK_OK; BUILDSTDERR: ^~~~~~ BUILDSTDERR: xchkdsk.c: In function 'main': BUILDSTDERR: xchkdsk.c:432:29: warning: '%d' directive writing between 1 and 11 bytes into a region of size between 0 and 16 [-Wformat-overflow=] BUILDSTDERR: sprintf(time_stamp, "%d/%d/%d %d:%02d:%02d", BUILDSTDERR: ^~ BUILDSTDERR: xchkdsk.c:432:22: note: directive argument in the range [-2147481748, 2147483647] BUILDSTDERR: sprintf(time_stamp, "%d/%d/%d %d:%02d:%02d", BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from xfsckint.h:21, BUILDSTDERR: from xchkdsk.c:28: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 14 and 72 bytes into a destination of size 20 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -Wall -Wstrict-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o jfs_fsck fsckbmap.o fsckconn.o fsckdire.o fsckdtre.o fsckea.o fsckimap.o fsckino.o fsckmeta.o fsckpfs.o dirindex.o fsckwsp.o fsckxtre.o xchkdsk.o fsckruns.o fsck_message.o ../libfs/libfs.a -luuid BUILDSTDERR: /usr/bin/ld: ../libfs/libfs.a(devices.o): in function `fprintf': BUILDSTDERR: /usr/include/bits/stdio2.h:100: undefined reference to `major' BUILDSTDERR: collect2: error: ld returned 1 exit status make[2]: Leaving directory '/builddir/build/BUILD/jfsutils-1.1.15/fsck' BUILDSTDERR: make[2]: *** [Makefile:267: jfs_fsck] Error 1 BUILDSTDERR: make[1]: *** [Makefile:260: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/jfsutils-1.1.15' BUILDSTDERR: make: *** [Makefile:196: all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.DnA5p4 (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.DnA5p4 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/jfsutils.spec