Subject: Re: bug#75658: Non-deterministic Gash error in‘gcc-mesboot-4.9.4’

From: Ludovic Courtès <[email-masked]>
Date: Sun, 19 Jan 2025 19:24:25 +0100

Ludovic Courtès <[email-masked]> skribis:

> I stumbled upon this interesting non-deterministic failure while
> building ‘gcc-mesboot-4.9.4.drv’ on current ‘core-packages-team’ (which
> is unchanged compared to ‘master’):

Just got another one:

--8<---------------cut here---------------start------------->8---
checking for struct sigaction.sa_sigaction... yes
checking for volatile sig_atomic_t... yes
checking for sighandler_t... yes
checking for sigprocmask... (cached) yes
checking whether sleep is declared... yes
checking for working sleep... yes
checking for socklen_t... Backtrace:
In gash/shell.scm:
 129: 19 [sh:exec-let () "ac_fn_c_try_compile" "2817"]
In gash/environment.scm:
 215: 18 [save-variables-excursion () ...]
 292: 17 [with-arguments # #<procedure 2210f00 at gash/shell.scm:145:25 ()>]
 389: 16 [call-with-return #<procedure 2210e40 at gash/shell.scm:147:28 ()>]
In srfi/srfi-1.scm:
 619: 15 [for-each #<procedure eval-sh (exp)> ((<sh-begin> # # # ...))]
 619: 14 [for-each #<procedure eval-sh (exp)> (# # # # ...)]
In gash/shell.scm:
 441: 13 [sh:cond # #]
  55: 12 [without-errexit #<procedure 13185e0 at gash/eval.scm:149:6 ()>]
 372: 11 [sh:and #<procedure 1318560 at gash/eval.scm:149:6 ()> ...]
  55: 10 [without-errexit #<procedure 1318560 at gash/eval.scm:149:6 ()>]
 372: 9 [sh:and #<procedure 1318500 at gash/eval.scm:149:6 ()> ...]
  55: 8 [without-errexit #<procedure 1318500 at gash/eval.scm:149:6 ()>]
In srfi/srfi-1.scm:
 616: 7 [for-each #<procedure eval-sh (exp)> (# # # # ...)]
 619: 6 [for-each #<procedure eval-sh (exp)> (# # #)]
In gash/shell.scm:
 245: 5 [#<procedure 1f63030 at gash/shell.scm:239:17 ()>]
 129: 4 [sh:exec-let () "grep" "-v" "^ *+" "conftest.err"]
  92: 3 [exec-utility () ...]
In srfi/srfi-1.scm:
 616: 2 [for-each #<procedure ea9a60 at gash/shell.scm:70:12 (i)> (0 1 2 ...)]
In ice-9/boot-9.scm:
1473: 1 [dup->port #<input: file 20> "r" 7]
In unknown file:
   ?: 0 [fdopen 7 "r"]

ERROR: In procedure fdopen:
ERROR: In procedure scm_fdes_to_port: Bad file descriptor
yes
checking whether symlink handles trailing slash correctly... yes
checking whether <sys/ioctl.h> declares ioctl... yes
checking for unsetenv... yes
checking for unsetenv() return type... int
--8<---------------cut here---------------end--------------->8---

That one likely doesn’t change the build outcome since it still
determines that ‘socklen_t’ is defined, but it sounds a bit like a dice
roll.

Ludo’.