conan-io / conan-center-index

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

[package] Arrow/17.0.0: can't compile with parquet+encryption enabled #24948

Open jaimesalvador opened 3 months ago

jaimesalvador commented 3 months ago

Description

Can't install Arrow/17.0.0 when parquet with encription is enable, here is my conanfile.py

I get the fallowing error:

error C1083: No se puede abrir el archivo incluir: 'boost/numeric/conversion/cast.hpp'
from conan import ConanFile
from conan.tools.cmake import cmake_layout

class RedatamRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeToolchain", "CMakeDeps"

    def layout(self):
        cmake_layout(self)

    def requirements(self):
        self.requires("arrow/17.0.0")

    default_options  = {
        "thrift/*:shared": False,
        "arrow/*:shared": False,
        "arrow/*:encryption": True,
        "arrow/*:with_csv": True,
        "arrow/*:with_zstd": True,
        "arrow/*:parquet": True,
        "arrow/*:with_openssl": True,
        "arrow/*:with_boost": True,
        "arrow/*:with_thrift": True,
        "arrow/*:with_re2": True,
        "arrow/*:compute": False,
        "arrow/*:with_json": False,
    }

Package and Environment Details

Conan profile

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

Steps to reproduce

conan install . --output-folder=conan-release --settings=build_type=Release --build=missing -s compiler.cppstd=17

Logs

Click to expand log ``` arrow_static.vcxproj -> C:\Users\salvador-ruiz\.conan2\p\b\arrow1d1c9b486906c\b\build\release\Release\arrow_static.lib Building Custom Rule C:/Users/salvador-ruiz/.conan2/p/b/arrow1d1c9b486906c/b/src/cpp/src/parquet/CMakeLists.txt path_internal.cc reader.cc reader_internal.cc schema_internal.cc writer.cc bloom_filter.cc bloom_filter_reader.cc C:\Users\salvador-ruiz\.conan2\p\b\thrife4c88c8c6bea7\p\include\thrift\transport\TTransportException.h(23,10): error C1083: No se puede abrir el archivo incluir: 'boost /numeric/conversion/cast.hpp': No such file or directory [C:\Users\salvador-ruiz\.conan2\p\b\arrow1d1c9b486906c\b\build\src\parquet\parquet_static.vcxproj] (compilando archivo de origen "../../../src/cpp/src/parquet/bloom_filter.cc") column_reader.cc column_scanner.cc column_writer.cc C:\Users\salvador-ruiz\.conan2\p\b\thrife4c88c8c6bea7\p\include\thrift\transport\TTransportException.h(23,10): error C1083: No se puede abrir el archivo incluir: 'boost /numeric/conversion/cast.hpp': No such file or directory [C:\Users\salvador-ruiz\.conan2\p\b\arrow1d1c9b486906c\b\build\src\parquet\parquet_static.vcxproj] encoding.cc (compilando archivo de origen "../../../src/cpp/src/parquet/column_reader.cc") encryption.cc internal_file_decryptor.cc internal_file_encryptor.cc exception.cc C:\Users\salvador-ruiz\.conan2\p\b\thrife4c88c8c6bea7\p\include\thrift\transport\TTransportException.h(23,10): error C1083: No se puede abrir el archivo incluir: 'boost /numeric/conversion/cast.hpp': No such file or directory [C:\Users\salvador-ruiz\.conan2\p\b\arrow1d1c9b486906c\b\build\src\parquet\parquet_static.vcxproj] ```
jaimesalvador commented 3 months ago

image

arnaudmathias commented 3 months ago

A workaround was recently introduced upstream in arrow (apache/arrow#43328)

All arrow versions are impacted until 18.0 is released

robomics commented 3 months ago

There is also PR https://github.com/conan-io/conan-center-index/pull/24044 on CCI that addresses this very issue.