Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo build hangs when using cc >= 1.0.80 (workaround in crate version 0.84.4) #480

Closed
bazhenov opened this issue Aug 2, 2023 · 25 comments

Comments

@bazhenov
Copy link

bazhenov commented Aug 2, 2023

  1. macOS 13.4.1 (c) (22F770820d)
  2. brew install opencv
  3. opencv version – stable 4.8.0
  4. rustc version – rustc 1.70.0 (90c541806 2023-05-31)
  5. Attach the full output of the following command from your project directory:
       Fresh glob v0.3.1
       Fresh regex-syntax v0.7.4
       Fresh once_cell v1.18.0
       Fresh percent-encoding v2.3.0
       Fresh autocfg v1.1.0
       Fresh libc v0.2.147
       Fresh dunce v1.0.4
       Fresh vcpkg v0.2.15
       Fresh pkg-config v0.3.27
       Fresh memchr v2.5.0
       Fresh jobserver v0.1.26
       Fresh semver v1.0.18
       Fresh shlex v1.1.0
       Fresh aho-corasick v1.0.2
       Fresh clang-sys v1.6.1
       Fresh cc v1.0.80
       Fresh num-traits v0.2.16
       Fresh regex-automata v0.3.4
       Fresh clang v2.0.0
       Fresh regex v1.9.1
       Fresh opencv-binding-generator v0.71.0
   Compiling opencv v0.84.3
     Running `/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build`
[opencv 0.84.3] === Crate version: Some("0.84.3")
[opencv 0.84.3] === Environment configuration:
[opencv 0.84.3] ===   OPENCV_PACKAGE_NAME = None
[opencv 0.84.3] ===   OPENCV_PKGCONFIG_NAME = None
[opencv 0.84.3] ===   OPENCV_CMAKE_NAME = None
[opencv 0.84.3] ===   OPENCV_CMAKE_BIN = None
[opencv 0.84.3] ===   OPENCV_VCPKG_NAME = None
[opencv 0.84.3] ===   OPENCV_LINK_LIBS = None
[opencv 0.84.3] ===   OPENCV_LINK_PATHS = None
[opencv 0.84.3] ===   OPENCV_INCLUDE_PATHS = None
[opencv 0.84.3] ===   OPENCV_DISABLE_PROBES = None
[opencv 0.84.3] ===   CMAKE_PREFIX_PATH = None
[opencv 0.84.3] ===   OpenCV_DIR = None
[opencv 0.84.3] ===   PKG_CONFIG_PATH = None
[opencv 0.84.3] ===   VCPKG_ROOT = None
[opencv 0.84.3] ===   VCPKGRS_DYNAMIC = None
[opencv 0.84.3] ===   OCVRS_DOCS_GENERATE_DIR = None
[opencv 0.84.3] ===   DOCS_RS = None
[opencv 0.84.3] ===   PATH = Some("/Users/bazhenov/.cargo/bin:/Users/bazhenov/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/bazhenov/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/local/Cellar/openjdk/20.0.1/libexec/openjdk.jdk/Contents/Home/bin:/usr/local/opt/fzf/bin")
[opencv 0.84.3] === Enabled features:
[opencv 0.84.3] ===   ALPHAMAT
[opencv 0.84.3] ===   ARUCO
[opencv 0.84.3] ===   ARUCO_DETECTOR
[opencv 0.84.3] ===   BARCODE
[opencv 0.84.3] ===   BGSEGM
[opencv 0.84.3] ===   BIOINSPIRED
[opencv 0.84.3] ===   CALIB3D
[opencv 0.84.3] ===   CCALIB
[opencv 0.84.3] ===   CUDAARITHM
[opencv 0.84.3] ===   CUDABGSEGM
[opencv 0.84.3] ===   CUDACODEC
[opencv 0.84.3] ===   CUDAFEATURES2D
[opencv 0.84.3] ===   CUDAFILTERS
[opencv 0.84.3] ===   CUDAIMGPROC
[opencv 0.84.3] ===   CUDAOBJDETECT
[opencv 0.84.3] ===   CUDAOPTFLOW
[opencv 0.84.3] ===   CUDASTEREO
[opencv 0.84.3] ===   CUDAWARPING
[opencv 0.84.3] ===   CVV
[opencv 0.84.3] ===   DEFAULT
[opencv 0.84.3] ===   DNN
[opencv 0.84.3] ===   DNN_SUPERRES
[opencv 0.84.3] ===   DPM
[opencv 0.84.3] ===   FACE
[opencv 0.84.3] ===   FEATURES2D
[opencv 0.84.3] ===   FLANN
[opencv 0.84.3] ===   FREETYPE
[opencv 0.84.3] ===   FUZZY
[opencv 0.84.3] ===   GAPI
[opencv 0.84.3] ===   HDF
[opencv 0.84.3] ===   HFS
[opencv 0.84.3] ===   HIGHGUI
[opencv 0.84.3] ===   IMGCODECS
[opencv 0.84.3] ===   IMGPROC
[opencv 0.84.3] ===   IMG_HASH
[opencv 0.84.3] ===   INTENSITY_TRANSFORM
[opencv 0.84.3] ===   LINE_DESCRIPTOR
[opencv 0.84.3] ===   MCC
[opencv 0.84.3] ===   ML
[opencv 0.84.3] ===   OBJDETECT
[opencv 0.84.3] ===   OPTFLOW
[opencv 0.84.3] ===   OVIS
[opencv 0.84.3] ===   PHASE_UNWRAPPING
[opencv 0.84.3] ===   PHOTO
[opencv 0.84.3] ===   PLOT
[opencv 0.84.3] ===   QUALITY
[opencv 0.84.3] ===   RAPID
[opencv 0.84.3] ===   RGBD
[opencv 0.84.3] ===   SALIENCY
[opencv 0.84.3] ===   SFM
[opencv 0.84.3] ===   SHAPE
[opencv 0.84.3] ===   STEREO
[opencv 0.84.3] ===   STITCHING
[opencv 0.84.3] ===   STRUCTURED_LIGHT
[opencv 0.84.3] ===   SUPERRES
[opencv 0.84.3] ===   SURFACE_MATCHING
[opencv 0.84.3] ===   TEXT
[opencv 0.84.3] ===   TRACKING
[opencv 0.84.3] ===   VIDEO
[opencv 0.84.3] ===   VIDEOIO
[opencv 0.84.3] ===   VIDEOSTAB
[opencv 0.84.3] ===   VIZ
[opencv 0.84.3] ===   WECHAT_QRCODE
[opencv 0.84.3] ===   XFEATURES2D
[opencv 0.84.3] ===   XIMGPROC
[opencv 0.84.3] ===   XOBJDETECT
[opencv 0.84.3] ===   XPHOTO
[opencv 0.84.3] === Detected probe priority based on environment vars: pkg_config: false, cmake: false, vcpkg: false
[opencv 0.84.3] === Probing the OpenCV library in the following order: environment, pkg_config, cmake, vcpkg_cmake, vcpkg
[opencv 0.84.3] === Can't probe using: environment, continuing with other methods because: Some environment variables are missing
[opencv 0.84.3] === Probing OpenCV library using pkg_config
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV4_NO_PKG_CONFIG
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-apple-darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_apple_darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_PKG_CONFIG
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV4_STATIC
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-apple-darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_PATH
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-apple-darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-apple-darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV4_STATIC
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-apple-darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_apple_darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_PKG_CONFIG
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV4_STATIC
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-apple-darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_PATH
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-apple-darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-apple-darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
[opencv 0.84.3] === Successfully probed using: pkg_config
[opencv 0.84.3] === OpenCV library configuration: Library {
[opencv 0.84.3]     include_paths: [
[opencv 0.84.3]         "/usr/local/opt/opencv/include/opencv4",
[opencv 0.84.3]     ],
[opencv 0.84.3]     version: Version {
[opencv 0.84.3]         major: 4,
[opencv 0.84.3]         minor: 8,
[opencv 0.84.3]         patch: 0,
[opencv 0.84.3]     },
[opencv 0.84.3]     cargo_metadata: [
[opencv 0.84.3]         "cargo:rustc-link-search=/usr/local/opt/opencv/lib",
[opencv 0.84.3]         "cargo:rustc-link-search=framework=/usr/local/opt/opencv/lib",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_gapi",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_stitching",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_alphamat",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_aruco",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_bgsegm",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_bioinspired",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_ccalib",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_dnn_objdetect",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_dnn_superres",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_dpm",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_face",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_freetype",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_fuzzy",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_hfs",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_img_hash",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_intensity_transform",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_line_descriptor",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_mcc",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_quality",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_rapid",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_reg",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_rgbd",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_saliency",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_sfm",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_stereo",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_structured_light",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_phase_unwrapping",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_superres",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_optflow",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_surface_matching",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_tracking",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_highgui",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_datasets",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_text",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_plot",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_videostab",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_videoio",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_viz",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_wechat_qrcode",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_xfeatures2d",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_shape",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_ml",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_ximgproc",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_video",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_xobjdetect",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_objdetect",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_calib3d",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_imgcodecs",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_features2d",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_dnn",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_flann",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_xphoto",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_photo",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_imgproc",
[opencv 0.84.3]         "cargo:rustc-link-lib=opencv_core",
[opencv 0.84.3]     ],
[opencv 0.84.3] }
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_opencv_branch_4
[opencv 0.84.3] === Detected OpenCV module header dir at: /usr/local/opt/opencv/include/opencv4/opencv2
[opencv 0.84.3] === Found OpenCV version: 4.8.0 in headers located at: /usr/local/opt/opencv/include/opencv4
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV_PACKAGE_NAME
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV_CMAKE_NAME
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV_CMAKE_BIN
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV_VCPKG_NAME
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV_LINK_LIBS
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV_LINK_PATHS
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV_INCLUDE_PATHS
[opencv 0.84.3] cargo:rerun-if-env-changed=OPENCV_DISABLE_PROBES
[opencv 0.84.3] cargo:rerun-if-env-changed=CMAKE_PREFIX_PATH
[opencv 0.84.3] cargo:rerun-if-env-changed=OpenCV_DIR
[opencv 0.84.3] cargo:rerun-if-env-changed=PKG_CONFIG_PATH
[opencv 0.84.3] cargo:rerun-if-env-changed=VCPKG_ROOT
[opencv 0.84.3] cargo:rerun-if-env-changed=VCPKGRS_DYNAMIC
[opencv 0.84.3] cargo:rerun-if-env-changed=OCVRS_DOCS_GENERATE_DIR
[opencv 0.84.3] cargo:rerun-if-env-changed=DOCS_RS
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/bioinspired.hpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/gapi.hpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/face.hpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/sfm.hpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/hdf.hpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/xfeatures2d.hpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/photo.hpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/alphamat.hpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/ccalib.hpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/dnn.hpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/videoio.hpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/manual-core.cpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/core.hpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/ocvrs_common.hpp
[opencv 0.84.3] cargo:rerun-if-changed=/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp/aruco.hpp
[opencv 0.84.3] cargo:rerun-if-changed=Cargo.toml
[opencv 0.84.3] === Generating code in: /Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out
[opencv 0.84.3] === Placing generated bindings into: /Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out/opencv
[opencv 0.84.3] === Using OpenCV headers from: /usr/local/opt/opencv/include/opencv4
[opencv 0.84.3] === Clang: Apple clang version 14.0.3 (clang-1403.0.22.14.1)
[opencv 0.84.3] === Clang command line args: [
[opencv 0.84.3]     "-isystem/usr/local/include",
[opencv 0.84.3]     "-isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1",
[opencv 0.84.3]     "-isystem/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include",
[opencv 0.84.3]     "-isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include",
[opencv 0.84.3]     "-isystem/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include",
[opencv 0.84.3]     "-isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks",
[opencv 0.84.3]     "-I/usr/local/Cellar/opencv/4.8.0_1/include/opencv4",
[opencv 0.84.3]     "-F/usr/local/Cellar/opencv/4.8.0_1/include/opencv4",
[opencv 0.84.3]     "-I/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp",
[opencv 0.84.3]     "-F/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp",
[opencv 0.84.3]     "-DOCVRS_PARSING_HEADERS",
[opencv 0.84.3]     "-includeocvrs_common.hpp",
[opencv 0.84.3]     "-std=c++14",
[opencv 0.84.3] ]
[opencv 0.84.3] === Using environment job server with the the amount of available jobs: 7
[opencv 0.84.3] === Generating 52 modules
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "alphamat" ""
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "bgsegm" ""
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "calib3d" ""
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "ccalib" ""
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "bioinspired" ""
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "aruco" ""
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "core" ""
[opencv 0.84.3] === Generated: alphamat in 2.159060853s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "dnn" ""
[opencv 0.84.3] === Generated: bioinspired in 2.355978001s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "dnn_superres" ""
[opencv 0.84.3] === Generated: bgsegm in 2.445401222s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "dpm" ""
[opencv 0.84.3] === Generated: aruco in 2.4887359s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "face" ""
[opencv 0.84.3] === Generated: ccalib in 2.772971029s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "features2d" ""
[opencv 0.84.3] === Generated: calib3d in 3.632829779s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "flann" ""
[opencv 0.84.3] === Generated: dnn_superres in 2.326730963s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "freetype" ""
[opencv 0.84.3] === Generated: dpm in 2.29002066s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "fuzzy" ""
[opencv 0.84.3] === Generated: face in 2.995253854s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "gapi" ""
[opencv 0.84.3] === Generated: features2d in 3.134453506s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "hfs" ""
[opencv 0.84.3] === Generated: flann in 2.568847349s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "highgui" ""
[opencv 0.84.3] === Generated: freetype in 2.272617178s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "img_hash" ""
[opencv 0.84.3] === Generated: fuzzy in 2.306145664s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "imgcodecs" ""
[opencv 0.84.3] === Generated: core in 7.400375619s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "imgproc" ""
[opencv 0.84.3] === Generated: hfs in 2.36346051s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "intensity_transform" ""
[opencv 0.84.3] === Generated: highgui in 2.487121115s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "line_descriptor" ""
[opencv 0.84.3] === Generated: dnn in 6.613333087s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "mcc" ""
[opencv 0.84.3] === Generated: imgcodecs in 2.321083419s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "ml" ""
[opencv 0.84.3] === Generated: img_hash in 2.411339851s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "objdetect" ""
[opencv 0.84.3] === Generated: gapi in 4.200571873s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "optflow" ""
[opencv 0.84.3] === Generated: intensity_transform in 2.297843031s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "phase_unwrapping" ""
[opencv 0.84.3] === Generated: imgproc in 3.778861886s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "photo" ""
[opencv 0.84.3] === Generated: mcc in 2.496894321s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "plot" ""
[opencv 0.84.3] === Generated: line_descriptor in 2.605532859s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "quality" ""
[opencv 0.84.3] === Generated: ml in 3.058479554s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "rapid" ""
[opencv 0.84.3] === Generated: optflow in 2.852790097s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "rgbd" ""
[opencv 0.84.3] === Generated: phase_unwrapping in 2.361472484s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "saliency" ""
[opencv 0.84.3] === Generated: objdetect in 3.609746808s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "sfm" ""
[opencv 0.84.3] === Generated: plot in 2.316982604s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "shape" ""
[opencv 0.84.3] === Generated: quality in 2.448188453s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "stereo" ""
[opencv 0.84.3] === Generated: photo in 2.780576062s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "stitching" ""
[opencv 0.84.3] === Generated: rapid in 2.435142524s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "structured_light" ""
[opencv 0.84.3] === Generated: saliency in 2.438826434s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "superres" ""
[opencv 0.84.3] === Generated: sfm in 2.52105385s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "surface_matching" ""
[opencv 0.84.3] === Generated: stereo in 2.317798412s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "text" ""
[opencv 0.84.3] === Generated: shape in 2.527747352s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "tracking" ""
[opencv 0.84.3] === Generated: rgbd in 3.963654099s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "video" ""
[opencv 0.84.3] === Generated: structured_light in 2.483774825s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "videoio" ""
[opencv 0.84.3] === Generated: superres in 2.459686225s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "videostab" ""
[opencv 0.84.3] === Generated: surface_matching in 2.452547688s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "viz" ""
[opencv 0.84.3] === Generated: tracking in 2.441970205s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "wechat_qrcode" ""
[opencv 0.84.3] === Generated: stitching in 4.630751177s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "xfeatures2d" ""
[opencv 0.84.3] === Generated: text in 2.901939724s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "ximgproc" ""
[opencv 0.84.3] === Generated: video in 2.962259735s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "xobjdetect" ""
[opencv 0.84.3] === Generated: videoio in 2.592673421s
[opencv 0.84.3] === Running: "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build" "/usr/local/opt/opencv/include/opencv4" "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp" "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out" "xphoto" ""
[opencv 0.84.3] === Generated: wechat_qrcode in 2.315923945s
[opencv 0.84.3] === Generated: viz in 3.221903696s
[opencv 0.84.3] === Generated: videostab in 3.402501236s
[opencv 0.84.3] === Generated: xfeatures2d in 2.983076487s
[opencv 0.84.3] === Generated: xobjdetect in 2.157007994s
[opencv 0.84.3] === Generated: xphoto in 2.119193071s
[opencv 0.84.3] === Generated: ximgproc in 3.181515393s
[opencv 0.84.3] === Total binding generation time: 22.145034532s
[opencv 0.84.3] === Total binding collection time: 521.885435ms
[opencv 0.84.3] OPT_LEVEL = Some("0")
[opencv 0.84.3] TARGET = Some("x86_64-apple-darwin")
[opencv 0.84.3] HOST = Some("x86_64-apple-darwin")
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin
[opencv 0.84.3] CXX_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin
[opencv 0.84.3] CXX_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXX
[opencv 0.84.3] HOST_CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX
[opencv 0.84.3] CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[opencv 0.84.3] CRATE_CC_NO_DEFAULTS = None
[opencv 0.84.3] DEBUG = Some("true")
[opencv 0.84.3] CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin
[opencv 0.84.3] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin
[opencv 0.84.3] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXXFLAGS
[opencv 0.84.3] HOST_CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS
[opencv 0.84.3] CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin
[opencv 0.84.3] CXX_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin
[opencv 0.84.3] CXX_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXX
[opencv 0.84.3] HOST_CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX
[opencv 0.84.3] CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[opencv 0.84.3] CRATE_CC_NO_DEFAULTS = None
[opencv 0.84.3] CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin
[opencv 0.84.3] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin
[opencv 0.84.3] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXXFLAGS
[opencv 0.84.3] HOST_CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS
[opencv 0.84.3] CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin
[opencv 0.84.3] CXX_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin
[opencv 0.84.3] CXX_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXX
[opencv 0.84.3] HOST_CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX
[opencv 0.84.3] CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[opencv 0.84.3] CRATE_CC_NO_DEFAULTS = None
[opencv 0.84.3] CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin
[opencv 0.84.3] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin
[opencv 0.84.3] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXXFLAGS
[opencv 0.84.3] HOST_CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS
[opencv 0.84.3] CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin
[opencv 0.84.3] CXX_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin
[opencv 0.84.3] CXX_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXX
[opencv 0.84.3] HOST_CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX
[opencv 0.84.3] CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[opencv 0.84.3] CRATE_CC_NO_DEFAULTS = None
[opencv 0.84.3] CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin
[opencv 0.84.3] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin
[opencv 0.84.3] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXXFLAGS
[opencv 0.84.3] HOST_CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS
[opencv 0.84.3] CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin
[opencv 0.84.3] CXX_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin
[opencv 0.84.3] CXX_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXX
[opencv 0.84.3] HOST_CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX
[opencv 0.84.3] CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[opencv 0.84.3] CRATE_CC_NO_DEFAULTS = None
[opencv 0.84.3] CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin
[opencv 0.84.3] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin
[opencv 0.84.3] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXXFLAGS
[opencv 0.84.3] HOST_CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS
[opencv 0.84.3] CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin
[opencv 0.84.3] CXX_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin
[opencv 0.84.3] CXX_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXX
[opencv 0.84.3] HOST_CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX
[opencv 0.84.3] CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[opencv 0.84.3] CRATE_CC_NO_DEFAULTS = None
[opencv 0.84.3] CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin
[opencv 0.84.3] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin
[opencv 0.84.3] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXXFLAGS
[opencv 0.84.3] HOST_CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS
[opencv 0.84.3] CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin
[opencv 0.84.3] CXX_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin
[opencv 0.84.3] CXX_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXX
[opencv 0.84.3] HOST_CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX
[opencv 0.84.3] CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[opencv 0.84.3] CRATE_CC_NO_DEFAULTS = None
[opencv 0.84.3] CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin
[opencv 0.84.3] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin
[opencv 0.84.3] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXXFLAGS
[opencv 0.84.3] HOST_CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS
[opencv 0.84.3] CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin
[opencv 0.84.3] CXX_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin
[opencv 0.84.3] CXX_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXX
[opencv 0.84.3] HOST_CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX
[opencv 0.84.3] CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[opencv 0.84.3] CRATE_CC_NO_DEFAULTS = None
[opencv 0.84.3] CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin
[opencv 0.84.3] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin
[opencv 0.84.3] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXXFLAGS
[opencv 0.84.3] HOST_CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS
[opencv 0.84.3] CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin
[opencv 0.84.3] CXX_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin
[opencv 0.84.3] CXX_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXX
[opencv 0.84.3] HOST_CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX
[opencv 0.84.3] CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[opencv 0.84.3] CRATE_CC_NO_DEFAULTS = None
[opencv 0.84.3] CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin
[opencv 0.84.3] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin
[opencv 0.84.3] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXXFLAGS
[opencv 0.84.3] HOST_CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS
[opencv 0.84.3] CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin
[opencv 0.84.3] CXX_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin
[opencv 0.84.3] CXX_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXX
[opencv 0.84.3] HOST_CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX
[opencv 0.84.3] CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[opencv 0.84.3] CRATE_CC_NO_DEFAULTS = None
[opencv 0.84.3] CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin
[opencv 0.84.3] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin
[opencv 0.84.3] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXXFLAGS
[opencv 0.84.3] HOST_CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS
[opencv 0.84.3] CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin
[opencv 0.84.3] CXX_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin
[opencv 0.84.3] CXX_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXX
[opencv 0.84.3] HOST_CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXX
[opencv 0.84.3] CXX = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[opencv 0.84.3] CRATE_CC_NO_DEFAULTS = None
[opencv 0.84.3] CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,ssse3")
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin
[opencv 0.84.3] CXXFLAGS_x86_64-apple-darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin
[opencv 0.84.3] CXXFLAGS_x86_64_apple_darwin = None
[opencv 0.84.3] cargo:rerun-if-env-changed=HOST_CXXFLAGS
[opencv 0.84.3] HOST_CXXFLAGS = None
[opencv 0.84.3] cargo:rerun-if-env-changed=CXXFLAGS
[opencv 0.84.3] CXXFLAGS = None
[opencv 0.84.3] === Compiler information: Tool {
[opencv 0.84.3]     path: "c++",
[opencv 0.84.3]     cc_wrapper_path: None,
[opencv 0.84.3]     cc_wrapper_args: [],
[opencv 0.84.3]     args: [
[opencv 0.84.3]         "-O0",
[opencv 0.84.3]         "-ffunction-sections",
[opencv 0.84.3]         "-fdata-sections",
[opencv 0.84.3]         "-fPIC",
[opencv 0.84.3]         "-gdwarf-2",
[opencv 0.84.3]         "-fno-omit-frame-pointer",
[opencv 0.84.3]         "-m64",
[opencv 0.84.3]         "-arch",
[opencv 0.84.3]         "x86_64",
[opencv 0.84.3]         "-I",
[opencv 0.84.3]         "/Users/bazhenov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.3/src_cpp",
[opencv 0.84.3]         "-I",
[opencv 0.84.3]         "/Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-d38e2861442b9146/out",
[opencv 0.84.3]         "-I",
[opencv 0.84.3]         ".",
[opencv 0.84.3]         "-I",
[opencv 0.84.3]         "/usr/local/opt/opencv/include/opencv4",
[opencv 0.84.3]         "-Wall",
[opencv 0.84.3]         "-Wextra",
[opencv 0.84.3]         "-std=c++11",
[opencv 0.84.3]         "-Wno-deprecated-declarations",
[opencv 0.84.3]         "-Wno-deprecated-copy",
[opencv 0.84.3]         "-Wno-unused-parameter",
[opencv 0.84.3]         "-Wno-sign-compare",
[opencv 0.84.3]         "-Wno-comment",
[opencv 0.84.3]         "-Wno-unused-variable",
[opencv 0.84.3]         "-Wno-ignored-qualifiers",
[opencv 0.84.3]         "-Wno-return-type-c-linkage",
[opencv 0.84.3]         "-F/usr/local/opt/opencv/include/opencv4",
[opencv 0.84.3]     ],
[opencv 0.84.3]     env: [],
[opencv 0.84.3]     family: Gnu,
[opencv 0.84.3]     cuda: false,
[opencv 0.84.3]     removed_args: [],
[opencv 0.84.3] }
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_alphamat
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_aruco
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_bgsegm
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_bioinspired
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_calib3d
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_ccalib
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_core
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_dnn
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_dnn_superres
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_dpm
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_face
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_features2d
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_flann
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_freetype
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_fuzzy
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_gapi
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_hfs
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_highgui
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_img_hash
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_imgcodecs
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_imgproc
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_intensity_transform
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_line_descriptor
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_mcc
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_ml
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_objdetect
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_optflow
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_phase_unwrapping
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_photo
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_plot
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_quality
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_rapid
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_rgbd
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_saliency
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_sfm
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_shape
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_stereo
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_stitching
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_structured_light
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_superres
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_surface_matching
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_text
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_tracking
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_video
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_videoio
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_videostab
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_viz
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_wechat_qrcode
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_xfeatures2d
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_ximgproc
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_xobjdetect
[opencv 0.84.3] cargo:rustc-cfg=ocvrs_has_module_xphoto

cargo build command hangs. Seems like the build scripts is waiting output of the cc compiler:

$ sample `pgrep build-script` 1
[...]
Call graph:
    821 Thread_4064323   DispatchQueue_1: com.apple.main-thread  (serial)
    + 821 start  (in dyld) + 1903  [0x7ff80328541f]
    +   821 main  (in build-script-build) + 24  [0x10d1f1448]
    +     821 std::rt::lang_start::hb0fc3aad8974accf  (in build-script-build) + 40  [0x10d1dbe08]
    +       821 std::rt::lang_start_internal::h36134e47b0b0d769  (in build-script-build) + 786  [0x10d6924e2]
    +         821 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h2c2e2e7b2e7621dd  (in build-script-build) + 16  [0x10d1dbe30]
    +           821 std::sys_common::backtrace::__rust_begin_short_backtrace::h63357bf7d5a68fc9  (in build-script-build) + 9  [0x10d1db859]
    +             821 core::ops::function::FnOnce::call_once::h75d52d17ab0cabce  (in build-script-build) + 10  [0x10d1f1fea]
    +               821 build_script_build::main::h715d2804cb51a4b6  (in build-script-build) + 5648  [0x10d1f1030]
    +                 821 build_script_build::build_wrapper::h9ac1797fad5be4b1  (in build-script-build) + 1622  [0x10d1ef966]
    +                   821 cc::Build::compile::h1e7d8fe3555207f6  (in build-script-build) + 26  [0x10d2029ea]
    +                     821 cc::Build::try_compile::h47399fd47b24182e  (in build-script-build) + 5269  [0x10d201385]
    +                       821 cc::Build::compile_objects::h69182994bcb75fb8  (in build-script-build) + 1631  [0x10d2030ef]
    +                         821 jobserver::Client::acquire::h7c86558239174c7d  (in build-script-build) + 44  [0x10d2c594c]
    +                           821 jobserver::imp::Client::acquire::hbe0bccde86586504  (in build-script-build) + 33  [0x10d2c4871]
    +                             821 jobserver::imp::Client::acquire_allow_interrupts::h3cd4c76be297277e  (in build-script-build) + 166  [0x10d2c4986]
    +                               821 _$LT$$RF$std..fs..File$u20$as$u20$std..io..Read$GT$::read::h7db08d84478a0c20  (in build-script-build) + 41  [0x10d694059]
    +                                 821 read  (in libsystem_kernel.dylib) + 10  [0x7ff8035a0fde]
    821 Thread_4066738
    + 821 thread_start  (in libsystem_pthread.dylib) + 15  [0x7ff8035dabd3]
    +   821 _pthread_start  (in libsystem_pthread.dylib) + 125  [0x7ff8035df1d3]
    +     821 std::sys::unix::thread::Thread::new::thread_start::ha9b8d2206382b425  (in build-script-build) + 41  [0x10d6a3a99]
    +       821 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hc59063701881b7f1  (in build-script-build) + 13  [0x10d23fb4d]
    +         821 std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::h5c8d35b9b4a33fb3  (in build-script-build) + 326  [0x10d24cc36]
    +           821 std::panic::catch_unwind::h41e41edc1400bba9  (in build-script-build) + 9  [0x10d2258c9]
    +             821 std::panicking::try::hf47663c6cbc234c6  (in build-script-build) + 40  [0x10d23f398]
    +               821 __rust_try  (in build-script-build) + 29  [0x10d24584d]
    +                 821 std::panicking::try::do_call::h121a1d4d736758b3  (in build-script-build) + 11  [0x10d23f3db]
    +                   821 _$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::hdb0ab5f8278a72d1  (in build-script-build) + 13  [0x10d2525cd]
    +                     821 std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h5d3743aaa27d25ee  (in build-script-build) + 9  [0x10d24d109]
    +                       821 std::sys_common::backtrace::__rust_begin_short_backtrace::h2fd0eca9d10ceff5  (in build-script-build) + 9  [0x10d2525f9]
    +                         821 cc::PrintThread::new::_$u7b$$u7b$closure$u7d$$u7d$::h4c1dc51bc9bad5f0  (in build-script-build) + 147  [0x10d21c043]
    +                           821 std::io::BufRead::read_line::h5066fa7bdad03704  (in build-script-build) + 39  [0x10d22f5b7]
    +                             821 std::io::append_to_string::h31a23d9498bfe1a8  (in build-script-build) + 69  [0x10d23e965]
    +                               821 std::io::BufRead::read_line::_$u7b$$u7b$closure$u7d$$u7d$::h3d88681ce2db949c  (in build-script-build) + 36  [0x10d23ebc4]
    +                                 821 std::io::read_until::hd601992808268d5e  (in build-script-build) + 71  [0x10d23e727]
    +                                   821 _$LT$std..io..buffered..bufreader..BufReader$LT$R$GT$$u20$as$u20$std..io..BufRead$GT$::fill_buf::hfce0f277aabd63a0  (in build-script-build) + 27  [0x10d234a8b]
    +                                     821 std::io::buffered::bufreader::buffer::Buffer::fill_buf::hedb19888be2227b5  (in build-script-build) + 189  [0x10d22f78d]
    +                                       821 std::io::impls::_$LT$impl$u20$std..io..Read$u20$for$u20$$RF$mut$u20$R$GT$::read_buf::h2b1babb7e81e9e02  (in build-script-build) + 12  [0x10d2254cc]
    +                                         821 _$LT$std..fs..File$u20$as$u20$std..io..Read$GT$::read_buf::hcbb0cdcd42fe7964  (in build-script-build) + 54  [0x10d693eb6]
    +                                           821 read  (in libsystem_kernel.dylib) + 10  [0x7ff8035a0fde]

But I see no compiler process running on behalf of build script:

$ pstree `pgrep cargo`
-+= 39468 bazhenov /Users/bazhenov/.rustup/toolchains/stable-x86_64-apple-darwin/bin/cargo build -vv
 \--- 39471 bazhenov /Users/bazhenov/Developer/playground/qrcode-scanner/target/debug/build/opencv-e86fd880a0648476/build-script-build

Maybe compiler failed with some error, but it's not displayed on the screen.

@jb-alvarado
Copy link

jb-alvarado commented Aug 2, 2023

I have the same issue here under Linux, but with version 0.83. I'm almost thinking this problem has another source, because the last weeks the build process was running normal.

Can it be, that it is related to the cc create, or another? Because when I revert my Cargo.lock file to an older state it works. But when I run cargo update, the build process hangs again.

Edit: Yes I'm almost sure is the cc-rs crate, when you revert to 1.0.79 is works.

@bazhenov
Copy link
Author

bazhenov commented Aug 3, 2023

Indeed! It works for 1.0.79.

For anyone who faces this issue. The following snippet of code in Cargo.toml is required to override the dependency temporarily

[patch.crates-io]
cc = { git = "https://github.com/rust-lang/cc-rs.git", version = "1.0", tag = "1.0.79" }

Then run cargo update, only then cargo build.

@bazhenov
Copy link
Author

bazhenov commented Aug 3, 2023

The problem was introduced in cc crate version 1.0.80 and seems to be resolved in 1.0.81 (see: rust-lang/cc-rs#841 and rust-lang/cc-rs#842). But it still doesn't work for me. 1.0.79 is the latest version that is working for me right now.

@twistedfall
Copy link
Owner

Thanks for the investigation! I’ll try to update the Cargo.toml to exclude the affected versions

@jb-alvarado
Copy link

jb-alvarado commented Aug 3, 2023

@bazhenov, are you sure that 1.0.80 introduced this bug? I had the intention that the bug come up with 1.0.81.

We should also create a report.

@bazhenov
Copy link
Author

bazhenov commented Aug 3, 2023

@bazhenov, are you sure that 1.0.80 introduced this bug? I had the intention that the bug come up with 1.0.81.

Hm... I'm sure it works in my environment on 1.0.79 and doesn't work on 1.0.80 and 1.0.81. So it seems like so, but I will not bet on it at this point 😀

We should also create a report.

I mention this issue in the rust-lang/cc-rs#841 because it seems like they are related. I will create separate report if it will turn out as an independent issue.

@NobodyXu
Copy link
Contributor

NobodyXu commented Aug 3, 2023

Only change in cc v1.0.81 is to accept non-utf8 output from compiler, this problem doesn't seem like a utf-8 problem (which should cause panic), so I'd say probably both v1.0.{80, 81} is affected and would better report it as a new issue.

@NobodyXu
Copy link
Contributor

NobodyXu commented Aug 3, 2023

@bazhenov From your stack trace, I can see that cc::Build::compile_objects is blocked waiting for tokens from jobserver.

This should not happen in cc since it waits for compiler process to be done in a separate thread to avoid deadlock, so the only thing I can conclude is that somehow your jobserver has all its token exhausted.

@twistedfall
Copy link
Owner

twistedfall commented Aug 3, 2023

I can reproduce the problem locally on cc version 1.0.80 and 1.0.81, 1.0.79 works fine for me. I have just released the version 0.84.4 of the crate that restricts cc dependency to <=1.0.79.

@NobodyXu
Copy link
Contributor

NobodyXu commented Aug 3, 2023

Ok, I realize there could be one bug in cc::Build::compile_objects that caused this:

Wait-thread could exit early due to error, however the spawn-thread will go on and keep spawning, thus eventually hitting a deadlock.

Would open a PR shortly.

@twistedfall twistedfall changed the title cargo build hangs on macOS cargo build hangs when using cc >= 1.0.80 (workaround in crate version 0.84.4) Aug 3, 2023
@jb-alvarado
Copy link

I looks like, that opencv is now in conflict with the ring crate. In my project I wanted to update jsonwebtoken to version 9, but it depends on ring version v0.17.4, and that wants cc v1.0.83.

Any idea how to fix that?

Full error message is:

error: failed to select a version for `cc`.
    ... required by package `opencv v0.85.0`
    ... which satisfies dependency `opencv = "^0.85"` of package `manager-api v0.10.0 (/home/jb/dev/gitea/manager-api)`
versions that meet the requirements `<=1.0.79` are: 1.0.79, 1.0.78, 1.0.77, 1.0.76, 1.0.75, 1.0.74, 1.0.73, 1.0.72, 1.0.71, 1.0.70, 1.0.69, 1.0.68, 1.0.67, 1.0.66, 1.0.65, 1.0.64, 1.0.63, 1.0.62, 1.0.61, 1.0.60, 1.0.59, 1.0.58, 1.0.57, 1.0.56, 1.0.55, 1.0.54, 1.0.53, 1.0.52, 1.0.51, 1.0.50, 1.0.49, 1.0.48, 1.0.47, 1.0.46, 1.0.45, 1.0.44, 1.0.43, 1.0.42, 1.0.41, 1.0.40, 1.0.39, 1.0.38, 1.0.37, 1.0.36, 1.0.35, 1.0.34, 1.0.33, 1.0.32, 1.0.31, 1.0.30, 1.0.29, 1.0.28, 1.0.27, 1.0.26, 1.0.25, 1.0.24, 1.0.23, 1.0.22, 1.0.21, 1.0.20, 1.0.19, 1.0.18, 1.0.17, 1.0.16, 1.0.15, 1.0.14, 1.0.13, 1.0.12, 1.0.11, 1.0.10, 1.0.9, 1.0.8, 1.0.7, 1.0.6, 1.0.5, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0, 0.0.1

the package `opencv` depends on `cc`, with features: `parallel` but `cc` does not have these features.


all possible versions conflict with previously selected packages.

  previously selected package `cc v1.0.83`
    ... which satisfies dependency `cc = "^1.0.83"` of package `ring v0.17.4`
    ... which satisfies dependency `ring = "^0.17.4"` of package `jsonwebtoken v9.0.0`
    ... which satisfies dependency `jsonwebtoken = "^9"` of package `manager-api v0.10.0 (/home/jb/dev/gitea/manager-api)`

failed to select a version for `cc` which could resolve this conflict

@twistedfall
Copy link
Owner

Can you try running cargo update to see if it fixes the conflict?

@jb-alvarado
Copy link

jb-alvarado commented Oct 21, 2023

No , if I run that, I get immediately the same error. I also run cargo clean and rm -rf ~/.cargo/registry ~/.cargo/.package-cache, to be sure there is no old conflicts.

When I downgrade jsonwebtoken to version 8 again, it works again.

@twistedfall
Copy link
Owner

Well, there are some problems with dependencies:

  1. I can't bump cc as is because newer versions depend on jobserver and 2 crates can't use jobserver's Client::from_env() at the same time because it hangs on the second call (unless feat: Make Client::from_env safe to call for any number of times rust-lang/jobserver-rs#57 is merged and released)
  2. I could try switching to jobslot to fix the hang issue, but even with this, the newest version of jobserver (0.1.27) uses some new API calls that were stabilized after rust 1.59 (which is the MSRV of opencv crate) without specifying msrv in Cargo.toml and that results in the broken build on older rust versions. This has been fixed in chore: set MSRV to 1.66 and edition to 2021 rust-lang/jobserver-rs#59, but it's not released yet.

So at this moment I can't bump cc without breaking something else, so let's wait until either of those 2 problems is fixed.

@jb-alvarado
Copy link

Yes, I understand. I can stick on jsonwebtoken v8 for now.

@NobodyXu
Copy link
Contributor

P.S. I'm working on rust-lang/cc-rs#889 which completely removes jobserver as a dependency of cc by using vendored implementation and it also removes thread creation in parallel compile_objects (2 less thread spawned during compilation if feature cc/parallel is enabled).

@NobodyXu
Copy link
Contributor

NobodyXu commented Nov 5, 2023

Bad news is that cc now has marv of 1.53 rust-lang/cc-rs#889 (comment)

but it seems that this crate has a msrv of 1.59 so not affected

@twistedfall
Copy link
Owner

Hi @NobodyXu, it looks like there is an issue with contested resources in the new version of cc. I can see a lot of "Resource temporary unavailable" in the Linux CI jobs: https://github.com/twistedfall/opencv-rust/actions/runs/6844842064/job/18609212991?pr=511

@NobodyXu
Copy link
Contributor

Hi @twistedfall , are you still using jobserver along with cc?

If that's the case, it's probably just the old bug hitting back rust-lang/jobserver-rs#57 .

Since cc's own vendored jobserver implementation now sets the jobserver fd as non-blocking, with the bug it might have set stderr as non-blocking accidentally.

However, there's a workaround.

If you call cc's try_compile/compile before creating a jobserver in your code, then you will be fine since cc will dup the jobserver fd.

Any compile with more than one object will do the job.

@twistedfall
Copy link
Owner

Thanks, I'll try to employ this workaround!

@torsteingrindvik
Copy link

version = "<=1.0.79" is causing some build issues for me.

Any luck with the workaround?

@twistedfall
Copy link
Owner

twistedfall commented Jan 18, 2024

Well, the version 1.0.84 that the workaround was applicable to has since been yanked (because of rust-lang/cc-rs#902) and no new version has been released so situation hasn't really changed.

@twistedfall
Copy link
Owner

@torsteingrindvik Can you please check the NobodyXu-use-jobslot branch to see if it fixes your build and doesn't introduce any new issues?

@torsteingrindvik
Copy link

@torsteingrindvik Can you please check the NobodyXu-use-jobslot branch to see if it fixes your build and doesn't introduce any new issues?

This branch works for me (i.e. cargo dependencies resolve now and no compile issues) and a brief test didn't show any problems.

@twistedfall
Copy link
Owner

This should now be fixed in v0.88.8 (at the cost of bumping MSRV from 1.65 to 1.66)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants