beast icon indicating copy to clipboard operation
beast copied to clipboard

g++-4.8 support

Open alandefreitas opened this issue 3 years ago • 3 comments

The posix (gcc-4.8, 11, ubuntu-20.04, ubuntu:16.04, g++-4.8, true) workflow has been failing with:

In file included from ./boost/asio/spawn.hpp:904:0,
                 from libs/beast/test/extras/include/boost/beast/test/yield_to.hpp:15,
                 from libs/beast/test/beast/websocket/test.hpp:20,
                 from libs/beast/test/beast/websocket/accept.cpp:16:
./boost/asio/impl/spawn.hpp: In member function 'virtual void boost::asio::detail::spawned_fiber_thread::resume()':
./boost/asio/impl/spawn.hpp:204:64: error: passing 'boost::asio::detail::spawned_fiber_thread::fiber_type {aka boost::context::fiber}' as 'this' argument of 'boost::context::fiber boost::context::fiber::resume() &&' discards qualifiers [-fpermissive]
     callee_ = BOOST_ASIO_MOVE_CAST(fiber_type)(callee_).resume();

I don't know when this error was introduced. It fails in some recent runs that were only touching the documentation.

I think I saw in some other library that GCC 4.8 doesn't work well with && this qualifiers, which might be the problem.

alandefreitas avatar Jul 05 '22 23:07 alandefreitas

did it ever work?

vinniefalco avatar Jul 06 '22 00:07 vinniefalco

Yes.

This works: https://github.com/boostorg/beast/runs/7101735166?check_suite_focus=true

And this doesn't: https://github.com/boostorg/beast/actions/runs/2602853529

The only difference between the two is the commit "Update release notes"

I might be missing something.

alandefreitas avatar Jul 06 '22 01:07 alandefreitas

This looks like an asio issue - is it still around with 1.80?

klemens-morgenstern avatar Aug 30 '22 09:08 klemens-morgenstern

The CI passes now with a ubuntu update on develop - is this still an issue?

klemens-morgenstern avatar Oct 02 '22 13:10 klemens-morgenstern