bug#78985: sort-float failure on ppc64, LDBL_MIN fraction part too long for test command to parse
"C. Neidahl" via GNU coreutils Bug Reports <[email protected]>
| Newsgroups | gmane.comp.gnu.core-utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
I have a set of patches that resulted from a gnulib thread [1], which affect the values of some compiler definitions for the IBM long double format on powerpc64. Applying these to the vendored copy of gnulib in the coreutils 9.7 release tarball is necessary to fix a failure in the gnulib test suite. These patches are resulting in a failure of the sort-float test from the coreutils test suite, with the following output: ./tests/sort/sort-float.sh: line 49: test: 225073858507201383090232717332: integer expression expected --- exp 2025-07-09 14:38:32.521404281 +0000 +++ out 2025-07-09 14:38:32.551404251 +0000 @@ -2,11 +2,11 @@ -1.7976931348623157e+308 -3.4028235e+38 -1.1754944e-38 --2.225073858507201383090232717332e-308 -2.2250738585072014e-308 +-2.225073858507201383090232717332e-308 0 -2.2250738585072014e-308 2.225073858507201383090232717332e-308 +2.2250738585072014e-308 1.1754944e-38 3.4028235e+38 1.7976931348623157e+308 ./tests/sort/ sort-float.sh: line 58: warning: setlocale: LC_ALL: cannot change locale (none): No such file or directory --- exp 2025-07-09 14:38:32.571404231 +0000 +++ out 2025-07-09 14:38:32.601404202 +0000 [same list of values as above] FAIL tests/sort/sort-float.sh (exit status: 1) The issue seems to be that one of the test calls in the dbl_minima_order function is failing due to the fractional part of LDBL_MIN on this platform being too long for the test command to parse as an integer, so the call fails and the function incorrectly determines that DBL_MIN is smaller. This test call would in theory also fail before the set of gnulib patches, but the exponent-testing call gives a result first, so it never got that far on this platform before. - Cosima [1] https://lists.gnu.org/archive/html/bug-gnulib/2025-07/msg00021.html
publickey - [email protected] - 0xC802C863.asc
(application/pgp-keys, 1.7 KB)
-----BEGIN PGP PUBLIC KEY BLOCK----- Comment: https://gopenpgp.org Version: GopenPGP 2.8.2 xsBNBF2zKv4BCADHGUqCGECid8Hp3oAUxnI1FbvvKlnBVnIoPIhHA0U2YAOSSWs/ /U2eDLlQbDi37IsBLb8PGUKRQ2b909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VPA4Gzl1ondp53yTXbDy2ys4OhhgMhju5PBZxm8AEQEAAcLAXwQY AQgACQUCXbMq/gIbDAAKCRBqDRi9Cvgo1LY9CACPjrMfRKVCm8tQLVtvH4X+nkjK iP+7sGPanxNGpzu5mUU0fjY4+5UZmFSSNxFPPTyj91UGxFQGshb/eqdqlQSbtXDA vnsugS3Hv3kQw2M3QBGadhAhRMdqVc74cgFO4+l3KCJ+zNVgsox0jhc3R0lhBhW8 tLizXpe9NB8cDMhLQcfGPYZ7oRVSq+YyEqE9aMwZkVkrROsvvuhgIrZPxBpQw4wZ FJYY/dWcZpjgfmg8T2qAQ/T2+udtWcstW83pj7O4aYD6wfgvGAkAu91hP5Z6Jc0b yBhZTQoghU0iMTe8BhERquodXqNOZYM8fWjpKQV8IsRCJszhI1BaLEXNBg+8 =pwFR -----END PGP PUBLIC KEY BLOCK-----
signature.asc
(application/pgp-signature, 583 B)
-----BEGIN PGP SIGNATURE----- Version: ProtonMail wsCpBAEBCABdBYJobri8CZBqDRi9Cvgo1DUUAAAAAAAcABBzYWx0QG5vdGF0 aW9ucy5vcGVucGdwanMub3JnKCKHvuoQ21Uhk+Zwc627gxYhBMgCyGNmp++W GtkCJGoNGL0K+CjUAABDkggAjbsWJrYDip1UZ1drIiskbd+beG7/LefRju7h MZRe15HtZuI+xuWA+S5yedHv1ogw+neHKsMHVxgvT/ULTUWTk79LgUlspXLg SN64UdLiYEYl8A6pXjENHRPjLocYwrpof1T6TKY13mc4G8ayZyKia648MRSZ iEF44STnSN/NnygFdRL/bGeWCqzS8R0c14ko2GjQTs4kkKHnfANvaCqfNOZI wSLK03JAqZhwVfaQzPsHZaqFi4d8rfr6dNNcG/+/LdWrn07MENthRRqK2esY D8H6keRnbnCp8UoSOTg9oV8lrk576iu01SaHB2Kf8FiOr3QsD0Buslmk1Hhy 0gUujA== =HaBD -----END PGP SIGNATURE-----