*cptr++; ) { /* loop thru clauses */ | ^ scp.c:4084:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4084 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4091:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4091 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:4756:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4756 | if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ | ^~ sim_console.c: In function 'sim_set_console': sim_console.c:165:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 165 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ sim_console.c:168:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 168 | if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ | ^~~~~ sim_console.c: In function 'sim_show_console': sim_console.c:193:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 193 | if (shptr = find_shtab (show_con_tab, gbuf)) | ^~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:462:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 462 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ sim_tmxr.c: In function 'tmxr_poll_tx': sim_tmxr.c:486:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 486 | if (lp->conn == 0) /* skip if !conn */ | ^~ sim_tmxr.c:488:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 488 | nbytes = tmxr_send_buffered_data (lp); /* buffered bytes */ | ^~~~~~ sim_tape.c: In function 'sim_tape_rdrecf': sim_tape.c:407:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 407 | if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ | ^~ sim_tape.c: In function 'sim_tape_rdrecr': sim_tape.c:456:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 456 | if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ | ^~ In function 'strcpy', inlined from 'URLContents.constprop' at AltairZ80/altairz80_sio.c:76:5: /usr/include/bits/string_fortified.h:90:10: warning: '__builtin_strcpy' writing one too many bytes into a region of a size that depends on 'strlen' [-Wstringop-overflow=] 90 | return __builtin___strcpy_chk (__dest, __src, __bos (__dest)); | ^ AltairZ80/altairz80_sio.c: In function 'URLContents.constprop': AltairZ80/altairz80_sio.c:75:14: note: at offset 0 to an object with size at most 1023 allocated by 'malloc' here 75 | result = malloc(strlen(str)); | ^ collect2: error: ld returned 1 exit status make: *** [makefile:748: BIN/altairz80] Error 1 make: *** Waiting for unfinished jobs.... error: Bad exit status from /var/tmp/rpm-tmp.OIUWW3 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.OIUWW3 (%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/simh.spec