Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
07860 Compiling Major Always Jan 28, 2021, 13:06 Feb 16, 2021, 04:41
Tester MrGW View Status Public Platform MAME (Self-compiled)
Assigned To belegdol Resolution Fixed OS Linux (32-bit)
Status [?] Resolved Driver
Version 0.228 Fixed in Version 0.229 Build 32-bit
Fixed in Git Commit 9c10767 Github Pull Request # #7708
Summary 07860: N/A: Compiler error on Raspberry Pi
Description Getting this error when trying to compile MAME 0.228 on a Raspberry Pi (Buster):

Precompiling src/emu/emu.h...
g++: error: unrecognized command line option ‘-m32’; did you mean ‘-mbe32’?
g++: error: unrecognized command line option ‘-m32’; did you mean ‘-mbe32’?
make[2]: *** [precompile.make:317: ../../../../linux_gcc/obj/x32/Release/emu.h.gch] Error 1
make[1]: *** [Makefile:91: precompile] Error 2
make: *** [makefile:1389: linux_x86] Error 2

It looks like it's trying to compile for an x86 system rather than ARM.
Steps To Reproduce Download current MAME source:

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

Run 'make' from source folder. Wait for error (usually 5 minutes or so).
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems N/A
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
3
User avatar
No.18415
cuavas
Administrator
Jan 28, 2021, 13:51
See here: https://github.com/mamedev/mame/pull/7708
User avatar
No.18417
MrGW
Tester
Jan 28, 2021, 14:22
Thank you!
User avatar
No.18435
bbegin
Tester
Feb 5, 2021, 01:47
I worked around this issue with adding TARGETOS=linux on the make command-line.