conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
965 stars 1.77k forks source link

[package] opencv/4.5.3: eigen version bump made VS2017 build broken #18077

Open db4 opened 1 year ago

db4 commented 1 year ago

Description

That was done at https://github.com/conan-io/conan-center-index/pull/17475. Error:

c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\eigen\src/Core/GenericPacketMath.h(788): error C2665: 'exp': none of the 3 overloads could convert all the argument types [C:\.conan\e6858d\1\build\modules\features2d\opencv_features2d_AVX512_SKX.vcxproj]
  C:\BuildTools\VC\Tools\MSVC\14.16.27023\include\cmath(390): note: could be 'long double exp(long double) noexcept'
  C:\BuildTools\VC\Tools\MSVC\14.16.27023\include\cmath(96): note: or       'float exp(float) noexcept'

See also https://github.com/opencv/opencv/issues/21675. Looks like you decided not to build VS2017 packages anymore, otherwise you would detect that in the PR CI pipeline.

Package and Environment Details

Conan profile

[settings] os=Windows os_build=Windows arch=x86_64 arch_build=x86_64 compiler=Visual Studio compiler.version=15 build_type=Release [options] [build_requires] [env]

Steps to reproduce

conan install opencv/4.5.3@ --build missing

Logs

Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=15
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

conan : opencv/4.5.3: WARN: Package binary is corrupted, removing: 1e408f5adbd3a019a497492f843376af84f52ab6
Version ranges solved
    Version range '>=1.1 <4' required by 'ffmpeg/4.4' resolved to 'openssl/3.1.1' in local cache

Installing package: opencv/4.5.3
Requirements
    ade/0.1.2a from 'conancenter' - Cache
    brotli/1.0.9 from 'conancenter' - Cache
    bzip2/1.0.8 from 'conancenter' - Cache
    eigen/3.4.0 from 'conancenter' - Cache
    ffmpeg/4.4 from 'conancenter' - Cache
    freetype/2.13.0 from 'conancenter' - Cache
    imath/3.1.6 from 'conancenter' - Cache
    jasper/4.0.0 from 'conancenter' - Cache
    jbig/20160605 from 'conancenter' - Cache
    libdeflate/1.18 from 'conancenter' - Cache
    libfdk_aac/2.0.2 from 'conancenter' - Cache
    libiconv/1.17 from 'conancenter' - Cache
    libjpeg/9e from 'conancenter' - Cache
    libmp3lame/3.100 from 'conancenter' - Cache
    libpng/1.6.39 from 'conancenter' - Cache
    libtiff/4.4.0 from 'conancenter' - Cache
    libvpx/1.11.0 from 'conancenter' - Cache
    libwebp/1.3.0 from 'conancenter' - Cache
    libx264/cci.20220602 from 'conancenter' - Cache
    libx265/3.4 from 'conancenter' - Cache
    ogg/1.3.5 from 'conancenter' - Cache
    opencv/4.5.3 from 'conancenter' - Cache
    openexr/3.1.5 from 'conancenter' - Cache
    openh264/2.3.1 from 'conancenter' - Cache
    openjpeg/2.5.0 from 'conancenter' - Cache
    openssl/3.1.1 from 'conancenter' - Cache
    opus/1.3.1 from 'conancenter' - Cache
    protobuf/3.17.1 from 'conancenter' - Cache
    quirc/1.1 from 'conancenter' - Cache
    vorbis/1.3.7 from 'conancenter' - Cache
    xz_utils/5.4.2 from 'conancenter' - Cache
    zlib/1.2.13 from 'conancenter' - Cache
    zstd/1.5.5 from 'conancenter' - Cache
Packages
    ade/0.1.2a:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 - Cache
    brotli/1.0.9:47895f8fb966ca6b71f60e92e894d2a20b16dcab - Cache
    bzip2/1.0.8:5be2b7a2110ec8acdbf9a1cea9de5d60747edb34 - Cache
    eigen/3.4.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    ffmpeg/4.4:5c600d2884f5b5deee19d6979f2398f6827edfe7 - Cache
    freetype/2.13.0:48d0120dc306b44fcc074dbed3143a1cab49596c - Cache
    imath/3.1.6:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 - Cache
    jasper/4.0.0:b391d64ded7cc981385ab2c8e07a7cab25982808 - Cache
    jbig/20160605:1ed3f33597709b1f18c5a6ba2afcc72d12ddb2fc - Cache
    libdeflate/1.18:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 - Cache
    libfdk_aac/2.0.2:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 - Cache
    libiconv/1.17:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 - Cache
    libjpeg/9e:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 - Cache
    libmp3lame/3.100:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 - Cache
    libpng/1.6.39:e19a6a0686b274133d01476019f315a1355835d4 - Cache
    libtiff/4.4.0:fec7cb250452a31dd2995829071e4201c14bec91 - Cache
    libvpx/1.11.0:d9944e4cc7ab292966a75a660243a7139bb43458 - Cache
    libwebp/1.3.0:36cedbf3473b284f710724d0897d2340d94bb47e - Cache
    libx264/cci.20220602:5c08a9d92b2c83921900609070cb884efd91c783 - Cache
    libx265/3.4:00fe6f1c2cdc020a0ce20d488efd98219d923a23 - Cache
    ogg/1.3.5:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 - Cache
    opencv/4.5.3:1e408f5adbd3a019a497492f843376af84f52ab6 - Build
    openexr/3.1.5:443ad78ec0dd854de2e66f1fd5a8e135e44e51a6 - Cache
    openh264/2.3.1:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 - Cache
    openjpeg/2.5.0:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 - Cache
    openssl/3.1.1:3a3cc4241c36d9bcf5585f96a3d7d73bc5d739e2 - Cache
    opus/1.3.1:c60cc6089d045af7dfdc3d7dee39d1d0edcdef57 - Cache
    protobuf/3.17.1:0857e36cc4e1a6f2e48f93e9256ca2f77a9ac8d5 - Cache
    quirc/1.1:dae8b09dcfb711a9cf1e2c6dd4e0b6e4178225c6 - Cache
    vorbis/1.3.7:952217123d7f789471338340a4f597c4fae526e1 - Cache
    xz_utils/5.4.2:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 - Cache
    zlib/1.2.13:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 - Cache
    zstd/1.5.5:addbd53f27d0f386e44455f3159b5c679fbdb882 - Cache

Installing (downloading, building) binaries...
ade/0.1.2a: Already installed!
brotli/1.0.9: Already installed!
bzip2/1.0.8: Already installed!
eigen/3.4.0: Already installed!
imath/3.1.6: Already installed!
jbig/20160605: Already installed!
libdeflate/1.18: Already installed!
libfdk_aac/2.0.2: Already installed!
libiconv/1.17: Already installed!
libjpeg/9e: Already installed!
libmp3lame/3.100: Already installed!
libvpx/1.11.0: Already installed!
libwebp/1.3.0: Already installed!
libx264/cci.20220602: Already installed!
libx265/3.4: Already installed!
ogg/1.3.5: Already installed!
openh264/2.3.1: Already installed!
openjpeg/2.5.0: Already installed!
opus/1.3.1: Already installed!
quirc/1.1: Already installed!
xz_utils/5.4.2: Already installed!
zlib/1.2.13: Already installed!
zstd/1.5.5: Already installed!
jasper/4.0.0: Already installed!
libpng/1.6.39: Already installed!
libtiff/4.4.0: Already installed!
openexr/3.1.5: Already installed!
openssl/3.1.1: Already installed!
protobuf/3.17.1: Already installed!
vorbis/1.3.7: Already installed!
freetype/2.13.0: Already installed!
ffmpeg/4.4: Already installed!
opencv/4.5.3: WARN: Build folder is dirty, removing it: C:\.conan\e6858d\1
opencv/4.5.3: Copying sources to build folder
opencv/4.5.3: Building your package in C:\.conan\e6858d\1
opencv/4.5.3: Generator txt created conanbuildinfo.txt
opencv/4.5.3: Calling generate()
opencv/4.5.3: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is 
discouraged and might cause failures and unexpected behavior
opencv/4.5.3: Preset 'default' added to CMakePresets.json. Invoke it manually using 'cmake --preset default'
opencv/4.5.3: If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake <path> -G "Visual Studio 15 2017" -DCMAKE_TOOLCHAIN_FILE=C:\.conan\e6858d\1\build\generators\conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW'
opencv/4.5.3: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is 
discouraged and might cause failures and unexpected behavior
opencv/4.5.3: Aggregating env generators
opencv/4.5.3: Calling build()
opencv/4.5.3: Apply patch (conan): Robust discovery & injection of OpenEXR
opencv/4.5.3: Apply patch (conan): Robust discovery & injection of ade
opencv/4.5.3: Apply patch (conan): Robust discovery & injection of quirc
opencv/4.5.3: Apply patch (conan): Fix discovery of zlib static if Android
opencv/4.5.3: Apply patch (conan): Honor install layout from conan if Android
opencv/4.5.3: CMake command: cmake -G "Visual Studio 15 2017" -DCMAKE_TOOLCHAIN_FILE="C:/.conan/e6858d/1/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/.conan/68fbd5/1" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\.conan\e6858d\1\src"
-- Using Conan toolchain: C:/.conan/e6858d/1/build/generators/conan_toolchain.cmake
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The CXX compiler identification is MSVC 19.16.27049.0
-- The C compiler identification is MSVC 19.16.27049.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detected processor: AMD64
-- Performing Test HAVE_CXX_FP:PRECISE
-- Performing Test HAVE_CXX_FP:PRECISE - Success
-- Performing Test HAVE_C_FP:PRECISE
-- Performing Test HAVE_C_FP:PRECISE - Success
-- Performing Test HAVE_CPU_SSE3_SUPPORT (check file: cmake/checks/cpu_sse3.cpp)
-- Performing Test HAVE_CPU_SSE3_SUPPORT - Success
-- Performing Test HAVE_CPU_SSSE3_SUPPORT (check file: cmake/checks/cpu_ssse3.cpp)
-- Performing Test HAVE_CPU_SSSE3_SUPPORT - Success
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT (check file: cmake/checks/cpu_sse41.cpp)
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT - Success
-- Performing Test HAVE_CPU_POPCNT_SUPPORT (check file: cmake/checks/cpu_popcnt.cpp)
-- Performing Test HAVE_CPU_POPCNT_SUPPORT - Success
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT (check file: cmake/checks/cpu_sse42.cpp)
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT - Success
-- Performing Test HAVE_CXX_ARCH:AVX (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CXX_ARCH:AVX - Success
-- Performing Test HAVE_CXX_ARCH:AVX2 (check file: cmake/checks/cpu_avx2.cpp)
-- Performing Test HAVE_CXX_ARCH:AVX2 - Success
-- Performing Test HAVE_CXX_ARCH:AVX512 (check file: cmake/checks/cpu_avx512.cpp)
-- Performing Test HAVE_CXX_ARCH:AVX512 - Success
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX - Success
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - found
-- Conan: Target declared 'ZLIB::ZLIB'
-- Conan: Target declared 'JPEG::JPEG'
-- Found JPEG: 9e (found version "9e") 
-- Conan: Target declared 'TIFF::TIFF'
-- Conan: Component target declared 'libdeflate::libdeflate_static'
-- Conan: Target declared 'LibLZMA::LibLZMA'
-- Conan: Including build module from 'C:/Users/ContainerAdministrator/.conan/data/xz_utils/5.4.2/_/_/package/6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7/lib/cmake/conan-official-xz_utils-variables.cmake'
-- Found LibLZMA: 5.4.2 (found version "5.4.2") 
-- Conan: Target declared 'jbig::jbig'
-- Conan: Component target declared 'zstd::libzstd_static'
-- Conan: Component target declared 'WebP::webpdecoder'
-- Conan: Component target declared 'WebP::sharpyuv'
-- Conan: Component target declared 'WebP::webp'
-- Conan: Component target declared 'WebP::webpdemux'
-- Conan: Component target declared 'WebP::libwebpmux'
-- Conan: Target declared 'libwebp::libwebp'
-- Found TIFF: 4.4.0 (found version "4.4.0") 
-- Found WebP: C:/Users/ContainerAdministrator/.conan/data/libwebp/1.3.0/_/_/package/36cedbf3473b284f710724d0897d2340d94bb47e/lib/webp.lib  
-- Conan: Target declared 'Jasper::Jasper'
-- Conan: Including build module from 'C:/Users/ContainerAdministrator/.conan/data/jasper/4.0.0/_/_/package/b391d64ded7cc981385ab2c8e07a7cab25982808/lib/cmake/conan-official-jasper-variables.cmake'
-- Found Jasper: 4.0.0 (found version "4.0.0") 
-- Conan: Target declared 'PNG::PNG'
-- Found PNG: 1.6.39 (found version "1.6.39") 
-- Looking for /libpng/png.h
-- Looking for /libpng/png.h - not found
-- Conan: Component target declared 'OpenEXR::OpenEXRConfig'
-- Conan: Component target declared 'OpenEXR::IexConfig'
-- Conan: Component target declared 'OpenEXR::IlmThreadConfig'
-- Conan: Component target declared 'OpenEXR::Iex'
-- Conan: Component target declared 'OpenEXR::IlmThread'
-- Conan: Component target declared 'OpenEXR::OpenEXRCore'
-- Conan: Component target declared 'OpenEXR::OpenEXR'
-- Conan: Component target declared 'OpenEXR::OpenEXRUtil'
-- Conan: Target declared 'openexr::openexr'
-- Conan: Component target declared 'Imath::ImathConfig'
-- Conan: Component target declared 'Imath::Imath'
-- Conan: Component target declared 'protobuf::libprotobuf'
-- Conan: Component target declared 'protobuf::libprotoc'
-- Conan: Target declared 'protobuf::protobuf'
-- Conan: Including build module from 'C:/.conan/c766e0/1/lib/cmake/protobuf/protobuf-generate.cmake'
-- Conan: Including build module from 'C:/.conan/c766e0/1/lib/cmake/protobuf/protobuf-module.cmake'
-- Conan: Including build module from 'C:/.conan/c766e0/1/lib/cmake/protobuf/protobuf-options.cmake'
-- Found Protobuf: 3.17.1 (found version "3.17.1") 
-- Conan: Target declared 'ade'
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- OpenCV Python: during development append to PYTHONPATH: C:/.conan/e6858d/1/build/python_loader
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Conan: Component target declared 'ffmpeg::avutil'
-- Conan: Component target declared 'ffmpeg::swscale'
-- Conan: Component target declared 'ffmpeg::swresample'
-- Conan: Component target declared 'ffmpeg::postproc'
-- Conan: Component target declared 'ffmpeg::avcodec'
-- Conan: Component target declared 'ffmpeg::avformat'
-- Conan: Component target declared 'ffmpeg::avfilter'
-- Conan: Component target declared 'ffmpeg::avdevice'
-- Conan: Target declared 'ffmpeg::ffmpeg'
-- Conan: Target declared 'Freetype::Freetype'
-- Conan: Target declared 'BZip2::BZip2'
-- Conan: Including build module from 'C:/Users/ContainerAdministrator/.conan/data/bzip2/1.0.8/_/_/package/5be2b7a2110ec8acdbf9a1cea9de5d60747edb34/lib/cmake/conan-official-bzip2-variables.cmake'
-- Conan: Component target declared 'brotli::brotlicommon'
-- Conan: Component target declared 'brotli::brotlidec'
-- Conan: Component target declared 'brotli::brotlienc'
-- Conan: Target declared 'brotli::brotli'
-- Conan: Including build module from 'C:/Users/ContainerAdministrator/.conan/data/freetype/2.13.0/_/_/package/48d0120dc306b44fcc074dbed3143a1cab49596c/lib/cmake/conan-official-freetype-variables.cmake'
-- Conan: Component target declared 'OpenSSL::Crypto'
-- Conan: Component target declared 'OpenSSL::SSL'
-- Conan: Target declared 'openssl::openssl'
-- Conan: Including build module from 'C:/Users/ContainerAdministrator/.conan/data/openssl/3.1.1/_/_/package/3a3cc4241c36d9bcf5585f96a3d7d73bc5d739e2/lib/cmake/conan-official-openssl-variables.cmake'
-- Conan: Target declared 'Iconv::Iconv'
-- Conan: Target declared 'openjp2'
-- Conan: Target declared 'openh264::openh264'
-- Conan: Component target declared 'Vorbis::vorbis'
-- Conan: Component target declared 'Vorbis::vorbisenc'
-- Conan: Component target declared 'Vorbis::vorbisfile'
-- Conan: Component target declared 'vorbis::vorbisenc-alias'
-- Conan: Component target declared 'vorbis::vorbisfile-alias'
-- Conan: Target declared 'vorbis::vorbis'
-- Conan: Component target declared 'Ogg::ogg'
-- Conan: Component target declared 'Opus::opus'
-- Conan: Target declared 'libx264::libx264'
-- Conan: Target declared 'libx265::libx265'
-- Conan: Target declared 'libvpx::libvpx'
-- Conan: Target declared 'libmp3lame::libmp3lame'
-- Conan: Component target declared 'FDK-AAC::fdk-aac'
-- Looking for mfapi.h
-- Looking for mfapi.h - found
-- Looking for d3d11_4.h
-- Looking for d3d11_4.h - found
-- Allocator metrics storage type: 'long long'
-- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': C:/.conan/e6858d/1/src/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
-- opencv_dnn: filter out ocl4dnn source code
-- opencv_dnn: filter out cuda4dnn source code
-- highgui: using builtin backend: WIN32UI
-- Conan: Target declared 'quirc::quirc'
-- 
-- General configuration for OpenCV 4.5.3 =====================================
--   Version control:               unknown
-- 
--   Platform:
--     Timestamp:                   2023-06-27T11:44:16Z
--     Host:                        Windows 10.0.17763 AMD64
--     CMake:                       3.26.4
--     CMake generator:             Visual Studio 15 2017
--     CMake build tool:            C:/BuildTools/MSBuild/15.0/Bin/MSBuild.exe
--     MSVC:                        1916
--     Configuration:               Debug Release
-- 
--   CPU/HW features:
--     Baseline:                    SSE SSE2 SSE3
--       requested:                 SSE3
--     Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
--       requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
--       SSE4_1 (15 files):         + SSSE3 SSE4_1
--       SSE4_2 (1 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
--       FP16 (0 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
--       AVX (4 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
--       AVX2 (29 files):           + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
--       AVX512_SKX (4 files):      + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX
-- 
--   C/C++:
--     Built as dynamic libs?:      NO
--     C++ standard:                11
--     C++ Compiler:                C:/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe  (ver 19.16.27049.0)
--     C++ flags (Release):         /MP16 /DWIN32 /D_WINDOWS /W4 /GR  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /fp:precise     /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589  /O2 /Ob2 /DNDEBUG 
--     C++ flags (Debug):           /MP16 /DWIN32 /D_WINDOWS /W4 /GR  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /fp:precise     /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589  /Zi /Ob0 /Od /RTC1 
--     C Compiler:                  C:/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe
--     C flags (Release):           /MP16 /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /fp:precise       /O2 /Ob2 /DNDEBUG 
--     C flags (Debug):             /MP16 /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /fp:precise     /Zi /Ob0 /Od /RTC1 
--     Linker flags (Release):      /machine:x64  /INCREMENTAL:NO 
--     Linker flags (Debug):        /machine:x64  /debug /INCREMENTAL 
--     ccache:                      NO
--     Precompiled headers:         YES
--     Extra dependencies:          ade wsock32 comctl32 gdi32 ole32 setupapi ws2_32 C:/Users/ContainerAdministrator/.conan/data/libwebp/1.3.0/_/_/package/36cedbf3473b284f710724d0897d2340d94bb47e/lib/webp.lib quirc::quirc
--     3rdparty dependencies:
-- 
--   OpenCV modules:
--     To be built:                 calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo stitching video videoio
--     Disabled:                    python_tests world
--     Disabled by dependency:      -
--     Unavailable:                 java python2 python3 ts
--     Applications:                -
--     Documentation:               NO
--     Non-free algorithms:         NO
-- 
--   Windows RT support:            NO
-- 
--   GUI: 
--     Win32 UI:                    YES
-- 
--   Media I/O: 
--     ZLib:                        ZLIB::ZLIB (ver 1.2.13)
--     JPEG:                        (ver 90)
--     WEBP:                        C:/Users/ContainerAdministrator/.conan/data/libwebp/1.3.0/_/_/package/36cedbf3473b284f710724d0897d2340d94bb47e/lib/webp.lib (ver encoder: 0x020f)
--     PNG:                         (ver ..)
--     TIFF:                        (ver 42 / 4.4.0)
--     JPEG 2000:                   (ver 4.0.0)
--     OpenEXR:                     OpenEXR::OpenEXR (ver 3.1.5)
--     HDR:                         NO
--     SUNRASTER:                   NO
--     PXM:                         NO
--     PFM:                         NO
-- 
--   Video I/O:
--     FFMPEG:                      YES (find_package)
--       avcodec:                   YES (58.134.100)
--       avformat:                  YES (58.76.100)
--       avutil:                    YES (56.70.100)
--       swscale:                   YES (5.9.100)
--       avresample:                NO
--     DirectShow:                  YES
--     Media Foundation:            YES
--       DXVA:                      YES
-- 
--   Parallel framework:            Concurrency
-- 
--   Trace:                         YES (built-in)
-- 
--   Other third-party libraries:
--     Eigen:                       YES (ver ..)
--     Custom HAL:                  NO
--     Protobuf:                    protobuf::libprotobuf (3.17.1)
-- 
--   Python (for build):            NO
-- 
--   Install to:                    C:/.conan/68fbd5/1
-- -----------------------------------------------------------------
-- 
-- Configuring done (52.8s)
-- Generating done (0.8s)
-- Build files have been written to: C:/.conan/e6858d/1/build
opencv/4.5.3: CMake command: cmake --build "C:\.conan\e6858d\1\build" --config Release
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
...
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\eigen\src/Core/arch/AVX512/Complex.h(290): note: see reference to function template instantiation 'Eigen::internal::Packet2d Eigen::internal::extract128<0>(Eigen::internal::Packet8d)' being compiled
c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\eigen\src/Core/GenericPacketMath.h(788): error C2665: 'exp': none of the 3 overloads could convert all the argument types [C:\.conan\e6858d\1\build\modules\core\opencv_core_AVX512_SKX.vcxproj]
  C:\BuildTools\VC\Tools\MSVC\14.16.27023\include\cmath(390): note: could be 'long double exp(long double) noexcept'
  C:\BuildTools\VC\Tools\MSVC\14.16.27023\include\cmath(96): note: or       'float exp(float) noexcept'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\corecrt_math.h(477): note: or       'double exp(double)'
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\eigen\src/Core/GenericPacketMath.h(788): note: while trying to match the argument list '(const Packet)'
          with
          [
              Packet=Eigen::internal::Packet16f
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(222): note: see reference to function template instantiation 'Packet Eigen::internal::pexp<Eigen::internal::Packet16f>(const Packet &)' being compiled
          with
          [
              Packet=Eigen::internal::Packet16f
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(220): note: while compiling class template member function 'T Eigen::internal::generic_i0<T,Eigen::internal::unpacket_traits<Eigen::internal::Packet16f>::type>::run(const T &)'
          with
          [
              T=__m512
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(231): note: see reference to function template instantiation 'T Eigen::internal::generic_i0<T,Eigen::internal::unpacket_traits<Eigen::internal::Packet16f>::type>::run(const T &)' being compiled
          with
          [
              T=__m512
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(231): note: see reference to class template instantiation 'Eigen::internal::generic_i0<T,Eigen::internal::unpacket_traits<Eigen::internal::Packet16f>::type>' being compiled
          with
          [
              T=__m512
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(230): note: while compiling class template member function 'T Eigen::internal::bessel_i0_impl<T>::run(const T)'
          with
          [
              T=__m512
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(1886): note: see reference to function template instantiation 'T Eigen::internal::bessel_i0_impl<T>::run(const T)' being compiled
          with
          [
              T=__m512
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(1886): note: see reference to class template instantiation 'Eigen::internal::bessel_i0_impl<__m512>' being compiled
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsPacketMath.h(22): note: see reference to function template instantiation '__m512 Eigen::numext::bessel_i0<Packet>(const Scalar &)' being compiled
          with
          [
              Packet=Eigen::internal::Packet16f,
              Scalar=Eigen::internal::Packet16f
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/arch/AVX512/BesselFunctions.h(7): note: see reference to function template instantiation 'Packet Eigen::internal::pbessel_i0<Eigen::internal::Packet16f>(const Packet &)' being compiled
          with
          [
              Packet=Eigen::internal::Packet16f
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\eigen\src/Core/NumTraits.h(243): note: see reference to class template instantiation 'Eigen::GenericNumTraits<double>' being compiled
c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\eigen\src/Core/GenericPacketMath.h(796): error C2665: 'log': none of the 3 overloads could convert all the argument types [C:\.conan\e6858d\1\build\modules\core\opencv_core_AVX512_SKX.vcxproj]
  C:\BuildTools\VC\Tools\MSVC\14.16.27023\include\cmath(483): note: could be 'long double log(long double) noexcept'
  C:\BuildTools\VC\Tools\MSVC\14.16.27023\include\cmath(182): note: or       'float log(float) noexcept'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\corecrt_math.h(480): note: or       'double log(double)'
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\eigen\src/Core/GenericPacketMath.h(796): note: while trying to match the argument list '(const Packet)'
          with
          [
              Packet=Eigen::internal::Packet16f
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(667): note: see reference to function template instantiation 'Packet Eigen::internal::plog<Eigen::internal::Packet16f>(const Packet &)' being compiled
          with
          [
              Packet=Eigen::internal::Packet16f
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(611): note: while compiling class template member function 'T Eigen::internal::generic_k0<T,Eigen::internal::unpacket_traits<Eigen::internal::Packet16f>::type>::run(const T &)'
          with
          [
              T=__m512
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(761): note: see reference to function template instantiation 'T Eigen::internal::generic_k0<T,Eigen::internal::unpacket_traits<Eigen::internal::Packet16f>::type>::run(const T &)' being compiled
          with
          [
              T=__m512
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(761): note: see reference to class template instantiation 'Eigen::internal::generic_k0<T,Eigen::internal::unpacket_traits<Eigen::internal::Packet16f>::type>' being compiled
          with
          [
              T=__m512
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(760): note: while compiling class template member function 'T Eigen::internal::bessel_k0_impl<T>::run(const T)'
          with
          [
              T=__m512
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(1910): note: see reference to function template instantiation 'T Eigen::internal::bessel_k0_impl<T>::run(const T)' being compiled
          with
          [
              T=__m512
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsImpl.h(1910): note: see reference to class template instantiation 'Eigen::internal::bessel_k0_impl<__m512>' being compiled
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/BesselFunctionsPacketMath.h(86): note: see reference to function template instantiation '__m512 Eigen::numext::bessel_k0<Packet>(const Scalar &)' being compiled
          with
          [
              Packet=Eigen::internal::Packet16f,
              Scalar=Eigen::internal::Packet16f
          ]
  c:\users\containeradministrator\.conan\data\eigen\3.4.0\_\_\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\eigen3\unsupported\eigen\src/SpecialFunctions/arch/AVX512/BesselFunctions.h(25): note: see reference to function template instantiation 'Packet Eigen::internal::pbessel_k0<Eigen::internal::Packet16f>(const Packet &)' being compiled
          with
          [
              Packet=Eigen::internal::Packet16f
          ]
...
opencv/4.5.3: 
opencv/4.5.3: ERROR: Package '1e408f5adbd3a019a497492f843376af84f52ab6' build failed
opencv/4.5.3: WARN: Build folder C:\.conan\e6858d\1\build
ERROR: opencv/4.5.3: Error in build() method, line 502
    cmake.build()
    ConanException: Error 1 while executing cmake --build "C:\.conan\e6858d\1\build" --config Release
czoido commented 1 year ago

Hi @db4, We bumped the version in opencv because most of other libraries use 3.4.0 and it was forcing users to do overrides of the eigen version. Maybe you can try to override to 3.3.9 doing something like this in the consumer?

def requirements(self):
    ....
    self.requires("eigen/3.3.9", override=True)
db4 commented 1 year ago

Of course, I can override but that makes opencv unusable in existing recipes without special efforts. You don't support Visual Studio 2017 in CCI recipes anymore and don't build packages for it? Why this problem was not detected before your PR was merged?

jcar87 commented 1 year ago

Hi @db4 - thank you for reporting this issue. We are looking into addressing this.

We have dropped support for Visual Studio 2017 from our CI service, as our our statistics suggest that Visual Studio 2019 and 2022 are overwhelmingly more used than the older 2017, and we continue to ramp up dedicated resources for building and validating packages for Conan 2.0, as previously announced: https://github.com/conan-io/conan-center-index/discussions/16729. Additionally, Visual Studio 2017 is past its mainstream support period from the vendor: https://learn.microsoft.com/en-us/lifecycle/products/visual-studio-2017.

Eigen 3.4.0 was released in late 2021, and given the time it has passed since, the changes in https://github.com/conan-io/conan-center-index/pull/17475 are entirely reasonable.

As you have pointed out, this appears to be a bug squarely within OpenCV or its use of Eigen. Thank you for providing a link to the upstream issue, we will look into addressing it. Please be mindful that the intention of Conan Center is not to validate all possible combinations of library and compiler versions, but to validate the ones that are known to work for the most popular platforms requested by our users.

We will look into this and work with the OpenCV community to troubleshoot this issue.

db4 commented 1 year ago

@jcar87 If you dropped support for VS2017, OK I understand. But then why don't you build packages for VS2022? Actually, VS2019 is the only remaining CI build for Windows.

As for the bug, I could try to address it by applying the upstream fix, but CCI is in a strange state now. I have a trivial OpenCV-related PR that cannot be merged for several months. Right now CI complains about missing binaries, and there is nothing I can do about it. I know your resources are limited, but still...

AbrilRBS commented 1 year ago

But then why don't you build packages for VS2022?

Adding a new configuration at scale is not something that can happen overnight :(

Also note that even though it's not shown in PRs, VS2022 binaries do already exist for most libraries!

$ conan list "zlib/1.2.13:*#*" -r=conancenter -p "os=Windows AND compiler.version=193"
conancenter
  zlib
    zlib/1.2.13
      revisions
        e377bee636333ae348d51ca90874e353 (2023-04-27 12:11:24 UTC)
          packages
            17b26a16efb893750e4481f98a154db2934ead88
              revisions
                33077ea9977b39466f7a18cd58037321 (2023-05-17 10:14:33 UTC)
              info
                settings
                  arch: x86_64
                  build_type: Debug
                  compiler: msvc
                  compiler.runtime: dynamic
                  compiler.runtime_type: Debug
                  compiler.version: 193
                  os: Windows
                options
                  shared: True
            ed44dacde2751b398e4bf9441ff992a70c913c00
              revisions
                c64b86f291c5ebd9efb5c6fcdb20d7a7 (2023-05-17 10:13:12 UTC)
              info
                settings
                  arch: x86_64
                  build_type: Debug
                  compiler: msvc
                  compiler.runtime: dynamic
                  compiler.runtime_type: Debug
                  compiler.version: 193
                  os: Windows
                options
                  shared: False
            f7dcd1cec4586c154a242a765a1de011300db8e2
              revisions
                f301f1d89acb2e249bd3247ad764ab33 (2023-05-17 10:13:14 UTC)
              info
                settings
                  arch: x86_64
                  build_type: Release
                  compiler: msvc
                  compiler.runtime: dynamic
                  compiler.runtime_type: Release
                  compiler.version: 193
                  os: Windows
                options
                  shared: True
            7bfde258ff4f62f75668d0896dbddedaa7480a0f
              revisions
                6612117c7b5ed9d05294c47602331be1 (2023-05-17 10:13:10 UTC)
              info
                settings
                  arch: x86_64
                  build_type: Release
                  compiler: msvc
                  compiler.runtime: dynamic
                  compiler.runtime_type: Release
                  compiler.version: 193
                  os: Windows
                options
                  shared: False
SpaceIm commented 1 year ago

Of course, I can override but that makes opencv unusable in existing recipes without special efforts. You don't support Visual Studio 2017 in CCI recipes anymore and don't build packages for it? Why this problem was not detected before your PR was merged?

This problem has been detected before, this is why I've never bumped eigen in opencv 3.x & 4.x recipes (see https://github.com/conan-io/conan-center-index/pull/17475#issuecomment-1540422416 and https://github.com/conan-io/conan-center-index/pull/8868#issuecomment-1011403488 and https://github.com/conan-io/conan-center-index/pull/8868/commits/812849459a27a2a11e752f41515f5ffe47dc1ac4). A condition could be added based on msvc version.