Opened 5 years ago

Last modified 5 years ago

#13352 new Bugs

1.66 i686-w64-mingw32-g++-win32

Reported by: Martin Kjær Jørgensen <mkj@…> Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.66.0 Severity: Showstopper
Keywords: mingw future impl Cc:

Description

i'm using boost 1.65.1 for a project in which the new beast framework v124 is used as an internal webserver. building using gcc on linux and gcc-mingw targeting win32 works in this setup.

today, i've tried upgrade to boost 1.66, skipping the need for the external beast v124 source. still, gcc+linux build works, but my gcc-mingw build fails with alot of errors about the use of futures in asio.

attached is a stripped output of the errors.

Attachments (1)

boost-error.txt (8.6 KB ) - added by Martin Kjær Jørgensen <mkj@…> 5 years ago.
compiler error output

Download all attachments as: .zip

Change History (4)

by Martin Kjær Jørgensen <mkj@…>, 5 years ago

Attachment: boost-error.txt added

compiler error output

comment:1 by Christopher Chadwick <cchadwick@…>, 5 years ago

I can concur the same observation when compiling with MinGW's g++7.2.0. Not ruling out operator error here, but I've been poking around for a couple of days not and haven't been able to resolve the issue.

comment:2 by john@…, 5 years ago

Me too, when cross-compiling 'dcpomatic'. Almost identical output to above. Lots of mentions of std::promise.

comment:3 by Christopher Chadwick <cchadwick@…>, 5 years ago

My apologies for a late post to those in search of a resolution. I was able to get a proper compile. After digging more into the config header for asio (I can't recall at the moment the exact file, but no modifications were necessary), I found that if I defined BOOST_ASIO_DISABLE_STD_FUTURE in the preprocessor, things compiled. The issue I think is the usual issue with mingw on Windows not having the std::thread/future/promise support as with MSVC or a Linux variety gcc/g++. I use the boost variety of these in most circumstances. I want to say (at least hope, although I'm not sure) that doing so will set asio to use the boost varieties of these as needed. I'll defer that to Mr. Kohlhoff.

Note: See TracTickets for help on using tickets.