==> Building on minun ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/bin86 ./ PKGBUILD 985 100% 0.00kB/s 0:00:00 985 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=2/4) bin86-0.16.17-x86_64-1.patch 1,765 100% 1.68MB/s 0:00:00 1,765 100% 1.68MB/s 0:00:00 (xfr#2, to-chk=1/4) bin86-0.16.21-4.log 488 100% 476.56kB/s 0:00:00 488 100% 476.56kB/s 0:00:00 (xfr#3, to-chk=0/4) sent 2,045 bytes received 113 bytes 1,438.67 bytes/sec total size is 2,942 speedup is 1.36 ==> Patching arch to riscv64... ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix4 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... community downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix4]...done ==> Making package: bin86 0.16.21-4 (Fri Mar 3 15:49:54 2023) ==> Retrieving sources...  -> Downloading bin86-0.16.21.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 150k 100 150k 0 0 625k 0 --:--:-- --:--:-- --:--:-- 627k  -> Found bin86-0.16.17-x86_64-1.patch ==> Validating source files with sha1sums... bin86-0.16.21.tar.gz ... Passed bin86-0.16.17-x86_64-1.patch ... Passed ==> Validating source files with sha256sums... bin86-0.16.21.tar.gz ... Passed bin86-0.16.17-x86_64-1.patch ... Passed ==> Making package: bin86 0.16.21-4 (Fri Mar 3 15:50:03 2023) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources...  -> Found bin86-0.16.21.tar.gz  -> Found bin86-0.16.17-x86_64-1.patch ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting bin86-0.16.21.tar.gz with bsdtar ==> Starting prepare()... patching file ld/x86_aout.h Hunk #1 succeeded at 12 with fuzz 2. ==> Starting build()... set -e ; for d in ld as; do \ (cd $d && make "LIBS=" "CFLAGS=-O2 -D_POSIX_SOURCE" "LDFLAGS=" "BINDIR=/usr/bin" "LIBDIR=/usr/lib" "CC=cc" all;); \ done make[1]: Entering directory '/build/bin86/src/bin86-0.16.21/ld' cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c dumps.c -o dumps.o cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c io.c -o io.o cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c ld.c -o ld.o cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c readobj.c -o readobj.o cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c table.c -o table.o cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c typeconv.c -o typeconv.o cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c linksyms.c -o linksyms.o cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c mkar.c -o mkar.o cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c writex86.c -o writex86.o cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c writebin.c cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -c writeemu.c -o writeemu.o cc -O2 -D_POSIX_SOURCE objchop.c -o objchop cc -O2 -D_POSIX_SOURCE catimage.c -o catimage cc -O2 -D_POSIX_SOURCE objdump86.c -o objdump86 objchop.c:11:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 11 | main() | ^~~~ catimage.c:31:2: error: #error "Compile error: struct exec invalid (long not 32 bit ?)" 31 | #error "Compile error: struct exec invalid (long not 32 bit ?)" | ^~~~~ catimage.c:42:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 42 | main(argc, argv) | ^~~~ catimage.c: In function ‘main’: catimage.c:50:7: warning: implicit declaration of function ‘fatal’ [-Wimplicit-function-declaration] 50 | fatal("Usage: catimage mem.bin boot.out [a1.out] ... [a9.out]"); | ^~~~~ catimage.c:52:4: warning: implicit declaration of function ‘open_obj’ [-Wimplicit-function-declaration] 52 | open_obj(argv[2]); | ^~~~~~~~ catimage.c:57:4: warning: implicit declaration of function ‘read_symtable’ [-Wimplicit-function-declaration] 57 | read_symtable(); | ^~~~~~~~~~~~~ catimage.c:67:29: error: invalid operands to binary >> (have ‘char *’ and ‘int’) 67 | (header.a_text>>4), (header.a_total>>4)); | ~~~~~~ ^~ | | | char * catimage.c:67:50: error: invalid operands to binary >> (have ‘char *’ and ‘int’) 67 | (header.a_text>>4), (header.a_total>>4)); | ~~~~~~ ^~ | | | char * catimage.c:72:10: warning: implicit declaration of function ‘copy_segment’ [-Wimplicit-function-declaration] 72 | copy_segment(image_offset, A_TEXTPOS(header), header.a_text); | ^~~~~~~~~~~~ catimage.c:73:23: warning: assignment to ‘long int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion] 73 | image_offset += header.a_text; | ^~ catimage.c:76:37: warning: implicit declaration of function ‘A_DATAPOS’ [-Wimplicit-function-declaration] 76 | copy_segment(image_offset, A_DATAPOS(header), header.a_data); | ^~~~~~~~~ catimage.c:81:36: error: invalid operands to binary + (have ‘char *’ and ‘char *’) 81 | header.a_text+header.a_data); | ~~~~~~ ^ | | | | char * char * catimage.c:84:7: warning: implicit declaration of function ‘patch_bin’ [-Wimplicit-function-declaration] 84 | patch_bin(text_offt[image_id], (unsigned)(text_off>>4)); | ^~~~~~~~~ catimage.c:87:20: warning: assignment to ‘long int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion] 87 | image_offset += header.a_total; | ^~ catimage.c: At top level: catimage.c:103:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 103 | open_obj(fname) | ^~~~~~~~ catimage.c:120:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 120 | copy_segment(out_offset, in_offset, length) | ^~~~~~~~~~~~ catimage.c:146:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 146 | patch_bin(file_off, value) | ^~~~~~~~~ catimage.c:166:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 166 | read_symtable() | ^~~~~~~~~~~~~ In file included from writeemu.c:20: writebin.c: In function ‘write_dosemu’: writex86.c: In function ‘write_elks’: catimage.c: In function ‘read_symtable’: catimage.c:175:19: warning: implicit declaration of function ‘A_SYMPOS’ [-Wimplicit-function-declaration] 175 | if( fseek(ifd, A_SYMPOS(header), 0) < 0 ) | ^~~~~~~~ catimage.c:178:11: warning: assignment to ‘int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion] 178 | nitems = header.a_syms; | ^ catimage.c:186:11: warning: implicit declaration of function ‘memcmp’ [-Wimplicit-function-declaration] 186 | if( memcmp(item.n_name, "__seg", 5) != 0 || item.n_name[6] != '_' ) | ^~~~~~ catimage.c:29:1: note: include ‘’ or provide a declaration of ‘memcmp’ 28 | #include "x86_aout.h" +++ |+#include 29 | catimage.c:186:40: warning: ‘memcmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 186 | if( memcmp(item.n_name, "__seg", 5) != 0 || item.n_name[6] != '_' ) | ^ : note: built-in ‘memcmp’ declared here writebin.c:69:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 69 | #define offsetof(struc, mem) ((int) &((struc *) 0)->mem) | ^ writebin.c:560:33: note: in expansion of macro ‘offsetof’ 560 | seekout((unsigned long) offsetof(struct exec, a_syms)); | ^~~~~~~~ writex86.c:59:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 59 | #define offsetof(struc, mem) ((int) &((struc *) 0)->mem) | ^ writex86.c:448:33: note: in expansion of macro ‘offsetof’ 448 | seekout((unsigned long) offsetof(struct exec, a_syms)); | ^~~~~~~~ writebin.c:69:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 69 | #define offsetof(struc, mem) ((int) &((struc *) 0)->mem) | ^ writebin.c:565:33: note: in expansion of macro ‘offsetof’ 565 | if( FILEHEADERLENGTH >= offsetof(struct exec, a_trsize)+8) | ^~~~~~~~ writebin.c:69:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 69 | #define offsetof(struc, mem) ((int) &((struc *) 0)->mem) | ^ writebin.c:567:41: note: in expansion of macro ‘offsetof’ 567 | seekout((unsigned long) offsetof(struct exec, a_trsize)); | ^~~~~~~~ writebin.c:69:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 69 | #define offsetof(struc, mem) ((int) &((struc *) 0)->mem) | ^ writebin.c:571:41: note: in expansion of macro ‘offsetof’ 571 | seekout((unsigned long) offsetof(struct exec, a_drsize)); | ^~~~~~~~ catimage.c:203:19: warning: assignment to ‘long int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion] 203 | base_off = header.a_text; | ^ catimage.c:209:47: warning: assignment to ‘long unsigned int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion] 209 | case 'd': data_offt[item.n_name[5]-'0'] = base_off+item.n_value; break; | ^ catimage.c:210:47: warning: assignment to ‘long unsigned int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion] 210 | case 't': text_offt[item.n_name[5]-'0'] = base_off+item.n_value; break; | ^ catimage.c: At top level: catimage.c:237:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 237 | fatal(str) | ^~~~~ make[1]: *** [: catimage] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/build/bin86/src/bin86-0.16.21/ld' make: *** [Makefile:28: all] Error 2 ==> ERROR: A failure occurred in build().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix4/build receiving incremental file list bin86-0.16.21-4-riscv64-build.log bin86-0.16.21-4-riscv64-prepare.log sent 62 bytes received 2,249 bytes 1,540.67 bytes/sec total size is 9,005 speedup is 3.90