Bug 2576613 - [backport] RISC-V: inline ceil/floor/trunc raises FE_INVALID for inf & large values
Summary: [backport] RISC-V: inline ceil/floor/trunc raises FE_INVALID for inf & large ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 45
Hardware: riscv64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL: https://gcc.gnu.org/bugzilla/show_bug...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-19 13:44 UTC by Marcin Juszkiewicz
Modified: 2026-11-19 13:44 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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