=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/misc/chipmunk", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for chipmunk-1.4nb2 --- control.o --- --- fileops.o --- --- control.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c control.c --- fileops.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c fileops.c fileops.c:32:16: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 32 | s = fread ((void *)a,1,100000000,f); | ^~~~~~~~~ --- control.o --- control.c:17:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 17 | #endif USE_SIGNALS | ^ | // --- fileops.o --- fileops.c:58:15: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 58 | n = fwrite ((void *)a,1,s,f); | ^~~~~~~~~ --- control.o --- control.c:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 25 | #endif USE_UNISTD | ^ | // control.c:31:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 31 | #endif USE_READLINE | ^ | // control.c:81:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 81 | #endif USE_CHECK | ^ | // control.c:93:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 93 | #endif USE_CBREAK | ^ | // control.c:117:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 117 | #endif USE_BOGUS_USLEEP | ^ | // control.c:192:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 192 | if ((str[0] == '#') ) {fmt = "%d"; str += 1;} | ~~~~~~~^~~~~~ control.c:192:15: note: remove extraneous parentheses around the comparison to silence this warning 192 | if ((str[0] == '#') ) {fmt = "%d"; str += 1;} | ~ ^ ~ control.c:192:15: note: use '=' to turn this equality comparison into an assignment 192 | if ((str[0] == '#') ) {fmt = "%d"; str += 1;} | ^~ | = control.c:314:13: warning: cast to 'volatile short *' from smaller integer type 'int' [-Wint-to-pointer-cast] 314 | (void) *(volatile short *)(BASE + 0x10000); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ control.c:315:9: warning: cast to 'short *' from smaller integer type 'int' [-Wint-to-pointer-cast] 315 | p = (short *) a; | ^~~~~~~~~~~ control.c:320:17: warning: cast to 'volatile short *' from smaller integer type 'int' [-Wint-to-pointer-cast] 320 | (void) *(volatile short *)(BASE + 0x10000); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ control.c:342:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 342 | #endif USE_READLINE | ^ | // control.c:367:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 367 | #endif USE_READLINE | ^ | // control.c:461:26: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 461 | if ((Toexecute->next == NULL)) | ~~~~~~~~~~~~~~~~^~~~~~~ control.c:461:26: note: remove extraneous parentheses around the comparison to silence this warning 461 | if ((Toexecute->next == NULL)) | ~ ^ ~ control.c:461:26: note: use '=' to turn this equality comparison into an assignment 461 | if ((Toexecute->next == NULL)) | ^~ | = control.c:644:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 644 | #endif USE_CHECK | ^ | // --- fileops.o --- 2 warnings generated. --- control.o --- control.c:707:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 707 | else printf ("\n"); | ^ control.c:775:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 775 | #endif USE_ALLOCA | ^ | // control.c:782:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 782 | #endif USE_ALLOCA | ^ | // control.c:824:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 824 | #endif USE_CHECK | ^ | // control.c:825:47: warning: cast to 'unsigned int *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] 825 | else if (strcmp (op, "@" ) == 0) result =*(unsigned int *)(BASE+a); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ control.c:826:47: warning: cast to 'unsigned short *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] 826 | else if (strcmp (op, "@s") == 0) result =*(unsigned short *)(BASE+a); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ control.c:827:47: warning: cast to 'unsigned char *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] 827 | else if (strcmp (op, "@b") == 0) result =*(unsigned char *)(BASE+a); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ --- memops.o --- --- control.o --- control.c:1010:16: warning: variable 'line' set but not used [-Wunused-but-set-variable] 1010 | unsigned int line; | ^ control.c:1415:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1415 | #endif USE_READLINE | ^ | // control.c:1445:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1445 | #endif USE_SIGNALS | ^ | // control.c:1475:33: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1475 | rn = builtins[i].func (argc, argv); | ^ control.c:1478:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1478 | #endif USE_CHECK | ^ | // control.c:1479:31: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1479 | rn = builtins[i].func (argc, argv); | ^ control.c:1525:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1525 | #endif USE_READLINE | ^ | // control.c:1531:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1531 | #endif USE_SIGNALS | ^ | // control.c:1566:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1566 | #endif USE_SIGNALS | ^ | // control.c:1587:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1587 | #endif USE_READLINE | ^ | // --- memops.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c memops.c memops.c:98:4: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] 98 | *(int *)a = myatoi (argv[2]); | ^~~~~~~~ memops.c:108:4: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] 108 | *(int *)a &= myatoi (argv[2]); | ^~~~~~~~ memops.c:118:4: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] 118 | *(int *)a |= myatoi (argv[2]); | ^~~~~~~~ memops.c:128:4: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] 128 | *(int *)a ^= myatoi (argv[2]); | ^~~~~~~~ memops.c:139:4: warning: cast to 'unsigned short *' from smaller integer type 'int' [-Wint-to-pointer-cast] 139 | *(unsigned short *)a = myatoi (argv[2]); | ^~~~~~~~~~~~~~~~~~~ memops.c:149:4: warning: cast to 'unsigned short *' from smaller integer type 'int' [-Wint-to-pointer-cast] 149 | *(unsigned short *)a &= myatoi (argv[2]); | ^~~~~~~~~~~~~~~~~~~ memops.c:159:4: warning: cast to 'unsigned short *' from smaller integer type 'int' [-Wint-to-pointer-cast] 159 | *(unsigned short *)a |= myatoi (argv[2]); | ^~~~~~~~~~~~~~~~~~~ memops.c:169:4: warning: cast to 'unsigned short *' from smaller integer type 'int' [-Wint-to-pointer-cast] 169 | *(unsigned short *)a ^= myatoi (argv[2]); | ^~~~~~~~~~~~~~~~~~~ memops.c:179:4: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] 179 | *(unsigned char *)a = myatoi (argv[2]); | ^~~~~~~~~~~~~~~~~~ memops.c:189:4: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] 189 | *(unsigned char *)a &= myatoi (argv[2]); | ^~~~~~~~~~~~~~~~~~ memops.c:199:4: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] 199 | *(unsigned char *)a |= myatoi (argv[2]); | ^~~~~~~~~~~~~~~~~~ memops.c:209:4: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] 209 | *(unsigned char *)a ^= myatoi (argv[2]); | ^~~~~~~~~~~~~~~~~~ memops.c:220:7: warning: cast to 'int *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] 220 | p = (int *) (BASE + myatoi (argv[1])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ memops.c:235:36: warning: cast to smaller integer type 'int' from 'int *' [-Wpointer-to-int-cast] 235 | printf ("Filled upto %08x.\n", (int)p); | ^~~~~~ memops.c:245:7: warning: cast to 'int *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] 245 | p = (int *) (BASE + myatoi (argv[1])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ memops.c:247:7: warning: cast to 'int *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] 247 | q = (int *) (BASE + myatoi (argv[3])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ memops.c:250:56: warning: cast to smaller integer type 'int' from 'int *' [-Wpointer-to-int-cast] 250 | printf ("copied %d bytes from %08x to %08x.\n", l, (int)p, (int)q); | ^~~~~~ memops.c:250:64: warning: cast to smaller integer type 'int' from 'int *' [-Wpointer-to-int-cast] 250 | printf ("copied %d bytes from %08x to %08x.\n", l, (int)p, (int)q); | ^~~~~~ memops.c:282:10: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] 282 | return (int)p; | ^~~~~~ memops.c:289:7: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] 289 | p = (void *)myatoi (argv[1]); | ^~~~~~~~~~~~~~~~~~~~~~~~ memops.c:290:7: warning: cast to smaller integer type 'unsigned int' from 'void *' [-Wvoid-pointer-to-int-cast] 290 | if ((unsigned int)p < 4096) { | ^~~~~~~~~~~~~~~ memops.c:292:50: warning: cast to smaller integer type 'unsigned int' from 'void *' [-Wvoid-pointer-to-int-cast] 292 | printf ("ERR: %08x cannot be a pointer\n", (unsigned int) p); | ^~~~~~~~~~~~~~~~ memops.c:306:9: warning: cast to 'unsigned char *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] 306 | a = (unsigned char *) (BASE + myatoi (argv[1])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ memops.c:314:23: warning: cast to smaller integer type 'unsigned int' from 'unsigned char *' [-Wpointer-to-int-cast] 314 | printf ("%08x ", (unsigned int)a); | ^~~~~~~~~~~~~~~ 24 warnings generated. --- io_ops.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c io_ops.c --- control.o --- 31 warnings generated. --- strerror.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c strerror.c --- memtest.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c memtest.c --- tests.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c tests.c --- memtest.o --- memtest.c:12:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 12 | #endif STANDALONE | ^ | // memtest.c:745:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 745 | #endif USE_MEMTEST | ^ | // 2 warnings generated. --- comm960.o --- --- move.o --- --- comm960.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c comm960.c --- move.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c move.c --- rmove.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c rmove.c --- sbus.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c sbus.c --- p555.o --- --- 2051.o --- --- p555.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c p555.c --- 2051.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c 2051.c --- version --- --- p555.o --- p555.c:92:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 92 | #endif INCLUDE_P555 | ^ | // 1 warning generated. --- version.o --- gcc -Wall -O2 -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-implicit-int -pipe -Os -I/opt/pkg/include/ncurses -c version.c -o version.o -DMAJOR=1 -DMINOR=4 --- chipmunk --- gcc -L/opt/pkg/lib control.o fileops.o memops.o io_ops.o strerror.o memtest.o tests.o comm960.o move.o rmove.o sbus.o p555.o 2051.o version.o -lreadline -ltermcap -o chipmunk Undefined symbols for architecture arm64: "_getkey", referenced from: _ask in control.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [chipmunk] Error code 1 bmake: stopped making "chipmunk" in /var/tmp/work/misc/chipmunk/work/chipmunk-1.4 bmake: 1 error bmake: stopped making "chipmunk" in /var/tmp/work/misc/chipmunk/work/chipmunk-1.4 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/misc/chipmunk *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/misc/chipmunk