Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
08653 Compiling Major Always May 31, 2023, 14:48 May 31, 2023, 15:04
Tester MrGW View Status Public Platform MAME (Self-compiled)
Assigned To Resolution Invalid report OS Linux (32-bit)
Status [?] Closed Driver
Version 0.255 Fixed in Version Build 32-bit
Fixed in Git Commit Github Pull Request #
Summary 08653: Error when compiling for 32bit Raspberry Pi OS - "PTR64 flag enabled, but was compiled for 32-bit target"
Description Getting the following error when compiling the latest MAME (0.255) on a Raspberry Pi 32bit OS:
Compiling src/emu/validity.cpp...
../../../../../src/emu/validity.cpp: In function ‘void {anonymous}::validate_integer_semantics()’:
../../../../../src/emu/validity.cpp:179: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[2]: *** [emu.make:1410: obj/Release/src/emu/validity.o] Error 1
make[1]: *** [Makefile:91: emu] Error 2
make: *** [makefile:1283: linux] Error 2

I've never had this error with previous releases. I've tried passing PTR64=0 on the command line (when using MAKE) but that doesn't help.

Please assist and thank you!
Steps To Reproduce Download source from git:

git clone -b mame0255 --depth 1 https://github.com/mamedev/mame.git mame0255

cd to source folder and run:

make TOOLS=1 NOWERROR=1 PTR64=0
Additional Information
Github Commit
Flags 32-bit specific
Regression Version
Affected Sets / Systems
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
1
User avatar
No.21477
cuavas
Administrator
May 31, 2023, 15:04
We recommend using this cross development environment to build MAME for Raspberry Pi: https://github.com/danmons/mame_raspberrypi_cross_compile

You can use a community forum to get help.