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

--- Comment #8 from Sam James <sjames at gcc dot gnu.org> ---
(In reply to Pengfei Li from comment #7)
> Hi Sam, sorry about the issue. I just followed your build steps (make
> command revised) but didn't reproduce it. I also tried valgrind but it
> exited with no error. I was trying on an Intel CPU with avx512. Could you
> share more about your platform?

Sure -- I realised I made an assumption earlier with not explicitly saying you
need to build stage1 with trunk (it's not a bootstrap failure later on).

Can you try this, making sure CC and CXX point to gcc and g++ from a recent
trunk build, and also that STAGE1_* are passed in the make call?

If that's not enough, I'll get a tarball later of the needed preprocessed
sources to build a bad binary.

```
$ mkdir ~/bugs/gcc && cd ~/bugs/gcc
$ export CC=/path/to/gcc-trunk CXX=/path/to/g++-trunk
$ ~/git/gcc/configure --enable-checking=release
$ make -j$(nproc) -l$(nproc) STAGE1_C{,XX}FLAGS="-O3 -march=znver2 -ggdb3"
$ cd gcc
$ valgrind -q build/genrecog ~/git/gcc/gcc/common.md
~/git/gcc/gcc/config/i386/i386.md insn-conditions.md -Hinsn-recog.h
-Otmp-recog-1.cc -Otmp-rec
og-2.cc -Otmp-recog-3.cc -Otmp-recog-4.cc -Otmp-recog-5.cc -Otmp-recog-6.cc
-Otmp-recog-7.cc -Otmp-recog-8.cc -Otmp-recog-9.cc -Otmp-recog-10.cc
```

Reply via email to