You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ 7%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_virtual_functions.cpp.o
cd /appli_RD/LACOSTE/DNG/diva-nextgen/build/pybind11-prefix/src/pybind11-build/tests && /data_local/sw/pgi/20.04/linuxpower/20.4/bin/pgc++ -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/appli_RD/LACOSTE/DNG/diva-nextgen/build/pybind11-prefix/src/pybind11/include -I/data_local/sw/anaconda3/include/python3.7m -I/appli_RD/LACOSTE/OMEGA/cmakesuperbuild/build-gnu/eigen/src/eigen_project -O2 -s -DNDEBUG -fPIC -std=c++14 -Wc,--pending_instantiations=0 -o CMakeFiles/pybind11_tests.dir/test_virtual_functions.cpp.o -c /appli_RD/LACOSTE/DNG/diva-nextgen/build/pybind11-prefix/src/pybind11/tests/test_virtual_functions.cpp
At end of source: warning: routine is both "inline" and "noinline"
"/appli_RD/LACOSTE/DNG/diva-nextgen/build/pybind11-prefix/src/pybind11/include/
pybind11/cast.h", line 1707: error: function
"NonCopyable::NonCopyable(const NonCopyable &)" (declared at line 104
of
"/appli_RD/LACOSTE/DNG/diva-nextgen/build/pybind11-prefix/src/pybind1
1/tests/test_virtual_functions.cpp") cannot be referenced -- it is a
deleted function
return cast_op<T>(load_type<T>(handle));
^
detected during:
instantiation of "T pybind11::cast<T,<unnamed>>(const
pybind11::handle &) [with T=NonCopyable, <unnamed>=0]" at
line 1759
instantiation of
"pybind11::detail::enable_if_t<pybind11::detail::negation
<pybind11::detail::any_of<pybind11::detail::move_always<T
, void>, pybind11::detail::move_if_unreferenced<T,
void>>>::value, T> pybind11::cast<T>(pybind11::object &&)
[with T=NonCopyable]" at line 1789
instantiation of "pybind11::detail::enable_if_t<<expression>, T>
pybind11::detail::cast_safe<T>(pybind11::object &&) [with
T=NonCopyable]" at line 142 of
"/appli_RD/LACOSTE/DNG/diva-nextgen/build/pybind11-prefix
/src/pybind11/tests/test_virtual_functions.cpp"
## Reproducible example code
Use PGI compiler to build the code.
The text was updated successfully, but these errors were encountered:
The PGI compiler is not supported (but Pybind11 works on a wide range of C++ compilers, so there is no fundamental reason why it shouldn't work there as well.). Sounds like you should file a bug request with them.
From what we are discovering: #include <exception> may be needed, and PGI really doesn't like the old GCC libstdc++ (such as 4.8). On CentOS 8 it compiles without a problem.
Issue description
When building the tests with PGI Compilers some errors are raised.
To be able to build them I needed to allow more recursion :
I also needed to comment out some test because they raised more complex errors: test_smart_ptr.cpp and test_virtual_functions.cpp
I am not enough C++ expert to fix them:
and
The text was updated successfully, but these errors were encountered: