GNU bug report logs - #71183
elogind tests fail on QEMU riscv64-linux but not native with identical derivations

Previous Next

Package: guix;

Reported by: Richard Sent <richard <at> freakingpenguin.com>

Date: Sat, 25 May 2024 03:42:01 UTC

Severity: normal

Tags: notabug

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 71183 in the body.
You can then email your comments to 71183 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#71183; Package guix. (Sat, 25 May 2024 03:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Richard Sent <richard <at> freakingpenguin.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 25 May 2024 03:42:02 GMT) Full text and rfc822 format available.

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

From: Richard Sent <richard <at> freakingpenguin.com>
To: bug-guix <at> gnu.org
Subject: elogind tests fail on QEMU riscv64-linux but not native with
 identical derivations
Date: Fri, 24 May 2024 23:40:32 -0400
[Message part 1 (text/plain, inline)]
Hi Guix!

Building elogind fails due to a failing test on a QEMU riscv64 build:

--8<---------------cut here---------------start------------->8---
gibraltar :) guix$ guix describe
Generation 77	May 24 2024 00:15:41	(current)
  guix 9901416
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 9901416233867233192b63fde7f616751127b189
gibraltar :) guix$ guix build elogind --system=riscv64-linux
--8<---------------cut here---------------end--------------->8---

I'll attach the full build log to this message. Here's the brief output:

--8<---------------cut here---------------start------------->8---
 85/143 elogind:test / test-mountpoint-util                       FAIL            0.03s   killed by signal 6 SIGABRT
# snip
mnt ids of /gnu/store/vaznv17j32jky10bi6942fdfxh7awl67-python-minimal-3.10.7 are 739 (from /proc/self/mountinfo), 0 (from path_get_mnt_id()).
Assertion 'q = hashmap_get(h, INT_TO_PTR(mnt_id2))' failed at src/test/test-mountpoint-util.c:104, function test_mnt_id(). Aborting.
--8<---------------cut here---------------end--------------->8---

When the build is done natively (thanks for the VisionFive2 image!), it
succeeds even though the derivation hash is the same.

--8<---------------cut here---------------start------------->8---
# QEMU
gibraltar :( guix$ guix build elogind --no-grafts --derivations --system=riscv64-linux
/gnu/store/cjbqi2shgn2a99zmwbiqp1kaa7x0zpik-elogind-252.9.drv
# Native
root <at> visionfive2 ~# guix build elogind --no-grafts --derivations
/gnu/store/cjbqi2shgn2a99zmwbiqp1kaa7x0zpik-elogind-252.9.drv
--8<---------------cut here---------------end--------------->8---

I tried disabling just that one test, but it seemed to cause another
failure. I haven't investigated beyond that.

[bqi2shgn2a99zmwbiqp1kaa7x0zpik-elogind-252.9.drv.gz (application/octet-stream, attachment)]
[bqi2shgn2a99zmwbiqp1kaa7x0zpik-elogind-252.9.drv.gz (application/octet-stream, attachment)]
[Message part 4 (text/plain, inline)]
-- 
Take it easy,
Richard Sent
Making my computer weirder one commit at a time.

Added tag(s) notabug. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 18 Mar 2025 05:47:02 GMT) Full text and rfc822 format available.

Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Tue, 18 Mar 2025 05:47:02 GMT) Full text and rfc822 format available.

Notification sent to Richard Sent <richard <at> freakingpenguin.com>:
bug acknowledged by developer. (Tue, 18 Mar 2025 05:47:03 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Richard Sent <richard <at> freakingpenguin.com>
Cc: GNU Debbugs <control <at> debbugs.gnu.org>, 71183-done <at> debbugs.gnu.org
Subject: Re: bug#71183: elogind tests fail on QEMU riscv64-linux but not
 native with identical derivations
Date: Tue, 18 Mar 2025 14:45:41 +0900
tag 71183 + notabug
quit

Hi Richard,

Richard Sent <richard <at> freakingpenguin.com> writes:

> Hi Guix!
>
> Building elogind fails due to a failing test on a QEMU riscv64 build:
>
> gibraltar :) guix$ guix describe
> Generation 77	May 24 2024 00:15:41	(current)
>   guix 9901416
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: 9901416233867233192b63fde7f616751127b189
> gibraltar :) guix$ guix build elogind --system=riscv64-linux
>
>
> I'll attach the full build log to this message. Here's the brief output:
>
>  85/143 elogind:test / test-mountpoint-util                       FAIL            0.03s   killed by signal 6 SIGABRT
> # snip
> mnt ids of /gnu/store/vaznv17j32jky10bi6942fdfxh7awl67-python-minimal-3.10.7 are 739 (from /proc/self/mountinfo), 0 (from path_get_mnt_id()).
> Assertion 'q = hashmap_get(h, INT_TO_PTR(mnt_id2))' failed at src/test/test-mountpoint-util.c:104, function test_mnt_id(). Aborting.
>
>
> When the build is done natively (thanks for the VisionFive2 image!), it
> succeeds even though the derivation hash is the same.
>
> # QEMU
> gibraltar :( guix$ guix build elogind --no-grafts --derivations --system=riscv64-linux
> /gnu/store/cjbqi2shgn2a99zmwbiqp1kaa7x0zpik-elogind-252.9.drv
> # Native
> root <at> visionfive2 ~# guix build elogind --no-grafts --derivations
> /gnu/store/cjbqi2shgn2a99zmwbiqp1kaa7x0zpik-elogind-252.9.drv
>
> I tried disabling just that one test, but it seemed to cause another
> failure. I haven't investigated beyond that.

That's not special to elogind; there are quite a few instances where the
emulator behaves differently enough to break tests.  It's interesting,
but it's a QEMU bug, not a Guix bug though.  I encourage you to open the
issue with/engage with upstream QEMU if you have an interest in
resolving it (which would be valuable to Guix as well).

-- 
Thanks,
Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 15 Apr 2025 11:24:14 GMT) Full text and rfc822 format available.

This bug report was last modified 66 days ago.

Previous Next


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