Bug 2216730 - gsl: Test suit fails in ELN with -march=x86-64-v3
Summary: gsl: Test suit fails in ELN with -march=x86-64-v3
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: gsl
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Susi Lehtola
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2218349 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-22 11:31 UTC by Florian Weimer
Modified: 2023-08-16 08:11 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources gsl pull-request 1 0 None None None 2023-06-28 20:04:44 UTC
GNU Savannah 60335 0 None None None 2023-06-22 11:33:13 UTC
Red Hat Issue Tracker FC-868 0 None None None 2023-06-22 11:32:58 UTC

Internal Links: 2218349

Description Florian Weimer 2023-06-22 11:31:36 UTC
gsl-2.7.1-4 fails to build due to a test suite failure:

========================================
   gsl 2.7.1: spmatrix/test-suite.log
========================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: test
==========
FAIL: gsl_spmatrix_complex_float_scale_columns[53,107](COO) real (6.17895793914794922 observed vs 6.17895841598510742 expected) [21704]
FAIL: gsl_spmatrix_complex_float_scale_columns[53,107](COO) imag (144.412811279296875 observed vs 144.412826538085938 expected) [21709]
FAIL: gsl_spmatrix_complex_float_scale_columns[53,107](COO) real (-26.8551254272460938 observed vs -26.8551292419433594 expected) [21710]
FAIL: gsl_spmatrix_complex_float_scale_columns[53,107](COO) imag (331.7882080078125 observed vs 331.788177490234375 expected) [21713]
FAIL: gsl_spmatrix_complex_float_scale_columns[53,107](COO) real (233.1878662109375 observed vs 233.187850952148438 expected) [21714]
FAIL: gsl_spmatrix_complex_float_scale_columns[53,107](COO) real (-64.1133270263671875 observed vs -64.1133346557617188 expected) [21716]
FAIL: gsl_spmatrix_complex_float_scale_columns[53,107](COO) real (7.33260345458984375 observed vs 7.33260154724121094 expected) [21720]
FAIL: gsl_spmatrix_complex_float_scale_columns[53,107](COO) imag (172.47174072265625 observed vs 172.471725463867188 expected) [21721]

And so on.

There is an upstream bug for this already, but it does not show any activity: <https://savannah.gnu.org/bugs/?60335>

I'm not sure if the discrepancy is harmless.

Reproducible: Always

Comment 1 Florian Weimer 2023-06-22 13:40:06 UTC
This is actually not a new issue.  The spec file already has:

# disable FMA
%ifarch aarch64 ppc64 ppc64le s390 s390x
export CFLAGS="%{optflags} -ffp-contract=off"
%endif

GCC's -ffp-contract=fast default seems increasingly suspect to me.

Comment 2 Florian Weimer 2023-06-22 14:05:14 UTC
On the other hand, injecting -ffp-contract=off into the build (by removing those conditionals) does not fix the issue on x86-64. Sad.

Comment 3 Yaakov Selkowitz 2023-06-28 19:44:57 UTC
*** Bug 2218349 has been marked as a duplicate of this bug. ***

Comment 4 Yaakov Selkowitz 2023-06-28 19:58:33 UTC
(In reply to Florian Weimer from comment #2)
> On the other hand, injecting -ffp-contract=off into the build (by removing
> those conditionals) does not fix the issue on x86-64. Sad.

Looks like it does in fact:

ELN scratch build succeeded: https://koji.fedoraproject.org/koji/taskinfo?taskID=102715329
F39 scratch build shows no regressions: https://koji.fedoraproject.org/koji/taskinfo?taskID=102715331

Comment 5 Fedora Release Engineering 2023-08-16 08:11:17 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.


Note You need to log in before you can comment on or make changes to this bug.