libretro / mame2016-libretro

Late 2016 version of MAME (0.174) for libretro. Compatible with MAME 0.174 sets.
Other
32 stars 40 forks source link

Error: Compiling src/emu/validity.cpp... #48

Open henryjfry opened 3 years ago

henryjfry commented 3 years ago

Im having an error building "libretro/mame2016-libretro" on the Vero4k (aarch64) which has failed on the main repo and also "https://github.com/MrLightgun/mame2016-libretro" at the same stage:

`Compiling src/emu/validity.cpp... g++ -I/opt/vero3/include -L/opt/vero3/lib -mcpu=cortex-a7 -mfpu=neon-vfpv4 -O2 -I/opt/vero3/include -L/opt/vero3/lib -mcpu=cortex-a7 -mfpu=neon-vfpv4 -O2 -MMD -MP -MP -DLIBRETRO -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DMAME_NOASM -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DPTR64=1 -I../../../../../src/osd -I../../../../../src/emu -I../../../../../src/lib -I../../../../../src/lib/util -I../../../../../3rdparty -I../../../../generated/emu -I../../../../generated/emu/layout -I../../../../../3rdparty/expat/lib -I../../../../../3rdparty/lua/src -I../../../../../3rdparty/zlib -I../../../../../3rdparty/libflac/include -O2 -fPIC --pipe -Wno-deprecated-declarations -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wundef -Wformat-security -Wwrite-strings -Wno-sign-compare -Wno-conversion -Wno-unused-result -Wno-array-bounds -Wno-cast-align -x c++ -std=c++14 -Woverloaded-virtual -Wsuggest-override -include ../../../../gmake/libretro/obj/libretro/emu.h -include /home/osmc/retrOSMCmk2/submodule/RetroPie-Setup/tmp/build/lr-mame2016/src/osd/retro/retroprefix.h -o "../../../../gmake/libretro/obj/libretro/src/emu/validity.o" -c "../../../../../src/emu/validity.cpp" ../../../../../src/emu/validity.cpp: In member function 'void validity_checker::validate_core()': ../../../../../src/emu/validity.cpp:341:31: error: static assertion failed: PTR64 flag enabled, but was compiled for 32-bit target

static_assert(sizeof(void *) == 8, "PTR64 flag enabled, but was compiled for 32-bit target\n");


make[3]: *** [emu.make:1740: ../../../../gmake/libretro/obj/libretro/src/emu/validity.o] Error 1
make[2]: *** [Makefile:67: emu] Error 2
make[2]: Leaving directory '/home/osmc/retrOSMCmk2/submodule/RetroPie-Setup/tmp/build/lr-mame2016/build/projects/retro/mamearcade/gmake-linux'
make[1]: *** [makefile:1214: linux] Error 2
make[1]: Leaving directory '/home/osmc/retrOSMCmk2/submodule/RetroPie-Setup/tmp/build/lr-mame2016'
make: *** [Makefile.libretro:197: build] Error 2
Removing additional swap
/home/osmc
Could not successfully build lr-mame2016 - MAME emulator - MAME 0.174 port for libretro (/home/osmc/retrOSMCmk2/submodule/RetroPie-Setup/tmp/build/lr-mame2016/mamearcade2016_libretro.so not found).`

I tried adding "PTR64 = 1" to makefile.libreto and makefile but it didnt seem to have any impact.

[rps_2021-01-25_104929.log](https://github.com/libretro/mame2016-libretro/files/5866327/rps_2021-01-25_104929.log)