Subject: Failure to build elfutils on aarch64

From: Michael Ford <[email-masked]>
Date: Mon, 24 Jul 2023 10:34:59 +0100

Using Guix "guix (GNU Guix) cf9904bcc8dd03e73675475bb4d8746dc434e415"
on and Alpine Linux, aarch64 system,
and calling
"guix build --no-substitutes --check elfutils"
fails with:

============================================================================
Testsuite summary for elfutils 0.187
============================================================================
# TOTAL: 230
# PASS:  220
# SKIP:  8
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to https://sourceware.org/bugzilla
============================================================================
make[3]: *** [Makefile:2577: test-suite.log] Error 1
make[2]: *** [Makefile:2685: check-TESTS] Error 2
make[1]: *** [Makefile:4551: check-am] Error 2
make: *** [Makefile:532: check-recursive] Error 1

Test suite failed, dumping logs.

--- ./tests/test-suite.log --------------------------------------------------

==========================================
   elfutils 0.187: tests/test-suite.log
==========================================

# TOTAL: 230
# PASS:  220
# SKIP:  8
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

SKIP: run-large-elf-file.sh
===========================

long_bit: 64
elfclass: 64
space_available: 116
mem_needed: 6
mem_available:
Need at least 6GB free available memory
SKIP run-large-elf-file.sh (exit status: 77)

FAIL: dwfl-bug-fd-leak
======================

./dwfl-bug-fd-leak: dwfl_module_getelf: Callback returned failure
FAIL dwfl-bug-fd-leak (exit status: 2)

SKIP: run-backtrace-data.sh
===========================

/tmp/guix-build-elfutils-0.187.drv-0/elfutils-0.187/tests/backtrace-data:
x86_64 linux only test
SKIP run-backtrace-data.sh (exit status: 77)

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)

SKIP: run-backtrace-native-biarch.sh
====================================

biarch testing disabled
SKIP run-backtrace-native-biarch.sh (exit status: 77)

SKIP: run-backtrace-native-core.sh
==================================

./backtrace-subr.sh: line 151: flock: command not found
SKIP run-backtrace-native-core.sh (exit status: 77)

SKIP: run-backtrace-native-core-biarch.sh
=========================================

biarch testing disabled
SKIP run-backtrace-native-core-biarch.sh (exit status: 77)

SKIP: run-deleted.sh
====================

SKIP run-deleted.sh (exit status: 77)

SKIP: vdsosyms
==============

SKIP vdsosyms (exit status: 77)

SKIP: run-lfs-symbols.sh
========================

LFS testing is irrelevant on this system
SKIP run-lfs-symbols.sh (exit status: 77)

error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("check" "-j"
"7") exit-status: 2 term-signal: #f stop-signal: #f>
phase `check' failed after 9.0 seconds
command "make" "check" "-j" "7" failed with status 2