https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100324
--- Comment #4 from Tor <torel at simula dot no> --- (In reply to Richard Biener from comment #3) > that's odd. What's your host operating system, in particular what shell > is /bin/sh? Ubuntu 18.04.5LTS on any arch. Interestingly, on aarch it is dash while on where it is not working it is /bin/bash torel@srl-login1:~$ uname -ar Linux srl-login1 4.15.0-142-generic #124-Ubuntu SMP Thu Oct 15 13:03:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux torel@srl-login1:~$ ll /bin/sh lrwxrwxrwx 1 root root 4 Mar 18 2019 /bin/sh -> bash* torel@srl-login1:~$ srun --partition=armq --ntasks=1 --nodes=1 --cpus-per-task=256 --pty /bin/bash --login srun: job 155896 queued and waiting for resources srun: job 155896 has been allocated resources You are on an Aarch64 node torel@n005:~$ ll /bin/sh lrwxrwxrwx 1 root root 4 Apr 30 2019 /bin/sh -> dash* torel@n005:~$ uname -ar Linux n005 4.15.0-142-generic #146-Ubuntu SMP Tue Apr 13 01:08:49 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux torel@n005:~$