Subject: Re: bug#64826: Failure to build elfutils on aarch64

From: Simon Tournier <[email-masked]>
Date: Wed, 20 Sep 2023 09:04:45 +0200

Hi,

On Mon, 24 Jul 2023 at 10:34, Michael Ford <[email-masked]> wrote:
> Using Guix "guix (GNU Guix) cf9904bcc8dd03e73675475bb4d8746dc434e415"
> on and Alpine Linux, aarch64 system,
> and calling
> "guix build --no-substitutes --check elfutils"
> fails with:

Thanks for the report.

Using Guix cf9904bcc8dd03e73675475bb4d8746dc434e415 or recent
6113e0529d61df7425f64e30a6bf77f7cfdfe5a5, it seems to build on two build
farms:

--8<---------------cut here---------------start------------->8---
$ guix weather -s  aarch64-linux  elfutils
computing 1 package derivations for aarch64-linux...
looking for 2 store items on https://ci.guix.gnu.org...
https://ci.guix.gnu.org ☀
  100.0% substitutes available (2 out of 2)
  at least 1.8 MiB of nars (compressed)
  5.6 MiB on disk (uncompressed)
  0.090 seconds per request (0.2 seconds in total)
  11.1 requests per second

  at least 1,000 queued builds
      aarch64-linux: 997 (99.7%)
      i686-linux: 2 (.2%)
      x86_64-linux: 1 (.1%)
  'https://ci.guix.gnu.org/api/latestbuilds?nr=1000' returned 500 ("Internal Server Error")

looking for 2 store items on https://bordeaux.guix.gnu.org...
https://bordeaux.guix.gnu.org ☀
  100.0% substitutes available (2 out of 2)
  at least 1.4 MiB of nars (compressed)
  5.6 MiB on disk (uncompressed)
  0.052 seconds per request (0.1 seconds in total)
  19.1 requests per second
  (continuous integration information unavailable)
--8<---------------cut here---------------end--------------->8---

Is it possible that these failures are hardware dependent?

The failures are about:

--8<---------------cut here---------------start------------->8---
FAIL: dwfl-bug-fd-leak
======================

./dwfl-bug-fd-leak: dwfl_module_getelf: Callback returned failure
FAIL dwfl-bug-fd-leak (exit status: 2)
--8<---------------cut here---------------end--------------->8---

and

--8<---------------cut here---------------start------------->8---
FAIL: run-backtrace-dwarf.sh
============================

0xfffff7d8bee0    __pthread_kill_implementation
0xfffff7d499fc    raise
0xfffff7d370dc    abort
0x4011cc    <null>
0x4011cc    <null>
0x4011d8    <null>
0x401704    <null>
0xfffff7d37368    __libc_start_call_main
0x401234    <null>
/tmp/guix-build-elfutils-0.187.drv-0/elfutils-0.187/tests/backtrace-dwarf:
dwfl_thread_getframes: Callback returned failure
dwarf: no main
FAIL run-backtrace-dwarf.sh (exit status: 1)
--8<---------------cut here---------------end--------------->8---

Cheers,
simon