The identical code compiled 3 years in the past,However now it fails
opencv compilation code: python3 build_framework.py ios –without calib3d –without cudaarithm –without cudabgsegm –without cudacodec –without cudafeatures2d –without cudafilters –without cudaimgproc –without cudalegacy –without cudaobjdetect –without cudaoptflow –without cudastereo –without cudawarping –without cudev –without features2d –without dnn –without flann –without java –without js –without ml –without objdetect –without picture –without python –without form –without stitching –without superres –without ts –without videoio –without videostab –without viz –without world
At current
mac os: 14.2.1
Xcode: 15.3
cmake: 3.25.0
python: 3.9.6
In file included from /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:35:
In file included from /usr/native/embrace/google/protobuf/io/zero_copy_stream_impl_lite.h:49:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/reminiscence:884:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/allocate_at_least.h:13:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/allocator_traits.h:14:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/construct_at.h:23:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/new:399:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/exception:94:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/type_traits:456:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__type_traits/is_compound.h:14:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__type_traits/is_fundamental.h:14:
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__type_traits/is_null_pointer.h:26:28: error:
use of undeclared identifier 'nullptr_t'
struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
^
In file included from /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:35:
In file included from /usr/native/embrace/google/protobuf/io/zero_copy_stream_impl_lite.h:49:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/reminiscence:884:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/allocate_at_least.h:13:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/allocator_traits.h:14:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/construct_at.h:23:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/new:399:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/exception:94:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/type_traits:508:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__type_traits/is_trivially_copyable.h:14:
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/cstdint:149:5: error:
<cstdint> tried together with <stdint.h> however did not discover libc++'s <stdint.h> header. This often implies that your header search paths are usually not configured
correctly. The header search paths ought to comprise the C++ Normal Library headers earlier than any C Normal Library, and you might be most likely utilizing compiler
flags that make that not be the case.
# error <cstdint> tried together with <stdint.h> however did not discover libc++'s <stdint.h> header.
^
In file included from /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:35:
In file included from /usr/native/embrace/google/protobuf/io/zero_copy_stream_impl_lite.h:49:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/reminiscence:898:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/shared_ptr.h:31:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/unique_ptr.h:17:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__functional/hash.h:28:
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/cstring:66:5: error:
<cstring> tried together with <string.h> however did not discover libc++'s <string.h> header. This often implies that your header search paths are usually not configured
correctly. The header search paths ought to comprise the C++ Normal Library headers earlier than any C Normal Library, and you might be most likely utilizing compiler
flags that make that not be the case.
# error <cstring> tried together with <string.h> however did not discover libc++'s <string.h> header.
^
In file included from /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:35:
In file included from /usr/native/embrace/google/protobuf/io/zero_copy_stream_impl_lite.h:49:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/reminiscence:898:
In file included from /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/shared_ptr.h:31:
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/unique_ptr.h:191:32: error:
member 'nullptr_t' declared as a template
_LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
^
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/unique_ptr.h:191:42: error:
anticipated ';' at finish of declaration record
_LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
^
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/unique_ptr.h:268:81: error:
unknown kind title 'nullptr_t'
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT {
^
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/unique_ptr.h:389:32: error:
member 'nullptr_t' declared as a template
_LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
^
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/unique_ptr.h:389:42: error:
anticipated ';' at finish of declaration record
_LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
^
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/unique_ptr.h:465:81: error:
unknown kind title 'nullptr_t'
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT {
^
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/unique_ptr.h:503:70: error:
unknown kind title 'nullptr_t'
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 void reset(nullptr_t = nullptr) _NOEXCEPT {
^
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/unique_ptr.h:503:80: error:
can't initialize a parameter of kind 'int' with an rvalue of kind 'std::nullptr_t'
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 void reset(nullptr_t = nullptr) _NOEXCEPT {
^ ~~~~~~~
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/unique_ptr.h:503:80: notice:
passing argument to parameter right here
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/unique_ptr.h:576:45: error:
unknown kind title 'nullptr_t'
operator==(const unique_ptr<_T1, _D1>& __x, nullptr_t) _NOEXCEPT {
^
/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/embrace/c++/v1/__memory/unique_ptr.h:584:12: error:
unknown kind title 'nullptr_t'
operator==(nullptr_t, const unique_ptr<_T1, _D1>& __x) _NOEXCEPT
^
deadly error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
CompileC /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/construct/build-arm64-iphoneos/construct/libprotobuf.construct/Launch-iphoneos/Objects-normal/arm64/zero_copy_stream_impl.o /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc regular arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in goal 'libprotobuf' from challenge 'OpenCV')
cd /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10
/Functions/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -ivfsstatcache /var/folders/85/s9n7p_6n3w72p1_l2tdf0jch0000gq/C/com.apple.DeveloperTools/15.3-15E204a/Xcode/SDKStatCaches.noindex/iphoneos17.4-21E210-99a79c02cfa501706f5b564e46d84afe.sdkstatcache -fmessage-length=159 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -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 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=tackle -Werror=sequence-point -Wformat -Werror=format-security -Wstrict-prototypes -Winit-self -Wpointer-arith -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -Wno-deprecated-enum-enum-conversion -Wno-deprecated-anon-enum-enum-conversion -fdiagnostics-show-option -Wno-semicolon-before-method-body -Wno-deprecated -Wno-missing-prototypes -Wno-missing-declarations -Wno-shadow -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-sign-compare -Wno-sign-promo -Wno-undef -Wno-tautological-undefined-compare -Wno-ignored-qualifiers -Wno-extra -Wno-unused-function -Wno-unused-const-variable -Wno-shorten-64-to-32 -Wno-invalid-offsetof -Wno-enum-compare-switch -Wno-suggest-override -Wno-inconsistent-missing-override -Wno-implicit-fallthrough -Wno-array-bounds @/Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/construct/build-arm64-iphoneos/construct/libprotobuf.construct/Launch-iphoneos/Objects-normal/arm64/82b82416624d2658e5098eb0a28c15c5-common-args.resp -MMD -MT dependencies -MF /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/construct/build-arm64-iphoneos/construct/libprotobuf.construct/Launch-iphoneos/Objects-normal/arm64/zero_copy_stream_impl.d --serialize-diagnostics /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/construct/build-arm64-iphoneos/construct/libprotobuf.construct/Launch-iphoneos/Objects-normal/arm64/zero_copy_stream_impl.dia -c /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc -o /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/construct/build-arm64-iphoneos/construct/libprotobuf.construct/Launch-iphoneos/Objects-normal/arm64/zero_copy_stream_impl.o
notice: Run script construct part 'Generate CMakeFiles/ALL_BUILD' will probably be run throughout each construct as a result of the choice to run the script part "Primarily based on dependency evaluation" is unchecked. (in goal 'ALL_BUILD' from challenge 'OpenCV')
notice: Run script construct part 'Generate CMakeFiles/ZERO_CHECK' will probably be run throughout each construct as a result of the choice to run the script part "Primarily based on dependency evaluation" is unchecked. (in goal 'ZERO_CHECK' from challenge 'OpenCV')
** BUILD FAILED **
The next construct instructions failed:
CompileC /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/construct/build-arm64-iphoneos/construct/libprotobuf.construct/Launch-iphoneos/Objects-normal/arm64/wire_format_lite.o /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/wire_format_lite.cc regular arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in goal 'libprotobuf' from challenge 'OpenCV')
CompileC /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/construct/build-arm64-iphoneos/construct/libprotobuf.construct/Launch-iphoneos/Objects-normal/arm64/unknown_field_set.o /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/unknown_field_set.cc regular arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in goal 'libprotobuf' from challenge 'OpenCV')
CompileC /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/platforms/ios/ios/construct/build-arm64-iphoneos/construct/libprotobuf.construct/Launch-iphoneos/Objects-normal/arm64/zero_copy_stream_impl_lite.o /Customers/zhangyang/Desktop/AI_Project/AIEnginProject/msxf-Opencv/3.4.10/opencv-3.4.10/3rdparty/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc regular arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in goal 'libprotobuf' from challenge 'OpenCV')
(3 failures)
============================================================
ERROR: Command '['xcodebuild', 'IPHONEOS_DEPLOYMENT_TARGET=12.0', 'ARCHS=arm64', '-sdk', 'iphoneos', '-configuration', 'Release', '-parallelizeTargets', '-jobs', '8', '-target', 'ALL_BUILD', 'build']' returned non-zero exit standing 65.
============================================================
cmake model dropped from 3.28.2 to three.25.0
Establishing c++11
Set ln-s /usr/native/bin/python3/usr/native/bin/python