Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
#116413 11/12/19 07:41 PM
Joined: Dec 2005
Posts: 108
CRP Offline OP
Senior Member
OP Offline
Senior Member
Joined: Dec 2005
Posts: 108
Hi, I compile mame for macos myself by cloning the github source, then running make. Lately, I keep getting errors like this:

Code
Archiving libformats.a...
fatal error: /Library/Developer/CommandLineTools/usr/bin/ranlib: can't move the output file to its final location: ../../../../osx_clang/bin/x64/Release/mame_mame/libformats.a (Resource busy)
/Library/Developer/CommandLineTools/usr/bin/ar: internal ranlib command failed
make[2]: *** [../../../../osx_clang/bin/x64/Release/mame_mame/libformats.a] Error 1
make[1]: *** [formats] Error 2
make: *** [macosx_x64_clang] Error 2


If I run make again it fails at a different point. Not sure what's wrong here... any ideas?

CRP #116415 11/12/19 08:43 PM
Joined: Sep 2000
Posts: 232
W
Senior Member
Offline
Senior Member
W
Joined: Sep 2000
Posts: 232
I just compiled mame from the GitHub source yesterday without a problem. I'm running 10.15.1 and SDL 2.0.10

Have you installed the latest Xcode? Tell us which macOS version you're running and what kind of Mac you have.


=will=
CRP #116417 11/12/19 09:00 PM
Joined: Dec 2005
Posts: 108
CRP Offline OP
Senior Member
OP Offline
Senior Member
Joined: Dec 2005
Posts: 108
macos ver 10.15.1

Mac Mini 2018
3 GHz 6-Core Intel Core i5

I am using Command Line Tools

clang -v
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin


Last edited by CRP; 11/12/19 09:01 PM.
CRP #116418 11/12/19 09:07 PM
Joined: Sep 2000
Posts: 232
W
Senior Member
Offline
Senior Member
W
Joined: Sep 2000
Posts: 232
I have a slightly newer clang (?) - don't know if installing latest Xcode would help.

clang -v
Apple clang version 11.0.0 (clang-1100.0.33.12)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin


=will=
CRP #116419 11/12/19 09:13 PM
Joined: Mar 2001
Posts: 16,752
Likes: 29
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,752
Likes: 29
Is MAME running when you're trying to compile? That's usually what "Resource busy" means. I build at least once a day on my MacBook Pro and haven't had any problems.

Joined: Dec 2005
Posts: 108
CRP Offline OP
Senior Member
OP Offline
Senior Member
Joined: Dec 2005
Posts: 108
no, mame is not running. I am really at a loss about these errors...

CRP #116429 11/14/19 07:32 PM
Joined: Dec 2005
Posts: 108
CRP Offline OP
Senior Member
OP Offline
Senior Member
Joined: Dec 2005
Posts: 108
I was compiling with the source files on my NAS. If I compile with files on the local HD everything works fine. Not sure what the NAS is doing, but it generates those Resource Busy messages...

CRP #116430 11/14/19 08:39 PM
Joined: Mar 2004
Posts: 665
Senior Member
Offline
Senior Member
Joined: Mar 2004
Posts: 665
Probably the latency introduced by the NAS is causing race conditions.

CRP #116431 11/14/19 09:03 PM
Joined: Oct 2019
Posts: 21
R
Member
Offline
Member
R
Joined: Oct 2019
Posts: 21
Agreed. You can try adjusting your parallel build level to see if you can accomplish a build from NAS. Of course -j1 should avoid race conditions, but will be very, very slow...

CRP #116432 11/14/19 09:23 PM
Joined: Mar 2001
Posts: 16,752
Likes: 29
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,752
Likes: 29
Is the NAS mounted via NFS or SMB? In my experience, NFS on macOS got flakey somewhere around 10.9 or 10.10 and hasn't improved since. I switched my MacBook to use SMB mounts instead of NFS and it's been totally stable (and gotten faster transfers).

Page 1 of 2 1 2

Moderated by  R. Belmont 

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