Skip to content

cmake --build build --config Release -j Error #1613

@dkfz-med-phys-rad

Description

@dkfz-med-phys-rad

On Arch Linux, the following Error (multiple instances) is shown:
cmake --build build --config Release -j
...
[100%] Built target instant-ngp
[100%] Building CUDA object CMakeFiles/pyngp.dir/src/python_api.cu.o
~/git/instant-ngp/dependencies/pybind11/include/pybind11/pybind11.h: In instantiation of ‘pybind11::enum_::enum_(const pybind11::handle&, const char*, const Extra& ...) [with Extra = {}; Type = ngp::ETrainMode]’:
~/git/instant-ngp/src/python_api.cu:311:45: required from here
311 | py::enum_(m, "TrainMode")
| ^
~/git/instant-ngp/dependencies/pybind11/include/pybind11/pybind11.h:2884:9: error: ambiguous template instantiation for ‘struct pybind11::detail::initimpl::factory<pybind11::enum_ngp::ETrainMode::enum_<>(const pybind11::handle&, const char*)::<lambda(pybind11::enum_ngp::ETrainMode::Scalar)>, pybind11::detail::void_type ()(), ngp::ETrainMode(int), pybind11::detail::void_type()>’
2884 | def(init([](Scalar i) { return static_cast(i); }), arg("value"));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/git/instant-ngp/dependencies/pybind11/include/pybind11/detail/init.h:374:8: note: candidates are: ‘template<class Func, class Return, class ... Args> struct pybind11::detail::initimpl::factory<Func, pybind11::detail::void_type (
)(), Return(Args ...), _remove_pointer(remove_reference(pybind11::detail::void_type (*)()))> [with Func = pybind11::enumngp::ETrainMode::enum<>(const pybind11::handle&, const char*)::<lambda(pybind11::enumngp::ETrainMode::Scalar)>; Return = ngp::ETrainMode; Args = {int}]’
374 | struct factory<Func, void_type (*)(), Return(Args...)> {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions