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

pip install . fails on master (>= 0.31.2) at liblc0_lib.dylib.p/src_neural_backends_opencl_OpenCLTuner.cc.o #2122

Open
andreasabel opened this issue Feb 8, 2025 · 2 comments

Comments

@andreasabel
Copy link

OS: macOS Sequoia
Python: 3.13
Homebrew clang version 19.1.7

Error:

$ pip install .
...
[69/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_backends_opencl_OpenCLTuner.cc.o
FAILED: liblc0_lib.dylib.p/src_neural_backends_opencl_OpenCLTuner.cc.o

pip install . 1 х │ 10:10:36 Processing /Users/abel/bin/src/lc0 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [1420 lines of output]
+ meson setup /Users/abel/bin/src/lc0 /Users/abel/bin/src/lc0/.mesonpy-zvi8ea8o -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dpython_bindings=true --native-file=/Users/abel/bin/src/lc0/.mesonpy-zvi8ea8o/meson-python-native-file.ini
The Meson build system
Version: 1.7.0
Source dir: /Users/abel/bin/src/lc0
Build dir: /Users/abel/bin/src/lc0/.mesonpy-zvi8ea8o
Build type: native build
Project name: lc0
Project version: undefined
C++ compiler for the host machine: c++ (clang 16.0.0 "Apple clang version 16.0.0 (clang-1600.0.26.6)")
C++ linker for the host machine: c++ ld64 1115.7.3
Host machine cpu family: aarch64
Host machine cpu: aarch64
Has header "optional" : YES
Has header "string_view" : YES
Has header "charconv" : YES
Compiler for C++ supports arguments -march=native: YES
Compiler for C++ supports arguments -mfpu=neon: NO
Compiler for C++ supports arguments -mfpu=neon: NO (cached)
Program scripts/compile_proto.py found: YES (/Users/abel/bin/src/lc0/scripts/compile_proto.py)
Program git found: YES (/usr/bin/git)
Message: Using build identifier "git.49d9f12".
Configuring build_id.h using configuration
Run-time dependency threads found: YES
Library dl found: YES
Found pkg-config: YES (/opt/homebrew/bin/pkg-config) 2.3.0
Found CMake: /opt/homebrew/bin/cmake (3.31.5)
Run-time dependency tensorflow_cc found: NO (tried pkgconfig, framework and cmake)
Run-time dependency accelerate found: YES (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework)
Library mkl_rt found: NO
Library mklml found: NO
Library dnnl found: NO
Library openblas.dll found: NO
Library openblas found: NO
Run-time dependency eigen3 found: NO (tried pkgconfig, framework and cmake)
Looking for a fallback subproject for the dependency eigen3

  Executing subproject eigen
  
  eigen| Project name: eigen
  eigen| Project version: 3.4.0
  eigen| C++ compiler for the host machine: c++ (clang 16.0.0 "Apple clang version 16.0.0 (clang-1600.0.26.6)")
  eigen| C++ linker for the host machine: c++ ld64 1115.7.3
  eigen| Build targets in project: 0
  eigen| Subproject eigen finished.
  
  Dependency eigen3 from subproject subprojects/eigen-3.4.0 found: YES 3.4.0
  Program ispc found: NO
  Library OpenCL found: NO
  Run-time dependency opencl found: YES (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework)
  Library cublas found: NO
  Library cudnn found: NO
  Library cudart found: NO
  Program nvcc /usr/local/cuda/bin/nvcc /opt/cuda/bin/nvcc found: NO
  Run-time dependency appleframeworks found: YES (Foundation, Metal, MetalPerformanceShaders, MetalPerformanceShadersGraph)
  ../meson.build:620: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build.
  Objective-C compiler for the host machine: clang (clang 19.1.7)
  Objective-C linker for the host machine: clang ld64 1115.7.3
  Objective-C++ compiler for the host machine: clang++ (clang 19.1.7)
  Objective-C++ linker for the host machine: clang++ ld64 1115.7.3
  Run-time dependency zlib found: YES 1.2.12
  Library libatomic found: NO
  Run-time dependency GTest found: NO (tried pkgconfig and system)
  Looking for a fallback subproject for the dependency gtest
  
  Executing subproject gtest
  
  gtest| Project name: gtest
  gtest| Project version: 1.10.0
  gtest| C++ compiler for the host machine: c++ (clang 16.0.0 "Apple clang version 16.0.0 (clang-1600.0.26.6)")
  gtest| C++ linker for the host machine: c++ ld64 1115.7.3
  gtest| Dependency threads found: YES unknown (cached)
  gtest| Dependency threads found: YES unknown (cached)
  gtest| Dependency threads found: YES unknown (cached)
  gtest| Dependency threads found: YES unknown (cached)
  gtest| Build targets in project: 1
  gtest| Subproject gtest finished.
  
  Dependency gtest from subproject subprojects/googletest-release-1.10.0 found: YES 1.10.0
  Program python3 found: YES (/Users/abela/.local/pipx/venvs/pip/bin/python)
  Program scripts/gen_py_bindings.py found: YES (/Users/abel/bin/src/lc0/scripts/gen_py_bindings.py)
  Run-time dependency python3 found: YES 3.13
  Run-time dependency python found: YES 3.13
  ../meson.build:781: WARNING: Project targets '>=0.55' but uses feature introduced in '0.63.0': python_installation.extension_module with implicit dependency on python. use python_installation.dependency()
  Build targets in project: 10
  WARNING: Project specifies a minimum meson_version '>=0.55' but uses features which were added in newer versions:
   * 0.63.0: {'python_installation.extension_module with implicit dependency on python'}
  
  lc0 undefined
  
    Subprojects
      eigen          : YES
      gtest          : YES
  
    User defined options
      Native files   : /Users/abel/bin/src/lc0/.mesonpy-zvi8ea8o/meson-python-native-file.ini
      b_ndebug       : if-release
      b_vscrt        : md
      buildtype      : release
      python_bindings: true
  
  Found ninja-1.12.1 at /opt/homebrew/bin/ninja
  + /opt/homebrew/bin/ninja
  [1/300] Generating 'liblc0_lib.dylib.p/neural/onnx/onnx.pb.h'
  [2/300] Generating 'backends.cpython-313-darwin.so.p/neural/onnx/onnx.pb.h'
  [3/300] Generating 'lc0.p/neural/onnx/onnx.pb.h'
  [4/300] Generating 'liblc0_lib.dylib.p/neural/xla/hlo.pb.h'
  [5/300] Generating 'backends.cpython-313-darwin.so.p/proto/net.pb.h'
  [6/300] Generating 'encoder_test.p/proto/net.pb.h'
  [7/300] Generating 'backends.cpython-313-darwin.so.p/neural/xla/hlo.pb.h'
  [8/300] Generating 'liblc0_lib.dylib.p/proto/net.pb.h'
  [9/300] Generating 'lc0.p/neural/xla/hlo.pb.h'
  [10/300] Generating 'lc0.p/proto/net.pb.h'
  [11/300] Generating backends with a custom command
  [12/300] Compiling C++ object liblc0_lib.dylib.p/src_engine.cc.o
  [13/300] Compiling C++ object backends.cpython-313-darwin.so.p/src_engine.cc.o
  [14/300] Compiling C++ object backends.cpython-313-darwin.so.p/src_neural_backends_network_rr.cc.o
  [15/300] Compiling C++ object backends.cpython-313-darwin.so.p/src_neural_backends_network_trivial.cc.o
  [16/300] Compiling C++ object backends.cpython-313-darwin.so.p/src_neural_backends_network_random.cc.o
  [17/300] Compiling C++ object liblc0_lib.dylib.p/src_engine_loop.cc.o
  [18/300] Compiling C++ object backends.cpython-313-darwin.so.p/src_engine_loop.cc.o
  [19/300] Compiling C++ object backends.cpython-313-darwin.so.p/src_neural_backends_network_record.cc.o
  [20/300] Compiling C++ object backends.cpython-313-darwin.so.p/src_neural_backends_network_demux.cc.o
  [21/300] Compiling C++ object backends.cpython-313-darwin.so.p/src_neural_backends_network_mux.cc.o
  [22/300] Compiling C++ object liblc0_lib.dylib.p/src_engine_classic.cc.o
  [23/300] Compiling C++ object backends.cpython-313-darwin.so.p/src_neural_backends_network_check.cc.o
  [24/300] Compiling C++ object backends.cpython-313-darwin.so.p/src_engine_classic.cc.o
  [25/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_backends_network_check.cc.o
  [26/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_cache.cc.o
  [27/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_memcache.cc.o
  [28/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_backends_network_rr.cc.o
  [29/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_backends_network_trivial.cc.o
  [30/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_backends_network_random.cc.o
  [31/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_backends_network_record.cc.o
  [32/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_backends_network_demux.cc.o
  [33/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_backends_network_mux.cc.o
  [34/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_factory.cc.o
  [35/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_loader.cc.o
  [36/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_onnx_adapters.cc.o
  [37/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_network_legacy.cc.o
  [38/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_onnx_builder.cc.o
  [39/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_xla_xla_tensor.cc.o
  [40/300] Compiling C++ object liblc0_lib.dylib.p/src_search_classic_stoppers_alphazero.cc.o
  [41/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_xla_print_hlo.cc.o
  [42/300] Compiling C++ object liblc0_lib.dylib.p/src_search_classic_params.cc.o
  [43/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_onnx_converter.cc.o
  [44/300] Compiling C++ object liblc0_lib.dylib.p/src_search_classic_stoppers_legacy.cc.o
  [45/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_xla_hlo_builder.cc.o
  [46/300] Compiling C++ object liblc0_lib.dylib.p/src_search_classic_stoppers_common.cc.o
  [47/300] Compiling C++ object liblc0_lib.dylib.p/src_search_classic_search.cc.o
  [48/300] Compiling C++ object liblc0_lib.dylib.p/src_search_classic_stoppers_simple.cc.o
  [49/300] Compiling C++ object liblc0_lib.dylib.p/src_search_classic_stoppers_factory.cc.o
  [50/300] Compiling C++ object liblc0_lib.dylib.p/src_search_register.cc.o
  [51/300] Compiling C++ object liblc0_lib.dylib.p/src_search_classic_stoppers_stoppers.cc.o
  [52/300] Compiling C++ object liblc0_lib.dylib.p/src_search_classic_stoppers_smooth.cc.o
  [53/300] Compiling C++ object liblc0_lib.dylib.p/src_search_classic_stoppers_timemgr.cc.o
  [54/300] Compiling C++ object liblc0_lib.dylib.p/src_selfplay_game.cc.o
  [55/300] Compiling C++ object liblc0_lib.dylib.p/src_selfplay_loop.cc.o
  [56/300] Compiling C++ object liblc0_lib.dylib.p/src_selfplay_multigame.cc.o
  [57/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_xla_onnx2hlo.cc.o
  [58/300] Compiling C++ object liblc0_lib.dylib.p/src_tools_backendbench.cc.o
  [59/300] Compiling C++ object liblc0_lib.dylib.p/src_utils_histogram.cc.o
  [60/300] Compiling C++ object liblc0_lib.dylib.p/src_utils_weights_adapter.cc.o
  [61/300] Compiling C++ object liblc0_lib.dylib.p/src_utils_numa.cc.o
  [62/300] Compiling C++ object liblc0_lib.dylib.p/src_tools_benchmark.cc.o
  [63/300] Compiling C++ object liblc0_lib.dylib.p/src_tools_describenet.cc.o
  [64/300] Compiling C++ object liblc0_lib.dylib.p/src_tools_leela2onnx.cc.o
  [65/300] Compiling C++ object liblc0_lib.dylib.p/src_selfplay_tournament.cc.o
  [66/300] Compiling C++ object liblc0_lib.dylib.p/src_search_instamove_instamove.cc.o
  [67/300] Compiling C++ object liblc0_lib.dylib.p/src_tools_onnx2leela.cc.o
  [68/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_backends_blas_se_unit.cc.o
  [69/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_backends_opencl_OpenCLTuner.cc.o
  FAILED: liblc0_lib.dylib.p/src_neural_backends_opencl_OpenCLTuner.cc.o
  c++ -Iliblc0_lib.dylib.p -I. -I.. -I../src -flto -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++20 -O3 -Wthread-safety -march=native -DUSE_BLAS -DNO_PEXT -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework -idirafter/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework -idirafter/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework/Headers -isystem../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem../third_party -MD -MQ liblc0_lib.dylib.p/src_neural_backends_opencl_OpenCLTuner.cc.o -MF liblc0_lib.dylib.p/src_neural_backends_opencl_OpenCLTuner.cc.o.d -o liblc0_lib.dylib.p/src_neural_backends_opencl_OpenCLTuner.cc.o -c ../src/neural/backends/opencl/OpenCLTuner.cc
  In file included from ../src/neural/backends/opencl/OpenCLTuner.cc:22:
  In file included from ../src/neural/backends/opencl/OpenCLTuner.h:24:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/map:589:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory_resource/polymorphic_allocator.h:20:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/tuple:263:
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:88:7: error: field has incomplete type 'cl::Device'
     88 |   _T1 first;
        |       ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:595:48: note: in instantiation of template class 'std::pair<cl::Device, std::string>' requested here
    595 |     return static_cast<size_type>(this->__end_ - this->__begin_);
        |                                                ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:1195:50: note: in instantiation of member function 'std::vector<std::pair<cl::Device, std::string>>::size' requested here
   1195 |   __init_with_size(__x.__begin_, __x.__end_, __x.size());
        |                                                  ^
  ../third_party/cl2.hpp:1887:96: note: in instantiation of member function 'std::vector<std::pair<cl::Device, std::string>>::vector' requested here
   1887 |     BuildError(cl_int err, const char * errStr, const BuildLogType &vec) : Error(err, errStr), buildLogs(vec)
        |                                                                                                ^
  ../third_party/cl2.hpp:697:11: note: forward declaration of 'cl::Device'
    697 |     class Device;
        |           ^
  In file included from ../src/neural/backends/opencl/OpenCLTuner.cc:22:
  In file included from ../src/neural/backends/opencl/OpenCLTuner.h:24:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/map:574:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/equal.h:14:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/unwrap_iter.h:13:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/iterator_traits.h:14:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/constructible.h:15:
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_constructible.h:22:79: error: incomplete type 'cl::Device' used in type trait expression
     22 | struct _LIBCPP_TEMPLATE_VIS is_constructible : public integral_constant<bool, __is_constructible(_Tp, _Args...)> {};
        |                                                                               ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:135:14: note: in instantiation of template class 'std::is_constructible<cl::Device, const cl::Device &>' requested here
    135 |       return is_constructible<first_type, _U1>::value && is_constructible<second_type, _U2>::value;
        |              ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:145:14: note: in instantiation of function template specialization 'std::pair<cl::Device, std::string>::_CheckArgs::__is_pair_constructible<const cl::Device &, const std::string &>' requested here
    145 |       return __is_pair_constructible<_U1, _U2>() && !__is_implicit<_U1, _U2>();
        |              ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:222:48: note: in instantiation of function template specialization 'std::pair<cl::Device, std::string>::_CheckArgs::__enable_explicit<const cl::Device &, const std::string &>' requested here
    222 |             __enable_if_t<_CheckArgs::template __enable_explicit<_U1 const&, _U2 const&>(), int> = 0>
        |                                                ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:223:64: note: while substituting prior template arguments into non-type template parameter [with _U1 = cl::Device, _U2 = std::string]
    223 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 explicit pair(pair<_U1, _U2> const& __p)
        |                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    224 |       _NOEXCEPT_((is_nothrow_constructible<first_type, _U1 const&>::value &&
        |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    225 |                   is_nothrow_constructible<second_type, _U2 const&>::value))
        |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    226 |       : first(__p.first), second(__p.second) {}
        |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_trivially_copy_constructible.h:24:38: note: while substituting deduced template arguments into function template 'pair' [with _U1 = cl::Device, _U2 = std::string, $2 = (no value)]
     24 |     : public integral_constant<bool, __is_trivially_constructible(_Tp, __add_lvalue_reference_t<const _Tp>)> {};
        |                                      ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/uninitialized_algorithms.h:570:15: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    570 |               is_trivially_copy_constructible<_RawTypeIn>::value && is_trivially_copy_assignable<_RawTypeIn>::value &&
        |               ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/uninitialized_algorithms.h:592:28: note: while substituting deduced template arguments into function template '__uninitialized_allocator_copy_impl' [with _Alloc = std::allocator<std::pair<cl::Device, std::string>>, _In = std::pair<cl::Device, std::string>, _RawTypeIn = (no value), _Out = std::pair<cl::Device, std::string>, $4 = (no value)]
    592 |   auto __result          = std::__uninitialized_allocator_copy_impl(
        |                            ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:1082:22: note: in instantiation of function template specialization 'std::__uninitialized_allocator_copy<std::allocator<std::pair<cl::Device, std::string>>, std::pair<cl::Device, std::string> *, std::pair<cl::Device, std::string> *, std::pair<cl::Device, std::string> *>' requested here
   1082 |   __tx.__pos_ = std::__uninitialized_allocator_copy(__alloc(), __first, __last, __tx.__pos_);
        |                      ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:760:7: note: in instantiation of function template specialization 'std::vector<std::pair<cl::Device, std::string>>::__construct_at_end<std::pair<cl::Device, std::string> *, std::pair<cl::Device, std::string> *>' requested here
    760 |       __construct_at_end(__first, __last, __n);
        |       ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:1195:3: note: in instantiation of function template specialization 'std::vector<std::pair<cl::Device, std::string>>::__init_with_size<std::pair<cl::Device, std::string> *, std::pair<cl::Device, std::string> *>' requested here
   1195 |   __init_with_size(__x.__begin_, __x.__end_, __x.size());
        |   ^
  ../third_party/cl2.hpp:1887:96: note: in instantiation of member function 'std::vector<std::pair<cl::Device, std::string>>::vector' requested here
   1887 |     BuildError(cl_int err, const char * errStr, const BuildLogType &vec) : Error(err, errStr), buildLogs(vec)
        |                                                                                                ^
  ../third_party/cl2.hpp:697:11: note: forward declaration of 'cl::Device'
    697 |     class Device;
        |           ^
  In file included from ../src/neural/backends/opencl/OpenCLTuner.cc:22:
  In file included from ../src/neural/backends/opencl/OpenCLTuner.h:24:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/map:574:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/equal.h:14:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/unwrap_iter.h:13:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/iterator_traits.h:14:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/constructible.h:15:
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_constructible.h:22:79: error: incomplete type 'cl::Device' used in type trait expression
     22 | struct _LIBCPP_TEMPLATE_VIS is_constructible : public integral_constant<bool, __is_constructible(_Tp, _Args...)> {};
        |                                                                               ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:135:14: note: in instantiation of template class 'std::is_constructible<cl::Device, cl::Device>' requested here
    135 |       return is_constructible<first_type, _U1>::value && is_constructible<second_type, _U2>::value;
        |              ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:145:14: note: in instantiation of function template specialization 'std::pair<cl::Device, std::string>::_CheckArgs::__is_pair_constructible<cl::Device, std::string>' requested here
    145 |       return __is_pair_constructible<_U1, _U2>() && !__is_implicit<_U1, _U2>();
        |              ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:236:70: note: in instantiation of function template specialization 'std::pair<cl::Device, std::string>::_CheckArgs::__enable_explicit<cl::Device, std::string>' requested here
    236 |   template <class _U1, class _U2, __enable_if_t<_CheckArgs::template __enable_explicit<_U1, _U2>(), int> = 0>
        |                                                                      ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:237:64: note: while substituting prior template arguments into non-type template parameter [with _U1 = cl::Device, _U2 = std::string]
    237 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 explicit pair(pair<_U1, _U2>&& __p)
        |                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
    238 |       _NOEXCEPT_((is_nothrow_constructible<first_type, _U1&&>::value &&
        |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    239 |                   is_nothrow_constructible<second_type, _U2&&>::value))
        |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    240 |       : first(std::forward<_U1>(__p.first)), second(std::forward<_U2>(__p.second)) {}
        |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_trivially_copy_constructible.h:24:38: note: while substituting deduced template arguments into function template 'pair' [with _U1 = cl::Device, _U2 = std::string, $2 = (no value)]
     24 |     : public integral_constant<bool, __is_trivially_constructible(_Tp, __add_lvalue_reference_t<const _Tp>)> {};
        |                                      ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/uninitialized_algorithms.h:570:15: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    570 |               is_trivially_copy_constructible<_RawTypeIn>::value && is_trivially_copy_assignable<_RawTypeIn>::value &&
        |               ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/uninitialized_algorithms.h:592:28: note: while substituting deduced template arguments into function template '__uninitialized_allocator_copy_impl' [with _Alloc = std::allocator<std::pair<cl::Device, std::string>>, _In = std::pair<cl::Device, std::string>, _RawTypeIn = (no value), _Out = std::pair<cl::Device, std::string>, $4 = (no value)]
    592 |   auto __result          = std::__uninitialized_allocator_copy_impl(
        |                            ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:1082:22: note: in instantiation of function template specialization 'std::__uninitialized_allocator_copy<std::allocator<std::pair<cl::Device, std::string>>, std::pair<cl::Device, std::string> *, std::pair<cl::Device, std::string> *, std::pair<cl::Device, std::string> *>' requested here
   1082 |   __tx.__pos_ = std::__uninitialized_allocator_copy(__alloc(), __first, __last, __tx.__pos_);
        |                      ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:760:7: note: in instantiation of function template specialization 'std::vector<std::pair<cl::Device, std::string>>::__construct_at_end<std::pair<cl::Device, std::string> *, std::pair<cl::Device, std::string> *>' requested here
    760 |       __construct_at_end(__first, __last, __n);
        |       ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:1195:3: note: in instantiation of function template specialization 'std::vector<std::pair<cl::Device, std::string>>::__init_with_size<std::pair<cl::Device, std::string> *, std::pair<cl::Device, std::string> *>' requested here
   1195 |   __init_with_size(__x.__begin_, __x.__end_, __x.size());
        |   ^
  ../third_party/cl2.hpp:1887:96: note: in instantiation of member function 'std::vector<std::pair<cl::Device, std::string>>::vector' requested here
   1887 |     BuildError(cl_int err, const char * errStr, const BuildLogType &vec) : Error(err, errStr), buildLogs(vec)
        |                                                                                                ^
  ../third_party/cl2.hpp:697:11: note: forward declaration of 'cl::Device'
    697 |     class Device;
        |           ^
  In file included from ../src/neural/backends/opencl/OpenCLTuner.cc:22:
  In file included from ../src/neural/backends/opencl/OpenCLTuner.h:24:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/map:574:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/equal.h:20:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__string/constexpr_c_functions.h:14:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/new:397:
  In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:450:
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_assignable.h:22:83: error: incomplete type 'cl::Device' used in type trait expression
     22 | struct _LIBCPP_TEMPLATE_VIS is_assignable : _BoolConstant<__is_assignable(_Tp, _Up)> {};
        |                                                                                   ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:320:22: note: in instantiation of template class 'std::is_assignable<cl::Device &, cl::Device>' requested here
    320 |       __enable_if_t< is_assignable<first_type&, _U1>::value && is_assignable<second_type&, _U2>::value >* = nullptr>
        |                      ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:321:61: note: while substituting prior template arguments into non-type template parameter [with _U1 = cl::Device, _U2 = std::string]
    321 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 pair& operator=(pair<_U1, _U2>&& __p) {
        |                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    322 |     first  = std::forward<_U1>(__p.first);
        |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    323 |     second = std::forward<_U2>(__p.second);
        |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    324 |     return *this;
        |     ~~~~~~~~~~~~~
    325 |   }
        |   ~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_trivially_copy_assignable.h:27:113: note: while substituting deduced template arguments into function template 'operator=' [with _U1 = cl::Device, _U2 = std::string, $2 = (no value)]
     27 |                                                          __add_lvalue_reference_t<typename add_const<_Tp>::type>)> {};
        |                                                                                                                 ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/uninitialized_algorithms.h:570:69: note: in instantiation of template class 'std::is_trivially_copy_assignable<std::pair<cl::Device, std::string>>' requested here
    570 |               is_trivially_copy_constructible<_RawTypeIn>::value && is_trivially_copy_assignable<_RawTypeIn>::value &&
        |                                                                     ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/uninitialized_algorithms.h:574:1: note: while substituting prior template arguments into non-type template parameter [with _Alloc = std::allocator<std::pair<cl::Device, std::string>>, _In = std::pair<cl::Device, std::string>, _RawTypeIn = __remove_const_t<pair<Device, string>>, _Out = std::pair<cl::Device, std::string>]
    574 | __uninitialized_allocator_copy_impl(_Alloc&, _In* __first1, _In* __last1, _Out* __first2) {
        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    575 |   // TODO: Remove the const_cast once we drop support for std::allocator<T const>
        |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    576 |   if (__libcpp_is_constant_evaluated()) {
        |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    577 |     while (__first1 != __last1) {
        |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    578 |       std::__construct_at(std::__to_address(__first2), *__first1);
        |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    579 |       ++__first1;
        |       ~~~~~~~~~~~
    580 |       ++__first2;
        |       ~~~~~~~~~~~
    581 |     }
        |     ~
    582 |     return __first2;
        |     ~~~~~~~~~~~~~~~~
    583 |   } else {
        |   ~~~~~~~~
    584 |     return std::copy(__first1, __last1, const_cast<_RawTypeIn*>(__first2));
        |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    585 |   }
        |   ~
    586 | }
        | ~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/uninitialized_algorithms.h:592:28: note: while substituting deduced template arguments into function template '__uninitialized_allocator_copy_impl' [with _Alloc = std::allocator<std::pair<cl::Device, std::string>>, _In = std::pair<cl::Device, std::string>, _RawTypeIn = (no value), _Out = std::pair<cl::Device, std::string>, $4 = (no value)]
    592 |   auto __result          = std::__uninitialized_allocator_copy_impl(
        |                            ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:1082:22: note: in instantiation of function template specialization 'std::__uninitialized_allocator_copy<std::allocator<std::pair<cl::Device, std::string>>, std::pair<cl::Device, std::string> *, std::pair<cl::Device, std::string> *, std::pair<cl::Device, std::string> *>' requested here
   1082 |   __tx.__pos_ = std::__uninitialized_allocator_copy(__alloc(), __first, __last, __tx.__pos_);
        |                      ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:760:7: note: in instantiation of function template specialization 'std::vector<std::pair<cl::Device, std::string>>::__construct_at_end<std::pair<cl::Device, std::string> *, std::pair<cl::Device, std::string> *>' requested here
    760 |       __construct_at_end(__first, __last, __n);
        |       ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:1195:3: note: in instantiation of function template specialization 'std::vector<std::pair<cl::Device, std::string>>::__init_with_size<std::pair<cl::Device, std::string> *, std::pair<cl::Device, std::string> *>' requested here
   1195 |   __init_with_size(__x.__begin_, __x.__end_, __x.size());
        |   ^
  ../third_party/cl2.hpp:1887:96: note: in instantiation of member function 'std::vector<std::pair<cl::Device, std::string>>::vector' requested here
   1887 |     BuildError(cl_int err, const char * errStr, const BuildLogType &vec) : Error(err, errStr), buildLogs(vec)
        |                                                                                                ^
  ../third_party/cl2.hpp:697:11: note: forward declaration of 'cl::Device'
    697 |     class Device;
        |           ^
  ../third_party/cl2.hpp:6427:17: error: no matching constructor for initialization of 'std::pair<cl::Device, typename detail::param_traits<detail::cl_program_build_info, 4483>::param_type>' (aka 'pair<cl::Device, basic_string<char>>')
   6427 |                 std::pair<cl::Device, typename detail::param_traits<detail::cl_program_build_info, name>::param_type>
        |                 ^
   6428 |                 (d, param));
        |                  ~~~~~~~~
  ../third_party/cl2.hpp:6020:65: note: in instantiation of function template specialization 'cl::Program::getBuildInfo<4483>' requested here
   6020 |             detail::buildErrHandler(error, __BUILD_PROGRAM_ERR, getBuildInfo<CL_PROGRAM_BUILD_LOG>());
        |                                                                 ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:170:64: note: candidate template ignored: requirement '_CheckArgsDep<true>::__enable_explicit()' was not satisfied [with _Dummy = true]
    170 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 explicit pair(_T1 const& __t1, _T2 const& __t2)
        |                                                                ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:176:55: note: candidate template ignored: requirement '_CheckArgsDep<true>::__enable_implicit()' was not satisfied [with _Dummy = true]
    176 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair(_T1 const& __t1, _T2 const& __t2)
        |                                                       ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:189:64: note: candidate template ignored: requirement '_CheckArgs::__enable_explicit()' was not satisfied [with _U1 = const cl::Device &, _U2 = typename detail::param_traits<detail::cl_program_build_info, 4483>::param_type &]
    189 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 explicit pair(_U1&& __u1, _U2&& __u2)
        |                                                                ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:204:55: note: candidate template ignored: requirement '_CheckArgs::__enable_implicit()' was not satisfied [with _U1 = const cl::Device &, _U2 = typename detail::param_traits<detail::cl_program_build_info, 4483>::param_type &]
    204 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair(_U1&& __u1, _U2&& __u2)
        |                                                       ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:91:25: note: candidate constructor not viable: requires 1 argument, but 2 were provided
     91 |   _LIBCPP_HIDE_FROM_ABI pair(pair const&) = default;
        |                         ^    ~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:92:25: note: candidate constructor not viable: requires 1 argument, but 2 were provided
     92 |   _LIBCPP_HIDE_FROM_ABI pair(pair&&)      = default;
        |                         ^    ~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:223:64: note: candidate constructor template not viable: requires single argument '__p', but 2 arguments were provided
    223 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 explicit pair(pair<_U1, _U2> const& __p)
        |                                                                ^    ~~~~~~~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:231:55: note: candidate constructor template not viable: requires single argument '__p', but 2 arguments were provided
    231 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair(pair<_U1, _U2> const& __p)
        |                                                       ^    ~~~~~~~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:237:64: note: candidate constructor template not viable: requires single argument '__p', but 2 arguments were provided
    237 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 explicit pair(pair<_U1, _U2>&& __p)
        |                                                                ^    ~~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:243:55: note: candidate constructor template not viable: requires single argument '__p', but 2 arguments were provided
    243 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair(pair<_U1, _U2>&& __p)
        |                                                       ^    ~~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:394:55: note: candidate constructor template not viable: requires single argument '__p', but 2 arguments were provided
    394 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair(tuple<_U1, _U2> const& __p)
        |                                                       ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:402:64: note: candidate constructor template not viable: requires single argument '__p', but 2 arguments were provided
    402 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 explicit pair(tuple<_U1, _U2> const& __p)
        |                                                                ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:408:55: note: candidate constructor template not viable: requires single argument '__p', but 2 arguments were provided
    408 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair(tuple<_U1, _U2>&& __p)
        |                                                       ^    ~~~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:415:64: note: candidate constructor template not viable: requires single argument '__p', but 2 arguments were provided
    415 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 explicit pair(tuple<_U1, _U2>&& __p)
        |                                                                ^    ~~~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:441:55: note: candidate constructor template not viable: requires single argument '__p', but 2 arguments were provided
    441 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair(array<_Up, 2> const& __p) : first(__p[0]), second(__p[1]) {}
        |                                                       ^    ~~~~~~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:447:64: note: candidate constructor template not viable: requires single argument '__p', but 2 arguments were provided
    447 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 explicit pair(array<_Up, 2> const& __p)
        |                                                                ^    ~~~~~~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:451:55: note: candidate constructor template not viable: requires single argument '__p', but 2 arguments were provided
    451 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair(array<_Up, 2>&& __p)
        |                                                       ^    ~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:457:64: note: candidate constructor template not viable: requires single argument '__p', but 2 arguments were provided
    457 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 explicit pair(array<_Up, 2>&& __p)
        |                                                                ^    ~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:279:3: note: candidate constructor template not viable: requires 3 arguments, but 2 were provided
    279 |   pair(piecewise_construct_t __pc, tuple<_Args1...> __first_args, tuple<_Args2...> __second_args)
        |   ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:159:52: note: candidate constructor template not viable: requires 0 arguments, but 2 were provided
    159 |   explicit _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR pair() _NOEXCEPT_(
        |                                                    ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:164:43: note: candidate constructor template not viable: requires 0 arguments, but 2 were provided
    164 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR pair() _NOEXCEPT_(
        |                                           ^
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:498:3: note: candidate constructor template not viable: requires 5 arguments, but 2 were provided
    498 |   pair(piecewise_construct_t,
        |   ^    ~~~~~~~~~~~~~~~~~~~~~~
    499 |        tuple<_Args1...>& __first_args,
        |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    500 |        tuple<_Args2...>& __second_args,
        |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    501 |        __tuple_indices<_I1...>,
        |        ~~~~~~~~~~~~~~~~~~~~~~~~
    502 |        __tuple_indices<_I2...>);
        |        ~~~~~~~~~~~~~~~~~~~~~~~
  5 errors generated.
  [70/300] Compiling C++ object liblc0_lib.dylib.p/src_neural_backends_opencl_network_opencl.cc.o
  FAILED: liblc0_lib.dylib.p/src_neural_backends_opencl_network_opencl.cc.o

...

  ninja: build stopped: subcommand failed.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@mooskagh
Copy link
Member

The opencl builds fails on latest clang compilers, presumably because the C++ opencl wrapper cl2.hpp is outdated.

There's not enough hands to try to update it though (help would be welcome).

@andreasabel
Copy link
Author

Thanks for the analysis, @mooskagh !

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

2 participants