libretro / bsnes

Super Nintendo (Super Famicom) emulator
https://bsnes.byuu.org
Other
9 stars 12 forks source link

build errors with current libretro_super bsnes_hd rules #11

Open cprivitere opened 4 years ago

cprivitere commented 4 years ago

Opened this over here as well (https://github.com/libretro/libretro-super/issues/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 commented 4 years ago

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

cprivitere commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Ok, so "can't" is a bit of a non starter. Where does one go for conversations about that build vm, cause shackling the build around old hardware and OS's isn't in the best interests of getting performant emulation.

CatGreen90 commented 4 years ago

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