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

Compile error with Intel C++ 13.1 #1115

Closed
dmarce1 opened this issue Apr 16, 2014 · 4 comments
Closed

Compile error with Intel C++ 13.1 #1115

dmarce1 opened this issue Apr 16, 2014 · 4 comments

Comments

@dmarce1
Copy link
Member

dmarce1 commented Apr 16, 2014

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

@brycelelbach
Copy link
Member

Confirmed; hermione buildbot should be setup to build both intel 13 and intel 14.

@hkaiser
Copy link
Member

hkaiser commented Apr 16, 2014

I agree, it should be. Any takers?

@hkaiser hkaiser added this to the 0.9.9 milestone Apr 16, 2014
@eschnett
Copy link
Contributor

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.

@sithhell
Copy link
Member

sithhell commented Jun 3, 2014

I think that has been fixed now. Please reopen if the problem still persists.

@sithhell sithhell closed this as completed Jun 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants