Build fails on Catalyst target with Xcode 13.3
salux-x opened this issue · comments
I'm running this command to build lib
./build-libssl.sh --version="1.1.1l" --targets="ios-sim-cross-x86_64 ios-sim-cross-arm64 ios64-cross-arm64 ios64-cross-arm64e macos64-x86_64 macos64-arm64 mac-catalyst-x86_64 mac-catalyst-arm64"
which produces error
Build options
OpenSSL version: 1.1.1l
Targets: ios-sim-cross-x86_64 ios-sim-cross-arm64 ios64-cross-arm64 ios64-cross-arm64e macos64-x86_64 macos64-arm64 mac-catalyst-x86_64 mac-catalyst-arm64
iOS SDK: 15.4 (min 12.0)
macOS SDK: 12.3 (min 10.15)
macOS SDK (Catalyst): 12.3 (min 10.15)
watchOS SDK: 8.5 (min 4.0)
tvOS SDK: 15.4 (min 12.0)
Number of make threads: 8
Configure options: no-deprecated
Build location: /Users/steinmacht/Library/Caches/CocoaPods/Pods/Release/OpenSSL-Apple/1.1.1l.11-fb93d
Using openssl-1.1.1l.tar.gz
Building openssl-1.1.1l for iPhoneSimulator 15.4 x86_64...
Logfile: /Users/steinmacht/Library/Caches/CocoaPods/Pods/Release/OpenSSL-Apple/1.1.1l.11-fb93d/bin/iPhoneSimulator15.4-x86_64.sdk/build-openssl-1.1.1l.log
Configure...
Make (using 8 thread(s))...
Building openssl-1.1.1l for iPhoneSimulator 15.4 arm64...
Logfile: /Users/steinmacht/Library/Caches/CocoaPods/Pods/Release/OpenSSL-Apple/1.1.1l.11-fb93d/bin/iPhoneSimulator15.4-arm64.sdk/build-openssl-1.1.1l.log
Configure...
Make (using 8 thread(s))...
Building openssl-1.1.1l for iPhoneOS 15.4 arm64...
Logfile: /Users/steinmacht/Library/Caches/CocoaPods/Pods/Release/OpenSSL-Apple/1.1.1l.11-fb93d/bin/iPhoneOS15.4-arm64.sdk/build-openssl-1.1.1l.log
Configure...
Make (using 8 thread(s))...
Building openssl-1.1.1l for iPhoneOS 15.4 arm64e...
Logfile: /Users/steinmacht/Library/Caches/CocoaPods/Pods/Release/OpenSSL-Apple/1.1.1l.11-fb93d/bin/iPhoneOS15.4-arm64e.sdk/build-openssl-1.1.1l.log
Configure...
Make (using 8 thread(s))...
Building openssl-1.1.1l for MacOSX 12.3 x86_64...
Logfile: /Users/steinmacht/Library/Caches/CocoaPods/Pods/Release/OpenSSL-Apple/1.1.1l.11-fb93d/bin/MacOSX12.3-x86_64.sdk/build-openssl-1.1.1l.log
Configure...
Make (using 8 thread(s))...
Building openssl-1.1.1l for MacOSX 12.3 arm64...
Logfile: /Users/steinmacht/Library/Caches/CocoaPods/Pods/Release/OpenSSL-Apple/1.1.1l.11-fb93d/bin/MacOSX12.3-arm64.sdk/build-openssl-1.1.1l.log
Configure...
Make (using 8 thread(s))...
Building openssl-1.1.1l for Catalyst 12.3 x86_64...
Logfile: /Users/steinmacht/Library/Caches/CocoaPods/Pods/Release/OpenSSL-Apple/1.1.1l.11-fb93d/bin/Catalyst12.3-x86_64.sdk/build-openssl-1.1.1l.log
Configure...
Make (using 8 thread(s))...
Problem during make - Please check /Users/steinmacht/Library/Caches/CocoaPods/Pods/Release/OpenSSL-Apple/1.1.1l.11-fb93d/bin/Catalyst12.3-x86_64.sdk/build-openssl-1.1.1l.log
build log shows
clang: error: invalid version number in '-target x86_64-apple-ios13.0-macabi'
clang: error: invalid version number in '-target x86_64-apple-ios13.0-macabi'
clang: error: invalid version number in '-target x86_64-apple-ios13.0-macabi'
clang: error: invalid version number in '-target x86_64-apple-ios13.0-macabi'
clang: error: invalid version number in '-target x86_64-apple-ios13.0-macabi'
clang: error: invalid version number in '-target x86_64-apple-ios13.0-macabi'
make[1]: *** [Makefile:693: apps/opt.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:685: apps/bf_prefix.o] Error 1
make[1]: *** [Makefile:669: apps/app_rand.o] Error 1
make[1]: *** [Makefile:709: apps/s_socket.o] Error 1
make[1]: *** [Makefile:677: apps/apps.o] Error 1
make[1]: *** [Makefile:701: apps/s_cb.o] Error 1
clang: error: invalid version number in '-target x86_64-apple-ios13.0-macabi'
make[1]: *** [Makefile:720: crypto/aes/aes_cbc.o] Error 1
clang: error: invalid version number in '-target x86_64-apple-ios13.0-macabi'
make[1]: *** [Makefile:728: crypto/aes/aes_cfb.o] Error 1
make[1]: Leaving directory '/Users/steinmacht/Library/Caches/CocoaPods/Pods/Release/OpenSSL-Apple/1.1.1l.11-fb93d/src/Catalyst-x86_64/openssl-1.1.1l'
make: *** [Makefile:174: all] Error 2
using Xcode 13.3
downgrade to XCode 13.2.1 helped
It'd have been fixed by replacing apple-ios13.0-macabi
with apple-ios14.0-macabi
. Gotta first double check if hardcoding is the way to go.