Previous Thread
Next Thread
Print Thread
Joined: Oct 2019
Posts: 21
R
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

Joined: Mar 2001
Posts: 16,680
Likes: 4
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,680
Likes: 4
Add a REGENIE=1 to that command line and see if it helps.

Joined: Apr 2006
Posts: 725
Senior Member
Offline
Senior Member
Joined: Apr 2006
Posts: 725
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.




Joined: Feb 2004
Posts: 2,217
Likes: 5
Very Senior Member
Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,217
Likes: 5
Yeah, your command can't possibly work. SOURCES= needs to specify at least one source file with a runnable machine listed in mame.lst.

Joined: Oct 2019
Posts: 21
R
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 

Link Copied to Clipboard
Who's Online Now
0 members (), 32 guests, and 1 robot.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,882
Posts116,798
Members4,962
Most Online890
Jan 17th, 2020
Forum Host
These forums are hosted by www.retrogamesformac.com
Forum hosted by www.retrogamesformac.com