Closed FlykeSpice closed 2 weeks ago
Adding '#undef PAGE_SIZE' right after the headers fixes the issue
The /usr/include/sys/user.h
header states it's only supposed to be used by/for GDB, so it probably shouldn't be being included here. I think you need to track down where/why it's being included and stop that from happening, because PAGE_SIZE
shouldn't be leaking into MAME drivers. It's quite conceivable such a generic identifier might be used elsewhere, and requiring general MAME code to avoid it is wrong.
Also, if you're taking hours to compile MAME, you need to use -j (number of cores on your system). -j16 for a 16-core system, for instance.
MAME version
85624c486db19493fbbb87c091ca1a77559651d5
System information
Cross-compiling to Android
INI configuration details
No response
Emulated system/software
msxdos2
Incorrect behaviour
I'm trying to cross-compile mame (latest git head commit) to Android so I can contribute to Mame4Droid, because Mame4Droid author doesn't provides the build scripts or instructions necessary to build the core I had to make them myself.
My buildscripts do nothing than setup the build system to use mame4droid OSD on android target, I managed to sucessfully compile(and run) SUBTARGET=tiny and now I'm trying to compile the mame one.
However after long hours it failed on this exact spot:
../../../../../src/devices/bus/msx/cart/msxdos2.cpp:42:35: error: expected member name or ';' after declaration specifiers static inline constexpr unsigned PAGE_SIZE = 0x4000;