Re: [Boost-bugs] [Boost C++ Libraries] #11756: Unable to compile boost test library on openwrt - mips

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11756: Unable to compile boost test library on openwrt - mips
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-13 22:20:58


#11756: Unable to compile boost test library on openwrt - mips
----------------------------------+-------------------------
  Reporter: bartosz.krasinski@… | Owner: johnmaddock
      Type: Support Requests | Status: new
 Milestone: To Be Determined | Component: config
   Version: Boost 1.59.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------+-------------------------

Comment (by joerg.krause@…):

 Boost detects a fenv.h system header and assumes it defines FE_DIVBYZERO
 and friends. The involved toolchains does have this system header, but
 they do not define these macros, e.g. the mipsel toolchain from Buildroot
 (fenv.h includes tr1/cfenv):

 {{{#!c
 /** @file tr1/cfenv
  * This is a TR1 C++ Library header.
  */

 #ifndef _GLIBCXX_TR1_CFENV
 #define _GLIBCXX_TR1_CFENV 1

 #pragma GCC system_header

 #include <bits/c++config.h>

 #if _GLIBCXX_HAVE_FENV_H
 # include <fenv.h>
 #endif

 #ifdef _GLIBCXX_USE_C99_FENV_TR1

 #undef feclearexcept
 #undef fegetexceptflag
 #undef feraiseexcept
 #undef fesetexceptflag
 #undef fetestexcept
 #undef fegetround
 #undef fesetround
 #undef fegetenv
 #undef feholdexcept
 #undef fesetenv
 #undef feupdateenv

 namespace std _GLIBCXX_VISIBILITY(default)
 {
 namespace tr1
 {
   // types
   using ::fenv_t;
   using ::fexcept_t;

   // functions
   using ::feclearexcept;
   using ::fegetexceptflag;
   using ::feraiseexcept;
   using ::fesetexceptflag;
   using ::fetestexcept;

   using ::fegetround;
   using ::fesetround;

   using ::fegetenv;
   using ::feholdexcept;
   using ::fesetenv;
   using ::feupdateenv;
 }
 }

 #endif // _GLIBCXX_USE_C99_FENV_TR1

 #endif // _GLIBCXX_TR1_CFENV
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11756#comment:9>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC