Bug 2576613

Summary: [backport] RISC-V: inline ceil/floor/trunc raises FE_INVALID for inf & large values
Product: [Fedora] Fedora Reporter: Marcin Juszkiewicz <mjuszkie>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 45CC: dmalcolm, fweimer, jakub, jlaw, josmyers, jwakely, mcermak, mpolacek, msebor, nickc, nixuser, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: riscv64   
OS: Linux   
URL: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127908
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marcin Juszkiewicz 2026-11-19 13:44:15 UTC
During build of python-photutils package for the riscv64 port of Fedora I got one test failed:

FAILED ../../utils/tests/test_round.py::test_round_inf - RuntimeWarning: invalid value encountered in floor

I started checking why it happens and found that it was already reported to GCC as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127908 and that fix was merged into GCC 14/15/16 branches already.

Can you backport this change so it will be available in F45+?

Reproducible: Always

Steps to Reproduce:
1. build 'python-photutils' package on riscv64
2. look how it fails in tests

Actual Results:
FAILED ../../utils/tests/test_round.py::test_round_inf - RuntimeWarning: invalid value encountered in floor

Expected Results:
package builds, passes tests

Additional Information:
The 'numpy' package will require rebuilding once gcc fix gets merged. But that's the other part which I can handle.