Skip to content

[package] orc/2.3.0: fail to build on msvc #29727

@ericLemanissier

Description

@ericLemanissier

Description

Building orc/2.3.0 on msvc fails with

CMake Error at D:/a/_temp/.c2/p/b/orc6bca60dc87335/b/build/CMakeFiles/CMakeScratch/TryCompile-wj1bis/cmTC_52452Targets.cmake:21 (set_target_properties):
  The link interface of target "ZLIB::ZLIB" contains:

    CONAN_LIB::zlib_zlib_RELEASE

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Package and Environment Details

  • Package Name/Version: orc/2.3.0
  • Operating System+version: windows
  • Compiler+version: msvc 194
  • Conan version: conan 2.26.1
  • Python version: Python 3.12

Conan profile

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=194
os=Windows

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=194
os=Windows

Steps to reproduce

conan create --name orc --version 2.3.0

Logs

https://github.com/eirikb/proof-of-conan/actions/runs/22795865284/job/66130288156

Click to expand log
======== Exporting recipe to the cache ========
orc/2.3.0: Exporting package recipe: D:\a\proof-of-conan\proof-of-conan\conanfile.py
orc/2.3.0: exports: File 'conandata.yml' found. Exporting it...
orc/2.3.0: Calling export_sources()
orc/2.3.0: Copied 1 '.yml' file: conandata.yml
orc/2.3.0: Copied 1 '.py' file: conanfile.py
orc/2.3.0: Exported to cache folder: D:\a\_temp\.c2\p\orcdd7d6162db809\e
orc/2.3.0: Exported: orc/2.3.0#d77c131b50434ce69db86a1193d17668 (2026-03-07 08:47:11 UTC)

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=194
os=Windows
[conf]
tools.system.package_manager:mode=install
tools.system.package_manager:sudo=True
tools.system.pipenv:python_interpreter=C:\hostedtoolcache\windows\Python\3.12.10\x64\python.exe
tools.system.pyenv:python_interpreter=C:\hostedtoolcache\windows\Python\3.12.10\x64\python.exe

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=194
os=Windows
[conf]
tools.system.package_manager:mode=install
tools.system.package_manager:sudo=True
tools.system.pipenv:python_interpreter=C:\hostedtoolcache\windows\Python\3.12.10\x64\python.exe
tools.system.pyenv:python_interpreter=C:\hostedtoolcache\windows\Python\3.12.10\x64\python.exe


======== Computing dependency graph ========
protobuf/3.21.12: Not found in local cache, looking in remotes...
protobuf/3.21.12: Checking remote: conancenter
Connecting to remote 'conancenter' anonymously
protobuf/3.21.12: Downloaded recipe revision f4b3baecdc1169c9db2a96e395ca5462
zlib/1.3.1: Not found in local cache, looking in remotes...
zlib/1.3.1: Checking remote: conancenter
zlib/1.3.1: Downloaded recipe revision cac0f6daea041b0ccf42934163defb20
lz4/1.9.4: Not found in local cache, looking in remotes...
lz4/1.9.4: Checking remote: conancenter
lz4/1.9.4: Downloaded recipe revision 4ed63aa8e019d795cd3b8c0d2dd66cda
snappy/1.1.9: Not found in local cache, looking in remotes...
snappy/1.1.9: Checking remote: conancenter
snappy/1.1.9: Downloaded recipe revision 23f887efb447e3e14ada195edd032e7e
zstd/1.5.7: Not found in local cache, looking in remotes...
zstd/1.5.7: Checking remote: conancenter
zstd/1.5.7: Downloaded recipe revision b68ca8e3de04ba5957761751d1d661f4
cmake/4.2.3: Not found in local cache, looking in remotes...
cmake/4.2.3: Checking remote: conancenter
cmake/4.2.3: Downloaded recipe revision c5c10d4c90874997553970589940ab9c
Graph root
    cli
Requirements
    lz4/1.9.4#4ed63aa8e019d795cd3b8c0d2dd66cda - Downloaded (conancenter)
    orc/2.3.0#d77c131b50434ce69db86a1193d17668 - Cache
    protobuf/3.21.12#f4b3baecdc1169c9db2a96e395ca5462 - Downloaded (conancenter)
    snappy/1.1.9#23f887efb447e3e14ada195edd032e7e - Downloaded (conancenter)
    zlib/1.3.1#cac0f6daea041b0ccf42934163defb20 - Downloaded (conancenter)
    zstd/1.5.7#b68ca8e3de04ba5957761751d1d661f4 - Downloaded (conancenter)
Build requirements
    cmake/4.2.3#c5c10d4c90874997553970589940ab9c - Downloaded (conancenter)
    protobuf/3.21.12#f4b3baecdc1169c9db2a96e395ca5462 - Downloaded (conancenter)
    zlib/1.3.1#cac0f6daea041b0ccf42934163defb20 - Downloaded (conancenter)
Resolved version ranges
    cmake/[>=3.25]: cmake/4.2.3
    zlib/[>=1.2.11 <2]: zlib/1.3.1
    zstd/[~1.5]: zstd/1.5.7
Deprecated
    protobuf/3.21.12: protobuf 3.x is no longer supported by its authors - this version is kept for legacy reasons. Please migrate to a newer version
WARN: risk: There are deprecated packages in the graph

======== Computing necessary packages ========
lz4/1.9.4: Main binary package '0d6dd492a7d31822b2f2686ec67bbaef586416a3' missing
lz4/1.9.4: Checking 1 compatible configurations
lz4/1.9.4: Compatible configurations not found in cache, checking servers
lz4/1.9.4: '7bfde258ff4f62f75668d0896dbddedaa7480a0f': compiler.version=193
lz4/1.9.4: Found compatible package '7bfde258ff4f62f75668d0896dbddedaa7480a0f': compiler.version=193
snappy/1.1.9: Main binary package '055adb64cc3e7831534479819cb045c9b7453761' missing
snappy/1.1.9: Checking 7 compatible configurations
snappy/1.1.9: Compatible configurations not found in cache, checking servers
snappy/1.1.9: '2c168ce3449067e939ae2666d66036b3b813b31a': compiler.cppstd=17
snappy/1.1.9: '30d5daf99ec76dbcecb98249b666faacff85e46a': compiler.cppstd=20
snappy/1.1.9: 'be17d4eea3b679ae8569a3b9159c4efb4827f81f': compiler.cppstd=23
snappy/1.1.9: '195d226750dd64a7aca59a80ff1c33f3c9993054': compiler.version=193
snappy/1.1.9: Found compatible package '195d226750dd64a7aca59a80ff1c33f3c9993054': compiler.version=193
orc/2.3.0: Main binary package '9585a74ddac6021a7c653dd35b707a25f8e132bb' missing
orc/2.3.0: Checking 6 compatible configurations
orc/2.3.0: Compatible configurations not found in cache, checking servers
orc/2.3.0: 'a908fa25e9c66f5d9d1eaf4885ad52325143e0be': compiler.cppstd=17
orc/2.3.0: 'c519424c7a570e43b13d36a249e2a74fe333734f': compiler.cppstd=20
orc/2.3.0: 'aa409ef46675aa750e73335621c5844dff244174': compiler.cppstd=23
orc/2.3.0: 'afe677f557522cbf9c3a5f59343ac9df2907a0d1': compiler.cppstd=17, compiler.version=193
orc/2.3.0: '15d9e9a2ed48d207fe9fb27bf81fcb414a7ff2e7': compiler.cppstd=20, compiler.version=193
orc/2.3.0: '09a5eed50c1a534f1d26eb6d7544adc1dc2b9e58': compiler.cppstd=23, compiler.version=193
orc/2.3.0: No compatible configuration found
orc/2.3.0: Requested binary package '9585a74ddac6021a7c653dd35b707a25f8e132bb' invalid, can't be built
orc/2.3.0: Checking 6 configurations, to build a compatible one, as requested by '--build=compatible'
orc/2.3.0: Found compatible package 'a908fa25e9c66f5d9d1eaf4885ad52325143e0be': compiler.cppstd=17

A new experimental approach for binary compatibility detection is available.
    Enable it by setting the core.graph:compatibility_mode=optimized conf
    and get improved performance when querying multiple compatible binaries in remotes.

Requirements
    lz4/1.9.4#4ed63aa8e019d795cd3b8c0d2dd66cda:7bfde258ff4f62f75668d0896dbddedaa7480a0f#a64d5335b5fba13c4f7e671fd5f59cc4 - Download (conancenter)
    orc/2.3.0#d77c131b50434ce69db86a1193d17668:a908fa25e9c66f5d9d1eaf4885ad52325143e0be - Build
    protobuf/3.21.12#f4b3baecdc1169c9db2a96e395ca5462:56bbedca476ff446f359462bbff7e85fed6ddb3a#0ea4f275bb42df1a1031c0b3abbd032b - Download (conancenter)
    snappy/1.1.9#23f887efb447e3e14ada195edd032e7e:195d226750dd64a7aca59a80ff1c33f3c9993054#b9cb8a7ac9718f1c2f4f5e9df9c197b2 - Download (conancenter)
    zlib/1.3.1#cac0f6daea041b0ccf42934163defb20:0d6dd492a7d31822b2f2686ec67bbaef586416a3#35731faa85afc1b85b1951d87e71dea7 - Download (conancenter)
    zstd/1.5.7#b68ca8e3de04ba5957761751d1d661f4:9d69f8152c7ae20456f943b00603dfd1254e33d6#734631823adab81b0c09c7dc9f609f91 - Download (conancenter)
Build requirements
    cmake/4.2.3#c5c10d4c90874997553970589940ab9c:522dcea5982a3f8a5b624c16477e47195da2f84f#5a62b7dfc23b98504c561d193d93cb84 - Download (conancenter)
    protobuf/3.21.12#f4b3baecdc1169c9db2a96e395ca5462:56bbedca476ff446f359462bbff7e85fed6ddb3a#0ea4f275bb42df1a1031c0b3abbd032b - Download (conancenter)
Skipped binaries
    zlib/1.3.1

======== Installing packages ========

-------- Downloading 6 packages --------
Downloading binary packages in 4 parallel threads
cmake/4.2.3: Retrieving package 522dcea5982a3f8a5b624c16477e47195da2f84f from remote 'conancenter' 
lz4/1.9.4: Retrieving package 7bfde258ff4f62f75668d0896dbddedaa7480a0f from remote 'conancenter' 
snappy/1.1.9: Retrieving package 195d226750dd64a7aca59a80ff1c33f3c9993054 from remote 'conancenter' 
zlib/1.3.1: Retrieving package 0d6dd492a7d31822b2f2686ec67bbaef586416a3 from remote 'conancenter' 
snappy/1.1.9: Package installed 195d226750dd64a7aca59a80ff1c33f3c9993054
snappy/1.1.9: Downloaded package revision b9cb8a7ac9718f1c2f4f5e9df9c197b2
zstd/1.5.7: Retrieving package 9d69f8152c7ae20456f943b00603dfd1254e33d6 from remote 'conancenter' 
lz4/1.9.4: Package installed 7bfde258ff4f62f75668d0896dbddedaa7480a0f
lz4/1.9.4: Downloaded package revision a64d5335b5fba13c4f7e671fd5f59cc4
protobuf/3.21.12: Retrieving package 56bbedca476ff446f359462bbff7e85fed6ddb3a from remote 'conancenter' 
cmake/4.2.3: Downloading 32.0MB conan_package.tgz
protobuf/3.21.12: Downloading 12.9MB conan_package.tgz
zstd/1.5.7: Package installed 9d69f8152c7ae20456f943b00603dfd1254e33d6
zstd/1.5.7: Downloaded package revision 734631823adab81b0c09c7dc9f609f91
zlib/1.3.1: Package installed 0d6dd492a7d31822b2f2686ec67bbaef586416a3
zlib/1.3.1: Downloaded package revision 35731faa85afc1b85b1951d87e71dea7
cmake/4.2.3: Decompressing 32.0MB conan_package.tgz
protobuf/3.21.12: Decompressing 12.9MB conan_package.tgz
protobuf/3.21.12: Package installed 56bbedca476ff446f359462bbff7e85fed6ddb3a
protobuf/3.21.12: Downloaded package revision 0ea4f275bb42df1a1031c0b3abbd032b
cmake/4.2.3: Package installed 522dcea5982a3f8a5b624c16477e47195da2f84f
cmake/4.2.3: Downloaded package revision 5a62b7dfc23b98504c561d193d93cb84
orc/2.3.0: Calling source() in D:\a\_temp\.c2\p\orcdd7d6162db809\s\src
orc/2.3.0: Downloading 13.5MB orc-2.3.0.tar.gz
orc/2.3.0: Uncompressing orc-2.3.0.tar.gz to .

-------- Installing package orc/2.3.0 (7 of 7) --------
orc/2.3.0: Building from source
orc/2.3.0: Package orc/2.3.0:a908fa25e9c66f5d9d1eaf4885ad52325143e0be
orc/2.3.0: settings: os=Windows arch=x86_64 compiler=msvc compiler.cppstd=17 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=194 build_type=Release
orc/2.3.0: options: build_avx512=True build_tools=False shared=False
orc/2.3.0: requires: protobuf/3.21.Z lz4/1.9.Z snappy/1.1.Z zlib/1.3.Z zstd/1.5.Z
orc/2.3.0: compatibility_delta: settings=[('compiler.cppstd', '17')]
orc/2.3.0: Copying sources to build folder
orc/2.3.0: Building your package in D:\a\_temp\.c2\p\b\orc6bca60dc87335\b
orc/2.3.0: Calling generate()
orc/2.3.0: Generators folder: D:\a\_temp\.c2\p\b\orc6bca60dc87335\b\build\generators
orc/2.3.0: CMakeToolchain generated: conan_toolchain.cmake
orc/2.3.0: CMakeToolchain generated: D:\a\_temp\.c2\p\b\orc6bca60dc87335\b\build\generators\CMakePresets.json
orc/2.3.0: CMakeToolchain generated: D:\a\_temp\.c2\p\b\orc6bca60dc87335\b\src\CMakeUserPresets.json
orc/2.3.0: CMakeDeps necessary find_package() and targets for your CMakeLists.txt
    find_package(protobuf)
    find_package(lz4)
    find_package(Snappy)
    find_package(ZLIB)
    find_package(zstd)
    target_link_libraries(... protobuf::protobuf LZ4::lz4_static Snappy::snappy ZLIB::ZLIB zstd::libzstd_static)
orc/2.3.0: Generating aggregated env files
orc/2.3.0: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
orc/2.3.0: Calling build()
orc/2.3.0: Running CMake.configure()
orc/2.3.0: RUN: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="D:/a/_temp/.c2/p/b/orc6bca60dc87335/p" -DORC_PACKAGE_KIND="conan" -DBUILD_JAVA="OFF" -DBUILD_CPP_TESTS="OFF" -DBUILD_TOOLS="OFF" -DBUILD_LIBHDFSPP="OFF" -DBUILD_POSITION_INDEPENDENT_LIB="ON" -DINSTALL_VENDORED_LIBS="OFF" -DBUILD_ENABLE_AVX512="ON" -DSTOP_BUILD_ON_WARNING="OFF" -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS="ON" -DPROTOBUF_EXECUTABLE="D:/a/_temp/.c2/p/proto5252576ddfe0e/p/bin/protoc" -DHAS_POST_2038="OFF" -DHAS_PRE_1970="OFF" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "D:/a/_temp/.c2/p/b/orc6bca60dc87335/b/src"
-- Using Conan toolchain: D:/a/_temp/.c2/p/b/orc6bca60dc87335/b/build/generators/conan_toolchain.cmake
-- Conan toolchain: CMAKE_GENERATOR_TOOLSET=v143
-- Conan toolchain: Setting CMAKE_MSVC_RUNTIME_LIBRARY=$<$<CONFIG:Release>:MultiThreadedDLL>
-- Conan toolchain: C++ Standard 17 with extensions OFF
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The C compiler identification is MSVC 19.44.35223.0
-- The CXX compiler identification is MSVC 19.44.35223.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type selected, default to ReleaseWithDebugInfo
-- compiler MSVC version 19.44.35223.0
-- Performing Test ORC_CXX_HAS_CSTDINT
-- Performing Test ORC_CXX_HAS_CSTDINT - Success
-- Performing Test ORC_CXX_HAS_THREAD_LOCAL
-- Performing Test ORC_CXX_HAS_THREAD_LOCAL - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Using DEFAULT URL: https://www.apache.org/dyn/closer.lua/orc/orc-format-1.1.1/orc-format-1.1.1.tar.gz?action=download
-- Conan: Component target declared 'protobuf::libprotobuf'
-- Conan: Component target declared 'protobuf::libprotoc'
-- Conan: Target declared 'protobuf::protobuf'
-- Conan: Target declared 'ZLIB::ZLIB'
-- Conan: Including build module from 'D:/a/_temp/.c2/p/proto5252576ddfe0e/p/lib/cmake/protobuf/protobuf-generate.cmake'
-- Conan: Including build module from 'D:/a/_temp/.c2/p/proto5252576ddfe0e/p/lib/cmake/protobuf/protobuf-module.cmake'
-- Conan: Including build module from 'D:/a/_temp/.c2/p/proto5252576ddfe0e/p/lib/cmake/protobuf/protobuf-options.cmake'
-- Conan: Including build module from 'D:/a/_temp/.c2/p/proto5252576ddfe0e/p/lib/cmake/protobuf/protobuf-conan-protoc-target.cmake'
-- Conan: Component target declared 'Snappy::snappy'
-- Conan: Component target declared 'zstd::libzstd_static'
-- Conan: Target declared 'LZ4::lz4_static'
-- BUILD_ENABLE_AVX512: ON
-- System processor: AMD64
-- Performing Test COMPILER_SUPPORT_AVX512
-- Performing Test COMPILER_SUPPORT_AVX512 - Success
-- Performing Test CXX_SUPPORTS_AVX512
-- Performing Test CXX_SUPPORTS_AVX512 - Success
-- CPU flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht constant_tsc rep_good nopl xtopology cpuid aperfmperf pni pclmuldq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves avx512vbmi umip avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq la57 rdpid fsrm arch_capabilities

-- Enabled the AVX512 for RLE bit-unpacking
-- ORC_HAVE_RUNTIME_AVX512 defined, ORC_SIMD_LEVEL: AVX512
-- Performing Test HAS_PREAD
-- Performing Test HAS_PREAD - Failed
-- Performing Test HAS_STRPTIME
-- Performing Test HAS_STRPTIME - Failed
-- Performing Test HAS_BUILTIN_OVERFLOW_CHECK
-- Performing Test HAS_BUILTIN_OVERFLOW_CHECK - Failed
-- Performing Test HAS_DIAGNOSTIC_PUSH
-- Performing Test HAS_DIAGNOSTIC_PUSH - Success
-- Performing Test HAS_STD_ISNAN
-- Performing Test HAS_STD_ISNAN - Success
-- Performing Test HAS_DOUBLE_TO_STRING
-- Performing Test HAS_DOUBLE_TO_STRING - Success
-- Performing Test HAS_INT64_TO_STRING
-- Performing Test HAS_INT64_TO_STRING - Success
-- Performing Test NEEDS_Z_PREFIX
CMake Error at D:/a/_temp/.c2/p/b/orc6bca60dc87335/b/build/CMakeFiles/CMakeScratch/TryCompile-wj1bis/cmTC_52452Targets.cmake:21 (set_target_properties):
  The link interface of target "ZLIB::ZLIB" contains:

    CONAN_LIB::zlib_zlib_RELEASE

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  D:/a/_temp/.c2/p/b/orc6bca60dc87335/b/build/CMakeFiles/CMakeScratch/TryCompile-wj1bis/CMakeLists.txt:19 (include)


CMake Error at D:/a/_temp/.c2/p/cmake2e6a2506a1e6c/p/share/cmake-4.2/Modules/Internal/CheckSourceCompiles.cmake:104 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  D:/a/_temp/.c2/p/cmake2e6a2506a1e6c/p/share/cmake-4.2/Modules/CheckCXXSourceCompiles.cmake:103 (cmake_check_source_compiles)
  c++/src/CMakeLists.txt:124 (CHECK_CXX_SOURCE_COMPILES)


-- Configuring incomplete, errors occurred!

orc/2.3.0: ERROR: 
Package 'a908fa25e9c66f5d9d1eaf4885ad52325143e0be' build failed
orc/2.3.0: WARN: Build folder D:\a\_temp\.c2\p\b\orc6bca60dc87335\b\build
ERROR: orc/2.3.0: Error in build() method, line 109
	cmake.configure()
	ConanException: Error 1 while executing

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions