but argument is of type 'unsigned char *' 88 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ 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 -c inject.c 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 -c vg5k.c vg5k.c: In function 'vg_bit': vg5k.c:53:9: warning: unused variable 'j' [-Wunused-variable] 53 | int i, j, period0, period1; | ^ vg5k.c: In function 'vg5k_exec': vg5k.c:140:35: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 140 | if ( binname == NULL || !dumb && ( crtfile == NULL && origin == -1 ) ) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:504, from appmake.h:15, from vg5k.c:10: In function 'strncat', inlined from 'vg5k_exec' at vg5k.c:222:4: /usr/include/bits/string_fortified.h:137:10: warning: '__builtin___strncat_chk' output truncated copying between 0 and 7 bytes from a string of length 7 [-Wstringop-truncation] 137 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vg5k.c: In function 'vg5k_exec': vg5k.c:289:23: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized] 289 | if (dumb && i==28) printf("\nInfo: Start location $%x",c*256+j); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -c extract.c extract.c: In function 'extract_exec': extract.c:34:13: warning: unused variable 'filename' [-Wunused-variable] 34 | char filename[FILENAME_MAX+1]; | ^~~~~~~~ gcc -o appmake -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld appmake.o z88.o zxvgs.o zx.o z88shell.o abc80.o zx81.o msx.o mtx.o mz.o nec.o p2000.o aquarius.o rom.o sorcerer.o sos.o svi.o sc3000.o ace-tap.o hex.o lynx.o rex6000.o tixx.o nascom.o cpc.o m5.o mc.o newbrain.o newext.o sms.o trs80.o c128.o galaksija.o vz.o enterprise.o x07.o residos.o inject.o vg5k.o extract.o /usr/bin/ld: m5.o: in function `.LANCHOR0': /builddir/build/BUILD/z88dk/src/appmake/m5.c:35: multiple definition of `checksum'; sc3000.o:/builddir/build/BUILD/z88dk/src/appmake/sc3000.c:47: first defined here collect2: error: ld returned 1 exit status make[1]: Leaving directory '/builddir/build/BUILD/z88dk/src/appmake' make[1]: *** [Makefile:15: appmake] Error 1 make: *** [Makefile:25: appmake] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.AirVWn (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.AirVWn (%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/z88dk.spec