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

Gaius Mulley <gaius at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |gaius at gcc dot gnu.org

--- Comment #3 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Created attachment 65363
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65363&action=edit
Proposed fix for mktargetsrc.py which avoids the build hanging

Here is a proposed patch for gcc/m2/tools-src/mktargetsrc.py
to clean up any output file before a failure exit status is issued
(avoiding a zero length output file).

I've included the patch in this PR as I used the --target=nvptx-none configure
switch to test the patch.  

When applied the build will fail (rather than hang) when configured with:

../configure --prefix=/home/gaius/opt/gccsh/PR-126847
--libexecdir=/home/gaius/opt/gccsh/PR-126847/lib --enable-host-shared
--enable-threads=posix --enable-clocale=gnu --enable-checking
--enable-long-longx --enable-languages=m2 --enable-multilib --disable-bootstrap
--target=nvptx-none

Reply via email to