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

            Bug ID: 122606
           Summary: Compilation failure building gccrs
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rust
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Keith.S.Thompson at gmail dot com
                CC: dkm at gcc dot gnu.org, gcc-rust at gcc dot gnu.org,
                    pierre-emmanuel.patry at embecosm dot com
  Target Milestone: ---

I'm building gcc from source on Ubuntu 24.04.3 LTS x86_64, using "gcc (Ubuntu
13.3.0-6ubuntu2~24.04) 13.3.0" as the host compiler.

I haven't seen this problem with any released version of gcc. I see it when
building from recent versions on the master branch of the git repo. I did a
"git clean" before each attempted build.

It appears that commit c8461400fd2 introduced the problem.

The commands I'm using for the build (omitting some irrelevant details, which I
can provide if needed) are:

mkdir _objdir
cd _objdir
../configure --prefix=... --enable-host-shared --enable-languages=rust
make -j 4 bootstrap

With commit b76bb3f2260, dated Sun 2025-08-10, the build completes.

With the immediately following commit, c8461400fd2, dated Tue 2025-08-12, the
build fails. The first error message is:

.../gcc/gcc/rust/ast/rust-fmt.h:68:9: error: array subscript 2 is outside array
bounds of ‘void [24]’ [-Werror=array-bounds=]
   68 |     if (cap)
      |         ^~~

I frankly haven't been able to make sense of the error message, but it causes
the build to fail.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to