Pineapple-Linux icon indicating copy to clipboard operation
Pineapple-Linux copied to clipboard

Fail to build 3077 on Ubuntu 22.10: ‘exchange’ is not a member of ‘std’

Open Sciroccogti opened this issue 3 years ago • 0 comments

/usr/include/boost/asio/awaitable.hpp: In constructor ‘boost::asio::awaitable<T, Executor>::awaitable(boost::asio::awaitable<T, Executor>&&)’:
/usr/include/boost/asio/awaitable.hpp:68:19: error: ‘exchange’ is not a member of ‘std’; did you mean ‘std::__atomic_impl::exchange’?
   68 |     : frame_(std::exchange(other.frame_, nullptr))
      |                   ^~~~~~~~
In file included from /usr/include/c++/12/atomic:41,
                 from /usr/include/c++/12/stop_token:34,
                 from /usr/include/c++/12/thread:40,
                 from /tmp/pineapple/pineappleEA-pineapple-src-739867c/src/core/debugger/debugger.cpp:6:
/usr/include/c++/12/bits/atomic_base.h:976:7: note: ‘std::__atomic_impl::exchange’ declared here
  976 |       exchange(_Tp* __ptr, _Val<_Tp> __desired, memory_order __m) noexcept
      |       ^~~~~~~~
[617/1463] Building CXX object externa...tend/A64/translate/a64_translate.cpp.o
ninja: build stopped: subcommand failed.

Sciroccogti avatar Nov 03 '22 02:11 Sciroccogti