Previous Thread
Next Thread
Print Thread
#13760 01/02/06 03:46 AM
Joined: Sep 2000
Posts: 234
W
will Offline OP
Senior Member
OP Offline
Senior Member
W
Joined: Sep 2000
Posts: 234
I'm trying to compile MacMAME 103 with XCode 2.2 but I'm getting a build error. The target SDK is 10.3.9 and I'm building the "release" version.

I see what looks like some syntax errors with the -L flag (-Lmacintosh) but I can't find any matches in the source code. Anybody know how to fix this?

mkdir "/Users/will/Documents/MacMAME User Data/source2/build/Release/MacMAME.app/Contents/MacOS"
cd "/Users/will/Documents/MacMAME User Data/source2"
/usr/bin/g++-4.0 -o /Users/will/Documents/MacMAME\ User\ Data/source2/build/Release/MacMAME.app/Contents/MacOS/MacMAME -L/Users/will/Documents/MacMAME\ User\ Data/source2/build/Release -Lmacintosh/lib/Release -Lmacintosh/Source -Lmacintosh/Source/HID\ Utilities -F/Users/will/Documents/MacMAME\ User\ Data/source2/build/Release -filelist /Users/will/Documents/MacMAME\ User\ Data/source2/build/MacMAME.build/Release/MacMAME.build/Objects-normal/ppc/MacMAME.LinkFileList -lz.1 -framework Carbon -framework QuickTime -framework OpenGL -framework AGL -framework IOKit -lmachine_macho -lmacblitters -ldrivers_macho -lvidhrdw_macho -lHIDUtilities -lWASTE -lsndhrdw_macho -arch ppc -multiply_defined suppress -Wl,-s -mmacosx-version-min=10.3 -Wl,-dead_strip -isysroot /Developer/SDKs/MacOSX10.3.9.sdk
/usr/bin/ld: Undefined symbols:
_printf$LDBLStub
_vsprintf$LDBLStub
_sprintf$LDBLStub
_fprintf$LDBLStub
collect2: ld returned 1 exit status
/usr/bin/ld: Undefined symbols:
_printf$LDBLStub
_vsprintf$LDBLStub
_sprintf$LDBLStub
_fprintf$LDBLStub
collect2: ld returned 1 exit status


=will=
#13761 01/04/06 09:27 AM
Joined: Sep 2000
Posts: 234
W
will Offline OP
Senior Member
OP Offline
Senior Member
W
Joined: Sep 2000
Posts: 234
Well I've tried 3 different computers now and I can't get XCode 2.2 to compile either the 102u5 or the 103 source code for MacMAME.

So is it a bug in the project file or default settings in the compiler? Any help? confused


=will=
#13762 01/04/06 11:08 AM
Joined: Oct 2000
Posts: 60
Senior Member
Offline
Senior Member
Joined: Oct 2000
Posts: 60
Must be a new issue with Xcode 2.2.... i just compiled MacMAME a few minutes ago -- .103 source using Xcode 2.1 -- without any major issues and without making any changes to the source. (194 warnings though)


Magneto phone!? This is not a magneto phone!!
#13763 01/04/06 11:16 AM
Joined: Mar 2001
Posts: 16,928
Likes: 62
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,928
Likes: 62
0.103 compiled for me out-of-the-box on Xcode 2.2 (dual G5, latest Tiger). *shrug*.

#13764 01/04/06 10:04 PM
Joined: May 1999
Posts: 586
Likes: 1
Senior Member
Offline
Senior Member
Joined: May 1999
Posts: 586
Likes: 1
Normally, I only compile the CodeWarrior version.

I just tried the xcode projects: the debug version compiled out-of-the-box for me, too, but the non-debug version has a problem at linking time:

Code:
    cd /Applications/Emulation/MacMAME/Source
    /usr/bin/g++-4.0 -o /Applications/Emulation/MacMAME/Source/build/Release/MacMAME.app/Contents/MacOS/
MacMAME -L/Applications/Emulation/MacMAME/Source/build/Release -Lmacintosh/lib/Release -Lmacintosh/Source -Lmacintosh/Source/HID\ Utilities -F/Applications/Emulation/
MacMAME/Source/build/Release -filelist /Applications/Emulation/MacMAME/Source/build/MacMAME.build/Release/MacMAME.build/Objects-normal/ppc/MacMAME.LinkFileList -lz.1
 -framework Carbon -framework QuickTime -framework OpenGL -framework AGL -framework IOKit -lmachine_macho -lmacblitters -ldrivers_macho -lvidhrdw_macho -lHIDUtilities -
lWASTE -lsndhrdw_macho -arch ppc -multiply_defined suppress -Wl,-s -mmacosx-version-min=10.2 -Wl,-dead_strip
/usr/bin/ld: internal error: assign_output_symbol_indexes() 
inconsistent local symbol counts
collect2: ld returned 1 exit status
	/usr/bin/ld: internal error: assign_output_symbol_indexes() inconsistent local symbol counts
	collect2: ld returned 1 exit status
"Inconsistent local symbol counts"

Does somebody know what that means?

BTW, I'm building against the 10.4 SDK.

#13765 01/05/06 01:57 AM
Joined: Apr 2001
Posts: 45
S
Member
Offline
Member
S
Joined: Apr 2001
Posts: 45
I almost hate to say it but it compiles for me too under xcode 2.1. (194 warnings only)

#13766 01/05/06 09:38 AM
Joined: Sep 2000
Posts: 234
W
will Offline OP
Senior Member
OP Offline
Senior Member
W
Joined: Sep 2000
Posts: 234
I managed to get the debug build of 103 to compile only after switching to the 10.4(uni) SDK. The release build still won't compile, weird.


=will=
#13767 01/05/06 01:47 PM
Joined: May 1999
Posts: 586
Likes: 1
Senior Member
Offline
Senior Member
Joined: May 1999
Posts: 586
Likes: 1
Are you getting the same error as me, will?

#13768 01/05/06 09:10 PM
Joined: Sep 2000
Posts: 234
W
will Offline OP
Senior Member
OP Offline
Senior Member
W
Joined: Sep 2000
Posts: 234
Quote:
Originally posted by Carbon:
Are you getting the same error as me, will?
yes I get the same error when building with the 10.4 SDK. If I switch to the 10.3.9 SDK I get the error originally mentioned above.


=will=

Link Copied to Clipboard
Who's Online Now
1 members (robcfg), 20 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
Topics9,112
Posts119,407
Members5,024
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com