Opened 12 years ago

Closed 12 years ago

#5356 closed Bugs (fixed)

math/tools/config.hpp adjustment for Intel C++

Reported by: Ralf W. Grosse-Kunstleve Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

With the current boost svn trunk rev. 70385 our Intel C++ 9.1, 10.1, 11.0 builds are failing:

boost/boost/detail/fenv.hpp(11): catastrophic error: #error directive: This platform does not have a floating point environment

#error This platform does not have a floating point environment

compilation aborted for minimal.cpp (code 4)

This fixes the problem:

Index: boost/math/tools/config.hpp =================================================================== --- boost/math/tools/config.hpp (revision 70385) +++ boost/math/tools/config.hpp (working copy) @@ -255,7 +255,7 @@

} namespace tools }} namespace boost namespace math

-#if (defined(linux) && !defined(UCLIBC)) +#if (defined(linux) && !defined(UCLIBC) && !defined(INTEL_COMPILER)) QNX)
defined(QNX) defined(IBMCPP)
defined(
defined(IBMCPP)

#include <boost/detail/fenv.hpp>

I didn't check this is because I'm not sure if this is the correct fix.

Change History (1)

comment:1 by John Maddock, 12 years ago

Resolution: fixed
Status: newclosed

(In [70392]) Don't include fenv.h when BOOST_NO_FENV_H is set. Fixes #5356.

Note: See TracTickets for help on using tickets.