Opened 13 years ago

Closed 12 years ago

#3825 closed Bugs (fixed)

Problems running Boost Math tests on AIX + GCC

Reported by: Sohail Somani Owned by: John Maddock
Milestone: Boost 1.42.0 Component: math
Version: Boost 1.39.0 Severity: Showstopper
Keywords: Cc:

Description

I've been running the Boost Math tests on AIX and nearly all of them fail with a floating point error.

For example, from test_bessel_i, I get:

boost/math/tools/test.hpp(213): error in "test_main_caller( argc, argv )": Unexpected exception. CAUTION: Gross error found at entry 2. Found: 0 Expected 2.27959 Error: 1.93926e+38 0

boost/math/tools/test.hpp(242): error in "test_main_caller( argc, argv )": Gross error 0, 4, 11.301922

....

Are there any special instructions for using the library on AIX? I couldn't see any in the Jamfile. The version of GCC here is 4.3.4

Change History (3)

comment:1 by John Maddock, 13 years ago

Status: newassigned

Unfortunately I don't have access to an AIX machine, so I can't really test this :-(

I believe that pretty much everything works OK with IBM's compiler though.

Can you let me have the full output of the regression test run - the output above seems mixed up somehow.

The usual solution for gcc problems is to define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS in boost/math/tools/config.hpp which may be worth a try in this case, it would be nice to get to the cause of the problem though.

You can email me direct at john@… if it's easier than using the interface here as well,

Cheers, John.

comment:2 by Sohail Somani, 13 years ago

Setting the define does make the tests start passing. I'll see if we need long double support or not to see if I should test further. Thanks a lot!

comment:3 by John Maddock, 12 years ago

Resolution: fixed
Status: assignedclosed

(In [61806]) Disable long double support when the C++ runtime does not support it either. Fixes #3825.

Note: See TracTickets for help on using tickets.