Previous Thread
Next Thread
Print Thread
Page 1 of 3 1 2 3
Compile fails for MAME 0.202 on macOS 10.14 Mojave #113972
09/26/18 07:03 PM
09/26/18 07:03 PM
Joined: May 1999
Posts: 550
Luxembourg
Carbon Offline OP
Senior Member
Carbon  Offline OP
Senior Member
Joined: May 1999
Posts: 550
Luxembourg
I'm trying to build the new release for the first time on Mojave. It fails with the following error:

Code
ld: library not found for -lgcc_s.10.4
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [../../bin/darwin/genie] Error 1
make: *** [3rdparty/genie/bin/darwin/genie] Error 2
make: *** Waiting for unfinished jobs....

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113973
09/26/18 07:13 PM
09/26/18 07:13 PM
Joined: Feb 2004
Posts: 2,037
Sydney, Australia
Vas Crabb Online content
Very Senior Member
Vas Crabb  Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,037
Sydney, Australia
That looks like you're missing a static glue library. Have you successfully built anything else on this OS?

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113974
09/26/18 07:31 PM
09/26/18 07:31 PM
Joined: May 1999
Posts: 550
Luxembourg
Carbon Offline OP
Senior Member
Carbon  Offline OP
Senior Member
Joined: May 1999
Posts: 550
Luxembourg
I just build iTerm2. Apart from some warnings, it builds and runs fine.

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113975
09/26/18 07:34 PM
09/26/18 07:34 PM
Joined: Mar 2001
Posts: 16,135
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,135
USA
AFAIK libgcc being involved means you aren't using Xcode's compile tools, it's Brew or MacPorts.

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113976
09/26/18 07:35 PM
09/26/18 07:35 PM
Joined: May 1999
Posts: 550
Luxembourg
Carbon Offline OP
Senior Member
Carbon  Offline OP
Senior Member
Joined: May 1999
Posts: 550
Luxembourg
I never installed Brew, nor MacPorts on this Mac!

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113977
09/26/18 07:43 PM
09/26/18 07:43 PM
Joined: Mar 2001
Posts: 16,135
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,135
USA
I don't know then. It builds OK for me on Xcode 10 on fully updated High Sierra, I'll install Mojave and see if that changes anything. It's possible our building with back compatibility to Snow Leopard is now biting us in terms of things moving from deprecated to non-existent.

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113978
09/26/18 07:44 PM
09/26/18 07:44 PM
Joined: May 1999
Posts: 550
Luxembourg
Carbon Offline OP
Senior Member
Carbon  Offline OP
Senior Member
Joined: May 1999
Posts: 550
Luxembourg
Yeah, I had Xcode 10 beta under High Sierra. No problems there either last month.

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113980
09/26/18 09:05 PM
09/26/18 09:05 PM
Joined: Dec 2013
Posts: 122
X
xinyingho Offline
Senior Member
xinyingho  Offline
Senior Member
X
Joined: Dec 2013
Posts: 122
I confirm the issue on my side. I have a Mac Mini on Mojave and XCode 10 and, when compiling MAME, I get the exact same error at the beginning of the compilation process, right after it finishes to convert translation files.

Updating to Mojave right away wasn't a good idea...

Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: Carbon] #113981
09/26/18 10:52 PM
09/26/18 10:52 PM
Joined: Sep 2000
Posts: 445
Madison, WI, USA
M
MAMEBase Offline
Senior Member
MAMEBase  Offline
Senior Member
M
Joined: Sep 2000
Posts: 445
Madison, WI, USA
I'm still running High Sierra (10.13.6), with XCode 10 installed, and am getting the same error -

Code
Last login: Wed Sep 26 17:34:09 on ttys000
Dave-Westons-iMac:~ dave$ cd /Users/dave/Documents/MAME_Source_and_Updates/mame 
Dave-Westons-iMac:mame dave$ make -j5
Clang 10.0.0 detected
Creating obj/Release
Converting translation language/Afrikaans/strings.po...
Creating obj/Release/src/host
Converting translation language/Albanian/strings.po...
Creating obj/Release/src/host/lua-5.3.0/src
Creating ../../bin/darwin
Converting translation language/Arabic/strings.po...
Converting translation language/Basque/strings.po...
lapi.c
Converting translation language/Belarusian/strings.po...
lauxlib.c
lbaselib.c
Converting translation language/Bosnian/strings.po...
lbitlib.c
Converting translation language/Bulgarian/strings.po...
Converting translation language/Burmese/strings.po...
lcode.c
lcorolib.c
Converting translation language/Catalan/strings.po...
lctype.c
ldblib.c
Converting translation language/Chinese_Simplified/strings.po...
ldebug.c
ldo.c
ldump.c
lfunc.c
Converting translation language/Chinese_Traditional/strings.po...
lgc.c
linit.c
liolib.c
Converting translation language/Croatian/strings.po...
llex.c
lmathlib.c
Converting translation language/Czech/strings.po...
lmem.c
loadlib.c
lobject.c
lopcodes.c
loslib.c
lparser.c
Converting translation language/Danish/strings.po...
lstate.c
Converting translation language/Dutch/strings.po...
lstring.c
Converting translation language/English/strings.po...
Converting translation language/Estonian/strings.po...
lstrlib.c
Converting translation language/Finnish/strings.po...
ltable.c
Converting translation language/French/strings.po...
ltablib.c
Converting translation language/French_Belgium/strings.po...
Converting translation language/French_Canada/strings.po...
ltm.c
Converting translation language/Georgian/strings.po...
Converting translation language/German/strings.po...
Converting translation language/Greek/strings.po...
lundump.c
lutf8lib.c
lvm.c
Converting translation language/Hebrew/strings.po...
lzio.c
os_chdir.c
Converting translation language/Hindi/strings.po...
os_copyfile.c
Converting translation language/Hungarian/strings.po...
os_getcwd.c
os_is64bit.c
Converting translation language/Indonesian/strings.po...
os_isdir.c
os_isfile.c
os_match.c
os_mkdir.c
os_pathsearch.c
Converting translation language/Italian/strings.po...
Converting translation language/Japanese/strings.po...
Converting translation language/Korean/strings.po...
os_rmdir.c
Converting translation language/Latvian/strings.po...
os_stat.c
Converting translation language/Lithuanian/strings.po...
Converting translation language/Macedonian/strings.po...
os_ticks.c
os_uuid.c
Converting translation language/Norwegian/strings.po...
Converting translation language/Persian/strings.po...
path_getabsolute.c
path_getrelative.c
Converting translation language/Polish/strings.po...
Converting translation language/Portuguese/strings.po...
path_helpers.c
path_isabsolute.c
Converting translation language/Portuguese_Brazil/strings.po...
Converting translation language/Romanian/strings.po...
premake.c
premake_main.c
scripts.c
Converting translation language/Russian/strings.po...
string_endswith.c
string_hash.c
Converting translation language/Serbian/strings.po...
Converting translation language/Serbian_Cyrillic/strings.po...
Converting translation language/Slovak/strings.po...
Converting translation language/Slovenian/strings.po...
Converting translation language/Spanish/strings.po...
Linking genie
Converting translation language/Spanish_Mexico/strings.po...
Converting translation language/Swedish/strings.po...
Converting translation language/Thai/strings.po...
ld: library not found for -lgcc_s.10.4
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [../../bin/darwin/genie] Error 1
make: *** [3rdparty/genie/bin/darwin/genie] Error 2
make: *** Waiting for unfinished jobs....
Dave-Westons-iMac:mame dave$ 


I also made sure to run the XCode application, and allowed it to install additional components, and ran the build process again, with the same results.

FWIW, xCode is Version 10.0 (10A255)

Last edited by MAMEBase; 09/26/18 11:00 PM. Reason: Additional Info

The following statement is true...
The preceding statement is false.
Re: Compile fails for MAME 0.202 on macOS 10.14 Mojave [Re: MAMEBase] #113982
09/27/18 01:52 AM
09/27/18 01:52 AM
Joined: Sep 2000
Posts: 445
Madison, WI, USA
M
MAMEBase Offline
Senior Member
MAMEBase  Offline
Senior Member
M
Joined: Sep 2000
Posts: 445
Madison, WI, USA
Well, this may be significant -

I just tried compiling 0.201, and got the same error as when trying to compile 0.202.

The only thing that has changed recently was updating to xCode 10.0 (0.201 compiled successfully last month, prior to updating xCode).

Just curious - What is the procedure for compiling MAME directly via xCode (or is this advisable?)

Last edited by MAMEBase; 09/27/18 02:00 AM. Reason: Additional question

The following statement is true...
The preceding statement is false.
Page 1 of 3 1 2 3

Who's Online Now
2 registered members (robcfg, Vas Crabb), 159 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,635
Posts112,994
Members4,842
Most Online324
Dec 20th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.025s Queries: 15 (0.008s) Memory: 5.7235 MB (Peak: 5.9475 MB) Zlib enabled. Server Time: 2019-03-24 15:29:43 UTC