[Bug other/112836] gcc fails when job control is used

2024-02-01 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112836

--- Comment #5 from Bruno Haible  ---
(In reply to John Paul Adrian Glaubitz from comment #4)
> I tried this patch but it does not address the issue with posix_spawn that I
> am seeing.
> 
> Trying to build gcc from git on Linux sparc64 with glibc 2.37 with the
> following configuration:
> 
> ./configure --enable-languages=c,c++ --disable-bootstrap --disable-multilib
> --disable-nls --host=sparc64-unknown-linux-gnu
> 
> fails with:
> 
> xgcc: fatal error: cannot execute '/home/glaubitz/gcc/build/./gcc/cc1plus':
> posix_spawn: Bad address
> compilation terminated.
> 
> This can be worked around when building with one parallel job (make -j1).

This appears to be a different bug, because
  - it appears under different conditions (parallel make, not Ctrl-Z / 'fg'),
  - the message is different ("posix_spawn: Bad address", not "failed to get
exit status: Interrupted system call").

Could you please register it as a separate bug under
https://gcc.gnu.org/bugzilla/ ?

[Bug other/112836] gcc fails when job control is used

2024-02-01 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112836

--- Comment #4 from John Paul Adrian Glaubitz  ---
I tried this patch but it does not address the issue with posix_spawn that I am
seeing.

Trying to build gcc from git on Linux sparc64 with glibc 2.37 with the
following configuration:

./configure --enable-languages=c,c++ --disable-bootstrap --disable-multilib
--disable-nls --host=sparc64-unknown-linux-gnu

fails with:

xgcc: fatal error: cannot execute '/home/glaubitz/gcc/build/./gcc/cc1plus':
posix_spawn: Bad address
compilation terminated.

This can be worked around when building with one parallel job (make -j1).

[Bug other/112836] gcc fails when job control is used

2023-12-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112836

Richard Biener  changed:

   What|Removed |Added

   Last reconfirmed||2023-12-04
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

--- Comment #3 from Richard Biener  ---
Can you post it to gcc-patc...@gcc.gnu.org please?

[Bug other/112836] gcc fails when job control is used

2023-12-03 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112836

--- Comment #2 from Sam James  ---
Thanks for chasing this down. This has been driving me nuts for a while but I
hadn't dug into it yet.