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

Compilation error using boost 1.76 and gcc 11.2.1 #5666

Closed
diehlpk opened this issue Nov 20, 2021 · 1 comment · Fixed by #5667
Closed

Compilation error using boost 1.76 and gcc 11.2.1 #5666

diehlpk opened this issue Nov 20, 2021 · 1 comment · Fixed by #5667

Comments

@diehlpk
Copy link
Member

diehlpk commented Nov 20, 2021

Expected Behavior

HPX master should compile with boost 1.76 and The CXX compiler identification is GNU 11.2.1

Actual Behavior

 33%] Building CXX object libs/core/futures/CMakeFiles/hpx_futures.dir/src/future_data.cpp.o
In file included from /usr/include/boost/lockfree/queue.hpp:15,
                 from /hpx/libs/core/schedulers/include/hpx/schedulers/lockfree_queue_backends.hpp:17,
                 from /hpx/libs/core/schedulers/include/hpx/schedulers/local_priority_queue_scheduler.hpp:18,
                 from /hpx/libs/core/thread_pools/src/scheduled_thread_pool.cpp:8:
/usr/include/boost/lockfree/queue.hpp: In instantiation of 'class boost::lockfree::queue<hpx::threads::thread_id_ref, hpx::util::aligned_allocator<hpx::threads::thread_id_ref> >':
/hpx/libs/core/schedulers/include/hpx/schedulers/lockfree_queue_backends.hpp:92:24:   required from 'struct hpx::threads::policies::lockfree_fifo_backend<hpx::threads::thread_id_ref>'
/hpx/libs/core/schedulers/include/hpx/schedulers/thread_queue.hpp:1167:25:   required from 'class hpx::threads::policies::thread_queue<std::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo>'
/hpx/libs/core/schedulers/include/hpx/schedulers/local_priority_queue_scheduler.hpp:1379:27:   required from 'class hpx::threads::policies::local_priority_queue_scheduler<>'
/hpx/libs/core/thread_pools/src/scheduled_thread_pool.cpp:27:29:   required from here
/usr/include/boost/lockfree/queue.hpp:95:5: error: static assertion failed: (boost::has_trivial_destructor<T>::value)
   95 |     BOOST_STATIC_ASSERT((boost::has_trivial_destructor<T>::value));
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/boost/lockfree/queue.hpp:95:5: note: 'boost::integral_constant<bool, false>::value' evaluates to false
/usr/include/boost/lockfree/queue.hpp:99:5: error: static assertion failed: (boost::has_trivial_assign<T>::value)
   99 |     BOOST_STATIC_ASSERT((boost::has_trivial_assign<T>::value));
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/boost/lockfree/queue.hpp:99:5: note: 'boost::integral_constant<bool, false>::value' evaluates to false
make[2]: *** [libs/core/thread_pools/CMakeFiles/hpx_thread_pools.dir/build.make:76: libs/core/thread_pools/CMakeFiles/hpx_thread_pools.dir/src/scheduled_thread_pool.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:106560: libs/core/thread_pools/CMakeFiles/hpx_thread_pools.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Steps to Reproduce the Problem

... Please be as specific as possible while describing how to reproduce your problem.

  1. Compile HPX master using boost 17.6 and gcc 11.2.1

Specifications

  • HPX Version: Master
  • Platform (compiler, OS): Fedora 35
@diehlpk
Copy link
Member Author

diehlpk commented Nov 20, 2021

@hkaiser hkaiser changed the title Compilation error using boost 17.6 and gcc 11.2.1 Compilation error using boost 1.76 and gcc 11.2.1 Nov 20, 2021
@hkaiser hkaiser added this to the 1.8.0 milestone Nov 20, 2021
@bors bors bot closed this as completed in 6f44177 Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants