Page 1 of 3 1 2 3 >
Topic Options
#78654 - 04/22/12 04:59 PM 0.145u7 does NOT compile on PowerPC OS X
R. Belmont Online   content
Very Senior Member

Registered: 03/17/01
Posts: 13211
Loc: USA
I am trying to fix it, but the core may be too far into advanced C++ features for the old GCC 4.0.1 compiler to handle.

OS X Intel is fine.

Top
#78697 - 04/24/12 02:06 AM Re: 0.145u7 does NOT compile on PowerPC OS X [Re: R. Belmont]
MacBox360 Offline
Member

Registered: 01/20/07
Posts: 56
I confirm that. This time the bad beasts seems to be nycaptor.c and rendersw.c
With NOWERR=1 option I am been able to skip the "nycaptor.c" error but went stuck at "rendersw.c" part.
I cross my fingers hoping the bugs will be ironed out... :-)

Top
#78698 - 04/24/12 03:41 AM Re: 0.145u7 does NOT compile on PowerPC OS X [Re: R. Belmont]
R. Belmont Online   content
Very Senior Member

Registered: 03/17/01
Posts: 13211
Loc: USA
Yeah, nycaptor's already fixed. rendersw looks much harder frown

Top
#78738 - 04/29/12 11:42 PM Re: 0.145u7 does NOT compile on PowerPC OS X [Re: R. Belmont]
R. Belmont Online   content
Very Senior Member

Registered: 03/17/01
Posts: 13211
Loc: USA
Good news, I found the problem and u8 will again compile on PPC OS X, with the usual tms57002 workaround required.

Top
#78741 - 04/30/12 07:44 PM Re: 0.145u7 does NOT compile on PowerPC OS X [Re: R. Belmont]
MacBox360 Offline
Member

Registered: 01/20/07
Posts: 56
GREAT news! :-) Compliments, really... uhm... am I the only MAME-addicted PPC Mac user left? I hope the other users will take a moment for dropping a line here and say a big THANK YOU to this man for his efforts in supporting our little community! ;-)

Top
#78789 - 05/04/12 01:55 AM Re: 0.145u7 does NOT compile on PowerPC OS X [Re: R. Belmont]
billb Offline
Senior Member

Registered: 06/22/07
Posts: 223
Haven't tried building on PS3 Linux lately (also PPC) but may give it a shot this weekend. Thanks RB! smile

Top
#78790 - 05/04/12 03:12 AM Re: 0.145u7 does NOT compile on PowerPC OS X [Re: R. Belmont]
R. Belmont Online   content
Very Senior Member

Registered: 03/17/01
Posts: 13211
Loc: USA
I'm trying to hack something in for u7 so it automatically compiles tms57002 -O0 on non-x86/x64, but it looks like GCC didn't support #pragma optimize until 4.4 which makes that a lot harder.

Top
#78821 - 05/06/12 06:46 PM Re: 0.145u7 does NOT compile on PowerPC OS X [Re: R. Belmont]
couriersud Offline
Senior Member

Registered: 02/19/07
Posts: 415
The following should do the job (sdl.mak)
Code:
ifeq ($(TARGETOS),macosx)
ifdef BIGENDIAN
$(OBJ)/emu/cpu/tms57002/tms57002.o : CCOMFLAGS += -O0
endif
endif

Top
#78864 - 05/08/12 12:37 AM Re: 0.145u7 does NOT compile on PowerPC OS X [Re: R. Belmont]
MacBox360 Offline
Member

Registered: 01/20/07
Posts: 56
u8 builds OK on Mac PPC but only with option NOWERROR=1 because of this warning during compile:

src/emu/ioport.c: In member function ‘void natural_keyboard::build_codes(ioport_manager&)’:
src/emu/ioport.c:1237: warning: ‘newcode$field$1’ may be used uninitialized in this function

And, of course, the option OPTIMIZE=0 when the TMS57002 part is reached.

Top
#78865 - 05/08/12 01:04 AM Re: 0.145u7 does NOT compile on PowerPC OS X [Re: R. Belmont]
R. Belmont Online   content
Very Senior Member

Registered: 03/17/01
Posts: 13211
Loc: USA
Whoops. I somehow completely missed "vetting" Aaron's input changes. I'll get that fixed and try out couriersud's tms57002 thing for next time.

Top
Page 1 of 3 1 2 3 >


Moderator:  R. Belmont 
Who's Online
4 registered (any, Dullaron, Stiletto, Shoegazer), 17 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Shout Box

Forum Stats
4350 Members
9 Forums
7245 Topics
87591 Posts

Max Online: 183 @ 03/06/12 06:21 PM