iOS build for x86_64
Based on the BUILD.md, I tried to compile iOS x86_64 library with command below, it will report some errors, any suggestion for this? Thanks.
## Command
cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake -DPLATFORM=OS -DDEPLOYMENT_TARGET=11.0 -DARCHS="x86_64"
cmake --build . --target hv_static --config Release
## Build Error
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project hv.xcodeproj build -target hv_static -parallelizeTargets -configuration Release -hideShellScriptEnvironment
User defaults from command line:
HideShellScriptEnvironment = YES
IDEPackageSupportUseBuiltinSCM = YES
Computing target dependency graph and provisioning inputs
Create build description
Build description signature: 276e90fae81c568b62e528d23cab14cb
Build description path: /Users/jackyx/Downloads/libhv-master/build/build/XCBuildData/276e90fae81c568b62e528d23cab14cb-desc.xcbuild
note: Building targets in dependency order
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'hv')
PhaseScriptExecution Generate\ CMakeFiles/ZERO_CHECK /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/ZERO_CHECK.build/Script-65A70D7080167BDC96E90ED7.sh (in target 'ZERO_CHECK' from project 'hv')
cd /Users/jackyx/Downloads/libhv-master
/bin/sh -c /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/ZERO_CHECK.build/Script-65A70D7080167BDC96E90ED7.sh
make: `/Users/jackyx/Downloads/libhv-master/build/CMakeFiles/cmake.check_cache' is up to date.
CompileC /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/openssl.o /Users/jackyx/Downloads/libhv-master/ssl/openssl.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'hv_static' from project 'hv')
cd /Users/jackyx/Downloads/libhv-master
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target x86_64-apple-ios11.0 -fmessage-length\=167 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DCMAKE_INTDIR\=\"Release-iphoneos\" -DHV_STATICLIB -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -I/Users/jackyx/Downloads/libhv-master/build/lib/Release/include -I/Users/jackyx/Downloads/libhv-master -I/Users/jackyx/Downloads/libhv-master/include -I/Users/jackyx/Downloads/libhv-master/3rd/include -I/Users/jackyx/Downloads/libhv-master/src -I/Users/jackyx/Downloads/libhv-master/base -I/Users/jackyx/Downloads/libhv-master/ssl -I/Users/jackyx/Downloads/libhv-master/event -I/Users/jackyx/Downloads/libhv-master/util -I/Users/jackyx/Downloads/libhv-master/cpputil -I/Users/jackyx/Downloads/libhv-master/evpp -I/Users/jackyx/Downloads/libhv-master/http -I/Users/jackyx/Downloads/libhv-master/http/server -I/Users/jackyx/Downloads/libhv-master/http/client -I/Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/DerivedSources-normal/x86_64 -I/Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/DerivedSources/x86_64 -I/Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/DerivedSources -F/Users/jackyx/Downloads/libhv-master/build/lib/Release -DNDEBUG -std\=gnu99 -MMD -MT dependencies -MF /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/openssl.d --serialize-diagnostics /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/openssl.dia -c /Users/jackyx/Downloads/libhv-master/ssl/openssl.c -o /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/openssl.o
In file included from /Users/jackyx/Downloads/libhv-master/ssl/openssl.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:32:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/cdefs.h:901:2: error:
Unsupported architecture
#error Unsupported architecture
^
In file included from /Users/jackyx/Downloads/libhv-master/ssl/openssl.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/machine/_types.h:34:2: error:
architecture not supported
#error architecture not supported
^
In file included from /Users/jackyx/Downloads/libhv-master/ssl/openssl.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:55:9: error:
unknown type name '__int64_t'; did you mean '__int128_t'?
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:56:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:57:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_dev_t; /* dev_t */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:60:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:61:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:62:9: error:
unknown type name '__uint64_t'; did you mean '__uint128_t'?
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:68:9: error:
unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:70:9: error:
unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:71:9: error:
unknown type name '__int64_t'; did you mean '__int128_t'?
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:72:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:73:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:74:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:75:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:76:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
note: '__uint128_t' declared here
In file included from /Users/jackyx/Downloads/libhv-master/ssl/openssl.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:71:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:43:9: error: unknown
type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
In file included from /Users/jackyx/Downloads/libhv-master/ssl/openssl.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:72:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/unistd.h:180:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types/_size_t.h:31:9: error:
unknown type name '__darwin_size_t'
typedef __darwin_size_t size_t;
^
In file included from /Users/jackyx/Downloads/libhv-master/ssl/openssl.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:72:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/unistd.h:181:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types/_ssize_t.h:30:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/machine/types.h:37:2: error:
architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
CompileC /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/nossl.o /Users/jackyx/Downloads/libhv-master/ssl/nossl.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'hv_static' from project 'hv')
cd /Users/jackyx/Downloads/libhv-master
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target x86_64-apple-ios11.0 -fmessage-length\=167 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DCMAKE_INTDIR\=\"Release-iphoneos\" -DHV_STATICLIB -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -I/Users/jackyx/Downloads/libhv-master/build/lib/Release/include -I/Users/jackyx/Downloads/libhv-master -I/Users/jackyx/Downloads/libhv-master/include -I/Users/jackyx/Downloads/libhv-master/3rd/include -I/Users/jackyx/Downloads/libhv-master/src -I/Users/jackyx/Downloads/libhv-master/base -I/Users/jackyx/Downloads/libhv-master/ssl -I/Users/jackyx/Downloads/libhv-master/event -I/Users/jackyx/Downloads/libhv-master/util -I/Users/jackyx/Downloads/libhv-master/cpputil -I/Users/jackyx/Downloads/libhv-master/evpp -I/Users/jackyx/Downloads/libhv-master/http -I/Users/jackyx/Downloads/libhv-master/http/server -I/Users/jackyx/Downloads/libhv-master/http/client -I/Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/DerivedSources-normal/x86_64 -I/Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/DerivedSources/x86_64 -I/Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/DerivedSources -F/Users/jackyx/Downloads/libhv-master/build/lib/Release -DNDEBUG -std\=gnu99 -MMD -MT dependencies -MF /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/nossl.d --serialize-diagnostics /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/nossl.dia -c /Users/jackyx/Downloads/libhv-master/ssl/nossl.c -o /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/nossl.o
In file included from /Users/jackyx/Downloads/libhv-master/ssl/nossl.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:32:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/cdefs.h:901:2: error:
Unsupported architecture
#error Unsupported architecture
^
In file included from /Users/jackyx/Downloads/libhv-master/ssl/nossl.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/machine/_types.h:34:2: error:
architecture not supported
#error architecture not supported
^
In file included from /Users/jackyx/Downloads/libhv-master/ssl/nossl.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:55:9: error:
unknown type name '__int64_t'; did you mean '__int128_t'?
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:56:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:57:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_dev_t; /* dev_t */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:60:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:61:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:62:9: error:
unknown type name '__uint64_t'; did you mean '__uint128_t'?
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:68:9: error:
unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:70:9: error:
unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:71:9: error:
unknown type name '__int64_t'; did you mean '__int128_t'?
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:72:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:73:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:74:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:75:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:76:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
note: '__uint128_t' declared here
In file included from /Users/jackyx/Downloads/libhv-master/ssl/nossl.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:71:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:43:9: error: unknown
type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
In file included from /Users/jackyx/Downloads/libhv-master/ssl/nossl.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:72:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/unistd.h:180:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types/_size_t.h:31:9: error:
unknown type name '__darwin_size_t'
typedef __darwin_size_t size_t;
^
In file included from /Users/jackyx/Downloads/libhv-master/ssl/nossl.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:72:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/unistd.h:181:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types/_ssize_t.h:30:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/machine/types.h:37:2: error:
architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
CompileC /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/wintls.o /Users/jackyx/Downloads/libhv-master/ssl/wintls.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'hv_static' from project 'hv')
cd /Users/jackyx/Downloads/libhv-master
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target x86_64-apple-ios11.0 -fmessage-length\=167 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DCMAKE_INTDIR\=\"Release-iphoneos\" -DHV_STATICLIB -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -I/Users/jackyx/Downloads/libhv-master/build/lib/Release/include -I/Users/jackyx/Downloads/libhv-master -I/Users/jackyx/Downloads/libhv-master/include -I/Users/jackyx/Downloads/libhv-master/3rd/include -I/Users/jackyx/Downloads/libhv-master/src -I/Users/jackyx/Downloads/libhv-master/base -I/Users/jackyx/Downloads/libhv-master/ssl -I/Users/jackyx/Downloads/libhv-master/event -I/Users/jackyx/Downloads/libhv-master/util -I/Users/jackyx/Downloads/libhv-master/cpputil -I/Users/jackyx/Downloads/libhv-master/evpp -I/Users/jackyx/Downloads/libhv-master/http -I/Users/jackyx/Downloads/libhv-master/http/server -I/Users/jackyx/Downloads/libhv-master/http/client -I/Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/DerivedSources-normal/x86_64 -I/Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/DerivedSources/x86_64 -I/Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/DerivedSources -F/Users/jackyx/Downloads/libhv-master/build/lib/Release -DNDEBUG -std\=gnu99 -MMD -MT dependencies -MF /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/wintls.d --serialize-diagnostics /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/wintls.dia -c /Users/jackyx/Downloads/libhv-master/ssl/wintls.c -o /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/wintls.o
In file included from /Users/jackyx/Downloads/libhv-master/ssl/wintls.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:32:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/cdefs.h:901:2: error:
Unsupported architecture
#error Unsupported architecture
^
In file included from /Users/jackyx/Downloads/libhv-master/ssl/wintls.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/machine/_types.h:34:2: error:
architecture not supported
#error architecture not supported
^
In file included from /Users/jackyx/Downloads/libhv-master/ssl/wintls.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:55:9: error:
unknown type name '__int64_t'; did you mean '__int128_t'?
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:56:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:57:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_dev_t; /* dev_t */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:60:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:61:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:62:9: error:
unknown type name '__uint64_t'; did you mean '__uint128_t'?
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:68:9: error:
unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:70:9: error:
unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:71:9: error:
unknown type name '__int64_t'; did you mean '__int128_t'?
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:72:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:73:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:74:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:75:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:76:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
note: '__uint128_t' declared here
In file included from /Users/jackyx/Downloads/libhv-master/ssl/wintls.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:71:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:43:9: error: unknown
type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
In file included from /Users/jackyx/Downloads/libhv-master/ssl/wintls.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:72:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/unistd.h:180:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types/_size_t.h:31:9: error:
unknown type name '__darwin_size_t'
typedef __darwin_size_t size_t;
^
In file included from /Users/jackyx/Downloads/libhv-master/ssl/wintls.c:1:
In file included from /Users/jackyx/Downloads/libhv-master/ssl/hssl.h:6:
In file included from /Users/jackyx/Downloads/libhv-master/base/hplatform.h:192:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/unistd.h:72:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/unistd.h:181:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types/_ssize_t.h:30:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/machine/types.h:37:2: error:
architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
CompileC /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/sha1.o /Users/jackyx/Downloads/libhv-master/util/sha1.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'hv_static' from project 'hv')
cd /Users/jackyx/Downloads/libhv-master
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target x86_64-apple-ios11.0 -fmessage-length\=167 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DCMAKE_INTDIR\=\"Release-iphoneos\" -DHV_STATICLIB -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -I/Users/jackyx/Downloads/libhv-master/build/lib/Release/include -I/Users/jackyx/Downloads/libhv-master -I/Users/jackyx/Downloads/libhv-master/include -I/Users/jackyx/Downloads/libhv-master/3rd/include -I/Users/jackyx/Downloads/libhv-master/src -I/Users/jackyx/Downloads/libhv-master/base -I/Users/jackyx/Downloads/libhv-master/ssl -I/Users/jackyx/Downloads/libhv-master/event -I/Users/jackyx/Downloads/libhv-master/util -I/Users/jackyx/Downloads/libhv-master/cpputil -I/Users/jackyx/Downloads/libhv-master/evpp -I/Users/jackyx/Downloads/libhv-master/http -I/Users/jackyx/Downloads/libhv-master/http/server -I/Users/jackyx/Downloads/libhv-master/http/client -I/Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/DerivedSources-normal/x86_64 -I/Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/DerivedSources/x86_64 -I/Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/DerivedSources -F/Users/jackyx/Downloads/libhv-master/build/lib/Release -DNDEBUG -std\=gnu99 -MMD -MT dependencies -MF /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/sha1.d --serialize-diagnostics /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/sha1.dia -c /Users/jackyx/Downloads/libhv-master/util/sha1.c -o /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/sha1.o
In file included from /Users/jackyx/Downloads/libhv-master/util/sha1.c:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_stdio.h:68:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/cdefs.h:901:2: error:
Unsupported architecture
#error Unsupported architecture
^
In file included from /Users/jackyx/Downloads/libhv-master/util/sha1.c:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/machine/_types.h:34:2: error:
architecture not supported
#error architecture not supported
^
In file included from /Users/jackyx/Downloads/libhv-master/util/sha1.c:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:55:9: error:
unknown type name '__int64_t'; did you mean '__int128_t'?
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:56:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:57:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_dev_t; /* dev_t */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:60:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:61:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:62:9: error:
unknown type name '__uint64_t'; did you mean '__uint128_t'?
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:68:9: error:
unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:70:9: error:
unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:71:9: error:
unknown type name '__int64_t'; did you mean '__int128_t'?
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:72:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:73:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:74:9: error:
unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:75:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:76:9: error:
unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
note: '__uint128_t' declared here
In file included from /Users/jackyx/Downloads/libhv-master/util/sha1.c:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_stdio.h:71:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_types.h:43:9: error: unknown
type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
In file included from /Users/jackyx/Downloads/libhv-master/util/sha1.c:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_stdio.h:75:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types/_va_list.h:31:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/machine/types.h:37:2: error:
architecture not supported
#error architecture not supported
^
In file included from /Users/jackyx/Downloads/libhv-master/util/sha1.c:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/_stdio.h:75:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types/_va_list.h:32:9: error:
unknown type name '__darwin_va_list'
typedef __darwin_va_list va_list;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/openssl.o /Users/jackyx/Downloads/libhv-master/ssl/openssl.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'hv_static' from project 'hv')
CompileC /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/nossl.o /Users/jackyx/Downloads/libhv-master/ssl/nossl.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'hv_static' from project 'hv')
CompileC /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/wintls.o /Users/jackyx/Downloads/libhv-master/ssl/wintls.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'hv_static' from project 'hv')
CompileC /Users/jackyx/Downloads/libhv-master/build/hv.build/Release-iphoneos/hv_static.build/Objects-normal/x86_64/sha1.o /Users/jackyx/Downloads/libhv-master/util/sha1.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'hv_static' from project 'hv')
(4 failures)
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/_types.h:32: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/cdefs.h:901:2: error: Unsupported architecture #error Unsupported architecture

iPhoneOS just support arm or arm64
Thanks for your reply. Does arm mean armv7 or armv7s architecture? In the ios.toolchain.cmake, the archs include arm7v, arm7vs and arm64 for device and x86_64 is for simulator, but I tried different command, only arm64 can be compiled successfully, could you give me more suggestion for this? thanks.
## Simulator - x86_64
cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake -DPLATFORM=SIMULATOR64 -DDEPLOYMENT_TARGET=11.0 -DARCHS="x86_64"
cmake --build . --target hv_static --config Release
## Device - arm
cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake -DPLATFORM=OS -DDEPLOYMENT_TARGET=9.0 -DARCHS="arm"
cmake --build . --target hv_static --config Release
Device - arm
cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake -DPLATFORM=OS -DDEPLOYMENT_TARGET=9.0 -DARCHS="armv7"
-DARCHS="armv7" not arm
I tried 'armv7', it still failed. Any suggestion for this, is it related to higher XCode version? thanks.
Plus, does it support simulator?
## Log files CMakeError.log CMakeOutput.log
## Compilation output
jackyx@jackyxdeMacBook-Pro build % cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake -DPLATFORM=OS -DDEPLOYMENT_TARGET=11.0 -DARCHS="armv7"
-- [DEFAULTS] Using explicit named language support! E.g., enable_language(CXX) is needed in the project files.
-- Targeting minimum SDK version 11.0. Dropping 32-bit support.
-- [DEFAULTS] Enabling bitcode support by default. ENABLE_BITCODE not provided!
-- [DEFAULTS] Enabling ARC support by default. ENABLE_ARC not provided!
-- [DEFAULTS] Hiding symbols visibility by default. ENABLE_VISIBILITY not provided!
-- [DEFAULTS] Using NON-strict compiler checks by default. ENABLE_STRICT_TRY_COMPILE not provided!
-- Not setting any manual command-line buildflags, since Xcode is selected as the generator. Modifying the Xcode build-settings directly instead.
-- Configuring iphoneos build for platform: OS64, architecture(s): armv7
-- Using SDK: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk
-- Using C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Using CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Using libtool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Using install name tool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool
-- Autoconf target triple: armv7-apple-ios11.0
-- Using minimum deployment version: 11.0 (SDK version: 16.1)
-- Merging integrated CMake 3.14+ iOS,tvOS,watchOS,macOS toolchain(s) with this toolchain!
-- Using Xcode version: 14.1
-- CMake version: 3.23.4
-- Using a data_ptr size of: 4
-- Bitcode: Enabled
-- ARC: Enabled
-- Hiding symbols: Enabled
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - broken
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.23/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/jackyx/Downloads/libhv-master/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/xcodebuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_b1dd8 -parallelizeTargets -configuration Debug -hideShellScriptEnvironment && Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_b1dd8 -parallelizeTargets -configuration Debug -hideShellScriptEnvironment
User defaults from command line:
HideShellScriptEnvironment = YES
IDEPackageSupportUseBuiltinSCM = YES
Computing target dependency graph and provisioning inputs
Create build description
Build description signature: 8bdce6690e6feaea3eb8e6054100fa16
Build description path: /Users/jackyx/Downloads/libhv-master/build/CMakeFiles/CMakeTmp/build/XCBuildData/8bdce6690e6feaea3eb8e6054100fa16-desc.xcbuild
note: Building targets in dependency order
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'cmTC_b1dd8' from project 'CMAKE_TRY_COMPILE')
warning: None of the architectures in ARCHS (armv7) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, armv7, armv7s). (in target 'cmTC_b1dd8' from project 'CMAKE_TRY_COMPILE')
** BUILD FAILED **
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "/Users/jackyx/Downloads/libhv-master/build/CMakeFiles/CMakeOutput.log".
See also "/Users/jackyx/Downloads/libhv-master/build/CMakeFiles/CMakeError.log".
## detailed error

xcode14 no longer supports armv7,you can use xcode12 or xcode13 to build for armv7.
thanks, later will try it again with XCode of lower version