Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DanielZanchi/c74e0dd673876a70e5b9c785242eae63 to your computer and use it in GitHub Desktop.
Save DanielZanchi/c74e0dd673876a70e5b9c785242eae63 to your computer and use it in GitHub Desktop.
opencv build error
CompileC /Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/Objects-normal/arm64/upsampling_neon.o /Users/danielzanchi/Developer/opencv2/opencv-4.x/3rdparty/libwebp/src/dsp/upsampling_neon.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'libwebp' from project 'OpenCV')
cd /Users/danielzanchi/Developer/opencv2/opencv-4.x
export LANG\=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target arm64-apple-ios9.0 -fmessage-length\=232 -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 -DCMAKE_INTDIR\=\"Release-iphoneos\" -DWEBP_USE_THREAD -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fembed-bitcode -I/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/lib/Release/include -I/Users/danielzanchi/Developer/opencv2/opencv-4.x/3rdparty/libwebp -I/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos -I/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/DerivedSources-normal/arm64 -I/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/DerivedSources/arm64 -I/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/DerivedSources -F/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/lib/Release -fembed-bitcode -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body -fvisibility\=hidden -fvisibility-inlines-hidden -std\=c99 -Wno-unused-variable -Wno-unused-function -Wno-shadow -Wno-missing-prototypes -Wno-missing-declarations -Wno-implicit-fallthrough -DNDEBUG -DNDEBUG -fPIC -MMD -MT dependencies -MF /Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/Objects-normal/arm64/upsampling_neon.d --serialize-diagnostics /Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/Objects-normal/arm64/upsampling_neon.dia -c /Users/danielzanchi/Developer/opencv2/opencv-4.x/3rdparty/libwebp/src/dsp/upsampling_neon.c -o /Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/Objects-normal/arm64/upsampling_neon.o
/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/Objects-normal/arm64/upsampling_neon.dia:1:1: warning: Could not read serialized diagnostics file: error("Failed to open diagnostics file") (in target 'libwebp' from project 'OpenCV')
Libtool /Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/lib/Release/libzlib.a normal (in target 'zlib' from project 'OpenCV')
cd /Users/danielzanchi/Developer/opencv2/opencv-4.x
export IPHONEOS_DEPLOYMENT_TARGET\=9.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only arm64 -D -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk -L/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/lib/Release -filelist /Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/zlib/OpenCV.build/Release-iphoneos/zlib.build/Objects-normal/arm64/zlib.LinkFileList -dependency_info /Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/zlib/OpenCV.build/Release-iphoneos/zlib.build/Objects-normal/arm64/zlib_libtool_dependency_info.dat -o /Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/lib/Release/libzlib.a
CompileC /Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/Objects-normal/arm64/upsampling_msa.o /Users/danielzanchi/Developer/opencv2/opencv-4.x/3rdparty/libwebp/src/dsp/upsampling_msa.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'libwebp' from project 'OpenCV')
cd /Users/danielzanchi/Developer/opencv2/opencv-4.x
export LANG\=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target arm64-apple-ios9.0 -fmessage-length\=232 -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 -DCMAKE_INTDIR\=\"Release-iphoneos\" -DWEBP_USE_THREAD -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fembed-bitcode -I/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/lib/Release/include -I/Users/danielzanchi/Developer/opencv2/opencv-4.x/3rdparty/libwebp -I/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos -I/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/DerivedSources-normal/arm64 -I/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/DerivedSources/arm64 -I/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/DerivedSources -F/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/lib/Release -fembed-bitcode -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body -fvisibility\=hidden -fvisibility-inlines-hidden -std\=c99 -Wno-unused-variable -Wno-unused-function -Wno-shadow -Wno-missing-prototypes -Wno-missing-declarations -Wno-implicit-fallthrough -DNDEBUG -DNDEBUG -fPIC -MMD -MT dependencies -MF /Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/Objects-normal/arm64/upsampling_msa.d --serialize-diagnostics /Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/Objects-normal/arm64/upsampling_msa.dia -c /Users/danielzanchi/Developer/opencv2/opencv-4.x/3rdparty/libwebp/src/dsp/upsampling_msa.c -o /Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/Objects-normal/arm64/upsampling_msa.o
/Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/3rdparty/libwebp/OpenCV.build/Release-iphoneos/libwebp.build/Objects-normal/arm64/upsampling_msa.dia:1:1: warning: Could not read serialized diagnostics file: error("Failed to open diagnostics file") (in target 'libwebp' from project 'OpenCV')
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Generate\ CMakeFiles/dephelper/gen_opencv_objc_source_ios /Users/danielzanchi/Developer/opencv2/opencv-4.x/build_xcframeworkxphoto/iphoneos/build/build-arm64-iphoneos/modules/objc_bindings_generator/OpenCV.build/Release-iphoneos/gen_opencv_objc_source_ios.build/Script-534E23C7BD6F6DA66DBD8534.sh (in target 'gen_opencv_objc_source_ios' from project 'OpenCV')
(1 failure)
============================================================
ERROR: Command '['xcodebuild', 'BITCODE_GENERATION_MODE=bitcode', 'IPHONEOS_DEPLOYMENT_TARGET=9.0', 'ARCHS=arm64', '-sdk', 'iphoneos', '-configuration', 'Release', '-parallelizeTargets', '-jobs', '10', '-target', 'ALL_BUILD', 'build']' returned non-zero exit status 65.
============================================================
Traceback (most recent call last):
File "/Users/danielzanchi/Developer/opencv2/opencv-4.x/platforms/ios/build_framework.py", line 181, in build
self._build(outdir)
File "/Users/danielzanchi/Developer/opencv2/opencv-4.x/platforms/ios/build_framework.py", line 139, in _build
self.buildOne(target[0], target[1], main_build_dir, cmake_flags)
File "/Users/danielzanchi/Developer/opencv2/opencv-4.x/platforms/ios/build_framework.py", line 318, in buildOne
execute(buildcmd + ["-target", "ALL_BUILD", "build"], cwd = builddir)
File "/Users/danielzanchi/Developer/opencv2/opencv-4.x/platforms/apple/cv_build_utils.py", line 13, in execute
retcode = check_call(cmd, cwd = cwd)
File "/opt/homebrew/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['xcodebuild', 'BITCODE_GENERATION_MODE=bitcode', 'IPHONEOS_DEPLOYMENT_TARGET=9.0', 'ARCHS=arm64', '-sdk', 'iphoneos', '-configuration', 'Release', '-parallelizeTargets', '-jobs', '10', '-target', 'ALL_BUILD', 'build']' returned non-zero exit status 65.
============================================================
ERROR: Command '['python3', '/Users/danielzanchi/Developer/opencv2/opencv-4.x/platforms/ios/build_framework.py', './build_xcframeworkxphoto/iphoneos', '--iphoneos_archs', 'arm64', '--framework_name', 'opencv2', '--build_only_specified_archs', '--without=video']' returned non-zero exit status 1.
============================================================
Traceback (most recent call last):
File "/Users/danielzanchi/Developer/opencv2/opencv-4.x/platforms/apple/build_xcframework.py", line 87, in <module>
execute(command, cwd=os.getcwd())
File "/Users/danielzanchi/Developer/opencv2/opencv-4.x/platforms/apple/cv_build_utils.py", line 13, in execute
retcode = check_call(cmd, cwd = cwd)
File "/opt/homebrew/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['python3', '/Users/danielzanchi/Developer/opencv2/opencv-4.x/platforms/ios/build_framework.py', './build_xcframeworkxphoto/iphoneos', '--iphoneos_archs', 'arm64', '--framework_name', 'opencv2', '--build_only_specified_archs', '--without=video']' returned non-zero exit status 1.
danielzanchi@MACBOOKPRO-801B opencv-4.x %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment