Launchpad has imported 10 comments from the remote bug at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121510.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://documentation.ubuntu.com/launchpad/user/reference/bugs/multi-project-bugs/about-multi-project-bugs/#bugs-in-external-trackers. ------------------------------------------------------------------------ On 2025-08-11T14:15:15+00:00 Heinrich Schuchardt wrote: I have built gcc 15.1 with --with- arch=rv64i_m_a_f_d_c_b_v_zic64b_zicbom_zicbop_zicboz_ziccamoa_ziccif_zicclsm_ziccrse_zicntr_zicond_zicsr_zihintntl_zihintpause_zihpm_zimop_zmmul_za64rs_zaamo_zalrsc_zawrs_zfa_zfhmin_zca_zcb_zcd_zcmop_zba_zbb_zbs_zkt_zvbb_zve32f_zve32x_zve64d_zve64f_zve64x_zvfhmin_zvkb_zvkt_zvl128b_zvl32b_zvl64b_supm When using the gcc to build coreutils I received an error during RTL pass: expand src/od.c: In function 'print_halffloat': src/od.c:511:18: internal compiler error: in emit_vec_extract, at config/riscv/riscv-v.cc:5651 511 | PRINT_FLOATTYPE (print_halffloat, float16, ftoastr, FLT_BUFSIZE_BOUND) | ^~~~~~~~~~~~~~~ src/od.c:462:1: note: in definition of macro 'PRINT_FIELDS' 462 | N (size_t fields, size_t blank, void const *block, \ | ^ src/od.c:511:1: note: in expansion of macro 'PRINT_FLOATTYPE' 511 | PRINT_FLOATTYPE (print_halffloat, float16, ftoastr, FLT_BUFSIZE_BOUND) | ^~~~~~~~~~~~~~~ This relates to an assert in emit_vec_extract(). Reply at: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2121522/comments/0 ------------------------------------------------------------------------ On 2025-08-11T14:18:33+00:00 Heinrich Schuchardt wrote: https://launchpadlibrarian.net/810305660/buildlog_ubuntu-questing- riscv64.coreutils_9.5-1ubuntu2_BUILDING.txt.gz Reply at: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2121522/comments/1 ------------------------------------------------------------------------ On 2025-08-11T14:59:21+00:00 Pinskia wrote: Can you attach the preprocessed source as requested by https://gcc.gnu.org/bugs/ ? Reply at: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2121522/comments/2 ------------------------------------------------------------------------ On 2025-09-04T19:01:27+00:00 Valentin Haudiquet wrote: Created attachment 62305 preprocessed source Hello, here is the preprocessed source. Reply at: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2121522/comments/8 ------------------------------------------------------------------------ On 2025-09-05T07:25:52+00:00 Rdapp wrote: This happens because we try to extract from a HFmode vector but only have Zvfhmin. I think a simple check for vec_extract should be sufficient. The issue is also present for 16. Testing a patch. Reply at: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2121522/comments/9 ------------------------------------------------------------------------ On 2025-09-05T07:46:17+00:00 Rdapp wrote: Reduced example: long *print_bfloat_block; void ftoastr(float); void print_bfloat() { for (;;) { long j; union { _Float16 x; char b[] } u; j = 0; for (; j < sizeof 0; j++) u.b[j] = print_bfloat_block[j]; ftoastr(u.x); } } Reply at: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2121522/comments/10 ------------------------------------------------------------------------ On 2025-09-05T20:30:47+00:00 Cvs-commit wrote: The master branch has been updated by Robin Dapp <[email protected]>: https://gcc.gnu.org/g:a6bf07653cd272add46a2218ec141c95d7f02427 commit r16-3607-ga6bf07653cd272add46a2218ec141c95d7f02427 Author: Robin Dapp <[email protected]> Date: Fri Sep 5 09:35:46 2025 +0200 RISC-V: Check if we can vec_extract [PR121510]. For Zvfhmin a vector mode exists but the corresponding vec_extract does not. This patch checks that a vec_extract is available and otherwise falls back to standard handling. PR target/121510 gcc/ChangeLog: * config/riscv/riscv.cc (riscv_legitimize_move): Check if we can vec_extract. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/pr121510.c: New test. Reply at: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2121522/comments/11 ------------------------------------------------------------------------ On 2025-09-06T16:16:49+00:00 Doko-v wrote: please could you backport the fix to the gcc-15 branch? Reply at: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2121522/comments/13 ------------------------------------------------------------------------ On 2025-09-08T14:08:20+00:00 Cvs-commit wrote: The releases/gcc-15 branch has been updated by Robin Dapp <[email protected]>: https://gcc.gnu.org/g:1c824f038848870219105a5fa16c48a2e0746643 commit r15-10297-g1c824f038848870219105a5fa16c48a2e0746643 Author: Robin Dapp <[email protected]> Date: Fri Sep 5 09:35:46 2025 +0200 RISC-V: Check if we can vec_extract [PR121510]. For Zvfhmin a vector mode exists but the corresponding vec_extract does not. This patch checks that a vec_extract is available and otherwise falls back to standard handling. PR target/121510 gcc/ChangeLog: * config/riscv/riscv.cc (riscv_legitimize_move): Check if we can vec_extract. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/pr121510.c: New test. (cherry picked from commit a6bf07653cd272add46a2218ec141c95d7f02427) Reply at: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2121522/comments/15 ------------------------------------------------------------------------ On 2025-09-08T14:10:01+00:00 Rdapp wrote: Fixed. Reply at: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2121522/comments/16 ** Changed in: gcc Status: Unknown => Fix Released ** Changed in: gcc Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2121522 Title: FTBFS with GCC 15.2 on riscv64 To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/2121522/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
