Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/ Obtaining file:///home/zhong/code/simulators/timeloop-python Installing build dependencies: started Installing build dependencies: finished with status 'done' Checking if build backend supports build_editable: started Checking if build backend supports build_editable: finished with status 'done' Getting requirements to build editable: started Getting requirements to build editable: finished with status 'done' Preparing editable metadata (pyproject.toml): started Preparing editable metadata (pyproject.toml): finished with status 'done' Requirement already satisfied: pyyaml in /home/zhong/miniforge3/lib/python3.10/site-packages (from pytimeloop==0.0.1) (6.0) Building wheels for collected packages: pytimeloop Building editable for pytimeloop (pyproject.toml): started Building editable for pytimeloop (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error × Building editable for pytimeloop (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [347 lines of output] running editable_wheel creating /tmp/pip-wheel-7p2hn2d6/.tmp-w1a69qn9/pytimeloop.egg-info writing /tmp/pip-wheel-7p2hn2d6/.tmp-w1a69qn9/pytimeloop.egg-info/PKG-INFO writing dependency_links to /tmp/pip-wheel-7p2hn2d6/.tmp-w1a69qn9/pytimeloop.egg-info/dependency_links.txt writing requirements to /tmp/pip-wheel-7p2hn2d6/.tmp-w1a69qn9/pytimeloop.egg-info/requires.txt writing top-level names to /tmp/pip-wheel-7p2hn2d6/.tmp-w1a69qn9/pytimeloop.egg-info/top_level.txt writing manifest file '/tmp/pip-wheel-7p2hn2d6/.tmp-w1a69qn9/pytimeloop.egg-info/SOURCES.txt' reading manifest file '/tmp/pip-wheel-7p2hn2d6/.tmp-w1a69qn9/pytimeloop.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file '/tmp/pip-wheel-7p2hn2d6/.tmp-w1a69qn9/pytimeloop.egg-info/SOURCES.txt' creating '/tmp/pip-wheel-7p2hn2d6/.tmp-w1a69qn9/pytimeloop-0.0.1.dist-info' creating /tmp/pip-wheel-7p2hn2d6/.tmp-w1a69qn9/pytimeloop-0.0.1.dist-info/WHEEL running build_py running build_ext CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- The C compiler identification is GNU 9.4.0 -- The CXX compiler identification is GNU 9.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - 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: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Using timeloop includes from: ../timeloop/include -- 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 - found -- Found Threads: TRUE CMake Deprecation Warning at lib/pybind11/CMakeLists.txt:8 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- pybind11 v2.8.0 dev2 CMake Warning (dev) at lib/pybind11/tools/FindPythonLibsNew.cmake:98 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): lib/pybind11/tools/pybind11Tools.cmake:45 (find_package) lib/pybind11/tools/pybind11Common.cmake:205 (include) lib/pybind11/CMakeLists.txt:198 (include) This warning is for project developers. Use -Wno-dev to suppress it. -- Found PythonInterp: /home/zhong/miniforge3/bin/python3.10 (found version "3.10.9") -- Found PythonLibs: /home/zhong/miniforge3/lib/libpython3.10.so -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Success -- Configuring done (0.5s) -- Generating done (0.0s) -- Build files have been written to: /tmp/tmpuhmgor_8.build-temp [ 3%] Building CXX object CMakeFiles/define_gterminate.dir/bindings/gterminate.cpp.o [ 7%] Linking CXX static library libdefine_gterminate.a [ 7%] Built target define_gterminate [ 10%] Building CXX object CMakeFiles/pytimeloop.dir/src/mapper/coupled-mapper.cpp.o [ 14%] Building CXX object CMakeFiles/pytimeloop.dir/src/mapspace/status.cpp.o [ 17%] Building CXX object CMakeFiles/pytimeloop.dir/src/model/accelerator.cpp.o [ 21%] Building CXX object CMakeFiles/pytimeloop.dir/src/model/bounded-queue-accelerator-pool.cpp.o [ 25%] Building CXX object CMakeFiles/pytimeloop.dir/src/model/unbounded-queue-accelerator-pool.cpp.o [ 28%] Building CXX object CMakeFiles/pytimeloop.dir/src/model/util.cpp.o [ 32%] Linking CXX shared library /tmp/tmpbn3t744o.build-lib/libpytimeloop.so [ 32%] Built target pytimeloop [ 35%] Building CXX object CMakeFiles/bindings.dir/src/configurator/configurator.cpp.o In file included from /home/zhong/code/simulators/timeloop-python/src/configurator/configurator.cpp:1: /home/zhong/code/simulators/timeloop-python/include/pytimeloop/configurator/configurator.h: In constructor ‘pytimeloop::configurator::Configurator::Configurator()’: /home/zhong/code/simulators/timeloop-python/include/pytimeloop/configurator/configurator.h:32:38: warning: ‘pytimeloop::configurator::Configurator::workload_’ will be initialized after [-Wreorder] 32 | std::unique_ptr workload_; | ^~~~~~~~~ /home/zhong/code/simulators/timeloop-python/include/pytimeloop/configurator/configurator.h:27:41: warning: ‘std::unique_ptr pytimeloop::configurator::Configurator::arch_specs_’ [-Wreorder] 27 | std::unique_ptr arch_specs_; | ^~~~~~~~~~~ /home/zhong/code/simulators/timeloop-python/src/configurator/configurator.cpp:52:1: warning: when initialized here [-Wreorder] 52 | Configurator::Configurator() | ^~~~~~~~~~~~ [ 39%] Building CXX object CMakeFiles/bindings.dir/src/mapper/coupled-mapper.cpp.o [ 42%] Building CXX object CMakeFiles/bindings.dir/src/mapspace/status.cpp.o [ 46%] Building CXX object CMakeFiles/bindings.dir/src/model/accelerator.cpp.o [ 50%] Building CXX object CMakeFiles/bindings.dir/src/model/bounded-queue-accelerator-pool.cpp.o [ 53%] Building CXX object CMakeFiles/bindings.dir/src/model/unbounded-queue-accelerator-pool.cpp.o [ 57%] Building CXX object CMakeFiles/bindings.dir/src/model/util.cpp.o [ 60%] Building CXX object CMakeFiles/bindings.dir/bindings/accelergy_interface.cpp.o [ 64%] Building CXX object CMakeFiles/bindings.dir/bindings/bindings.cpp.o [ 67%] Building CXX object CMakeFiles/bindings.dir/bindings/buffer.cpp.o In file included from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h: In instantiation of ‘static pybind11::handle pybind11::detail::type_caster >::cast(T&&, pybind11::return_value_policy, pybind11::handle) [with T = const problem::PerDataSpace&; Type = bool]’: /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:231:43: required from ‘void pybind11::cpp_function::initialize(Func&&, Return (*)(Args ...), const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Return = const problem::PerDataSpace&; Args = {const model::BufferLevel::Stats&}; Extra = {pybind11::is_method}]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:99:9: required from ‘pybind11::cpp_function::cpp_function(Func&&, const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Extra = {pybind11::is_method}; = void]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:1460:22: required from ‘pybind11::class_& pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]’ /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:126:59: required from here /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:44:10: error: passing ‘const problem::PerDataSpace’ as ‘this’ argument discards qualifiers [-fpermissive] 44 | list l(src.size()); | ^ In file included from /home/zhong/code/simulators/timeloop-python/../timeloop/include/workload/util/per-data-space.hpp:33, from /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:7, from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/../timeloop/include/util/dynamic-array.hpp:88:10: note: in call to ‘size_t DynamicArray::size() [with T = bool; size_t = long unsigned int]’ 88 | size_t size() { return size_; } | ^~~~ In file included from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h: In instantiation of ‘static pybind11::handle pybind11::detail::type_caster >::cast(T&&, pybind11::return_value_policy, pybind11::handle) [with T = const problem::PerDataSpace&; Type = long unsigned int]’: /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:231:43: required from ‘void pybind11::cpp_function::initialize(Func&&, Return (*)(Args ...), const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Return = const problem::PerDataSpace&; Args = {const model::BufferLevel::Stats&}; Extra = {pybind11::is_method}]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:99:9: required from ‘pybind11::cpp_function::cpp_function(Func&&, const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Extra = {pybind11::is_method}; = void]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:1460:22: required from ‘pybind11::class_& pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]’ /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:127:79: required from here /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:44:10: error: passing ‘const problem::PerDataSpace’ as ‘this’ argument discards qualifiers [-fpermissive] 44 | list l(src.size()); | ^ In file included from /home/zhong/code/simulators/timeloop-python/../timeloop/include/workload/util/per-data-space.hpp:33, from /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:7, from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/../timeloop/include/util/dynamic-array.hpp:88:10: note: in call to ‘size_t DynamicArray::size() [with T = long unsigned int; size_t = long unsigned int]’ 88 | size_t size() { return size_; } | ^~~~ In file included from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h: In instantiation of ‘static pybind11::handle pybind11::detail::type_caster >::cast(T&&, pybind11::return_value_policy, pybind11::handle) [with T = const problem::PerDataSpace&; Type = double]’: /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:231:43: required from ‘void pybind11::cpp_function::initialize(Func&&, Return (*)(Args ...), const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Return = const problem::PerDataSpace&; Args = {const model::BufferLevel::Stats&}; Extra = {pybind11::is_method}]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:99:9: required from ‘pybind11::cpp_function::cpp_function(Func&&, const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Extra = {pybind11::is_method}; = void]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:1460:22: required from ‘pybind11::class_& pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]’ /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:131:87: required from here /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:44:10: error: passing ‘const problem::PerDataSpace’ as ‘this’ argument discards qualifiers [-fpermissive] 44 | list l(src.size()); | ^ In file included from /home/zhong/code/simulators/timeloop-python/../timeloop/include/workload/util/per-data-space.hpp:33, from /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:7, from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/../timeloop/include/util/dynamic-array.hpp:88:10: note: in call to ‘size_t DynamicArray::size() [with T = double; size_t = long unsigned int]’ 88 | size_t size() { return size_; } | ^~~~ In file included from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h: In instantiation of ‘static pybind11::handle pybind11::detail::type_caster >::cast(T&&, pybind11::return_value_policy, pybind11::handle) [with T = const problem::PerDataSpace > >&; Type = std::vector >]’: /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:231:43: required from ‘void pybind11::cpp_function::initialize(Func&&, Return (*)(Args ...), const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace > >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Return = const problem::PerDataSpace > >&; Args = {const model::BufferLevel::Stats&}; Extra = {pybind11::is_method}]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:99:9: required from ‘pybind11::cpp_function::cpp_function(Func&&, const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace > >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Extra = {pybind11::is_method}; = void]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:1460:22: required from ‘pybind11::class_& pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace > >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]’ /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:154:87: required from here /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:44:10: error: passing ‘const problem::PerDataSpace > >’ as ‘this’ argument discards qualifiers [-fpermissive] 44 | list l(src.size()); | ^ In file included from /home/zhong/code/simulators/timeloop-python/../timeloop/include/workload/util/per-data-space.hpp:33, from /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:7, from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/../timeloop/include/util/dynamic-array.hpp:88:10: note: in call to ‘size_t DynamicArray::size() [with T = std::vector >; size_t = long unsigned int]’ 88 | size_t size() { return size_; } | ^~~~ In file included from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h: In instantiation of ‘static pybind11::handle pybind11::detail::type_caster >::cast(T&&, pybind11::return_value_policy, pybind11::handle) [with T = const problem::PerDataSpace >&; Type = std::__cxx11::basic_string]’: /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:231:43: required from ‘void pybind11::cpp_function::initialize(Func&&, Return (*)(Args ...), const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Return = const problem::PerDataSpace >&; Args = {const model::BufferLevel::Stats&}; Extra = {pybind11::is_method}]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:99:9: required from ‘pybind11::cpp_function::cpp_function(Func&&, const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Extra = {pybind11::is_method}; = void]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:1460:22: required from ‘pybind11::class_& pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]’ /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:156:81: required from here /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:44:10: error: passing ‘const problem::PerDataSpace >’ as ‘this’ argument discards qualifiers [-fpermissive] 44 | list l(src.size()); | ^ In file included from /home/zhong/code/simulators/timeloop-python/../timeloop/include/workload/util/per-data-space.hpp:33, from /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:7, from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/../timeloop/include/util/dynamic-array.hpp:88:10: note: in call to ‘size_t DynamicArray::size() [with T = std::__cxx11::basic_string; size_t = long unsigned int]’ 88 | size_t size() { return size_; } | ^~~~ In file included from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h: In instantiation of ‘static pybind11::handle pybind11::detail::type_caster >::cast(T&&, pybind11::return_value_policy, pybind11::handle) [with T = const problem::PerDataSpace&; Type = unsigned int]’: /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:231:43: required from ‘void pybind11::cpp_function::initialize(Func&&, Return (*)(Args ...), const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Return = const problem::PerDataSpace&; Args = {const model::BufferLevel::Stats&}; Extra = {pybind11::is_method}]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:99:9: required from ‘pybind11::cpp_function::cpp_function(Func&&, const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Extra = {pybind11::is_method}; = void]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:1460:22: required from ‘pybind11::class_& pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]’ /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:159:81: required from here /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:44:10: error: passing ‘const problem::PerDataSpace’ as ‘this’ argument discards qualifiers [-fpermissive] 44 | list l(src.size()); | ^ In file included from /home/zhong/code/simulators/timeloop-python/../timeloop/include/workload/util/per-data-space.hpp:33, from /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:7, from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/../timeloop/include/util/dynamic-array.hpp:88:10: note: in call to ‘size_t DynamicArray::size() [with T = unsigned int; size_t = long unsigned int]’ 88 | size_t size() { return size_; } | ^~~~ In file included from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h: In instantiation of ‘static pybind11::handle pybind11::detail::type_caster >::cast(T&&, pybind11::return_value_policy, pybind11::handle) [with T = const problem::PerDataSpace, long unsigned int> >&; Type = std::map, long unsigned int>]’: /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:231:43: required from ‘void pybind11::cpp_function::initialize(Func&&, Return (*)(Args ...), const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace, long unsigned int> >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Return = const problem::PerDataSpace, long unsigned int> >&; Args = {const model::BufferLevel::Stats&}; Extra = {pybind11::is_method}]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:99:9: required from ‘pybind11::cpp_function::cpp_function(Func&&, const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace, long unsigned int> >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Extra = {pybind11::is_method}; = void]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:1460:22: required from ‘pybind11::class_& pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace, long unsigned int> >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]’ /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:164:107: required from here /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:44:10: error: passing ‘const problem::PerDataSpace, long unsigned int> >’ as ‘this’ argument discards qualifiers [-fpermissive] 44 | list l(src.size()); | ^ In file included from /home/zhong/code/simulators/timeloop-python/../timeloop/include/workload/util/per-data-space.hpp:33, from /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:7, from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/../timeloop/include/util/dynamic-array.hpp:88:10: note: in call to ‘size_t DynamicArray::size() [with T = std::map, long unsigned int>; size_t = long unsigned int]’ 88 | size_t size() { return size_; } | ^~~~ In file included from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h: In instantiation of ‘static pybind11::handle pybind11::detail::type_caster >::cast(T&&, pybind11::return_value_policy, pybind11::handle) [with T = const problem::PerDataSpace, std::vector > > >&; Type = std::map, std::vector > >]’: /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:231:43: required from ‘void pybind11::cpp_function::initialize(Func&&, Return (*)(Args ...), const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace, std::vector > > >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Return = const problem::PerDataSpace, std::vector > > >&; Args = {const model::BufferLevel::Stats&}; Extra = {pybind11::is_method}]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:99:9: required from ‘pybind11::cpp_function::cpp_function(Func&&, const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace, std::vector > > >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Extra = {pybind11::is_method}; = void]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:1460:22: required from ‘pybind11::class_& pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace, std::vector > > >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]’ /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:165:121: required from here /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:44:10: error: passing ‘const problem::PerDataSpace, std::vector > > >’ as ‘this’ argument discards qualifiers [-fpermissive] 44 | list l(src.size()); | ^ In file included from /home/zhong/code/simulators/timeloop-python/../timeloop/include/workload/util/per-data-space.hpp:33, from /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:7, from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/../timeloop/include/util/dynamic-array.hpp:88:10: note: in call to ‘size_t DynamicArray::size() [with T = std::map, std::vector > >; size_t = long unsigned int]’ 88 | size_t size() { return size_; } | ^~~~ In file included from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h: In instantiation of ‘static pybind11::handle pybind11::detail::type_caster >::cast(T&&, pybind11::return_value_policy, pybind11::handle) [with T = const problem::PerDataSpace, double> >&; Type = std::map, double>]’: /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:231:43: required from ‘void pybind11::cpp_function::initialize(Func&&, Return (*)(Args ...), const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace, double> >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Return = const problem::PerDataSpace, double> >&; Args = {const model::BufferLevel::Stats&}; Extra = {pybind11::is_method}]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:99:9: required from ‘pybind11::cpp_function::cpp_function(Func&&, const Extra& ...) [with Func = pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace, double> >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]::; Extra = {pybind11::is_method}; = void]’ /home/zhong/code/simulators/timeloop-python/lib/pybind11/include/pybind11/pybind11.h:1460:22: required from ‘pybind11::class_& pybind11::class_::def_readonly(const char*, const D C::*, const Extra& ...) [with C = model::BufferLevel::Stats; D = problem::PerDataSpace, double> >; Extra = {}; type_ = model::BufferLevel::Stats; options = {}]’ /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:166:107: required from here /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:44:10: error: passing ‘const problem::PerDataSpace, double> >’ as ‘this’ argument discards qualifiers [-fpermissive] 44 | list l(src.size()); | ^ In file included from /home/zhong/code/simulators/timeloop-python/../timeloop/include/workload/util/per-data-space.hpp:33, from /home/zhong/code/simulators/timeloop-python/include/pytimeloop/bindings/type_casters.h:7, from /home/zhong/code/simulators/timeloop-python/bindings/buffer.cpp:3: /home/zhong/code/simulators/timeloop-python/../timeloop/include/util/dynamic-array.hpp:88:10: note: in call to ‘size_t DynamicArray::size() [with T = std::map, double>; size_t = long unsigned int]’ 88 | size_t size() { return size_; } | ^~~~ make[2]: *** [CMakeFiles/bindings.dir/build.make:202: CMakeFiles/bindings.dir/bindings/buffer.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:156: CMakeFiles/bindings.dir/all] Error 2 make: *** [Makefile:91: all] Error 2 Traceback (most recent call last): File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 156, in run self._create_wheel_file(bdist_wheel) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 345, in _create_wheel_file files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 268, in _run_build_commands self._run_build_subcommands() File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 295, in _run_build_subcommands self.run_command(name) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command self.distribution.run_command(command) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1001, in run_command super().run_command(command) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 88, in run _build_ext.run(self) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run self.build_extensions() File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions self._build_extensions_serial() File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial self.build_extension(ext) File "", line 91, in build_extension File "/home/zhong/miniforge3/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '--build', '.']' returned non-zero exit status 2. /tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py:988: _DebuggingTips: Problem in editable installation. !! ******************************************************************************** An error happened while installing `pytimeloop` in editable mode. The following steps are recommended to help debug this problem: - Try to install the project normally, without using the editable mode. Does the error still persist? (If it does, try fixing the problem before attempting the editable mode). - If you are using binary extensions, make sure you have all OS-level dependencies installed (e.g. compilers, toolchains, binary libraries, ...). - Try the latest version of setuptools (maybe the error was already fixed). - If you (or your project dependencies) are using any setuptools extension or customization, make sure they support the editable mode. After following the steps above, if the problem still persists and you think this is related to how setuptools handles editable installations, please submit a reproducible example (see https://stackoverflow.com/help/minimal-reproducible-example) to: https://github.com/pypa/setuptools/issues See https://setuptools.pypa.io/en/latest/userguide/development_mode.html for details. ******************************************************************************** !! cmd_obj.run() Traceback (most recent call last): File "/home/zhong/miniforge3/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/home/zhong/miniforge3/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/home/zhong/miniforge3/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 273, in build_editable return hook(wheel_directory, config_settings, metadata_directory) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 463, in build_editable return self._build_with_temp_dir( File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 419, in _build_with_temp_dir self.run_setup() File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup exec(code, locals()) File "", line 97, in File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup return distutils.core.setup(**attrs) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1001, in run_command super().run_command(command) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 156, in run self._create_wheel_file(bdist_wheel) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 345, in _create_wheel_file files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 268, in _run_build_commands self._run_build_subcommands() File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 295, in _run_build_subcommands self.run_command(name) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command self.distribution.run_command(command) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1001, in run_command super().run_command(command) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 88, in run _build_ext.run(self) File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run self.build_extensions() File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions self._build_extensions_serial() File "/tmp/pip-build-env-960krjp9/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial self.build_extension(ext) File "", line 91, in build_extension File "/home/zhong/miniforge3/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '--build', '.']' returned non-zero exit status 2. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building editable for pytimeloop Failed to build pytimeloop ERROR: Could not build wheels for pytimeloop, which is required to install pyproject.toml-based projects