Previous Thread
Next Thread
Print Thread
#119507 07/29/21 05:35 PM
Joined: May 1999
Posts: 579
Carbon Offline OP
Senior Member
OP Offline
Senior Member
Joined: May 1999
Posts: 579
I've experienced this error since a few months but was afraid to ask because of the backlash I got (deservedly) last time I had a problem compiling MAME and just hoped the error would eventually go away an update.

Here's what I'm doing: after downloading and unzipping the source (I do not touch the source tree in any way), I proceed to compilation (normally I'm using make -j8 TOOLS=1). Everything wents fine (besides a lot of warnings during compilation) and after a while I'm presented with an executable.

If I launch said executable, I'm getting the following error:
Code
>zsh: exec format error: /Applications/Emulation/MAME/MAME
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...none found.
This only happens on my iMac Pro, on my M1 Mac mini the produced executable works just fine. I'm using the latest Xcode version 12.5.1.

Last edited by Carbon; 07/29/21 05:36 PM.
Joined: Mar 2001
Posts: 16,784
Likes: 32
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,784
Likes: 32
That error means the shell doesn't recognize the file you're trying to launch. What does "file /whatever/mame" say?

Joined: May 1999
Posts: 579
Carbon Offline OP
Senior Member
OP Offline
Senior Member
Joined: May 1999
Posts: 579
I tried it again with 0.235: output of file command is "data".

Joined: May 1999
Posts: 579
Carbon Offline OP
Senior Member
OP Offline
Senior Member
Joined: May 1999
Posts: 579
OK, found the cause: if I compile on an external drive, the resulting file is not executable. Compiling on the internal drive results in a perfectly fine running MAME.

Is this something that is expected on macOS (11.5.2)?

Joined: Mar 2001
Posts: 16,784
Likes: 32
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,784
Likes: 32
I haven't specifically heard of that, but I also wouldn't be surprised if that's a newer macOS security thing. Glad you found the cause at least smile


Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
2 members (judge, box), 43 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,957
Posts117,735
Members4,994
Most Online890
Jan 17th, 2020
Forum Host
These forums are hosted by www.retrogamesformac.com
Forum hosted by www.retrogamesformac.com