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
I am getting the following compile error using icpc 13.1 and boost 1.53.0:
[ 2%] Built target hpx_serialization
[ 5%] Building CXX object src/CMakeFiles/hpx.dir/util/coroutine/detail/tss.cpp.o
/usr/include/c++/4.6/bits/stl_pair.h(93): error: class "hpx::util::coroutines::detail::tss_data_node" has no copy constructor to copy a const object
_T2 second; /// @c second is a copy of the second object
^
detected during instantiation of class "std::pair<_T1, _T2> [with _T1=const void *const, _T2=hpx::util::coroutines::detail::tss_data_node]" at line 43 of "/home/dmarce1/packages/hpx/src/util/coroutine/detail/tss.cpp"
/usr/include/c++/4.6/bits/stl_pair.h(93): error: class "hpx::util::coroutines::detail::tss_data_node" has no copy constructor to copy a const object
_T2 second; /// @c second is a copy of the second object
^
detected during instantiation of class "std::pair<_T1, _T2> [with _T1=const void *, _T2=hpx::util::coroutines::detail::tss_data_node]" at line 82 of "/home/dmarce1/packages/hpx/src/util/coroutine/detail/tss.cpp"
Note that the Intel compiler uses gcc's libstdc++. Thus its level of C++11 support depends on the gcc version that is installed, and/or its command line flags that choose which gcc version to use if several are installed.
Recently, we looked at this for Cactus. We decided to install the Intel compiler on top of gcc 4.6.4. This is an outdated version of gcc, but is still commonly found on HPC systems, and provides (in its libstdc++) "enough" C++11 support to be useful.
I am getting the following compile error using icpc 13.1 and boost 1.53.0:
[ 2%] Built target hpx_serialization
[ 5%] Building CXX object src/CMakeFiles/hpx.dir/util/coroutine/detail/tss.cpp.o
/usr/include/c++/4.6/bits/stl_pair.h(93): error: class "hpx::util::coroutines::detail::tss_data_node" has no copy constructor to copy a const object
_T2 second; /// @c second is a copy of the second object
^
detected during instantiation of class "std::pair<_T1, _T2> [with _T1=const void *const, _T2=hpx::util::coroutines::detail::tss_data_node]" at line 43 of "/home/dmarce1/packages/hpx/src/util/coroutine/detail/tss.cpp"
/usr/include/c++/4.6/bits/stl_pair.h(93): error: class "hpx::util::coroutines::detail::tss_data_node" has no copy constructor to copy a const object
_T2 second; /// @c second is a copy of the second object
^
detected during instantiation of class "std::pair<_T1, _T2> [with _T1=const void *, _T2=hpx::util::coroutines::detail::tss_data_node]" at line 82 of "/home/dmarce1/packages/hpx/src/util/coroutine/detail/tss.cpp"
compilation aborted for /home/dmarce1/packages/hpx/src/util/coroutine/detail/tss.cpp (code 2)
make[2]: *** [src/CMakeFiles/hpx.dir/util/coroutine/detail/tss.cpp.o] Error 2
make[1]: *** [src/CMakeFiles/hpx.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: