h-protection -c xchkdsk.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 fsckruns.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: ^~~~~~ 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 '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 make[1]: Leaving directory '/builddir/build/BUILD/jfsutils-1.1.15' BUILDSTDERR: make[1]: *** [Makefile:260: all-recursive] Error 1 BUILDSTDERR: make: *** [Makefile:196: all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.CNgiuz (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.CNgiuz (%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