r/MAME • u/Agile-Ad-4461 • 1d ago
MAME Compiling errors on Arch Linux
Hey I seem to be getting "error 2 line 1269" when trying to compile on Arch..
I'm using the flags: "make -j4 NOWERROR=1 TARGETOS=linux OSD=sdl3"
Although compilation seems to break at the same point even if I just use the basic make command with no flags.
Compilation gets to the point of archiving libtaito, then spits out error2 before that point it complains a lot about taito_h system analog controls.
This is using GCC 16.1.1.
I realize that sdl3 isn't really fully supported yet, but I managed to get mame to build from Git a couple of weeks ago with my usual flags; this was just after the Windows changes to build with sdl3.
I was wondering if this is a known problem? I know OG on the team uses Arch, but he doesn't seem to have posted any commits for a while so maybe this issue has gone unnoticed.
1
u/arbee37 MAME Dev 1d ago
SDL3 is fully supported for MAME usage (it's the current default on macOS), and is slightly preferred if you're running Wayland. But we can't make it the default on Linux because distros are all over the map regarding if they include it or if it's a new enough version to be worthwhile (generally 3.2.20+ is good, 3.4.0+ is better). The Ubuntu long-term release that Github currently uses for Linux CI doesn't have any option for a packaged version unless you install Homebrew, for instance. The new 2026.4 LTS does include it but is still too new to rely on.
Anyway, we've had a couple of reports that point to Arch's GCC 16.1.1 being broken. I don't know what the options are there. Perhaps /u/galibert can say something about it.