libgpg-error 1.61: t-printf failure on powerpc64-linux
NIIBE Yutaka
gniibe at fsij.org
Wed Jul 15 10:16:30 CEST 2026
Hello,
Thank you for your report.
"C. Neidahl wrote:
> I am trying to build libgpg-errpr version 1.61 for big-endian
> powerpc64-linux with GCC 15.2.0 and run the test suite.
>
> The t-printf test is failing:
>
> t-printf: format "%.100Lf" with LDBL_MAX unexpectly did not fail
> FAIL: t-printf
It's also in little-endian, I suppose. How about like this?
==========================
diff --git a/tests/t-printf.c b/tests/t-printf.c
index b0a3f3f..31d52a5 100644
--- a/tests/t-printf.c
+++ b/tests/t-printf.c
@@ -469,12 +469,15 @@ check_large_float (void)
show ("format \"%%.100Lf\" with DBL_MAX: ->%s<-\n", buf);
gpgrt_free (buf);
-# ifdef HAVE_LONG_DOUBLE_WIDER
+# ifdef __powerpc64__
+ if (verbose)
+ show ("IBM double-double - skipping LDBL_MAX test\n");
+# elif defined(HAVE_LONG_DOUBLE_WIDER)
ld = LDBL_MAX;
buf = gpgrt_bsprintf ("%.100Lf\n", ld);
if (buf)
{
- fail ("format \"%%.100Lf\" with LDBL_MAX unexpectly did not fail\n");
+ fail ("format \"%%.100Lf\" with LDBL_MAX unexpectedly did not fail\n");
}
else if (verbose)
show ("format \"%%.100Lf\" with LDBL_MAX failed as expected\n");
==========================
"IBM double-double" reminds me Matcha Azuki-Azuki in a shop of our
neighborhood. It's Japanese shaved ice dessert (double amount of sweet
bean paste) in summer [0].
[0] https://en.wikipedia.org/wiki/Kakig%C5%8Dri
--
More information about the Gnupg-users
mailing list