BUILDSTDERR: inlined from 'addStringToStringList' at stringlist.c:81:2: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: stringlist.c: In function 'addStringToStringList': BUILDSTDERR: stringlist.c:72:6: note: length computed here BUILDSTDERR: 72 | len=strlen(str); BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:504, BUILDSTDERR: from sort.c:30: BUILDSTDERR: In function 'strncpy', BUILDSTDERR: inlined from 'parseClusterChain' at sort.c:251:5: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output may be truncated copying 512 bytes from a string of length 512 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'strncpy', BUILDSTDERR: inlined from 'parseFAT1xRootDirEntries' at sort.c:365:4: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output may be truncated copying 512 bytes from a string of length 512 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection fatsort.o FAT_fs.o fileio.o endianness.o signal.o entrylist.o errors.o options.o clusterchain.o sort.o misc.o natstrcmp.o stringlist.o -o fatsort BUILDSTDERR: /usr/bin/ld: entrylist.o:/builddir/build/BUILD/fatsort-1.4.2.439/src/options.h:38: multiple definition of `OPT_LOCALE'; fatsort.o:/builddir/build/BUILD/fatsort-1.4.2.439/src/options.h:38: first defined here BUILDSTDERR: /usr/bin/ld: options.o: in function `.LANCHOR1': BUILDSTDERR: /builddir/build/BUILD/fatsort-1.4.2.439/src/options.h:38: multiple definition of `OPT_LOCALE'; fatsort.o:/builddir/build/BUILD/fatsort-1.4.2.439/src/options.h:38: first defined here BUILDSTDERR: /usr/bin/ld: sort.o:/builddir/build/BUILD/fatsort-1.4.2.439/src/options.h:38: multiple definition of `OPT_LOCALE'; fatsort.o:/builddir/build/BUILD/fatsort-1.4.2.439/src/options.h:38: first defined here BUILDSTDERR: /usr/bin/ld: misc.o:/builddir/build/BUILD/fatsort-1.4.2.439/src/options.h:38: multiple definition of `OPT_LOCALE'; fatsort.o:/builddir/build/BUILD/fatsort-1.4.2.439/src/options.h:38: first defined here BUILDSTDERR: collect2: error: ld returned 1 exit status make[1]: Leaving directory '/builddir/build/BUILD/fatsort-1.4.2.439/src' BUILDSTDERR: make[1]: *** [Makefile:46: fatsort] Error 1 BUILDSTDERR: make: *** [Makefile:14: src] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.usn2d3 (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.usn2d3 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, 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/fatsort.spec