GNU bug report logs - #57316
(core-updates) dejagnu@1.6.3 sometimes fails to build

Previous Next

Package: guix;

Reported by: Maxime Devos <maximedevos <at> telenet.be>

Date: Sun, 21 Aug 2022 10:39:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57316 in the body.
You can then email your comments to 57316 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#57316; Package guix. (Sun, 21 Aug 2022 10:39:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxime Devos <maximedevos <at> telenet.be>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 21 Aug 2022 10:39:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: bug-guix <at> gnu.org
Subject: (core-updates) dejagnu <at> 1.6.3 sometimes fails to build
Date: Sun, 21 Aug 2022 12:38:16 +0200
[Message part 1 (text/plain, inline)]
On the build farm, dejagnu sometimes fails to build:

https://ci.guix.gnu.org/build/1229968/log/raw

> ERROR: -------------------------------------------
> ERROR: in testcase ./testsuite/runtest.libs/libs.exp
> ERROR:  send: spawn id exp6 not open
> ERROR:  tcl error code NONE
> ERROR:  tcl error info:
> send: spawn id exp6 not open
>      while executing
> "exp_send "interp delete test_case""
>      invoked from within
> "if [file exists $test] {
> 	verbose "Processing test $test" 2
>
> 	exp_send "interp create test_case\n"
> 	expect "interp create test_case*test_case*expect*>..."
>      (procedure "process_test" line 9)
>      invoked from within
> "process_test $i"
>      ("foreach" body line 2)
>      invoked from within
> "foreach i [lsort -dictionary [glob [testsuite file -source -test *.test]]] {
>      if { [runtest_file_p $runtests $i] } { process_test $i }
> }"
>      (file "./testsuite/runtest.libs/libs.exp" line 100)
>      invoked from within
> "source ./testsuite/runtest.libs/libs.exp"
>      ("uplevel" body line 1)
>      invoked from within
> "uplevel #0 source ./testsuite/runtest.libs/libs.exp"
>      invoked from within
> "catch "uplevel #0 source $test_file_name" msg"
I cannot reproduce this locally.

This "send: spawn id exp8 not open" has been noticed in LFS, at 
<https://wiki.linuxfromscratch.org/lfs/ticket/4871>. There it has been 
proposed to run the build out-of-source.

TODO: give '#:out-of-source? #true' a try.

Greetings,
Maxime.

[Message part 2 (text/html, inline)]
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#57316; Package guix. (Mon, 22 Aug 2022 09:38:01 GMT) Full text and rfc822 format available.

Message #8 received at 57316 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: 57316 <at> debbugs.gnu.org
Cc: Maxime Devos <maximedevos <at> telenet.be>
Subject: [PATCH] gnu: dejagnu: Avoid non-deterministic test failure.
Date: Mon, 22 Aug 2022 11:37:38 +0200
I cannot reproduce the test failure locally myself.

* gnu/packages/dejagnu.scm (dejagnu)[#:out-of-source?]:
Do an out-of-source build, as recommended upstream, and
add a link to the upstream bug report.
---
 gnu/packages/dejagnu.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/dejagnu.scm b/gnu/packages/dejagnu.scm
index f3445b3d87..579a1a7a40 100644
--- a/gnu/packages/dejagnu.scm
+++ b/gnu/packages/dejagnu.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2016, 2017, 2022 Efraim Flashner <efraim <at> flasher.co.il>
 ;;; Copyright © 2018 Mark H Weaver <mhw <at> netris.org>
 ;;; Copyright © 2022 Marius Bakke <marius <at> gnu.org>
+;;; Copyright © 2022 Maxime Devos <maximedevos <at> telenet.be>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -44,6 +45,9 @@ (define-public dejagnu
     (inputs (list bash-minimal expect))
     (arguments
      (list
+      ;; Do an out-of-source build to work-around a non-deterministic bug in Expect:
+      ;; <https://lists.gnu.org/archive/html/bug-dejagnu/2021-06/msg00013.html>.
+      #:out-of-source? #true
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'patch-/bin/sh

base-commit: d08411ffd0a36a6b67a238be69d32c9f74101389
-- 
2.37.1





Information forwarded to bug-guix <at> gnu.org:
bug#57316; Package guix. (Mon, 22 Aug 2022 09:39:01 GMT) Full text and rfc822 format available.

Message #11 received at 57316 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: 57316 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: dejagnu: Avoid non-deterministic test failure.
Date: Mon, 22 Aug 2022 11:38:51 +0200
[Message part 1 (text/plain, inline)]
Oops I forgot [PATCH core-updates] -- due to the many dependents, it's 
for core-updates.

[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Tue, 06 Sep 2022 21:09:02 GMT) Full text and rfc822 format available.

Notification sent to Maxime Devos <maximedevos <at> telenet.be>:
bug acknowledged by developer. (Tue, 06 Sep 2022 21:09:02 GMT) Full text and rfc822 format available.

Message #16 received at 57316-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: 57316-done <at> debbugs.gnu.org
Subject: Re: bug#57316: (core-updates) dejagnu <at> 1.6.3 sometimes fails to build
Date: Tue, 06 Sep 2022 23:08:20 +0200
Maxime Devos <maximedevos <at> telenet.be> skribis:

> I cannot reproduce the test failure locally myself.
>
> * gnu/packages/dejagnu.scm (dejagnu)[#:out-of-source?]:
> Do an out-of-source build, as recommended upstream, and
> add a link to the upstream bug report.

Pushed in ‘core-updates’ as 0e305798454c558ab6e722cf66ba351c326a1a8d.

Thanks!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 05 Oct 2022 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 196 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.