tello64 (st)); | ^~~~~~~~ | ftello sim_fio.c: In function 'sim_fopen': sim_fio.c:186:8: warning: implicit declaration of function 'fopen64'; did you mean 'fopen'? [-Wimplicit-function-declaration] 186 | return fopen64 (file, mode); | ^~~~~~~ | fopen sim_fio.c:186:8: warning: returning 'int' from a function with return type 'FILE *' makes pointer from integer without a cast [-Wint-conversion] 186 | return fopen64 (file, mode); | ^~~~~~~~~~~~~~~~~~~~ sim_fio.c: In function 'sim_fseeko': sim_fio.c:271:8: warning: implicit declaration of function 'fseeko64'; did you mean 'fseeko'? [-Wimplicit-function-declaration] 271 | return fseeko64 (st, (off64_t)xpos, origin); | ^~~~~~~~ | fseeko sim_fio.c:271:23: error: 'off64_t' undeclared (first use in this function); did you mean 'off_t'? 271 | return fseeko64 (st, (off64_t)xpos, origin); | ^~~~~~~ | off_t sim_fio.c:271:23: note: each undeclared identifier is reported only once for each function it appears in sim_fio.c:271:31: error: expected ')' before 'xpos' 271 | return fseeko64 (st, (off64_t)xpos, origin); | ~ ^~~~ | ) sim_fio.c: In function 'sim_ftell': sim_fio.c:276:19: warning: implicit declaration of function 'ftello64'; did you mean 'ftello'? [-Wimplicit-function-declaration] 276 | return (t_offset)(ftello64 (st)); | ^~~~~~~~ | ftello sim_fio.c: In function 'sim_fopen': sim_fio.c:186:8: warning: implicit declaration of function 'fopen64'; did you mean 'fopen'? [-Wimplicit-function-declaration] 186 | return fopen64 (file, mode); | ^~~~~~~ | fopen sim_fio.c:186:8: warning: returning 'int' from a function with return type 'FILE *' makes pointer from integer without a cast [-Wint-conversion] 186 | return fopen64 (file, mode); | ^~~~~~~~~~~~~~~~~~~~ sim_fio.c: In function 'sim_fseeko': sim_fio.c:271:8: warning: implicit declaration of function 'fseeko64'; did you mean 'fseeko'? [-Wimplicit-function-declaration] 271 | return fseeko64 (st, (off64_t)xpos, origin); | ^~~~~~~~ | fseeko sim_fio.c:271:23: error: 'off64_t' undeclared (first use in this function); did you mean 'off_t'? 271 | return fseeko64 (st, (off64_t)xpos, origin); | ^~~~~~~ | off_t sim_fio.c:271:23: note: each undeclared identifier is reported only once for each function it appears in sim_fio.c:271:31: error: expected ')' before 'xpos' 271 | return fseeko64 (st, (off64_t)xpos, origin); | ~ ^~~~ | ) sim_fio.c: In function 'sim_ftell': sim_fio.c:276:19: warning: implicit declaration of function 'ftello64'; did you mean 'ftello'? [-Wimplicit-function-declaration] 276 | return (t_offset)(ftello64 (st)); | ^~~~~~~~ | ftello make: *** [makefile:818: BIN/pdp7] Error 1 make: *** Waiting for unfinished jobs.... make: *** [makefile:806: BIN/pdp1] Error 1 make: *** [makefile:812: BIN/pdp4] Error 1 make: *** [makefile:824: BIN/pdp8] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.y0VFaP (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.y0VFaP (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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