Subject: bug#68340: coreutils-mesboot-9.1 failed

From: Jing Luo <[email-masked]>
Date: Sat, 13 Jan 2024 21:26:10 +0900

Hello,

On 2024-01-13 20:53, Josselin Poiret wrote:
> Hi Jing,
> 
> Jing Luo via Bug reports for GNU Guix <[email-masked]> writes:
> 
>> building 
>> /gnu/store/9dspz8w4i6c9wkdskirv4rj6lmsgp54c-coreutils-mesboot-9.1.drv...
>> | 'build' phasebuilder for 
>> `/gnu/store/9dspz8w4i6c9wkdskirv4rj6lmsgp54c-coreutils-mesboot-9.1.drv' 
>> failed with exit code 1
>> build of 
>> /gnu/store/9dspz8w4i6c9wkdskirv4rj6lmsgp54c-coreutils-mesboot-9.1.drv 
>> failed
>> View build log at 
>> '/var/log/guix/drvs/9d/spz8w4i6c9wkdskirv4rj6lmsgp54c-coreutils-mesboot-9.1.drv.gz'.
> 
> Can you also include the relevant failing part of
> /var/log/guix/drvs/9d/spz8w4i6c9wkdskirv4rj6lmsgp54c-coreutils-mesboot-9.1.drv.gz?
> 
> Best,

Not sure if I got it right, but here it is:

```
[...]

phase `patch-source-shebangs' succeeded after 0.3 seconds
starting phase `configure'
source directory: 
"/tmp/guix-build-coreutils-mesboot-9.1.drv-0/coreutils-9.1" (relative 
from build: ".")
build directory: 
"/tmp/guix-build-coreutils-mesboot-9.1.drv-0/coreutils-9.1"
configure flags: 
("CONFIG_SHELL=/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" 
"SHELL=/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" 
"--prefix=/gnu/store/6waxmqaggl0h1v811y1wdmd9pdaix7yl-coreutils-mesboot-9.1" 
"--enable-fast-install" "--build=x86_64-unknown-linux-gnu")
configure: WARNING: unrecognized options: --enable-fast-install

[...]

checking whether snprintf returns a byte count as in C99... yes
Backtrace:
In gash/eval.scm:
  221: 19 [eval-sh (<sh-set!> ("as_decl_name" (<sh-cmd-sub> #)))]
In srfi/srfi-1.scm:
  642: 18 [for-each #<procedure 13d1da0 at gash/eval.scm:221:17 (name 
word)> # #]
In gash/eval.scm:
  222: 17 [#<procedure 13d1da0 at gash/eval.scm:221:17 (name word)> 
"as_decl_name" #]
  131: 16 [eval-word (<sh-cmd-sub> (<sh-pipeline> # #)) #:output string 
...]
  121: 15 [expand-word (<sh-cmd-sub> (<sh-pipeline> # #)) #:output string 
...]
In gash/shell.scm:
  289: 14 [sh:substitute-command #<procedure 13d1d20 at 
gash/eval.scm:129:35 ()>]
  270: 13 [%subshell #<procedure v ()>]
In ice-9/boot-9.scm:
  157: 12 [catch quit #<procedure v ()> ...]
In ice-9/r4rs.scm:
  176: 11 [with-output-to-port #<variable 1f783c0 value: #<output: file 
24>> ...]
In srfi/srfi-1.scm:
  619: 10 [for-each #<procedure eval-sh (exp)> ((<sh-pipeline> # #))]
In gash/shell.scm:
  344: 9 [sh:pipeline #<procedure 13d19a0 at gash/eval.scm:149:6 ()> ...]
  310: 8 [plumb #<input: #{read pipe}# 13> #f ...]
  270: 7 [%subshell #<procedure thunk* ()>]
In ice-9/boot-9.scm:
  157: 6 [catch quit #<procedure thunk* ()> ...]
In gash/shell.scm:
  316: 5 [thunk*]
  129: 4 [sh:exec-let () "sed" "s/ *(.*//"]
   92: 3 [exec-utility () ...]
In srfi/srfi-1.scm:
  616: 2 [for-each #<procedure 11ca1a0 at gash/shell.scm:70:12 (i)> (0 1 
2 ...)]
In ice-9/boot-9.scm:
1473: 1 [dup->port #<input: file 23> "r" 7]
In unknown file:
    ?: 0 [fdopen 7 "r"]

ERROR: In procedure fdopen:
ERROR: In procedure scm_fdes_to_port: Bad file descriptor
Backtrace:
In ice-9/boot-9.scm:
  157: 19 [catch #t #<catch-closure c93c40> ...]
In unknown file:
    ?: 18 [apply-smob/1 #<catch-closure c93c40>]
In ice-9/boot-9.scm:
   63: 17 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
  432: 16 [eval # #]
In ice-9/boot-9.scm:
  793: 15 [call-with-input-file "./configure" ...]
In gash/gash.scm:
  121: 14 [#<procedure 13047e0 at gash/gash.scm:120:19 (port)> #<input: 
./configure 23>]
In gash/repl.scm:
   38: 13 [run-repl #<input: ./configure 23> #f]
In gash/shell.scm:
  129: 12 [sh:exec-let () "ac_fn_check_decl" ...]
In gash/environment.scm:
  215: 11 [save-variables-excursion () ...]
  292: 10 [with-arguments # #<procedure 1c8ced0 at gash/shell.scm:145:25 
()>]
  389: 9 [call-with-return #<procedure 1c8ce10 at gash/shell.scm:147:28 
()>]
In srfi/srfi-1.scm:
  619: 8 [for-each #<procedure eval-sh (exp)> ((<sh-begin> # # # ...))]
  619: 7 [for-each #<procedure eval-sh (exp)> (# # # # ...)]
  616: 6 [for-each #<procedure eval-sh (exp)> (# #)]
In gash/shell.scm:
  245: 5 [#<procedure 1fb0cc0 at gash/shell.scm:239:17 ()>]
  129: 4 [sh:exec-let () "printf" "%s" "checking whether  is declared... 
"]
   92: 3 [exec-utility () ...]
In srfi/srfi-1.scm:
  616: 2 [for-each #<procedure 11ca1a0 at gash/shell.scm:70:12 (i)> (0 1 
2 ...)]
In ice-9/boot-9.scm:
1473: 1 [dup->port #<input: file 22> "r" 7]
In unknown file:
    ?: 0 [fdopen 7 "r"]

ERROR: In procedure fdopen:
ERROR: In procedure scm_fdes_to_port: Bad file descriptor
no
checking for stdbool.h that conforms to C99... yes
[...]
checking for uname... yes
Backtrace:
In ice-9/boot-9.scm:
  157: 15 [catch #t #<catch-closure c93c40> ...]
In unknown file:
    ?: 14 [apply-smob/1 #<catch-closure c93c40>]
In ice-9/boot-9.scm:
   63: 13 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
  432: 12 [eval # #]
In ice-9/boot-9.scm:
  793: 11 [call-with-input-file "./configure" ...]
In gash/gash.scm:
  121: 10 [#<procedure 13047e0 at gash/gash.scm:120:19 (port)> #<input: 
./configure 20>]
In gash/repl.scm:
   38: 9 [run-repl #<input: ./configure 20> #f]
In gash/shell.scm:
  441: 8 [sh:cond # #]
   55: 7 [without-errexit #<procedure 134c580 at gash/eval.scm:149:6 ()>]
  380: 6 [sh:or #<procedure 134c4e0 at gash/eval.scm:149:6 ()> ...]
   55: 5 [without-errexit #<procedure 134c4e0 at gash/eval.scm:149:6 ()>]
  129: 4 [sh:exec-let () "test" "" "!=" "yes"]
   92: 3 [exec-utility () ...]
In srfi/srfi-1.scm:
  616: 2 [for-each #<procedure 11ca1a0 at gash/shell.scm:70:12 (i)> (0 1 
2 ...)]
In ice-9/boot-9.scm:
1473: 1 [dup->port #<input: file 14> "r" 7]
In unknown file:
    ?: 0 [fdopen 7 "r"]

ERROR: In procedure fdopen:
ERROR: In procedure scm_fdes_to_port: Bad file descriptor
/gnu/store/pmjb23p8j2f5543k8ng5x8gw08yjb411-gash-utils-boot-0.2.0/bin/test: 
Unknown unary operator: "-lt"
/gnu/store/pmjb23p8j2f5543k8ng5x8gw08yjb411-gash-utils-boot-0.2.0/bin/test: 
Unknown unary operator: "-eq"
checking whether unlink honors trailing slashes... (cached) yes

[...]

/gnu/store/pmjb23p8j2f5543k8ng5x8gw08yjb411-gash-utils-boot-0.2.0/bin/test: 
Unknown unary operator: "-c"

[...]

phase `patch-generated-file-shebangs' succeeded after 0.3 seconds
starting phase `patch-shell-references'
phase `patch-shell-references' succeeded after 0.4 seconds
starting phase `build'
   GEN      lib/alloca.h

[...]

   CC       lib/libcoreutils_a-u64.o
   CC       lib/libcoreutils_a-unicodeio.o
In file included from lib/unicodeio.c:40:0:
lib/unistr.h:21:22: fatal error: unitypes.h: No such file or directory
  #include "unitypes.h"
                       ^
compilation terminated.
make[2]: *** [lib/libcoreutils_a-unicodeio.o] Error 1
make[2]: Leaving directory 
`/tmp/guix-build-coreutils-mesboot-9.1.drv-0/coreutils-9.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/tmp/guix-build-coreutils-mesboot-9.1.drv-0/coreutils-9.1'
make: *** [all] Error 2
error: in phase 'build': uncaught exception:
srfi-34 #<condition &invoke-error [program: "make" arguments: () 
exit-status: 2 term-signal: #f stop-signal: #f] 17613c0>
phase `build' failed after 172.3 seconds
command "make" failed with status 2
```

Although later that day guix successfullly built coreutils, so it's 
probably fixed?

-- 
Jing Luo
About me: https://jing.rocks/about/
PGP Fingerprint: 4E09 8D19 00AA 3F72 1899 2614 09B3 316E 13A1 1EFC