From 1ec57428983289206331dceb015aafedcfe2107a Mon Sep 17 00:00:00 2001 From: Brad Bell Date: Tue, 1 Feb 2022 03:25:21 -0700 Subject: [PATCH] Print more informtion to help debug to_string failure on ppc64le arch. --- cppad.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cppad.spec b/cppad.spec index f4059f2..5fadadd 100644 --- a/cppad.spec +++ b/cppad.spec @@ -139,12 +139,16 @@ cat << EOF > to_string.patch 71a93,94 > if( std::numeric_limits::min() != 0 ) > std::cout << "unsigned_integer: min != 0\n"; -83a107,108 +83a107,110 > if( ! ok ) +> { std::cout << "check/pi - 1.0 = " << check/pi - 1.0 << "\n"; > print_error("floating", "pi", pi, check, eps); -100a126,127 +> } +100a128,131 > if( ! ok ) +> { std::cout << "check/pi - 1.0 = " << check/pi - Base(1.0) << "\n"; > print_error("ad_floating", "pi", pi, check, eps); +> } EOF patch CppAD-%{version}/example/utility/to_string.cpp to_string.patch # ----------------------------------------------------------------------------- @@ -235,6 +239,9 @@ make %{?_smp_mflags} check # This enables one to check that the necessary files are installed. # ---------------------------------------------------------------------------- %changelog +* Tue Feb 01 2022 Brad Bell - 20220000.1-1 +- Modify to_string.cpp patch to print out more information on failure. + * Mon Jan 31 2022 Brad Bell - 20220000.1-1 - Fix following long standing typos in cmake command: - 1. cppad_test_vector -> cppad_testvector