>>> libretro-mame2003: Building testing/libretro-mame2003 0_git20220206-r0 (using abuild 3.13.0-r5) started Thu, 26 Sep 2024 14:54:25 +0000 >>> libretro-mame2003: Checking sanity of /home/buildozer/aports/testing/libretro-mame2003/APKBUILD... >>> libretro-mame2003: Analyzing dependencies... >>> libretro-mame2003: Installing for build: build-base (1/1) Installing .makedepends-libretro-mame2003 (20240926.145438) OK: 251 MiB in 106 packages >>> libretro-mame2003: Cleaning up srcdir >>> libretro-mame2003: Cleaning up pkgdir >>> libretro-mame2003: Cleaning up tmpdir >>> libretro-mame2003: Fetching https://distfiles.alpinelinux.org/distfiles/edge/libretro-mame2003-3eb27d5f161522cf873c0642f14b8e2267b3820f.tar.gz >>> libretro-mame2003: Fetching https://distfiles.alpinelinux.org/distfiles/edge/libretro-mame2003-3eb27d5f161522cf873c0642f14b8e2267b3820f.tar.gz >>> libretro-mame2003: Checking sha512sums... libretro-mame2003-3eb27d5f161522cf873c0642f14b8e2267b3820f.tar.gz: OK >>> libretro-mame2003: Unpacking /var/cache/distfiles/libretro-mame2003-3eb27d5f161522cf873c0642f14b8e2267b3820f.tar.gz... fatal: not a git repository (or any of the parent directories): .git Compiling src/mame2003/mame2003.c... Compiling src/mame2003/core_options.c... Compiling src/mame2003/video.c... Compiling src/artwork.c... Compiling src/bootstrap.c... Compiling src/cheat.c... Compiling src/common.c... Compiling src/config.c... Compiling src/controls.c... Compiling src/cpuexec.c... Compiling src/cpuint.c... Compiling src/cpuintrf.c... Compiling src/datafile.c... Compiling src/drawgfx.c... Compiling src/driver.c... Compiling src/fileio.c... Compiling src/harddisk.c... Compiling src/hash.c... Compiling src/hiscore.c... Compiling src/info.c... Compiling src/inptport.c... Compiling src/input.c... Compiling src/mame-memory.c... Compiling src/mame.c... Compiling src/mamedbg.c... In file included from src/mame2003/video.c:7: src/common.h:447:55: warning: 'struct GameDriver' declared inside parameter list will not be visible outside of this definition or declaration 447 | const struct RomModule *rom_first_region(const struct GameDriver *drv); | ^~~~~~~~~~ Compiling src/mame_unzip.c... Compiling src/palette.c... src/config.c: In function 'config_read_ports': src/config.c:325:22: warning: variable 'total' set but not used [-Wunused-but-set-variable] 325 | unsigned int total; | ^~~~~ src/config.c: In function 'config_read_coin_and_ticket_counters': src/config.c:434:13: warning: variable 'coin_counters' set but not used [-Wunused-but-set-variable] 434 | int coin_counters; | ^~~~~~~~~~~~~ Compiling src/png.c... Compiling src/profiler.c... Compiling src/sndintrf.c... Compiling src/state.c... src/mame2003/video.c: In function 'mame2003_video_reinit': src/mame2003/video.c:239:36: error: passing argument 2 of 'osd_create_display' from incompatible pointer type [-Wincompatible-pointer-types] 239 | osd_create_display(&old_params, &rgb_components); | ^~~~~~~~~~~~~~~ | | | UINT32 (*)[3] {aka unsigned int (*)[3]} In file included from src/mame2003/video.c:4: src/mame2003/mame2003.h:197:72: note: expected 'UINT32 *' {aka 'unsigned int *'} but argument is of type 'UINT32 (*)[3]' {aka 'unsigned int (*)[3]'} 197 | int osd_create_display(const struct osd_create_params *params, UINT32 *rgb_components); | ~~~~~~~~^~~~~~~~~~~~~~ Compiling src/tilemap.c... src/datafile.c:369:12: warning: 'ci_strcmp' defined but not used [-Wunused-function] 369 | static int ci_strcmp (const char *s1, const char *s2) | ^~~~~~~~~ src/cheat.c: In function 'UIPressedRepeatThrottle': src/cheat.c:1448:33: warning: variable 'pressed' set but not used [-Wunused-but-set-variable] 1448 | int pressed = 0; | ^~~~~~~ src/common.c:21:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 21 | "CHDERR_NONE", | ^~~~~~~~~~~~~ src/common.c:22:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 22 | "CHDERR_NO_INTERFACE", | ^~~~~~~~~~~~~~~~~~~~~ src/common.c:23:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 23 | "CHDERR_OUT_OF_MEMORY", | ^~~~~~~~~~~~~~~~~~~~~~ src/common.c:24:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 24 | "CHDERR_INVALID_FILE", | ^~~~~~~~~~~~~~~~~~~~~ src/common.c:25:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 25 | "CHDERR_INVALID_PARAMETER", | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/common.c:26:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 26 | "CHDERR_INVALID_DATA", | ^~~~~~~~~~~~~~~~~~~~~ src/common.c:27:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 27 | "CHDERR_FILE_NOT_FOUND", | ^~~~~~~~~~~~~~~~~~~~~~~ src/common.c:28:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 28 | "CHDERR_REQUIRES_PARENT", | ^~~~~~~~~~~~~~~~~~~~~~~~ src/common.c:29:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 29 | "CHDERR_FILE_NOT_WRITEABLE", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common.c:30:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 30 | "CHDERR_READ_ERROR", | ^~~~~~~~~~~~~~~~~~~ src/common.c:31:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 31 | "CHDERR_WRITE_ERROR", | ^~~~~~~~~~~~~~~~~~~~ src/common.c:32:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 32 | "CHDERR_CODEC_ERROR", | ^~~~~~~~~~~~~~~~~~~~ src/common.c:33:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 33 | "CHDERR_INVALID_PARENT", | ^~~~~~~~~~~~~~~~~~~~~~~ src/common.c:34:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 34 | "CHDERR_HUNK_OUT_OF_RANGE", | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/common.c:35:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 35 | "CHDERR_DECOMPRESSION_ERROR", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common.c:36:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 36 | "CHDERR_COMPRESSION_ERROR", | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/common.c:37:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 37 | "CHDERR_CANT_CREATE_FILE", | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/common.c:38:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 38 | "CHDERR_CANT_VERIFY", | ^~~~~~~~~~~~~~~~~~~~ src/common.c:39:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 39 | "CHDERR_NOT_SUPPORTED", | ^~~~~~~~~~~~~~~~~~~~~~ src/common.c:40:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 40 | "CHDERR_METADATA_NOT_FOUND", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common.c:41:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | "CHDERR_INVALID_METADATA_SIZE", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common.c:42:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 42 | "CHDERR_UNSUPPORTED_VERSION" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling src/timer.c... src/cheat.c: In function 'RebuildStringTables': src/cheat.c:2000:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2000 | (int)menuStrings.mainList, | ^ src/cheat.c:2001:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2001 | (int)menuStrings.subList, | ^ src/common.c: In function 'read_wav_sample': src/cheat.c:2002:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2002 | (int)menuStrings.flagList, | ^ src/common.c:439:46: error: assignment to 'INT16 *' {aka 'short int *'} from incompatible pointer type 'signed char *' [-Wincompatible-pointer-types] 439 | flac_file.write_data = result->data; | ^ src/cheat.c:2003:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2003 | (int)menuStrings.mainStrings, | ^ src/common.c: In function 'readsample': src/cheat.c:2004:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2004 | (int)menuStrings.subStrings, | ^ src/common.c:473:28: warning: unused variable 'SampleFile' [-Wunused-variable] 473 | struct GameSample *SampleFile; | ^~~~~~~~~~ src/cheat.c:2005:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2005 | (int)menuStrings.buf); | ^ src/common.c: In function 'readsamples': src/common.c:507:14: warning: variable 'missing_sample' set but not used [-Wunused-but-set-variable] 507 | bool missing_sample = false; | ^~~~~~~~~~~~~~ src/mame2003/core_options.c: In function 'update_variables': src/mame2003/core_options.c:1167:39: warning: cast from function call of type 'int' to non-matching type 'double' [-Wbad-function-cast] 1167 | options.cpu_clock_scale = (double) atoi(var.value) / 100; | ^ In file included from src/driver.h:68, from src/info.c:3: src/info.c: In function 'print_game_rom': src/common.h:230:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 230 | #define ROMREGION_GETTYPE(r) ((UINT32)(r)->_hashdata) | ^ src/info.c:359:33: note: in expansion of macro 'ROMREGION_GETTYPE' 359 | switch (ROMREGION_GETTYPE(region)) | ^~~~~~~~~~~~~~~~~ src/mame2003/mame2003.c: In function 'retro_load_game': src/mame2003/mame2003.c:279:20: warning: unused variable 'port_index' [-Wunused-variable] 279 | int port_index; | ^~~~~~~~~~ src/common.h:230:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 230 | #define ROMREGION_GETTYPE(r) ((UINT32)(r)->_hashdata) | ^ src/info.c:395:86: note: in expansion of macro 'ROMREGION_GETTYPE' 395 | default: fprintf(out, " region=\"0x%x\"", ROMREGION_GETTYPE(region)); | ^~~~~~~~~~~~~~~~~ src/common.c: In function 'determine_bios_rom': src/common.c:1156:34: warning: unused variable 'firstbios' [-Wunused-variable] 1156 | const struct SystemBios *firstbios = bios; | ^~~~~~~~~ In file included from src/driver.h:68, from src/common.c:6: src/common.c: In function 'region_post_process': src/mame2003/mame2003.c: In function 'convert_analog_scale': src/mame2003/mame2003.c:839:13: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 839 | input = (int)round(scaled); | ^ src/common.h:230:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 230 | #define ROMREGION_GETTYPE(r) ((UINT32)(r)->_hashdata) | ^ src/common.c:1414:20: note: in expansion of macro 'ROMREGION_GETTYPE' 1414 | int type = ROMREGION_GETTYPE(regiondata); | ^~~~~~~~~~~~~~~~~ make: *** [Makefile:897: src/mame2003/video.o] Error 1 make: *** Waiting for unfinished jobs.... src/common.c: In function 'read_rom_data': src/common.c:1562:71: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1562 | log_cb(RETRO_LOG_DEBUG, LOGPRE " Copying to %08X\n", (int)base); | ^ src/artwork.c: In function 'render_ui_overlay': src/common.c: In function 'fill_rom_data': src/artwork.c:1968:13: warning: variable 'width' set but not used [-Wunused-but-set-variable] 1968 | int width, height; | ^~~~~ src/mame2003/core_options.c: At top level: src/mame2003/core_options.c:712:47: warning: 'option_def_cyclone_mode' defined but not used [-Wunused-variable] 712 | static struct retro_core_option_v2_definition option_def_cyclone_mode = { | ^~~~~~~~~~~~~~~~~~~~~~~ src/common.c:1647:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1647 | memset(base, (UINT32)ROM_GETHASHDATA(romp) & 0xff, numbytes); | ^ src/common.c: In function 'copy_rom_data': src/common.c:1661:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1661 | UINT32 srcoffs = (UINT32)ROM_GETHASHDATA(romp); /* srcoffset in place of hashdata */ | ^ src/mame2003/mame2003.c: At top level: src/mame2003/mame2003.c:104:13: warning: 'retro_audio_buff_status_cb' defined but not used [-Wunused-function] 104 | static void retro_audio_buff_status_cb(bool active, unsigned occupancy, bool underrun_likely) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/mame2003/mame2003.c:56:38: warning: 'empty' defined but not used [-Wunused-variable] 56 | static struct retro_input_descriptor empty[] = { { 0 } }; | ^~~~~ src/common.c: In function 'rom_load': src/common.h:230:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 230 | #define ROMREGION_GETTYPE(r) ((UINT32)(r)->_hashdata) | ^ src/common.c:1958:34: note: in expansion of macro 'ROMREGION_GETTYPE' 1958 | int regiontype = ROMREGION_GETTYPE(region); | ^~~~~~~~~~~~~~~~~ src/common.c:1983:101: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1983 | log_cb(RETRO_LOG_DEBUG, LOGPRE "Allocated %X bytes @ %08X\n", romdata.regionlength, (int)romdata.regionbase); | ^ src/mame-memory.c: In function 'assign_dynamic_bank': src/mame-memory.c:73:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 73 | #define BANK_TO_HANDLER(b) ((void *)(b)) | ^ src/mame-memory.c:995:32: note: in expansion of macro 'BANK_TO_HANDLER' 995 | return BANK_TO_HANDLER(bank); | ^~~~~~~~~~~~~~~ src/mame-memory.c: In function 'verify_memory': src/mame-memory.c:1247:25: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 1247 | for (; !IS_MEMPORT_END(mwa); mwa++) | ^~~ src/mame-memory.c:1254:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 1254 | mwa++; | ^~~ src/info.c: At top level: src/info.c:646:13: warning: 'print_game_history' defined but not used [-Wunused-function] 646 | static void print_game_history(FILE* out, const struct GameDriver* game) | ^~~~~~~~~~~~~~~~~~ src/cheat.c: In function 'DoSearchMenu': make: *** [Makefile:897: src/common.o] Error 1 src/cheat.c:4871:25: warning: variable 'submenuChoice' set but not used [-Wunused-but-set-variable] 4871 | static INT32 submenuChoice = 0; | ^~~~~~~~~~~~~ src/timer.c: In function 'timer_adjust_global_time': src/timer.c:325:92: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 325 | log_cb(RETRO_LOG_DEBUG, LOGPRE "Timer %08X fired (expire=%.9f)\n", (UINT32)timer, timer->expire); | ^ src/timer.c: In function 'timer_adjust': src/timer.c:417:74: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 417 | log_cb(RETRO_LOG_DEBUG, LOGPRE "timer_adjust %08X to expire @ %.9f\n", (UINT32)which, which->expire); | ^ src/inptport.c:1608:13: warning: 'writeint' defined but not used [-Wunused-function] 1608 | static void writeint(mame_file *f,UINT32 num) | ^~~~~~~~ src/inptport.c:1589:12: warning: 'readint' defined but not used [-Wunused-function] 1589 | static int readint(mame_file *f,UINT32 *num) | ^~~~~~~ src/cheat.c: In function 'DefaultEnableRegion': src/cheat.c:7690:58: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 7690 | UINT32 handlerAddress = (UINT32)handler; | ^ src/cheat.c:7745:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 7745 | if( (handlerAddress >= ((UINT32)MWA_BANK1)) && | ^ src/cheat.c:7746:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 7746 | (handlerAddress <= ((UINT32)MWA_BANK24))) | ^ src/cheat.c: In function 'SetSearchRegionDefaultName': src/cheat.c:7787:82: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 7787 | UINT32 handlerAddress = (UINT32)handler; | ^ src/cheat.c:7789:61: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 7789 | if( (handlerAddress >= ((UINT32)MWA_BANK1)) && | ^ src/cheat.c:7790:61: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 7790 | (handlerAddress <= ((UINT32)MWA_BANK24))) | ^ src/cheat.c:7792:86: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 7792 | sprintf(desc, "BANK%.2d", (handlerAddress - ((UINT32)MWA_BANK1)) + 1); | ^ src/cheat.c:7798:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 7798 | case (UINT32)MWA_NOP: strcpy(desc, "NOP "); break; | ^ src/cheat.c:7799:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 7799 | case (UINT32)MWA_RAM: strcpy(desc, "RAM "); break; | ^ src/cheat.c:7800:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 7800 | case (UINT32)MWA_ROM: strcpy(desc, "ROM "); break; | ^ src/state.c: In function 'ss_register_func': src/state.c:302:118: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 302 | log_cb(RETRO_LOG_DEBUG, LOGPRE "Duplicate save state function (%d, 0x%x)\n", ss_current_tag, (int)func); | ^ src/cheat.c:7801:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 7801 | case (UINT32)MWA_RAMROM: strcpy(desc, "RAMROM"); break; | ^ In file included from src/driver.h:68, from src/cheat.c:374: src/cheat.c: In function 'BuildCPUInfoList': src/common.h:230:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 230 | #define ROMREGION_GETTYPE(r) ((UINT32)(r)->_hashdata) | ^ src/cheat.c:10093:54: note: in expansion of macro 'ROMREGION_GETTYPE' 10093 | UINT8 regionType = ROMREGION_GETTYPE(traverse); | ^~~~~~~~~~~~~~~~~ src/drawgfx.c: In function 'draw_crosshair': src/drawgfx.c:3521:23: warning: variable 'black' set but not used [-Wunused-but-set-variable] 3521 | unsigned long black,white; | ^~~~~ In function 'ResizeWatchListNoDispose', inlined from 'DeleteWatchAt' at src/cheat.c:7356:2: src/cheat.c:7319:66: warning: iteration 4294967294 invokes undefined behavior [-Waggressive-loop-optimizations] 7319 | for(i = watchListLength; i < newLength; i++) | ~^~ src/cheat.c:7319:52: note: within this loop 7319 | for(i = watchListLength; i < newLength; i++) | ~~^~~~~~~~~~~ In function 'ResizeCheatListNoDispose', inlined from 'DeleteCheatAt.part.0' at src/cheat.c:7125:2: src/cheat.c:7087:66: warning: iteration 4294967294 invokes undefined behavior [-Waggressive-loop-optimizations] 7087 | for(i = cheatListLength; i < newLength; i++) | ~^~ src/cheat.c:7087:52: note: within this loop 7087 | for(i = cheatListLength; i < newLength; i++) | ~~^~~~~~~~~~~ >>> ERROR: libretro-mame2003: build failed >>> libretro-mame2003: Uninstalling dependencies... (1/1) Purging .makedepends-libretro-mame2003 (20240926.145438) OK: 251 MiB in 105 packages