c-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c stringlist.c -o stringlist.o In file included from /usr/include/string.h:495, from errors.h:28, from stringlist.c:28: In function 'strncpy', inlined from 'addStringToStringList' at stringlist.c:81:2: /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] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stringlist.c: In function 'addStringToStringList': stringlist.c:72:6: note: length computed here 72 | len=strlen(str); | ^~~~~~~~~~~ In file included from /usr/include/string.h:495, from sort.c:30: In function 'strncpy', inlined from 'parseClusterChain' at sort.c:251:5: /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] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'parseFAT1xRootDirEntries' at sort.c:365:4: /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] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -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 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 /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 /usr/bin/ld: options.o: in function `.LANCHOR1': /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 /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 /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 collect2: error: ld returned 1 exit status make[1]: *** [Makefile:46: fatsort] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/fatsort-1.4.2.439/src' make: *** [Makefile:14: src] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.p8WKoI (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.p8WKoI (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status 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