[C++] Build of version 2.0.5 fails for iOS with AppleClang 13.0
SpaceIm opened this issue · comments
Cross-build from macOS to iOS was working well in 2.0.0. While adding 2.0.5 to conan, I've tested again cross-build to iOS and seen many compilation errors.
So here the log of a CMake build with FLATBUFFERS_BUILD_TESTS OFF, FLATBUFFERS_BUILD_FLATLIB ON, FLATBUFFERS_BUILD_FLATC OFF, FLATBUFFERS_BUILD_FLATHASH OFF.
Click to expand log
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: called by CMake conan helper
-- Conan: called inside local cache
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting language standard
-- Conan: Adjusting fPIC flag (ON)
-- Conan: C++ stdlib: libc++
-- Looking for strtof_l
-- Looking for strtof_l - not found
-- Looking for strtoull_l
-- Looking for strtoull_l - not found
-- CMAKE_CXX_FLAGS: -stdlib=libc++ -std=c++11 -Wall -pedantic -Wextra -Wno-unused-parameter -fsigned-char
-- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.9.10", minimum required is "3")
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY
-- Build files have been written to: /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462
[1/5] Building CXX object source_subfolder/CMakeFiles/flatbuffers.dir/src/util.cpp.o
FAILED: source_subfolder/CMakeFiles/flatbuffers.dir/src/util.cpp.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DFLATBUFFERS_LOCALE_INDEPENDENT=0 -I/Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include -I/Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/grpc -stdlib=libc++ -std=c++11 -Wall -pedantic -Wextra -Wno-unused-parameter -fsigned-char -O3 -DNDEBUG -arch arm64 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk -miphoneos-version-min=12.0 -fPIC -Wold-style-cast -Wimplicit-fallthrough -Wextra-semi -Werror=unused-private-field -MD -MT source_subfolder/CMakeFiles/flatbuffers.dir/src/util.cpp.o -MF source_subfolder/CMakeFiles/flatbuffers.dir/src/util.cpp.o.d -o source_subfolder/CMakeFiles/flatbuffers.dir/src/util.cpp.o -c /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/util.cpp
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/util.cpp:43:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/util.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/errno.h:31:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/errno.h:23:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/errno.h:72:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/cdefs.h:825:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/util.cpp:43:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/util.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/util.cpp:43:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/util.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/util.cpp:43:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/util.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:64:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.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/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/util.cpp:43:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/util.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:66:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/wait.h:109:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/signal.h:82:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/machine/signal.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/util.cpp:43:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/util.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:66:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/wait.h:109:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/signal.h:146:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/machine/_mcontext.h:34:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[2/5] Building CXX object source_subfolder/CMakeFiles/flatbuffers.dir/src/reflection.cpp.o
FAILED: source_subfolder/CMakeFiles/flatbuffers.dir/src/reflection.cpp.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DFLATBUFFERS_LOCALE_INDEPENDENT=0 -I/Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include -I/Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/grpc -stdlib=libc++ -std=c++11 -Wall -pedantic -Wextra -Wno-unused-parameter -fsigned-char -O3 -DNDEBUG -arch arm64 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk -miphoneos-version-min=12.0 -fPIC -Wold-style-cast -Wimplicit-fallthrough -Wextra-semi -Werror=unused-private-field -MD -MT source_subfolder/CMakeFiles/flatbuffers.dir/src/reflection.cpp.o -MF source_subfolder/CMakeFiles/flatbuffers.dir/src/reflection.cpp.o.d -o source_subfolder/CMakeFiles/flatbuffers.dir/src/reflection.cpp.o -c /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/reflection.cpp
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/reflection.cpp:17:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/reflection.h:25:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/reflection_generated.h:7:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/flatbuffers.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/array.h:20:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:42:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/cdefs.h:825:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/reflection.cpp:17:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/reflection.h:25:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/reflection_generated.h:7:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/flatbuffers.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/array.h:20:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/reflection.cpp:17:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/reflection.h:25:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/reflection_generated.h:7:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/flatbuffers.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/array.h:20:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/reflection.cpp:17:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/reflection.h:25:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/reflection_generated.h:7:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/flatbuffers.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/array.h:20:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:64:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.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/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/reflection.cpp:17:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/reflection.h:25:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/reflection_generated.h:7:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/flatbuffers.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/array.h:20:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:66:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/wait.h:109:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/signal.h:82:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/machine/signal.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/reflection.cpp:17:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/reflection.h:25:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/reflection_generated.h:7:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/flatbuffers.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/array.h:20:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:66:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/wait.h:109:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/signal.h:146:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/machine/_mcontext.h:34:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[3/5] Building CXX object source_subfolder/CMakeFiles/flatbuffers.dir/src/idl_gen_text.cpp.o
FAILED: source_subfolder/CMakeFiles/flatbuffers.dir/src/idl_gen_text.cpp.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DFLATBUFFERS_LOCALE_INDEPENDENT=0 -I/Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include -I/Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/grpc -stdlib=libc++ -std=c++11 -Wall -pedantic -Wextra -Wno-unused-parameter -fsigned-char -O3 -DNDEBUG -arch arm64 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk -miphoneos-version-min=12.0 -fPIC -Wold-style-cast -Wimplicit-fallthrough -Wextra-semi -Werror=unused-private-field -MD -MT source_subfolder/CMakeFiles/flatbuffers.dir/src/idl_gen_text.cpp.o -MF source_subfolder/CMakeFiles/flatbuffers.dir/src/idl_gen_text.cpp.o.d -o source_subfolder/CMakeFiles/flatbuffers.dir/src/idl_gen_text.cpp.o -c /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_gen_text.cpp
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_gen_text.cpp:19:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/flatbuffers.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/array.h:20:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:42:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/cdefs.h:825:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_gen_text.cpp:19:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/flatbuffers.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/array.h:20:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_gen_text.cpp:19:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/flatbuffers.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/array.h:20:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_gen_text.cpp:19:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/flatbuffers.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/array.h:20:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:64:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.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/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_gen_text.cpp:19:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/flatbuffers.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/array.h:20:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:66:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/wait.h:109:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/signal.h:82:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/machine/signal.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_gen_text.cpp:19:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/flatbuffers.h:22:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/array.h:20:
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include/flatbuffers/base.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/assert.h:44:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdlib.h:93:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/stdlib.h:66:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/wait.h:109:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/signal.h:146:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/machine/_mcontext.h:34:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[4/5] Building CXX object source_subfolder/CMakeFiles/flatbuffers.dir/src/idl_parser.cpp.o
FAILED: source_subfolder/CMakeFiles/flatbuffers.dir/src/idl_parser.cpp.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DFLATBUFFERS_LOCALE_INDEPENDENT=0 -I/Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/include -I/Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/grpc -stdlib=libc++ -std=c++11 -Wall -pedantic -Wextra -Wno-unused-parameter -fsigned-char -O3 -DNDEBUG -arch arm64 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk -miphoneos-version-min=12.0 -fPIC -Wold-style-cast -Wimplicit-fallthrough -Wextra-semi -Werror=unused-private-field -MD -MT source_subfolder/CMakeFiles/flatbuffers.dir/src/idl_parser.cpp.o -MF source_subfolder/CMakeFiles/flatbuffers.dir/src/idl_parser.cpp.o.d -o source_subfolder/CMakeFiles/flatbuffers.dir/src/idl_parser.cpp.o -c /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_parser.cpp
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_parser.cpp:17:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/algorithm:651:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/cstring:60:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/string.h:66:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/string.h:61:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/_types.h:32:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/cdefs.h:825:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_parser.cpp:17:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/algorithm:651:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/cstring:60:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/string.h:66:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/string.h:61:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_parser.cpp:17:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/algorithm:651:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/cstring:60:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/string.h:66:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/string.h:61:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/iPhoneOS15.2.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/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_parser.cpp:17:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/algorithm:651:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/cstring:60:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/string.h:66:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/string.h:61:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.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/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_parser.cpp:17:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/algorithm:651:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/cstring:60:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/string.h:66:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/string.h:152:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/_types/_ssize_t.h:30:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
In file included from /Users/spaceim/.conan/data/flatbuffers/2.0.5/_/_/build/25b70210bb50848cebf490e83bcbe0d4efd57462/source_subfolder/src/idl_parser.cpp:17:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/algorithm:651:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/cstring:60:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/string.h:66:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/string.h:152:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/_types/_ssize_t.h:31:9: error: unknown type name '__darwin_ssize_t'; did you mean '__darwin_blksize_t'?
typedef __darwin_ssize_t ssize_t;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/sys/_types.h:56:25: note: '__darwin_blksize_t' declared here
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.
Same errors with AppleClang 11.0 (it's fine with 12.0 & 13.0) and native build for macOS Intel: https://c3i.jfrog.io/c3i/misc/logs/pr/9292/11-configs/macos-clang/flatbuffers/2.0.5//eec6acc43f6348a597c20e5bd28d9e0590a02597-build.txt
Thanks for the report. I don't have a Mac so I can never directly test these things. Do you have a suggestion on a proper fix?
There is a workaround implemented in #6990 actually. So I can disable FLATBUFFERS_OSX_BUILD_UNIVERSAL
when no toolchain is used. But I think that all this logic should be removed from CMakeLists, ie no CMAKE_OSX_ARCHITECTURES
manipulation.
@SpaceIm Feel free to remove this in a PR.