GNU bug report logs - #29655
Elixir build has an undeterministic build error

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: nee <nee@HIDDEN>; dated Mon, 11 Dec 2017 00:32:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 29655 <at> debbugs.gnu.org:


Received: (at 29655) by debbugs.gnu.org; 17 Dec 2017 07:57:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 17 02:57:17 2017
Received: from localhost ([127.0.0.1]:38014 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eQToz-00019B-F2
	for submit <at> debbugs.gnu.org; Sun, 17 Dec 2017 02:57:17 -0500
Received: from mail.thebird.nl ([95.154.246.10]:35196)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pjotr2017@HIDDEN>) id 1eQTox-00018w-Sd
 for 29655 <at> debbugs.gnu.org; Sun, 17 Dec 2017 02:57:16 -0500
Received: by mail.thebird.nl (Postfix, from userid 502)
 id 31EA51248D7; Sun, 17 Dec 2017 08:54:27 +0100 (CET)
Date: Sun, 17 Dec 2017 08:54:27 +0100
From: Pjotr Prins <pjotr.public12@HIDDEN>
To: nee <nee@HIDDEN>
Subject: Re: bug#29655: Elixir build has an undeterministic build error
Message-ID: <20171217075427.GA21986@HIDDEN>
References: <5347a11e-de40-486f-c24d-2ff4efb10424@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <5347a11e-de40-486f-c24d-2ff4efb10424@HIDDEN>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 29655
Cc: 29655 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

The epipe error suggests a new external process is invoked (git)
which does not terminate properly and does not close the pipe. Maybe
it tries to access the network layer. The calling program throws an
epipe error. I see something similar happening
here: https://gist.github.com/knewter/533d22eb69ef1036c22a





Information forwarded to bug-guix@HIDDEN:
bug#29655; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Dec 2017 00:31:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 10 19:31:12 2017
Received: from localhost ([127.0.0.1]:55776 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eOC00-00009v-Br
	for submit <at> debbugs.gnu.org; Sun, 10 Dec 2017 19:31:12 -0500
Received: from eggs.gnu.org ([208.118.235.92]:55289)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nee@HIDDEN>) id 1eOBzy-00009j-UZ
 for submit <at> debbugs.gnu.org; Sun, 10 Dec 2017 19:31:11 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nee@HIDDEN>) id 1eOBzr-0000Ji-LW
 for submit <at> debbugs.gnu.org; Sun, 10 Dec 2017 19:31:05 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:56023)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <nee@HIDDEN>) id 1eOBzr-0000JC-GQ
 for submit <at> debbugs.gnu.org; Sun, 10 Dec 2017 19:31:03 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46236)
 by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <nee@HIDDEN>)
 id 1eOBzp-0003fe-37
 for bug-guix@HIDDEN; Sun, 10 Dec 2017 19:31:03 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nee@HIDDEN>) id 1eOBzn-0000F5-3b
 for bug-guix@HIDDEN; Sun, 10 Dec 2017 19:31:01 -0500
Received: from cock.li ([2a06:1700:0:b::c0cc]:34676)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <nee@HIDDEN>) id 1eOBzm-0000E3-IJ
 for bug-guix@HIDDEN; Sun, 10 Dec 2017 19:30:59 -0500
To: bug-guix@HIDDEN
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail;
 t=1512952256; bh=pBNrXbLTNU8DGodr447elf/JHGPBx4MPqHSeS6Nw4lM=;
 h=To:From:Subject:Date:From;
 b=phbgbPtgOsk2cpH/SHyWdiKVzQTUUF1B2BK33ZqTfP7iaxaa1PpxHA9lwoAZb+OYk
 FyzImWnwDoNl67ZEpaaMUhPokmcQXqcB9o9Esq6JXmdlaxb2qhcr6t0kftBaY+RxDw
 eGbAOAS5Bl0Patgqr4qI6BYRLI48MJY7jsXtbmthAIUTP0PhPU0/fz6OssE6eEErlb
 XND7FxIfRLgTxIIk2NIFx+U5w6FJDGOOs7bb7IInHsoa6hHxfVTzulqoktJcfzHszD
 olud0W1Tb0/XETeJA8k3UGhgswFnGKn5GaA0paZRd28SoVGvNx/RVVY1ZpOMcpBdEU
 tTjwbqB4czJqA==
From: nee <nee@HIDDEN>
Subject: Elixir build has an undeterministic build error
Message-ID: <5347a11e-de40-486f-c24d-2ff4efb10424@HIDDEN>
Date: Mon, 11 Dec 2017 01:31:13 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.5.0
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------2BD0CDB7E00B424D17E497AF"
Content-Language: en-GB
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

This is a multi-part message in MIME format.
--------------2BD0CDB7E00B424D17E497AF
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello, this has already mentioned in another bug report
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28034#20

The built of Elixir sometimes fails while compiling
'lib/elixir/lib/system.ex' with the error message:

> ** (exit) :epipe

See appended build log. I found the only other mention of the error on
the guix mailing list when elixir was first added:

https://lists.gnu.org/archive/html/guix-devel/2016-07/msg01436.html
https://lists.gnu.org/archive/html/guix-devel/2016-08/msg00114.html
https://lists.gnu.org/archive/html/guix-devel/2016-07/msg01540.html

It was suspected to be related to high memory usage / getting into swap.
I ran the build on two computers with 6GB and 16GB ram and still got it
on both, so I don't think it's ram related.

* What it might be:
One single time I got a different error message for the same file which
mentioned git (see detailed error attachment).
The file lib/elixir/lib/system.ex has a macro that calls git. Also this
bug seems to appear nowhere outside of guix, so it might be related.

--------------2BD0CDB7E00B424D17E497AF
Content-Type: text/x-log;
 name="error-elixir-generic-epipe.log"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="error-elixir-generic-epipe.log"

starting phase `build'
=3D=3D> elixir (compile)
Compiled src/elixir_parser.yrl
Compiled src/elixir_sup.erl
Compiled src/elixir_def.erl
Compiled src/elixir_quote.erl
Compiled src/elixir_erl_clauses.erl
Compiled src/elixir_utils.erl
Compiled src/elixir_env.erl
Compiled src/elixir_overridable.erl
Compiled src/elixir_erl_pass.erl
Compiled src/elixir_interpolation.erl
Compiled src/elixir_aliases.erl
Compiled src/elixir_erl_compiler.erl
Compiled src/elixir_code_server.erl
Compiled src/elixir_lexical.erl
Compiled src/elixir_clauses.erl
Compiled src/elixir.erl
Compiled src/elixir_rewrite.erl
Compiled src/elixir_dispatch.erl
Compiled src/elixir_compiler.erl
Compiled src/elixir_erl_for.erl
Compiled src/elixir_bitstring.erl
Compiled src/elixir_bootstrap.erl
Compiled src/elixir_expand.erl
Compiled src/elixir_erl_try.erl
Compiled src/elixir_import.erl
Compiled src/elixir_map.erl
Compiled src/elixir_tokenizer.erl
Compiled src/elixir_erl_var.erl
Compiled src/elixir_erl.erl
Compiled src/elixir_errors.erl
Compiled src/elixir_module.erl
Compiled src/elixir_fn.erl
Compiled src/elixir_config.erl
Compiled src/elixir_locals.erl
Compiled src/elixir_parser.erl
=3D=3D> bootstrap (compile)
Compiled lib/elixir/lib/kernel.ex
Compiled lib/elixir/lib/macro/env.ex
Compiled lib/elixir/lib/keyword.ex
Compiled lib/elixir/lib/module.ex
Compiled lib/elixir/lib/list.ex
Compiled lib/elixir/lib/macro.ex
Compiled lib/elixir/lib/code.ex
Compiled lib/elixir/lib/module/locals_tracker.ex
Compiled lib/elixir/lib/kernel/typespec.ex
Compiled lib/elixir/lib/kernel/utils.ex
Compiled lib/elixir/lib/behaviour.ex
warning: erlang:get_stacktrace/0 used in the wrong part of 'try' expressi=
on. (Use it in the block between 'catch' and 'end'.)
  /tmp/guix-build-elixir-1.5.2.drv-0/elixir-1.5.2/lib/elixir/lib/exceptio=
n.ex:1150

Compiled lib/elixir/lib/exception.ex
Compiled lib/elixir/lib/protocol.ex
Compiled lib/elixir/lib/stream/reducers.ex
Compiled lib/elixir/lib/enum.ex
Compiled lib/elixir/lib/inspect/algebra.ex
Compiled lib/elixir/lib/inspect.ex
Compiled lib/elixir/lib/range.ex
Compiled lib/elixir/lib/regex.ex
Compiled lib/elixir/lib/string.ex
Compiled lib/elixir/lib/string/chars.ex
Compiled lib/elixir/lib/io.ex
Compiled lib/elixir/lib/path.ex
Compiled lib/elixir/lib/file.ex
Compiled lib/elixir/lib/system.ex
Compiled lib/elixir/lib/kernel/cli.ex
Compiled lib/elixir/lib/kernel/error_handler.ex
Compiled lib/elixir/lib/kernel/parallel_compiler.ex
Compiled lib/elixir/lib/kernel/lexical_tracker.ex
=3D=3D> elixir (compile)
warning: behaviour Enumerable is undefined
  lib/calendar/date_range.ex:21

warning: behaviour Inspect is undefined
  lib/calendar/date_range.ex:81

warning: behaviour String.Chars is undefined
  lib/calendar/date.ex:582

warning: behaviour Inspect is undefined
  lib/calendar/date.ex:588

warning: behaviour String.Chars is undefined
  lib/calendar/time.ex:476

warning: behaviour Inspect is undefined
  lib/calendar/time.ex:482

warning: behaviour String.Chars is undefined
  lib/calendar/datetime.ex:473

warning: behaviour Inspect is undefined
  lib/calendar/datetime.ex:482

warning: behaviour String.Chars is undefined
  lib/calendar/naive_datetime.ex:677

warning: behaviour Inspect is undefined
  lib/calendar/naive_datetime.ex:684

warning: erlang:get_stacktrace/0 used in the wrong part of 'try' expressi=
on. (Use it in the block between 'catch' and 'end'.)
  lib/exception.ex:1150

warning: use Dict is deprecated, use the Map module for working with maps=
 or the Keyword module for working with keyword lists
  lib/hash_dict.ex:11


=3D=3D Compilation error in file lib/system.ex =3D=3D
** (exit) :epipe

make: *** [Makefile:81: lib/elixir/ebin/Elixir.Kernel.beam] Error 1
phase `build' failed after 67.5 seconds
builder for `/gnu/store/s9d2icsm6aniyhpscgfphb1z879b4wbc-elixir-1.5.2.drv=
' failed with exit code 1
@ build-failed /gnu/store/s9d2icsm6aniyhpscgfphb1z879b4wbc-elixir-1.5.2.d=
rv - 1 builder for `/gnu/store/s9d2icsm6aniyhpscgfphb1z879b4wbc-elixir-1.=
5.2.drv' failed with exit code 1
guix build: error: build failed: build of `/gnu/store/s9d2icsm6aniyhpscgf=
phb1z879b4wbc-elixir-1.5.2.drv' failed


--------------2BD0CDB7E00B424D17E497AF
Content-Type: text/x-log;
 name="error-elixir-detailed-git.log"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="error-elixir-detailed-git.log"

starting phase `build'
=3D=3D> elixir (compile)
Compiled src/elixir_parser.yrl
Compiled src/elixir_rewrite.erl
Compiled src/elixir_erl_var.erl
Compiled src/elixir_code_server.erl
Compiled src/elixir_erl_compiler.erl
Compiled src/elixir_compiler.erl
Compiled src/elixir_bitstring.erl
Compiled src/elixir_erl.erl
Compiled src/elixir_lexical.erl
Compiled src/elixir_fn.erl
Compiled src/elixir_overridable.erl
Compiled src/elixir_erl_for.erl
Compiled src/elixir_utils.erl
Compiled src/elixir_module.erl
Compiled src/elixir_dispatch.erl
Compiled src/elixir_erl_try.erl
Compiled src/elixir_erl_clauses.erl
Compiled src/elixir_import.erl
Compiled src/elixir_sup.erl
Compiled src/elixir_bootstrap.erl
Compiled src/elixir_tokenizer.erl
Compiled src/elixir_locals.erl
Compiled src/elixir.erl
Compiled src/elixir_def.erl
Compiled src/elixir_config.erl
Compiled src/elixir_env.erl
Compiled src/elixir_interpolation.erl
Compiled src/elixir_map.erl
Compiled src/elixir_quote.erl
Compiled src/elixir_expand.erl
Compiled src/elixir_aliases.erl
Compiled src/elixir_errors.erl
Compiled src/elixir_clauses.erl
Compiled src/elixir_erl_pass.erl
Compiled src/elixir_parser.erl
=3D=3D> bootstrap (compile)
Compiled lib/elixir/lib/kernel.ex
Compiled lib/elixir/lib/macro/env.ex
Compiled lib/elixir/lib/keyword.ex
Compiled lib/elixir/lib/module.ex
Compiled lib/elixir/lib/list.ex
Compiled lib/elixir/lib/macro.ex
Compiled lib/elixir/lib/code.ex
Compiled lib/elixir/lib/module/locals_tracker.ex
Compiled lib/elixir/lib/kernel/typespec.ex
Compiled lib/elixir/lib/kernel/utils.ex
Compiled lib/elixir/lib/behaviour.ex
warning: erlang:get_stacktrace/0 used in the wrong part of 'try' expressi=
on. (Use it in the block between 'catch' and 'end'.)
  /tmp/guix-build-elixir-1.5.2.drv-0/elixir-1.5.2/lib/elixir/lib/exceptio=
n.ex:1150

Compiled lib/elixir/lib/exception.ex
Compiled lib/elixir/lib/protocol.ex
Compiled lib/elixir/lib/stream/reducers.ex
Compiled lib/elixir/lib/enum.ex
Compiled lib/elixir/lib/inspect/algebra.ex
Compiled lib/elixir/lib/inspect.ex
Compiled lib/elixir/lib/range.ex
Compiled lib/elixir/lib/regex.ex
Compiled lib/elixir/lib/string.ex
Compiled lib/elixir/lib/string/chars.ex
Compiled lib/elixir/lib/io.ex
Compiled lib/elixir/lib/path.ex
Compiled lib/elixir/lib/file.ex
Compiled lib/elixir/lib/system.ex
Compiled lib/elixir/lib/kernel/cli.ex
Compiled lib/elixir/lib/kernel/error_handler.ex
Compiled lib/elixir/lib/kernel/parallel_compiler.ex
Compiled lib/elixir/lib/kernel/lexical_tracker.ex
=3D=3D> elixir (compile)
warning: behaviour String.Chars is undefined
  lib/calendar/date.ex:582

warning: behaviour Inspect is undefined
  lib/calendar/date.ex:588

warning: behaviour Enumerable is undefined
  lib/calendar/date_range.ex:21

warning: behaviour Inspect is undefined
  lib/calendar/date_range.ex:81

warning: behaviour String.Chars is undefined
  lib/calendar/time.ex:476

warning: behaviour String.Chars is undefined
  lib/calendar/datetime.ex:473

warning: behaviour Inspect is undefined
  lib/calendar/time.ex:482

warning: behaviour Inspect is undefined
  lib/calendar/datetime.ex:482

warning: behaviour String.Chars is undefined
  lib/calendar/naive_datetime.ex:677

warning: behaviour Inspect is undefined
  lib/calendar/naive_datetime.ex:684

warning: use Dict is deprecated, use the Map module for working with maps=
 or the Keyword module for working with keyword lists
  lib/hash_dict.ex:11

warning: erlang:get_stacktrace/0 used in the wrong part of 'try' expressi=
on. (Use it in the block between 'catch' and 'end'.)
  lib/exception.ex:1150


=3D=3D Compilation error in file lib/system.ex =3D=3D
** (ArgumentError) argument error
    :erlang.port_command(#Port<0.4339>, ['(', "git rev-parse --short HEAD=
 2> /dev/null", [10, 41, 32, 60, 47, 100, 101, 118, 47, 110, 117, 108, 10=
8, 59, 32, 101, 99, 104, 111, 32, 34, 4, 34, 10]])
    (kernel) os.erl:242: :os.cmd/1
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
    (stdlib) erl_eval.erl:878: :erl_eval.expr_list/6
    (stdlib) erl_eval.erl:552: :erl_eval.local_func/6
    expanding macro: System.get_revision/0
    lib/system.ex:132: System.revision/0
make: *** [Makefile:81: lib/elixir/ebin/Elixir.Kernel.beam] Error 1
phase `build' failed after 54.4 seconds
builder for `/gnu/store/iwiic5ma374k0l4409qdz5dfknfg7qh3-elixir-1.5.2.drv=
' failed with exit code 1
@ build-failed /gnu/store/iwiic5ma374k0l4409qdz5dfknfg7qh3-elixir-1.5.2.d=
rv - 1 builder for `/gnu/store/iwiic5ma374k0l4409qdz5dfknfg7qh3-elixir-1.=
5.2.drv' failed with exit code 1
guix build: error: build failed: build of `/gnu/store/iwiic5ma374k0l4409q=
dz5dfknfg7qh3-elixir-1.5.2.drv' failed

--------------2BD0CDB7E00B424D17E497AF--




Acknowledgement sent to nee <nee@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#29655; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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