You should compile the 32-bit binary on an equivalent 64-bit system if possible (same libc, libstdc++, SDL2, etc.). Install the 32-bit development library packages on your 64-bit system, compile on the 64-bit system, and copy the binary to the 32-bit system. The 64-bit compiler will be substantially faster.
Yes, it's what I'm doing.
My main PC is a 64 bit i5 10600 32 Gb RAM box running Slackware 15_64. It has a multilib 32 bit environment to build 32 bit programs.
The settings you suggested just worked, thank you so much.

What’s your actual reason for wanting MAME on a 32-bit system? Performance takes a pretty big hit.
In short: coz I'm a poor (old) boy

I'm not interested in running performing games but just old OSs and the relevant software.
On my 64 bit PC I'm running some machines and would like to run them on my Pentium IV 32 bit PC as well, though with some efforts.
It would be a sort of backup PC, in case the main one got broken.
I got a ten of old PCs an I'm trying to get them communicate each other.
I've installed Tinycore Linux (kernel 6) on my Pentium 166 PC and thanks to a USB 1.1 port I've been able to run wifi and tethering on it, downloading stuffs via my mobile phone.
Thst's all.
