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

            Bug ID: 96160
           Summary: Building gcc with multiple make jobs fails with:
                    gcc/xgcc: No such file or directory
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: plevine457 at gmail dot com
  Target Milestone: ---

Created attachment 48860
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48860&action=edit
build.log.bz2

Building GCC with multiple make jobs appears to trigger a race condition.  The
build often fails with:

> /var/tmp/portage/sys-devel/gcc-10.1.0-r1/work/build/./gcc/xgcc 
> -B/var/tmp/portage/sys-devel/gcc-10.1.0-r1/work/build/./gcc/ -xc++ -nostdinc 
> /dev/null -S -o /dev/null 
> -fself-test=/var/tmp/portage/sys-devel/gcc-10.1.0-r1/work/gcc-10.1.0/gcc/testsuite/selftests
> /bin/bash: /var/tmp/portage/sys-devel/gcc-10.1.0-r1/work/build/./gcc/xgcc: No 
> such file or directory
> make[3]: *** 
> [/var/tmp/portage/sys-devel/gcc-10.1.0-r1/work/gcc-10.1.0/gcc/cp/Make-lang.in:178:
>  s-selftest-c++] Error 127

This has been noticeable at least since GCC-9.x.

Reported downstream at https://bugs.gentoo.org/728304.
Likely related to
https://github.com/cirosantilli/linux-kernel-module-cheat/issues/108

uname: Linux Laptop-PC 5.7.8-gentoo #1 SMP Fri Jul 10 04:05:05 EDT 2020 x86_64
Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz GenuineIntel GNU/Linux

Reply via email to