https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125853

            Bug ID: 125853
           Summary: [17 Regression] Bootstrap broken on RISC-V
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: law at gcc dot gnu.org
  Target Milestone: ---

This change:

commit 6dbcda7f978ce7fba81e81971911d00b2d1ccab0
Author: Jim Tsung-Chun Lin <[email protected]>
Date:   Wed Jun 3 09:03:10 2026 +0800

    RISC-V: Run smart multilib match even when generic matcher picked a dir

    The generic textual matcher in gcc.cc:set_multilib_dir does not
    understand RISC-V arch supersetting and treats MULTILIB_DEFAULTS
    entries as if they were on the command line via default_arg().  When
    the user passes a -march= that is a superset of one of MULTILIB_OPTIONS'
    arches but does not textually match, default_arg can rescue the wrong
    entry and pick a multilib that is not the closest match.

[ ... ]

Is breaking bootstrap on RISC-V with this error trying to run the stage1
compiler self-tests:

C_ALL=C GCC_COLORS=
/home/jlaw/jenkins/workspace/riscv64-linux-gnu/obj/gcc/./gcc/xgcc
-B/home/jlaw/jenkins/workspace/riscv64-linux-gnu/obj/gcc/./gcc/ -fno-checking
-xc -nostdinc /dev/null -S -o /dev/null
-fself-test=../../../gcc/gcc/testsuite/selftests
xgcc: error: '-march=': ISA string must begin with rv32, rv64, a supported RVA
profile or refer to a supported CPU

This may also be the root cause of the pre-commit CI tester failing to pick up
jobs that was noticed this morning.  I haven't confirmed that, it's just a
hunch.

Planning to revert the change Wednesday if it's not fixed.

Reply via email to