Previous Thread
Next Thread
Print Thread
Mac linker failures in single-driver build #116423 11/14/19 12:17 AM
Joined: Oct 2019
Posts: 21
R
Robert Hildinger Offline OP
Member
OP Offline
Member
R
Joined: Oct 2019
Posts: 21
For some reason I've suddenly started having linker issues when building a clean single-driver MAME:

Code
> make -j8 SUBTARGET=mame_galaga_ SOURCES=src/mame/video/galaga.cpp
.
.
.
Compiling generated/version.cpp...
Building driver list...
Emitting mame_galaga_-Info.plist...
0 source file(s) found
36363 driver(s) found
Compiling generated/mame/mame_galaga_/drivlist.cpp...
Linking mame_galaga_64...
Undefined symbols for architecture x86_64:
  "_driver_005", referenced from:
      driver_list::s_drivers_sorted in drivlist.o
  "_driver_100lions", referenced from:
      driver_list::s_drivers_sorted in drivlist.o
  "_driver_10yard", referenced from:
      driver_list::s_drivers_sorted in drivlist.o
  "_driver_10yard85", referenced from:
      driver_list::s_drivers_sorted in drivlist.o
  "_driver_10yardj", referenced from:
      driver_list::s_drivers_sorted in drivlist.o
  "_driver_11beat", referenced from:
      driver_list::s_drivers_sorted in drivlist.o
.
.
.

And it will keep on spitting out that undefined symbol list for several minutes...

I'm 99% certain that I was able to compile MAME when I first installed Catalina. Any ideas why this might be occurring?

My mac: MacBook Pro running Catalina 10.15.1

> 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

installed SDL version is 2.0.10

Thanks!
-Robert

Re: Mac linker failures in single-driver build [Re: Robert Hildinger] #116424 11/14/19 12:51 AM
Joined: Mar 2001
Posts: 16,419
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,419
Add a REGENIE=1 to that command line and see if it helps.

Re: Mac linker failures in single-driver build [Re: R. Belmont] #116425 11/14/19 02:24 AM
Joined: Apr 2006
Posts: 715
Tafoid Offline
Senior Member
Offline
Senior Member
Joined: Apr 2006
Posts: 715
I also see you are trying to build a source file which has NO machine defines at all. I don't believe that works. You shouldn't need to build video/audio/machine folders into your SOURCES unless they are not properly defined in script .LUA files.




Re: Mac linker failures in single-driver build [Re: Robert Hildinger] #116426 11/14/19 02:42 AM
Joined: Feb 2004
Posts: 2,111
Vas Crabb Offline
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,111
Yeah, your command can't possibly work. SOURCES= needs to specify at least one source file with a runnable machine listed in mame.lst.

Re: Mac linker failures in single-driver build [Re: Robert Hildinger] #116428 11/14/19 05:33 PM
Joined: Oct 2019
Posts: 21
R
Robert Hildinger Offline OP
Member
OP Offline
Member
R
Joined: Oct 2019
Posts: 21
Christ, I'm getting old... The moment I saw the replies I realized I was putting in the wrong source file in the SOURCES env variable. Once again, sorry for spamming the forum with an obvious user error...


Moderated by  R. Belmont 

Who's Online Now
1 registered members (Praxis), 138 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,734
Posts114,823
Members4,877
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3