|
Boost : |
Subject: Re: [boost] [test] Compilation errors on MinGW 4.8.1
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-06-12 16:31:43
On Thu, Jun 12, 2014 at 11:08 PM, Andrey Semashev
<andrey.semashev_at_[hidden]> wrote:
> On Wed, Jun 11, 2014 at 11:24 AM, Andrey Semashev
> <andrey.semashev_at_[hidden]> wrote:
>> On Wednesday 11 June 2014 08:12:58 Jürgen Hunold wrote:
>>> Hi Adam,
>>>
>>> Am Dienstag, 10. Juni 2014, 22:59:56 schrieb Adam Wulkiewicz:
>>> > Hi,
>>> >
>>> > When I try to compile Boost.Test (develop) tests or any other tests
>>>
>>> > using execution_monitor on MinGW-GCC 4.8.1 I get the following errors:
>>
>> There is legacy MinGW (the one that generates 32-bit binaries) and MinGW-w64.
>> The problem is with the former one, I've seen it too. I think inclusion of
>> fenv.h gets messed up somehow, I didn't dig much further. It's possible that
>> it's a bug in MinGW.
>
> Yes, this looks like a bug in MinGW. Including <fenv.h> leads to
> inclusion of "C:\MinGW\lib\gcc\mingw32\4.8.1\include\c++\fenv.h" which
> has this code:
>
> #include <bits/c++config.h>
> #if _GLIBCXX_HAVE_FENV_H
> # include_next <fenv.h>
> #endif
>
> and <bits/c++config.h> doesn't define _GLIBCXX_HAVE_FENV_H macro (it's
> commented). I defined the macro in my local c++config.h and it solved
> the problem. I wonder if we should try to work around it in
> boost/detail/fenv.hpp.
I've added a workaround for this. Let me know if it causes trouble.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk