GNU bug report logs - #62192
Test failures in binfmt emulated builds

Previous Next

Package: guix;

Reported by: Greg Hogan <code <at> greghogan.com>

Date: Tue, 14 Mar 2023 19:20:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

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 62192 in the body.
You can then email your comments to 62192 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#62192; Package guix. (Tue, 14 Mar 2023 19:20:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Greg Hogan <code <at> greghogan.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 14 Mar 2023 19:20:01 GMT) Full text and rfc822 format available.

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

From: Greg Hogan <code <at> greghogan.com>
To: bug-guix <at> gnu.org
Subject: Test failures in binfmt emulated builds
Date: Tue, 14 Mar 2023 15:19:36 -0400
The following emulated build using binfmt should work according to the
documentation example at
https://guix.gnu.org/manual/en/html_node/Native-Builds.html

$ uname -m
x86_64


The package was previously built on an aarch64 offload machine:

$ file $(guix build --system=aarch64-linux hello)/bin/hello
/gnu/store/s2qnbdlrwlx47h5p6rxlylny1259srmj-hello-2.12.1/bin/hello:
ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically
linked, interpreter
/gnu/store/gfjp8gfv4xxschbaxvldpigadfwqazhw-glibc-2.33/lib/ld-linux-aarch64.so.1,
for GNU/Linux 2.6.32, stripped


Successfully executed using binfmt emulation:

$ $(guix build --system=aarch64-linux hello)/bin/hello
Hello, world!


A locally emulated check build fails during the test phase:

$ guix describe
Generation 35 Mar 13 2023 13:37:24 (current)
  guix 1ed227d
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 1ed227d7952af48efe50a2f6c9537e17c356daa1

$ guix build --check --system=aarch64-linux --verbosity=1 hello
The following derivation will be built:
  /gnu/store/sg9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv

building /gnu/store/sg9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv...
| 'check' phasebuilder for
`/gnu/store/sg9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv' failed
with exit code 1
build of /gnu/store/sg9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv failed
View build log at
'/var/log/guix/drvs/sg/9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv.gz'.
guix build: error: build of
`/gnu/store/sg9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv' failed


$ zcat /var/log/guix/drvs/sg/9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv.gz
[...]
Test suite failed, dumping logs.

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

========================================
   GNU Hello 2.12.1: ./test-suite.log
========================================

# TOTAL: 7
# PASS:  4
# SKIP:  1
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tests/atexit-1
====================

FAIL tests/atexit-1 (exit status: 1)

SKIP: tests/greeting-2
======================

./tests/greeting-2: Skipping test: not a full moon night
SKIP tests/greeting-2 (exit status: 77)

FAIL: tests/operand-1
=====================

1,2c1,2
< hello: extra operand: first
< Try 'hello --help' for more information.
---
> ./hello: extra operand: first
> Try './hello --help' for more information.
FAIL tests/operand-1 (exit status: 1)


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




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Mon, 03 Jun 2024 00:28:02 GMT) Full text and rfc822 format available.

Notification sent to Greg Hogan <code <at> greghogan.com>:
bug acknowledged by developer. (Mon, 03 Jun 2024 00:28:02 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Greg Hogan <code <at> greghogan.com>
Cc: 62192-done <at> debbugs.gnu.org
Subject: Re: bug#62192: Test failures in binfmt emulated builds
Date: Sun, 02 Jun 2024 20:26:21 -0400
Hi Greg,

Greg Hogan <code <at> greghogan.com> writes:

> The following emulated build using binfmt should work according to the
> documentation example at
> https://guix.gnu.org/manual/en/html_node/Native-Builds.html
>
> $ uname -m
> x86_64
>
>
> The package was previously built on an aarch64 offload machine:
>
> $ file $(guix build --system=aarch64-linux hello)/bin/hello
> /gnu/store/s2qnbdlrwlx47h5p6rxlylny1259srmj-hello-2.12.1/bin/hello:
> ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically
> linked, interpreter
> /gnu/store/gfjp8gfv4xxschbaxvldpigadfwqazhw-glibc-2.33/lib/ld-linux-aarch64.so.1,
> for GNU/Linux 2.6.32, stripped
>
>
> Successfully executed using binfmt emulation:
>
> $ $(guix build --system=aarch64-linux hello)/bin/hello
> Hello, world!
>
>
> A locally emulated check build fails during the test phase:
>
> $ guix describe
> Generation 35 Mar 13 2023 13:37:24 (current)
>   guix 1ed227d
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: 1ed227d7952af48efe50a2f6c9537e17c356daa1
>
> $ guix build --check --system=aarch64-linux --verbosity=1 hello
> The following derivation will be built:
>   /gnu/store/sg9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv
>
> building /gnu/store/sg9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv...
> | 'check' phasebuilder for
> `/gnu/store/sg9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv' failed
> with exit code 1
> build of /gnu/store/sg9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv failed
> View build log at
> '/var/log/guix/drvs/sg/9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv.gz'.
> guix build: error: build of
> `/gnu/store/sg9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv' failed
>
>
> $ zcat /var/log/guix/drvs/sg/9mpl4nf7j2w8bmv5q4725gpirhi225-hello-2.12.1.drv.gz
> [...]
> Test suite failed, dumping logs.
>
> --- ./test-suite.log --------------------------------------------------------
>
> ========================================
>    GNU Hello 2.12.1: ./test-suite.log
> ========================================
>
> # TOTAL: 7
> # PASS:  4
> # SKIP:  1
> # XFAIL: 0
> # FAIL:  2
> # XPASS: 0
> # ERROR: 0
>
> .. contents:: :depth: 2
>
> FAIL: tests/atexit-1
> ====================
>
> FAIL tests/atexit-1 (exit status: 1)
>
> SKIP: tests/greeting-2
> ======================
>
> ./tests/greeting-2: Skipping test: not a full moon night
> SKIP tests/greeting-2 (exit status: 77)
>
> FAIL: tests/operand-1
> =====================

This kind of problem is really a bug/limitation in QEMU.  I'd suggest
forwarding this report to them if you'd like to have it resolved.

Closing.

-- 
Thanks,
Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 01 Jul 2024 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 311 days ago.

Previous Next


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