+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pcemu-1.01anb3/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pcemu-1.01anb3/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for pcemu-1.01anb3 --- main.o --- --- cpu.o --- --- main.o --- gcc -I/usr/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/usr/pkg/lib/pcemu/DriveA\" -c main.c --- cpu.o --- gcc -I/usr/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/usr/pkg/lib/pcemu/DriveA\" -c cpu.c cpu.c: In function 'i_gobios': cpu.c:3608:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] routine = (void (*)(void))dest; ^ --- bios.o --- gcc -I/usr/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/usr/pkg/lib/pcemu/DriveA\" -c bios.c bios.c: In function 'set_int': bios.c:169:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] unsigned loc = (unsigned)routine; ^ bios.c: In function 'init_bios': bios.c:1211:13: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(1); ^ bios.c:1228:9: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(1); ^ bios.c: In function 'set_boot_file': bios.c:1252:9: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(1); ^ --- vga.o --- gcc -I/usr/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/usr/pkg/lib/pcemu/DriveA\" -c vga.c vga.c: In function 'init_vga': vga.c:639:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default] memcpy(&memory[0xf0000+VIDEOFUNCTIONALITY], &functionality, sizeof functionality); ^ --- vgahard.o --- gcc -I/usr/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/usr/pkg/lib/pcemu/DriveA\" -c vgahard.c --- debugger.o --- gcc -I/usr/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/usr/pkg/lib/pcemu/DriveA\" -c debugger.c --- xstuff.o --- gcc -I/usr/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/usr/pkg/lib/pcemu/DriveA\" -c xstuff.c xstuff.c: In function 'load_font': xstuff.c:163:13: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(1); ^ xstuff.c: In function 'start_X': xstuff.c:245:9: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(1); ^ xstuff.c:271:9: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(1); ^ xstuff.c:278:9: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(1); ^ --- hardware.o --- gcc -I/usr/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/usr/pkg/lib/pcemu/DriveA\" -c hardware.c --- mfs.o --- gcc -I/usr/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/usr/pkg/lib/pcemu/DriveA\" -c mfs.c In file included from mfs.c:349:0: mfs.h:49:14: error: conflicting types for 'sys_errlist' extern char *sys_errlist[]; ^ In file included from /usr/include/stdio.h:853:0, from mfs.c:312: /usr/include/bits/sys_errlist.h:27:26: note: previous declaration of 'sys_errlist' was here extern const char *const sys_errlist[]; ^ In file included from mfs.c:349:0: /usr/include/string.h:409:14: error: expected expression before 'int' extern char *strerror (int __errnum) __THROW; ^ mfs.c:429:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] u_short com_psp = (u_short) NULL; ^ In file included from mfs.c:349:0: mfs.c: In function 'select_drive': mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.h:70:39: note: in definition of macro 'Read2Bytes' #define Read2Bytes(t,x) (t)(*(BYTE *)(x) + (*((BYTE *)(x) + 1) << 8)) ^ mfs.c:630:27: note: in expansion of macro 'cds_flags_r' if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & ^ mfs.c:630:39: note: in expansion of macro 'drive_cds' if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & ^ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.h:70:39: note: in definition of macro 'Read2Bytes' #define Read2Bytes(t,x) (t)(*(BYTE *)(x) + (*((BYTE *)(x) + 1) << 8)) ^ mfs.c:630:27: note: in expansion of macro 'cds_flags_r' if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & ^ mfs.c:630:39: note: in expansion of macro 'drive_cds' if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & ^ mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.h:70:56: note: in definition of macro 'Read2Bytes' #define Read2Bytes(t,x) (t)(*(BYTE *)(x) + (*((BYTE *)(x) + 1) << 8)) ^ mfs.c:630:27: note: in expansion of macro 'cds_flags_r' if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & ^ mfs.c:630:39: note: in expansion of macro 'drive_cds' if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & ^ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.h:70:56: note: in definition of macro 'Read2Bytes' #define Read2Bytes(t,x) (t)(*(BYTE *)(x) + (*((BYTE *)(x) + 1) << 8)) ^ mfs.c:630:27: note: in expansion of macro 'cds_flags_r' if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & ^ mfs.c:630:39: note: in expansion of macro 'drive_cds' if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & ^ mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.c:643:11: note: in expansion of macro 'drive_cds' if (drive_cds(dd) == sda_cds) ^ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.c:643:11: note: in expansion of macro 'drive_cds' if (drive_cds(dd) == sda_cds) ^ mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.c:651:11: note: in expansion of macro 'drive_cds' if (drive_cds(dd) == esdi_cds) ^ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.c:651:11: note: in expansion of macro 'drive_cds' if (drive_cds(dd) == esdi_cds) ^ mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.c:732:9: note: in expansion of macro 'drive_cds' cds = drive_cds(current_drive); ^ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.c:732:9: note: in expansion of macro 'drive_cds' cds = drive_cds(current_drive); ^ mfs.c: In function 'init_drive': mfs.c:917:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] return ((int) NULL); ^ In file included from mfs.c:349:0: mfs.c: In function 'calculate_drive_pointers': mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.c:1653:9: note: in expansion of macro 'drive_cds' cds = drive_cds(dd); ^ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.c:1653:9: note: in expansion of macro 'drive_cds' cds = drive_cds(dd); ^ mfs.c: In function 'time_to_dos': mfs.c:1814:6: warning: assignment makes pointer from integer without a cast [enabled by default] tm = localtime(clock); ^ mfs.c:1818:25: error: dereferencing pointer to incomplete type u_short tmp = ((((tm->tm_year - 80) & 0x1f) << 9) | ^ mfs.c:1819:10: error: dereferencing pointer to incomplete type (((tm->tm_mon + 1) & 0xf) << 5) | ^ mfs.c:1820:8: error: dereferencing pointer to incomplete type (tm->tm_mday & 0x1f)); ^ mfs.c:1824:16: error: dereferencing pointer to incomplete type tmp = (((tm->tm_hour & 0x1f) << 0xb) | ^ mfs.c:1825:9: error: dereferencing pointer to incomplete type ((tm->tm_min & 0x3f) << 5)); ^ In file included from mfs.c:349:0: mfs.c: In function 'RedirectDevice': mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.c:2489:9: note: in expansion of macro 'drive_cds' cds = drive_cds(current_drive); ^ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.c:2489:9: note: in expansion of macro 'drive_cds' cds = drive_cds(current_drive); ^ mfs.c: In function 'CancelRedirection': mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.c:2544:9: note: in expansion of macro 'drive_cds' cds = drive_cds(current_drive); ^ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ mfs.c:2544:9: note: in expansion of macro 'drive_cds' cds = drive_cds(current_drive); ^ mfs.c: In function 'dos_fs_redirect': mfs.c:3558:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] while ((int) hlist_stack_indx != (int) NULL) { ^ *** [mfs.o] Error code 1 bmake: stopped in /home/pbulk/build/emulators/pcemu/work/pcemu1.01alpha 1 error bmake: stopped in /home/pbulk/build/emulators/pcemu/work/pcemu1.01alpha *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/emulators/pcemu *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/emulators/pcemu