|
Boost : |
Subject: Re: [boost] [stacktrace] 1.65.0 RC1 fails to build for MSYS2/mingw-w64
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2017-08-07 22:19:45
2017-08-07 2:30 GMT+03:00 Stephan Lavavej via Boost <boost_at_[hidden]>:
> Hi,
>
> I just attempted to build Boost 1.65.0 RC1 with MSYS2/mingw-w64. (My build
> script for 1.64.0 is available at
> https://github.com/StephanTLavavej/mingw-distro/blob/6e5976af8c63de93bec761261e4ddcbed17b1649/boost.sh
> ; I just had to change the filenames for 1.65.0 RC1.)
>
> The stacktrace build failed with:
<...>
> It appears that frame_msvc.ipp is intended to work with both MSVC and
> MinGW, but it's not correctly recognizing mingw-w64 GCC 7.1.0's behavior.
> This compiler supports thread_local, although it doesn't support C++11's
> multithreading headers (without the pthreads wrapper, which I don't build).
Ok, I've found out the issue. It's related to MinGW issue with
thread_local https://github.com/boostorg/config/blob/21830e11ff5ee114c0c6d9fbf9f3b48b7b067e18/include/boost/config/compiler/gcc.hpp#L307-L310
Fixed it here: https://github.com/boostorg/stacktrace/commit/cd420b37ae7e84196cdb8202e489d5d276c55f0b
Do not forget to add --reconfigure while running you b2 with the patch
from above.
-- Best regards, Antony Polukhin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk