libretro / libretro-super

Super repo for other libretro projects. Fetches, builds and installs.
MIT License
400 stars 279 forks source link

Unable to build Cores in XCode 5.1 (iOS Cores) #46

Closed thededman closed 10 years ago

thededman commented 10 years ago

Since I have updated to the Xcode 5.1 unable to compile the iOS cores. I did update script the libretro-build-io.sh build to iPhoneOS7.1.sdk. Stupid as this may be but if I bring in the SDK 7.0 in the new Xcode it should build? Not sure? I will try in a few, need to restore my Virtual machine snapshot prior xcode update to grab the SDK7.0.

Also reference #52

NEWEST Error after changing the SDKs/iPhoneOS7.1

clang++ -std=c++11 -stdlib=libc++ -miphoneos-version-min=6.0 -std=gnu++0x -I. -O3 -fomit-frame-pointer -DPROFILE_PERFORMANCE -arch armv7 -marm -fPIC -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/ -DHAVE_POSIXMEMALIGN=1 -w -DLIBRETRO -c target-libretro/libretro.cpp -o obj/libretro.o target-libretro/libretro.cpp:588:18: error: assigning to 'char ' from incompatible type 'char' win_slash = '\0'; ^ ~~~~ target-libretro/libretro.cpp:622:18: error: assigning to 'char ' from incompatible type 'char' win_slash = '\0'; ^ ~~~~ 2 errors generated. make: _* [obj/libretro.o] Error 1 make: *\ Waiting for unfinished jobs.... Failed to build bSNES performance core

URBANsUNITED commented 10 years ago

yeah, same here...

target-libretro/libretro.cpp:588:18: error: assigning to 'char _' from incompatible type 'char' win_slash = '\0'; ^ ~~~~ target-libretro/libretro.cpp:622:18: error: assigning to 'char ' from incompatible type 'char' win_slash = '\0'; ^ ~~~~ 2 errors generated. make: _* [obj/libretro.o] Error 1 make: *\ Waiting for unfinished jobs.... Failed to build bSNES performance core cp: out/bsnes_libretro_ios.dylib: No such file or directory

thededman commented 10 years ago

I was able to build the cores, but they did not work. Each core crashed upon opening. :-(

Sent from my iPhone. Please excuse typos

On Mar 30, 2014, at 1:06 PM, "URBANsUNITED" notifications@github.com wrote:

yeah, same here...

target-libretro/libretro.cpp:588:18: error: assigning to 'char ' from incompatible type 'char' win_slash = '\0'; ^ ~~~~ target-libretro/libretro.cpp:622:18: error: assigning to 'char ' from incompatible type 'char' win_slash = '\0'; ^ ~~~~ 2 errors generated. make: * [obj/libretro.o] Error 1 make: *\ Waiting for unfinished jobs.... Failed to build bSNES performance core cp: out/bsnes_libretro_ios.dylib: No such file or directory

— Reply to this email directly or view it on GitHub.

URBANsUNITED commented 10 years ago

Still not working! No building possible.

Neither Xcode 5.02 nor 5.1.1

thededman commented 10 years ago

@URBANsUNITED this is the major part of this program, and the iOS users are getting no answers? I went back a far as Feb 2014 to get a working core set to build, but buggy as hell with current retroarch? Should not be for they are only cores?

URBANsUNITED commented 10 years ago

Yep! Maybe only focus on their own cydia releases??? Don't know :( A shame they don't bug free the code for such a great piece of software ;(

We'll have to wait...

Themaister commented 10 years ago

What is actually the problem now? This issue is kinda old.

thededman commented 10 years ago

@Themaister this has been an issue for 2 months now and has been ignored. This is not working in Xcode 5, or older. Right @URBANsUNITED you get the same there?

Davids-Mac:libretro-super-master david$ ./libretro-build-ios.sh iOS 7.1 SDK detected Compiler: ios ios === Building bSNES C++98 === clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/libretro/libretro.cpp -o obj/libretro.o clang -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c libco/libco.c -o obj/libco.o clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/interface/interface.cpp -o obj/snes-interface.o clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/system/system.cpp -o obj/snes-system.o clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/controller/controller.cpp -o obj/snes-controller.o clang: clangwarning: no such sysroot directory: '-miphoneos-version-min=5.0' : clang: clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' warning: no such sysroot directory: '-miphoneos-version-min=5.0' warning: no such sysroot directory: '-miphoneos-version-min=5.0' clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/cartridge/cartridge.cpp -o obj/snes-cartridge.o clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/cheat/cheat.cpp -o obj/snes-cheat.o clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' In file included from libco/libco.c:14: libco/armeabi.c:9:10: fatal error: 'assert.h' file not found

include

     ^

In file included from snes/interface/interface.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

In file included from snes/libretro/libretro.cpp:2: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

In file included from snes/controller/controller.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

In file included from snes/system/system.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

1 error generated. make: * [obj/libco.o] Error 1 make: * Waiting for unfinished jobs.... In file included from snes/cartridge/cartridge.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' In file included from snes/cheat/cheat.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

1 error generated. make: * [obj/snes-interface.o] Error 1 1 error generated. make: * [obj/libretro.o] Error 1 1 error generated. make: * [obj/snes-cheat.o] Error 1 1 error generated. 1 error generated. make: * [obj/snes-system.o] Error 1 make: * [obj/snes-controller.o] Error 1 1 error generated. make: * [obj/snes-cartridge.o] Error 1

Themaister commented 10 years ago

assert.h and cstddef missing sounds like a broken toolchain. Anyways, the bsnes c++98 core can be safely ignored (if that's the only core failing to build). No idea why it's even built by default.

Maybe @twinaphex will see the issue now and have a look at it, I don't do Apple stuff myself.

thededman commented 10 years ago

Toolchain is not broken, I have just reverted back a working vmware image of my Mac OS X 10.8 and Xcode 5.1 was reloaded. Removed:

build_libretro_bsnes_cplusplus98 build_libretro_bsnes build_libretro_mednafen build_libretro_mednafen_gba

build_libretro_mednafen_snes

build_libretro_mednafen_psx

And failed (this happen about early March? Id have to look at the old code I pulled down to build.) Davids-Mac:libretro-super-master david$ ./libretro-build-ios.sh iOS 7.1 SDK detected Compiler: ios ios Directory /Users/david/Desktop/libretro-super-master/dist/ios already exists, skipping creation... === Building SNES9x === rm -f ../apu/apu.o ../apu/bapu/dsp/sdsp.o ../apu/bapu/dsp/SPC_DSP.o ../apu/bapu/smp/smp.o ../apu/bapu/smp/smp_state.o ../bsx.o ../c4.o ../c4emu.o ../cheats.o ../cheats2.o ../clip.o ../conffile.o ../controls.o ../cpu.o ../cpuexec.o ../cpuops.o ../crosshairs.o ../dma.o ../dsp.o ../dsp1.o ../dsp2.o ../dsp3.o ../dsp4.o ../fxinst.o ../fxemu.o ../gfx.o ../globals.o ../logger.o ../memmap.o ../movie.o ../obc1.o ../ppu.o ../stream.o ../sa1.o ../sa1cpu.o ../screenshot.o ../sdd1.o ../sdd1emu.o ../seta.o ../seta010.o ../seta011.o ../seta018.o ../snapshot.o ../snes9x.o ../spc7110.o ../srtc.o ../tile.o libretro.o snes9x_libretro_ios.dylib clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -I. -I.. -I../apu/ -I../apu/bapu -DIOS -miphoneos-version-min=5.0 -DARM -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter -fPIC -DHAVE_STRINGS_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DLIBRETRO -c -o ../apu/apu.o ../apu/apu.cpp clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -I. -I.. -I../apu/ -I../apu/bapu -DIOS -miphoneos-version-min=5.0 -DARM -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter -fPIC -DHAVE_STRINGS_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DLIBRETRO -c -o ../apu/bapu/dsp/sdsp.o ../apu/bapu/dsp/sdsp.cpp clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -I. -I.. -I../apu/ -I../apu/bapu -DIOS -miphoneos-version-min=5.0 -DARM -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter -fPIC -DHAVE_STRINGS_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DLIBRETRO -c -o ../apu/bapu/dsp/SPC_DSP.o ../apu/bapu/dsp/SPC_DSP.cpp clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -I. -I.. -I../apu/ -I../apu/bapu -DIOS -miphoneos-version-min=5.0 -DARM -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter -fPIC -DHAVE_STRINGS_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DLIBRETRO -c -o ../apu/bapu/smp/smp.o ../apu/bapu/smp/smp.cpp clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -I. -I.. -I../apu/ -I../apu/bapu -DIOS -miphoneos-version-min=5.0 -DARM -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter -fPIC -DHAVE_STRINGS_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DLIBRETRO -c -o ../apu/bapu/smp/smp_state.o ../apu/bapu/smp/smp_state.cpp clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -I. -I.. -I../apu/ -I../apu/bapu -DIOS -miphoneos-version-min=5.0 -DARM -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter -fPIC -DHAVE_STRINGS_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DLIBRETRO -c -o ../bsx.o ../bsx.cpp clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -I. -I.. -I../apu/ -I../apu/bapu -DIOS -miphoneos-version-min=5.0 -DARM -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter -fPIC -DHAVE_STRINGS_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DLIBRETRO -c -o ../c4.o ../c4.cpp clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' ../apu/apu.cpp:178:10: fatal error: 'math.h' file not found

include

     ^

In file included from ../apu/bapu/smp/smp.cpp:4: In file included from ../apu/bapu/snes/snes.hpp:4: In file included from ../snes9x.h:186: ../port.h:182:10: fatal error: 'stdio.h' file not found

include

     ^

In file included from ../apu/bapu/dsp/sdsp.cpp:1: In file included from ../apu/bapu/snes/snes.hpp:4: In file included from ../snes9x.h:186: ../port.h:182:10: fatal error: 'stdio.h' file not found

include

     ^

clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' In file included from ../bsx.cpp:183: In file included from ../snes9x.h:186: ../port.h:182:10: fatal error: 'stdio.h' file not found

include

     ^

In file included from ../apu/bapu/smp/smp_state.cpp:1: In file included from ../apu/bapu/snes/snes.hpp:4: In file included from ../snes9x.h:186: ../port.h:182:10: fatal error: 'stdio.h' file not found

include

     ^

In file included from ../apu/bapu/dsp/SPC_DSP.cpp:3: In file included from ../apu/bapu/dsp/SPC_DSP.h:7: ../apu/bapu/dsp/blargg_common.h:9:10: fatal error: 'stdlib.h' file not found

include

     ^

../c4.cpp:179:10: fatal error: 'math.h' file not found

include

     ^

1 error generated. make: * [../apu/bapu/smp/smp_state.o] Error 1 make: * Waiting for unfinished jobs.... 1 error generated. make: * [../apu/bapu/dsp/sdsp.o] Error 1 1 error generated. make: * [../apu/bapu/dsp/SPC_DSP.o] Error 1 1 error generated. make: * [../apu/apu.o] Error 1 1 error generated. make: * [../apu/bapu/smp/smp.o] Error 1 1 error generated. make: * [../bsx.o] Error 1 1 error generated. make: * [../c4.o] Error 1 Failed to build SNES9x cp: snes9x_libretro_ios.dylib: No such file or directory

URBANsUNITED commented 10 years ago

I'll get this...

Andreass-Mac-Pro:libretro-super-master andreas$ ./libretro-build-ios.sh Compiler: ios ios Directory /Volumes/thE_rEst/-=Benutzer=-/Andreas/Desktop/libretro-super-master/dist/ios already exists, skipping creation... === Building bSNES C++98 === clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/libretro/libretro.cpp -o obj/libretro.o clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c libco/libco.c -o obj/libco.o clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/interface/interface.cpp -o obj/snes-interface.o clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/system/system.cpp -o obj/snes-system.o clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/controller/controller.cpp -o obj/snes-controller.o clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/cartridge/cartridge.cpp -o obj/snes-cartridge.o clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/cheat/cheat.cpp -o obj/snes-cheat.o error: unable to open output file 'obj/snes-interface.o': 'Error opening output file 'obj/snes-interface.o'' 1 error generated. error: unable to open output file 'obj/snes-cartridge.o': 'Error opening output file 'obj/snes-cartridge.o'' 1 error generated. error: unable to open output file 'obj/libretro.o': 'Error opening output file 'obj/libretro.o'' 1 error generated. error: unable to open output file 'obj/libco.o': 'Error opening output file 'obj/libco.o'' 1 error generated. error: unable to open output file 'obj/snes-controller.o': 'Error opening output file 'obj/snes-controller.o'' 1 error generated. make: * [obj/snes-cartridge.o] Error 1 make: * Waiting for unfinished jobs.... make: * [obj/snes-interface.o] Error 1 make: * [obj/libco.o] Error 1 error: unable to open output file 'obj/snes-cheat.o': 'Error opening output file 'obj/snes-cheat.o'' 1 error generated. error: unable to open output file 'obj/snes-system.o': 'Error opening output file 'obj/snes-system.o'' 1 error generated. make: * [obj/snes-controller.o] Error 1 make: * [obj/libretro.o] Error 1 make: * [obj/snes-cheat.o] Error 1 make: * [obj/snes-system.o] Error 1 Andreass-Mac-Pro:libretro-super-master andreas$

I am on Mavericks 10.9.2 with Xcode 5.02.

URBANsUNITED commented 10 years ago

On Xcode 5.1.1 I'll get this...

clang++ -std=c++11 -stdlib=libc++ -miphoneos-version-min=5.0 -std=gnu++0x -I. -O3 -fomit-frame-pointer -DPROFILE_PERFORMANCE -arch armv7 -marm -fPIC -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/ -DHAVE_POSIXMEMALIGN=1 -w -DLIBRETRO -c target-libretro/libretro.cpp -o obj/libretro.o target-libretro/libretro.cpp:689:18: error: assigning to 'char ' from incompatible type 'char' win_slash = '\0'; ^ ~~~~ target-libretro/libretro.cpp:723:18: error: assigning to 'char ' from incompatible type 'char' win_slash = '\0'; ^ ~~~~ 2 errors generated. make: _* [obj/libretro.o] Error 1 make: *\ Waiting for unfinished jobs.... Failed to build bSNES performance core cp: out/bsnes_libretro_ios.dylib: No such file or directory Andreass-Mac-Pro:libretro-super-master andreas$

inactive123 commented 10 years ago

Weird, all these cores work for me with Mountain Lion and Xcode 5.1.1.

On Wed, Apr 23, 2014 at 10:55 PM, URBANsUNITED notifications@github.comwrote:

On Xcode 5.1.1 I'll get this...

clang++ -std=c++11 -stdlib=libc++ -miphoneos-version-min=5.0 -std=gnu++0x -I. -O3 -fomit-frame-pointer -DPROFILE_PERFORMANCE -arch armv7 -marm -fPIC -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/ -DHAVE_POSIX_MEMALIGN=1 -w -DLIBRETRO -c target-libretro/libretro.cpp -o obj/libretro.o target-libretro/libretro.cpp:689:18: error: assigning to 'char

_' from incompatible type 'char' win_slash = '\0'; ^ ~~~~ target-libretro/libretro.cpp:723:18: error: assigning to 'char ' from incompatible type 'char' winslash = '\0'; ^ ~~~~ 2 errors generated. make: * [obj/libretro.o] Error 1 make: *\ Waiting for unfinished jobs.... Failed to build bSNES performance core cp: out/bsnes_libretro_ios.dylib: No such file or directory Andreass-Mac-Pro:libretro-super-master andreas$

— Reply to this email directly or view it on GitHubhttps://github.com/libretro/libretro-super/issues/46#issuecomment-41213515 .

thededman commented 10 years ago

Possible you have something in your paths? I had macports installed, the. Restored my Mac virtual image to no macports and Xcode 5.1.1 with command line tools, and still failed.

Please excuse type-o's

Sent from my iPhone

On Apr 23, 2014, at 5:16 PM, "Twinaphex" notifications@github.com wrote:

Weird, all these cores work for me with Mountain Lion and Xcode 5.1.1.

On Wed, Apr 23, 2014 at 10:55 PM, URBANsUNITED notifications@github.comwrote:

On Xcode 5.1.1 I'll get this...

clang++ -std=c++11 -stdlib=libc++ -miphoneos-version-min=5.0 -std=gnu++0x -I. -O3 -fomit-frame-pointer -DPROFILE_PERFORMANCE -arch armv7 -marm -fPIC -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/ -DHAVE_POSIX_MEMALIGN=1 -w -DLIBRETRO -c target-libretro/libretro.cpp -o obj/libretro.o target-libretro/libretro.cpp:689:18: error: assigning to 'char

_' from incompatible type 'char' win_slash = '\0'; ^ ~~~~ target-libretro/libretro.cpp:723:18: error: assigning to 'char ' from incompatible type 'char' winslash = '\0'; ^ ~~~~ 2 errors generated. make: * [obj/libretro.o] Error 1 make: *\ Waiting for unfinished jobs.... Failed to build bSNES performance core cp: out/bsnes_libretro_ios.dylib: No such file or directory Andreass-Mac-Pro:libretro-super-master andreas$

— Reply to this email directly or view it on GitHubhttps://github.com/libretro/libretro-super/issues/46#issuecomment-41213515 .

— Reply to this email directly or view it on GitHub.

Themaister commented 10 years ago

Wait, wtf. ... Should have fixed build now in regular bSNES at least.

URBANsUNITED commented 10 years ago

Yep! bSNES build was successful... But the next didn't

clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/ -miphone-version-min=5.0 -c -o mednafen/pce_fast-09333/huc6280.o mednafen/pce_fast-09333/huc6280.cpp -pthread -miphone-version-min=5.0 -DWANT_THREADING -DWANT_CRC32 -DNEED_CD -DNEED_TREMOR -O2 -g -fPIC -I. -Imednafen -Imednafen/include -Imednafen/intl -Imednafen/hw_misc -Imednafen/hw_sound -Imednafen/hw_cpu -Imednafen/pce_fast-09333 -DLSB_FIRST -DSIZEOF_DOUBLE=8 -Wall -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -DMEDNAFEN_VERSION=\"0.9.31\" -DPACKAGE=\"mednafen\" -DMEDNAFEN_VERSION_NUMERIC=931 -DPSS_STYLE=1 -DMPC_FIXED_POINT -DWANT_PCE_FAST_EMU -DSTDC_HEADERS -DSTDC_LIMIT_MACROS -DLIBRETRO__ -D_LOWACCURACY -DWANT_STEREO_SOUND -DWANT_16BPP -DFRONTEND_SUPPORTS_RGB565 -DWANT_NEW_API clangclang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future : note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future make: * [stubs.o] Error 1 make: * Waiting for unfinished jobs.... make: * [libretro.o] Error 1 make: * [scrc32.o] Error 1 clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future make: * [mednafen/pce_fast-09333/huc.o] Error 1 clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future make: * [mednafen/pce_fast-09333/huc6280.o] Error 1 Failed to build mednafen/ cp: mednafen_pce_fast_libretro_ios.dylib: No such file or directory

Themaister commented 10 years ago

I only see this error: -miphone-version-min=5.0. Is that suddenly an error?

inactive123 commented 10 years ago

I'll add iOS version detection rules for each Makefile from now on. Seems OSX 10.9 in conjunction with the latest Xcode+iOS SDK is throwing a fit here (lovely Apple and their bullshit deprecation fetishism - seriously).

DO NOT remove this line - older OSX/iOS versions (like my Hackintosh with Mountain Lion on it and my iPads on jailbroken iOS 7.0/6.0) need this if you have the iOS 7.1 SDK installed - otherwise the compiler will produce 'optimized' code meant for iOS 7.1 that will fail randomly at runtime on references to certain functions (which were not there prior to 7.1) when you are running it on 6.0 or 7.0.

So just give me the chance to sort this out in my way.

URBANsUNITED commented 10 years ago

Then I'll get this:

iOS 7.1 SDK detected Compiler: ios ios Directory /Volumes/thE_rEst/libretro-super-master/dist/ios already exists, skipping creation... === Building bSNES C++98 === clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/libretro/libretro.cpp -o obj/libretro.o clang -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c libco/libco.c -o obj/libco.o clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/interface/interface.cpp -o obj/snes-interface.o clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/system/system.cpp -o obj/snes-system.o clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/controller/controller.cpp -o obj/snes-controller.o clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/cartridge/cartridge.cpp -o obj/snes-cartridge.o clang++ -arch armv7 -isysroot -miphoneos-version-min=5.0 -DHAVE_POSIX_MEMALIGN=1 -marm -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/cheat/cheat.cpp -o obj/snes-cheat.o clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0' In file included from libco/libco.c:14: libco/armeabi.c:9:10: fatal error: 'assert.h' file not found clang: warning: no such sysroot directory: '-miphoneos-version-min=5.0'

include

     ^

In file included from snes/interface/interface.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

In file included from snes/controller/controller.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

In file included from snes/system/system.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

In file included from snes/cheat/cheat.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

In file included from snes/libretro/libretro.cpp:2: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

In file included from snes/cartridge/cartridge.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

1 error generated. make: * [obj/libco.o] Error 1 make: * Waiting for unfinished jobs.... 1 error generated. make: * [obj/snes-interface.o] Error 1 1 error generated. make: * [obj/snes-cheat.o] Error 1 1 error generated. make: * [obj/snes-system.o] Error 1 1 error generated. make: * [obj/snes-controller.o] Error 1 1 error generated. make: * [obj/libretro.o] Error 1 1 error generated. make: * [obj/snes-cartridge.o] Error 1 andreass-pro:libretro-super-master andreas$

inactive123 commented 10 years ago

Maister - add a rule like this for bSNES (for the ios target) - https://github.com/libretro/snes9x-next/commit/f58fab13f6a7673fecebd3ebb6c96e41c95ad32d

URBANsUNITED commented 10 years ago

Still not solved and new errors...

10.9.2, Xcode 5.1.1 all fresh install

iOS 7.1 SDK detected Compiler: ios ios === Building bSNES C++98 === clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/libretro/libretro.cpp -o obj/libretro.o clang -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c libco/libco.c -o obj/libco.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/interface/interface.cpp -o obj/snes-interface.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/system/system.cpp -o obj/snes-system.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/controller/controller.cpp -o obj/snes-controller.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/cartridge/cartridge.cpp -o obj/snes-cartridge.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/cheat/cheat.cpp -o obj/snes-cheat.o clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' In file included from libco/libco.c:14: libco/armeabi.c:9:10: fatal error: 'assert.h' file not found

include

     ^

In file included from In file included from In file included from snes/controller/controller.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

snes/interface/interface.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

snes/cartridge/cartridge.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

In file included from snes/cheat/cheat.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

In file included from snes/system/system.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

In file included from snes/libretro/libretro.cpp:2: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

1 error generated. make: * [obj/libco.o] Error 1 make: * Waiting for unfinished jobs.... 1 error generated. make: * [obj/snes-cheat.o] Error 1 1 error generated. make: * [obj/snes-interface.o] Error 1 1 error generated. make: * [obj/snes-controller.o] Error 1 1 error generated. make: * [obj/snes-system.o] Error 1 1 error generated. make: * [obj/libretro.o] Error 1 1 error generated. make: * [obj/snes-cartridge.o] Error 1 andreass-pro:libretro-super-master andreas$

Themaister commented 10 years ago

-isysroot is not taking an argument it seems.

URBANsUNITED commented 10 years ago

Still no fix. Is there no interest to fix this build issue for iOS users?

andreass-imac:libretro-super-master andi$ ./libretro-build-ios.sh iOS path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk iOS version: 71 Compiler: ios ios === Building bSNES C++98 === clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/libretro/libretro.cpp -o obj/libretro.o clang -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c libco/libco.c -o obj/libco.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/interface/interface.cpp -o obj/snes-interface.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/system/system.cpp -o obj/snes-system.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/controller/controller.cpp -o obj/snes-controller.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/cartridge/cartridge.cpp -o obj/snes-cartridge.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/cheat/cheat.cpp -o obj/snes-cheat.o clang: warning: clang: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1'warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' In file included from snes/cheat/cheat.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: In file included from snes/libretro/libretro.cpp:2: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: In file included from snes/interface/interface.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: In file included from snes/cartridge/cartridge.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: In file included from snes/controller/controller.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: In file included from snes/system/system.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found ./nall/C++98.hpp:./nall/C++98.hpp4::410::10 : fatal error: fatal error: 'cstddef''cstddef' filefile notnot foundfound

include

     ^

include

     ^

include

     ^

./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found ./nall/C++98.hpp:4#include : 10: ^ fatal error: 'cstddef' file not found ./nall/C++98.hpp:4:10: fatal error: #include ^ 'cstddef' file not found

include

     ^

In file included from libco/libco.c:14: libco/armeabi.c:9:10: fatal error: 'assert.h' file not found

include

     ^

1 error generated. make: * [obj/libco.o] Error 1 make: * Waiting for unfinished jobs.... 1 error generated. 1 error generated. make: * [obj/snes-cheat.o] Error 1 make: * [obj/snes-interface.o] Error 1 1 error generated. make: * [obj/snes-controller.o] Error 1 1 error generated. make: * [obj/snes-system.o] Error 1 1 error generated. make: * [obj/libretro.o] Error 1 1 error generated. make: * [obj/snes-cartridge.o] Error 1 andreass-imac:libretro-super-master andi$

Everything on latest Xcode, Mavericks, started from the scratch

Thanks for listening

URBANsUNITED

inactive123 commented 10 years ago

It works over here on OSX 10.8.5 with the latest Xcode and iOS SDKs.

On Sun, May 18, 2014 at 11:40 PM, URBANsUNITED notifications@github.comwrote:

Still no fix. Is there no interest to fix this build issue for iOS users?

andreass-imac:libretro-super-master andi$ ./libretro-build-ios.sh iOS path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk iOS version: 71

Compiler: ios ios === Building bSNES C++98 === clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/libretro/libretro.cpp -o obj/libretro.o clang -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c libco/libco.c -o obj/libco.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/interface/interface.cpp -o obj/snes-interface.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/system/system.cpp -o obj/snes-system.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/controller/controller.cpp -o obj/snes-controller.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/cartridge/cartridge.cpp -o obj/snes-cartridge.o clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/cheat/cheat.cpp -o obj/snes-cheat.o clang: warning: clang: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1'warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' In file included from snes/cheat/cheat.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: In file included from snes/libretro/libretro.cpp:2: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: In file included from snes/interface/interface.cpp:1:

In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: In file included from snes/cartridge/cartridge.cpp:1:

In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: In file included from snes/controller/controller.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: In file included from snes/system/system.cpp:1: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found ./nall/C++98.hpp:./nall/C++98.hpp4::410::10 : fatal error: fatal error: 'cstddef''cstddef' filefile notnot foundfound

include

^

include

^

include

^ ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found ./nall/C++98.hpp:4#include : 10: ^ fatal error: 'cstddef' file not found ./nall/C++98.hpp:4:10: fatal error: #include ^

'cstddef' file not found

include

^ In file included from libco/libco.c:14: libco/armeabi.c:9:10: fatal error: 'assert.h' file not found

include

^ 1 error generated. make: * [obj/libco.o] Error 1 make: * Waiting for unfinished jobs.... 1 error generated. 1 error generated. make: * [obj/snes-cheat.o] Error 1 make: * [obj/snes-interface.o] Error 1 1 error generated. make: * [obj/snes-controller.o] Error 1 1 error generated. make: * [obj/snes-system.o] Error 1 1 error generated. make: * [obj/libretro.o] Error 1 1 error generated. make: * [obj/snes-cartridge.o] Error 1 andreass-imac:libretro-super-master andi$

Everything on latest Xcode, Mavericks, started from the scratch

Thanks for listening

URBANsUNITED

— Reply to this email directly or view it on GitHubhttps://github.com/libretro/libretro-super/issues/46#issuecomment-43453950 .

thededman commented 10 years ago

Maybe for you but there rest of us have the same issues. Have loaded a new copy of Mac OS X 10.8.5 pulled down Xcode latest version, and no luck. Same issues. You much must has some special path or bin to build? I have google the @#$& out this missing cstddef from Xcode.

I have successfully complied other iOS apps from github. @twinaphex are you using macports by chance?

cstddef is part of the C compiler? WTF? Right? it is in Windows, and Linux compilers.

Changed the JOBS=1

Davids-Mac:libretro-super-master david$ ./libretro-build-ios.sh iOS path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk iOS version: 71 Compiler: ios ios Directory /Users/david/Desktop/libretro-super-master/dist/ios already exists, skipping creation... === Building bSNES C++98 === clang++ -arch armv7 -isysroot -DHAVE_POSIX_MEMALIGN=1 -marm -miphoneos-version-min=5.0 -O3 -fomit-frame-pointer -I. -Isnes -fPIC -DPROFILE_PERFORMANCE -c snes/libretro/libretro.cpp -o obj/libretro.o clang: warning: no such sysroot directory: '-DHAVE_POSIX_MEMALIGN=1' In file included from snes/libretro/libretro.cpp:2: In file included from ./snes/snes.hpp:20: In file included from ./nall/string.hpp:4: ./nall/C++98.hpp:4:10: fatal error: 'cstddef' file not found

include

     ^

1 error generated. make: *\ [obj/libretro.o] Error 1

CURRENT PATH: Apple_PubSub_Socket_Render=/tmp/launch-3EbAig/Render Apple_Ubiquity_Message=/tmp/launch-Tv4jcQ/Apple_Ubiquity_Message BASH=/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release" [5]="x86_64-apple-darwin12") BASH_VERSION='3.2.48(1)-release' COLUMNS=150 COMMAND_MODE=unix2003 DIRSTACK=() EUID=501 GROUPS=() HISTFILE=/Users/david/.bash_history HISTFILESIZE=500 HISTSIZE=500 HOME=/Users/david HOSTNAME=Davids-Mac.local HOSTTYPE=x86_64 IFS=$' \t\n' IMAGINE_PATH=/users/david/Desktop/emu-ex-plus-alpha/imagine LANG=en_US.UTF-8 LINES=29 LOGNAME=david MACHTYPE=x86_64-apple-darwin12 MAILCHECK=60 OPTERR=1 OPTIND=1 OSTYPE=darwin12 PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin PIPESTATUS=([0]="0") PPID=4210 PROMPT_COMMAND='update_terminal_cwd; ' PS1='\h:\W \u\$ ' PS2='> ' PS4='+ ' PWD=/Users/david SHELL=/bin/bash SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor SHLVL=1 SSH_AUTH_SOCK=/tmp/launch-x4YPel/Listeners TERM=xterm-256color TERM_PROGRAM=Apple_Terminal TERM_PROGRAM_VERSION=309 TERM_SESSION_ID=24FD0115-A219-4CCB-B760-CFB9CBB7E712 TMPDIR=/var/folders/cj/7w8lcxz57bxc597pcxrn8k5m0000gn/T/ UID=501 USER=david __CF_USER_TEXT_ENCODING=0x1F5:0:0 update_terminal_cwd () { local SEARCH=' '; local REPLACE='%20'; local PWD_URL="file://$HOSTNAME${PWD//$SEARCH/$REPLACE}"; printf '\e]7;%s\a' "$PWD_URL" }

Themaister commented 10 years ago

Your -isysroot arguments in those commandlines do not have any argument. I expect that is supposed to point to some folder with system libraries and includes. The bSNES makefiles want IOSSDK to be defined to something as the commandline is -isysroot $(IOSSDK). It does not look like any of the libretro-super scripts sets this. It does set IOSSDKLOC though ... Maybe @twinaphex has some stale define in .bashrc or something?

Yes, cstddef has been part of standard C++ since 1998, so it should definitely be there.

URBANsUNITED commented 10 years ago

The problem started originally with XCode 5.1. The new build script didn't helped here. Possible that it is one of lots of other Mavericks problems, but don't know really...

thededman commented 10 years ago

Revisiting the scripts prior to breaking @URBANsUNITED i tried your mod and cores are building. However the mednafen cores fail? this don't work in ios anyway? I believe. I will comment out a try a compile core build.

#!/bin/bash

set -e

BASE_DIR="$PWD" RARCH_DIR=$BASE_DIR/dist RARCH_DIST_DIR=$RARCH_DIR/ios FORMAT=_ios FORMAT_COMPILER_TARGET=ios FORMAT_COMPILER_TARGET_ALT=ios FORMAT_EXT=dylib JOBS=7 MAKE=make CXX11="clang++ -std=c++11 -stdlib=libc++ -miphoneos-version-min=5.0" IOS=1

export IOSSDK=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/


clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future make: * [mednafen/pce_fast-09333/huc.o] Error 1 make: * Waiting for unfinished jobs.... make: * [stubs.o] Error 1 make: * [libretro.o] Error 1 make: * [scrc32.o] Error 1 make: * [mednafen/pce_fast-09333/pce.o] Error 1 make: * [mednafen/pce_fast-09333/huc6280.o] Error 1 clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future make: * [mednafen/pce_fast-09333/input.o] Error 1 Failed to build mednafen/pce_fast cp: mednafen_pce_fast_libretro_ios.dylib: No such file or directory Davids-Mac:libretro-super-master david$

thededman commented 10 years ago

Well cores built, but will they work?? I will load ROMS for each core and test and report in the morning.

Following did not build:

build_libretro_bsnes_cplusplus98

build_libretro_bsnes

build_libretro_mednafen

build_libretro_mednafen_gba

build_libretro_mednafen_snes

build_libretro_mednafen_psx

build_libretro_fceu My favorite core :-(

build_libretro_meteor

build_libretro_nx

No INFO folder was created?

cores_built

inactive123 commented 10 years ago

mavericks in conjunction with iOS 7.1 SDK no longer supports that minimum SDK version switch but older versions like Mountain lion still do - don't ask me why, and this doesn't bode well for backwards compatibility either since Apple loves using symbols in optimized code which get resolved at runtime (for instance with the math functions - If I don't put that minimum SDK switch in there, it will crash at runtime on some of my iOS 6 devices since symbols can't be found - ie. the optimized iOS 7.1 functions for math).

anyway, I'll add a patch for that tomorrow (+4 hours). I'll detect if OSX is Mavericks or later (for future-proofing), and if so, omit the min OS lines.

inactive123 commented 10 years ago

I'll also look at the stale variable for iOS SDK location in case that's what is going on.

thededman commented 10 years ago

Your help on this iOS is huge for users like me unable to jailbreak my iPad air. It's greatly appreciated.

inactive123 commented 10 years ago

Ok, there were indeed two stale environ paths in my .profile file.

Updated libretro-build-ios.sh - it defines IOSSDK now and exports it accordingly.

I think all cores should compile now. Let me know if there are still problems.

URBANsUNITED commented 10 years ago

Nope! Doesn't work...

clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -miphone-version-min=5.0 -c -o mednafen/pce_fast-09333/pce.o mednafen/pce_fast-09333/pce.cpp -pthread -miphone-version-min=5.0 -DWANT_THREADING -DWANT_CRC32 -DNEED_CD -DNEED_TREMOR -O2 -g -fPIC -I. -Imednafen -Imednafen/include -Imednafen/intl -Imednafen/hw_misc -Imednafen/hw_sound -Imednafen/hw_cpu -Imednafen/pce_fast-09333 -DLSB_FIRST -DSIZEOF_DOUBLE=8 -Wall -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -DMEDNAFEN_VERSION=\"0.9.31\" -DPACKAGE=\"mednafen\" -DMEDNAFEN_VERSION_NUMERIC=931 -DPSS_STYLE=1 -DMPC_FIXED_POINT -DWANT_PCE_FAST_EMU -DSTDC_HEADERS -DSTDC_LIMIT_MACROS -DLIBRETRO__ -D_LOWACCURACY -DWANT_STEREO_SOUND -DFRONTEND_SUPPORTS_RGB565 -DWANT_32BPP -DWANT_NEW_API clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: clangerror: : unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] error: clang: noteunknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future]: this will be a hard error (cannot be downgraded to a warning) in the future

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future make: * [mednafen/pce_fast-09333/huc6280.o] Error 1 make: * Waiting for unfinished jobs.... make: * [stubs.o] Error 1 make: * [libretro.o] Error 1 make: * [scrc32.o] Error 1 make: * [mednafen/pce_fast-09333/huc.o] Error 1 clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future make: * [mednafen/pce_fast-09333/pce.o] Error 1 make: * [mednafen/pce_fast-09333/input.o] Error 1 Failed to build mednafen/pce_fast cp: mednafen_pce_fast_libretro_ios.dylib: No such file or directory andreass-imac:libretro-super-master andi$

Themaister commented 10 years ago

Now it sets IOSSDK correctly, but it's failing on -miphone-version-min=5.0.

inactive123 commented 10 years ago

Check what this returns at the commandline:

sw_vers -productVersion | cut -c 4

thededman commented 10 years ago

working so far..... but will have to see if the core work in the program. Mine is working up to MEDNAFEN_PCE.

URBANsUNITED commented 10 years ago

sw_vers -productVersion | cut -c 4

9

is my output

URBANsUNITED commented 10 years ago

even the latest changes are not working.

... unknown argument: '-miphone-version-min=5.0'

clangclangclang: : : errorerrorerror: : : unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future]unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future]unknown argument: '-miphone-version-min=5.0' [-Wunused-command-line-argument-hard-error-in-future]

inactive123 commented 10 years ago

Pushed a patch to the libretro-mednafen codebase.

Try again.

thededman commented 10 years ago

This completed with core building successful. Had core issues with core signing, but fixed after two beers. Thanks @twinaphex and @Themaister i get to play old school game on my ipad again. I will closed case once @URBANsUNITED is working. @URBANsUNITED I'm trying to get my vmware image of Mac OS X 10.9 working to help troubleshoot.

URBANsUNITED commented 10 years ago

Thanks to all! My setup is working too. Was able to build everything and to load my roms. But: Where are the settings gone? This is all I get on my ipad mini retina image

thededman commented 10 years ago

Yes, this was the case for me as well. Unable to use my icade or icade 8-bitty anymore. I opened a case on retroArch and seems where waiting for meancoot.

Now, I looked at the code for retroarch and the setting are there? But not porting to the menu. Have tried to fix on my own, but no luck.

/*****/

/* RAMenuItemBindSetting */

/* A menu item that displays and allows */

/* mapping of a keybinding. */

/*****/

@interface RAMenuItemBindSetting()

@property (nonatomic) NSTimer* bindTimer;

@property (nonatomic) UIAlertView* alert;

@end

@implementation RAMenuItemBindSetting

{

self.alert = [[UIAlertView alloc] initWithTitle:BOXSTRING("RetroArch")

                                 message:BOXSTRING(self.setting->short_description)

                                 delegate:self

                                 cancelButtonTitle:BOXSTRING("Cancel")

                                 otherButtonTitles:BOXSTRING("Clear Keyboard"), BOXSTRING("Clear Joystick"), BOXSTRING("Clear Axis"), nil];

[self.alert show];

From: URBANsUNITED [mailto:notifications@github.com] Sent: Friday, May 23, 2014 11:45 AM To: libretro/libretro-super Cc: theDEDman Subject: Re: [libretro-super] Unable to build Cores in XCode 5.1 (iOS Cores) (#46)

Thanks to all! My setup is working too. Was able to build everything and to load my roms. But: Where are the settings gone? This is all I get on my ipad mini retina https://cloud.githubusercontent.com/assets/6212300/3068666/35380f70-e291-11e3-8600-1c89303a5c2c.jpg

— Reply to this email directly or view it on GitHub https://github.com/libretro/libretro-super/issues/46#issuecomment-44027628 . https://github.com/notifications/beacon/5215424__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxNjQ3OTExOSwiZGF0YSI6eyJpZCI6Mjc3ODU3NzN9fQ==--fcf9d64903c3b68ad15360c12f24ec3e7567fc8a.gif

thededman commented 10 years ago

This has been resolved, there for I'm closing.