Previous Thread
Next Thread
Print Thread
Page 2 of 2 1 2
#110261 - 07/12/17 10:26 AM Re: sdlmame build fail on mac g5 ppc [Re: dan81]  
Joined: Jun 2017
Posts: 9
dan81 Offline
Member
dan81  Offline
Member

Joined: Jun 2017
Posts: 9
i can't find 10.5 Intel system files listed in https://trac.macports.org/ticket/53184

So i have tried to virtualize on virtualbox (intel pc w10 ) leopard. i'd like to build universal (x86/ppc32) app ; but virtual machine doesn't start frown
i have tried to follow this guide http://www.sysprobs.com/install-mac-os-1055-leopard-virtualbox-314-installation-dvd , but i have use the last vbox frown
any idea?

#110825 - 09/23/17 03:23 PM Re: sdlmame build fail on mac g5 ppc [Re: dan81]  
Joined: Jan 2007
Posts: 173
MacBox360 Offline
Senior Member
MacBox360  Offline
Senior Member

Joined: Jan 2007
Posts: 173
With the release of GCC 7.2 for OSX PPC things are going a bit better than before, using this Makefile configuration:
Code
NOWERROR = 1
OVERRIDE_CC = /opt/local/bin/gcc-mp-7
OVERRIDE_CXX = /opt/local/bin/g++-mp-7
PYTHON_EXECUTABLE = python2


The compile of MAME version 0.189 goes to a very good point but stucks on the following three parts:
Code
Compiling 3rdparty/bx/src/crtnone.cpp...
../../../../../3rdparty/bx/src/crtnone.cpp: In function 'void* strcpy(char*, const char*)':
../../../../../3rdparty/bx/src/crtnone.cpp:50:18: warning: declaration of 'void* strcpy(char*, const char*)' conflicts with built-in declaration 'char* strcpy(char*, const char*)' [-Wbuiltin-declaration-mismatch]
 extern "C" void* strcpy(char* _dst, const char* _src)
                  ^~~~~~
../../../../../3rdparty/bx/src/crtnone.cpp: In function 'void* strncpy(char*, const char*, size_t)':
../../../../../3rdparty/bx/src/crtnone.cpp:56:18: warning: declaration of 'void* strncpy(char*, const char*, size_t)' conflicts with built-in declaration 'char* strncpy(char*, const char*, long unsigned int)' [-Wbuiltin-declaration-mismatch]
 extern "C" void* strncpy(char* _dst, const char* _src, size_t _num)
                  ^~~~~~~
../../../../../3rdparty/bx/src/crtnone.cpp: In function 'const char* strchr(const char*, int)':
../../../../../3rdparty/bx/src/crtnone.cpp:68:24: warning: declaration of 'const char* strchr(const char*, int)' conflicts with built-in declaration 'char* strchr(const char*, int)' [-Wbuiltin-declaration-mismatch]
 extern "C" const char* strchr(const char* _str, int _ch)
                        ^~~~~~
../../../../../3rdparty/bx/src/crtnone.cpp: In function 'const char* strstr(const char*, const char*)':
../../../../../3rdparty/bx/src/crtnone.cpp:83:24: warning: declaration of 'const char* strstr(const char*, const char*)' conflicts with built-in declaration 'char* strstr(const char*, const char*)' [-Wbuiltin-declaration-mismatch]
 extern "C" const char* strstr(const char* _str, const char* _find)
                        ^~~~~~
../../../../../3rdparty/bx/src/crtnone.cpp: In function 'int isprint(int)':
../../../../../3rdparty/bx/src/crtnone.cpp:94:16: error: redefinition of 'int isprint(int)'
 extern "C" int isprint(int _ch)
                ^~~~~~~
In file included from /usr/include/_wctype.h:63:0,
                 from /usr/include/wchar.h:114,
                 from ../../../../../3rdparty/bx/include/bx/string.h:11,
                 from ../../../../../3rdparty/bx/include/bx/error.h:9,
                 from ../../../../../3rdparty/bx/include/bx/readerwriter.h:10,
                 from ../../../../../3rdparty/bx/src/crtnone.cpp:8:
/usr/include/ctype.h:272:1: note: 'int isprint(int)' previously defined here
 isprint(int _c)
 ^~~~~~~
../../../../../3rdparty/bx/src/crtnone.cpp: In function 'int toupper(int)':
../../../../../3rdparty/bx/src/crtnone.cpp:99:16: error: redefinition of 'int toupper(int)'
 extern "C" int toupper (int _ch)
                ^~~~~~~
In file included from /usr/include/_wctype.h:63:0,
                 from /usr/include/wchar.h:114,
                 from ../../../../../3rdparty/bx/include/bx/string.h:11,
                 from ../../../../../3rdparty/bx/include/bx/error.h:9,
                 from ../../../../../3rdparty/bx/include/bx/readerwriter.h:10,
                 from ../../../../../3rdparty/bx/src/crtnone.cpp:8:
/usr/include/ctype.h:315:1: note: 'int toupper(int)' previously defined here
 toupper(int _c)
 ^~~~~~~
../../../../../3rdparty/bx/src/crtnone.cpp: In function 'float powf(float)':
../../../../../3rdparty/bx/src/crtnone.cpp:161:18: warning: declaration of 'float powf(float)' conflicts with built-in declaration 'float powf(float, float)' [-Wbuiltin-declaration-mismatch]
 extern "C" float powf(float _x)
                  ^~~~
../../../../../3rdparty/bx/src/crtnone.cpp:167:19: warning: declaration of 'double pow(double)' conflicts with built-in declaration 'double pow(double, double)' [-Wbuiltin-declaration-mismatch]
 extern "C" double pow(double _x)
                   ^~~
make[2]: *** [../../../../osx_clang/obj/x32/Release/3rdparty/bx/src/crtnone.o] Error 1
make[1]: *** [bx] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [macosx_x86] Error 2


Code
Compiling src/osd/modules/font/font_osx.cpp...
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32:0,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:20,
                 from ../../../../../src/osd/modules/font/font_osx.cpp:16:
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:115:4: error: 'vector' does not name a type; did you mean '__vector'?
    vector unsigned int         v;
    ^~~~~~
    __vector
make[2]: *** [../../../../osx_clang/obj/x32/Release/osd_sdl/src/osd/modules/font/font_osx.o] Error 1
make[1]: *** [osd_sdl] Error 2
make: *** [macosx_x86] Error 2


Code
Compiling src/osd/modules/lib/osdlib_macosx.cpp...
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32:0,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                 from ../../../../../src/osd/modules/lib/osdlib_macosx.cpp:25:
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:115:4: error: 'vector' does not name a type; did you mean '__vector'?
    vector unsigned int         v;
    ^~~~~~
    __vector
make[2]: *** [../../../../osx_clang/obj/x32/Release/ocore_sdl/src/osd/modules/lib/osdlib_macosx.o] Error 1
make[1]: *** [ocore_sdl] Error 2
make[1]: *** Waiting for unfinished jobs....



Do you have any suggestions on how to fix the errors above?

#111279 - 11/15/17 08:30 PM Re: sdlmame build fail on mac g5 ppc [Re: dan81]  
Joined: Jan 2007
Posts: 173
MacBox360 Offline
Senior Member
MacBox360  Offline
Senior Member

Joined: Jan 2007
Posts: 173
Well, thanks to the help of Mr. Karadzic the "crtnone.cpp" issue is solved" but the other compiler errors are still here (SDLmame version 0.191) so the build stucks on the following parts:

src/osd/modules/lib/osdlib_macosx.cpp
src/osd/modules/font/font_osx.cpp
src/osd/modules/sound/coreaudio_sound.cpp
src/osd/sdl/sdlmain.cpp

all of them exits with the same error list:
Code
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32:0,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:20,
[...]

/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:115:4: error: 'vector' does not name a type; did you mean 'vec_or'?
    vector unsigned int         v;
    ^~~~~~
    vec_or



looks like a single fix can rule them all but I don't know how to: anyone can help here? I am using GCC 7.2 on OSX 10.5.8 and SDL 2.0.3
Thanks in advance...

Page 2 of 2 1 2

Moderated by  R. Belmont 

Who's Online Now
1 registered members (Reznor007), 13 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,436
Posts109,400
Members4,766
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.025s Queries: 16 (0.009s) Memory: 4.9543 MB (Peak: 5.1251 MB) Zlib enabled. Server Time: 2017-11-22 03:30:20 UTC