Skip to content

build: enabling support for loading manifests from CONDA_PREFIX does not build #3427

@lidavidm

Description

@lidavidm

What happened?

We need to test this in CI.

Stack Trace

[6/14] Building CXX object driver_manager/CMakeFiles/adbc_driver_manager_objlib.dir/adbc_driver_manager.cc.o
FAILED: [code=1] driver_manager/CMakeFiles/adbc_driver_manager_objlib.dir/adbc_driver_manager.cc.o 
/home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/_build_env/bin/x86_64-conda-linux-gnu-c++ -DADBC_CONDA_BUILD=1 -DADBC_EXPORTING -isystem /home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/work/c -isystem /home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/work/c/include -isystem /home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/work/c/vendor -isystem /home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/work/c/driver -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/work=/usr/local/src/conda/libadbc-driver-manager-1.8.0 -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac=/usr/local/src/conda-prefix -std=gnu++17 -fPIC -Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter -Wno-maybe-uninitialized -MD -MT driver_manager/CMakeFiles/adbc_driver_manager_objlib.dir/adbc_driver_manager.cc.o -MF driver_manager/CMakeFiles/adbc_driver_manager_objlib.dir/adbc_driver_manager.cc.o.d -o driver_manager/CMakeFiles/adbc_driver_manager_objlib.dir/adbc_driver_manager.cc.o -c /home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/work/c/driver_manager/adbc_driver_manager.cc
/home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/work/c/driver_manager/adbc_driver_manager.cc: In member function 'AdbcStatusCode {anonymous}::ManagedLibrary::FindDriver(const std::filesystem::__cxx11::path&, AdbcLoadFlags, const std::vector<std::filesystem::__cxx11::path>&, {anonymous}::DriverInfo&, AdbcError*)':
/home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/work/c/driver_manager/adbc_driver_manager.cc:736:49: error: no match for 'operator/' (operand types are 'const std::pair<{anonymous}::SearchPathSource, std::filesystem::__cxx11::path>' and 'const char [4]')
  736 |                                       venv_path / "etc" / "adbc" / "drivers");
      |                                       ~~~~~~~~~ ^ ~~~~~
      |                                       |           |
      |                                       |           const char [4]
      |                                       const std::pair<{anonymous}::SearchPathSource, std::filesystem::__cxx11::path>
In file included from /home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/_build_env/lib/gcc/x86_64-conda-linux-gnu/14.3.0/include/c++/filesystem:52,
                 from /home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/work/c/driver_manager/adbc_driver_manager.cc:46:
/home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/_build_env/lib/gcc/x86_64-conda-linux-gnu/14.3.0/include/c++/bits/fs_path.h:591:17: note: candidate: 'std::filesystem::__cxx11::path std::filesystem::__cxx11::operator/(const path&, const path&)'
  591 |     friend path operator/(const path& __lhs, const path& __rhs)
      |                 ^~~~~~~~
/home/conda/feedstock_root/build_artifacts/arrow-adbc-split_1757683657674/_build_env/lib/gcc/x86_64-conda-linux-gnu/14.3.0/include/c++/bits/fs_path.h:591:39: note:   no known conversion for argument 1 from 'const std::pair<{anonymous}::SearchPathSource, std::filesystem::__cxx11::path>' to 'const std::filesystem::__cxx11::path&'
  591 |     friend path operator/(const path& __lhs, const path& __rhs)
      |                           ~~~~~~~~~~~~^~~~~

How can we reproduce the bug?

No response

Environment/Setup

No response

Metadata

Metadata

Assignees

Labels

Type: bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions