Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build errors with current libretro_super bsnes_hd rules #11

Open
cprivitere opened this issue Oct 15, 2019 · 5 comments
Open

build errors with current libretro_super bsnes_hd rules #11

cprivitere opened this issue Oct 15, 2019 · 5 comments

Comments

@cprivitere
Copy link

Opened this over here as well (libretro/libretro-super#1146) but thinking it belongs here more after talking to @byuu and @Screwtapello. Trying to compile the libretro_bsnes core via the libretro_bsnes_hd rules in libretro_super and I get the following:
cprivite@Mac-mini libretro-super % ./libretro-build-ios-arm64.sh bsnes_hd uname: illegal option -- o usage: uname [-amnprsv] CC = cc -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk CXX = c++ -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk CXX11 = clang++ -std=c++11 -stdlib=libc++ -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk CXX17 = clang++ -std=c++17 -stdlib=libc++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk STRIP = Compiler: CC="cc -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk" CXX="c++ -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk" === iOS == ios-arm64 ios-arm64 === bsnes HD Building bsnes_hd... cd "/Volumes/Storage/RetroArch/libretro-super/libretro-bsnes_hd/bsnes" make -f GNUmakefile platform="ios-arm64" -j7 compiler="clang++ -std=c++17 -stdlib=libc++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk" target="libretro" clean make: 'clean' is up to date. make -f GNUmakefile platform="ios-arm64" -j7 CC="cc -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk" CXX="c++ -arch arm64 -marm -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk" compiler="clang++ -std=c++17 -stdlib=libc++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk" target="libretro" Compiling target-libretro/libretro.cpp ... Compiling ../libco/libco.c ... Compiling emulator/emulator.cpp ... Compiling filter/filter.cpp ... Compiling lzma/lzma.cpp ... Compiling sfc/interface/interface.cpp ... Compiling sfc/system/system.cpp ... Compiling sfc/controller/controller.cpp ... clangclang: error: the clang compiler does not support '-march=native'clang: error: the clang compiler does not support '-march=native'clangclangclang: clang: : errorerror: : errorthe clang compiler does not support '-march=native': the clang compiler does not support '-march=native': errorerror: : the clang compiler does not support '-march=native'the clang compiler does not support '-march=native': the clang compiler does not support '-march=native' clang: error: unsupported option '-fopenmp' clang: errorclang: error: unsupported option '-fopenmp' clang: error: unsupported option '-fopenmp' clang: error: unsupported option '-fopenmp' clang: error: unsupported option '-fopenmp' clang: error: unsupported option '-fopenmp' : unsupported option '-fopenmp' make: *** [obj/sfc-system.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [obj/lzma.o] Error 1 make: *** [obj/libco.o] Error 1 make: *** [obj/libretro.o] Error 1 make: *** [obj/filter.o] Error 1 make: *** [obj/sfc-interface.o] Error 1 make: *** [obj/emulator.o] Error 1 cp "out/bsnes_hd_libretro_ios.dylib" "/Volumes/Storage/RetroArch/libretro-super/dist/ios-arm64/bsnes_hd_libretro_ios.dylib" cp: out/bsnes_hd_libretro_ios.dylib: No such file or directory 1 core(s) failed: bsnes_hd

Environment is macOS 10.15, Xcode 11.1.
Xcode-select -p is "/Applications/Xcode.app/Contents/Developer"

@CatGreen90
Copy link

The buildbot also fails to build bsnes on any Apple platform, with the error error: invalid value 'c++17' in '-std=c++17'

@cprivitere
Copy link
Author

Interesting, I had no problems getting it to compile on my mac (10.15 with Xcode 11.1) once I stripped out all the references to march=native and -fopenmp from the makefiles. What is the buildbot running on?

@CatGreen90
Copy link

The Mac buildbot runs on a VM running Xcode 7.3, which can't be upgraded. C++17 support wasn't added until Xcode 9.3.

@cprivitere
Copy link
Author

cprivitere commented Oct 16, 2019 via email

@CatGreen90
Copy link

The programming channel on the RA Discord would probably be your best bet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants