Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908539 - sys-apps/flashrom-1.3.0-r1 fails tests (MUSL-SYSTEM): 1 cmocka test flashrom FAIL 0.04s (exit status 255 or signal 127 SIGinvalid)
Summary: sys-apps/flashrom-1.3.0-r1 fails tests (MUSL-SYSTEM): 1 cmocka test flashrom ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 906737
  Show dependency tree
 
Reported: 2023-06-15 13:06 UTC by Agostino Sarubbo
Modified: 2023-12-20 03:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,398.17 KB, text/plain)
2023-06-15 13:06 UTC, Agostino Sarubbo
Details
1-testlog.txt (1-testlog.txt,10.04 KB, text/plain)
2023-06-15 13:06 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-06-15 13:06:17 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-apps/flashrom-1.3.0-r1 fails tests (MUSL-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
Comment 1 Agostino Sarubbo gentoo-dev 2023-06-15 13:06:19 UTC
Created attachment 863862 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-06-15 13:06:20 UTC
Created attachment 863863 [details]
1-testlog.txt

1-testlog.txt
Comment 3 Agostino Sarubbo gentoo-dev 2023-06-15 13:06:21 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


Run-time dependency libjaylink found: NO (tried pkgconfig and cmake)
[   LINE   ] --- ../flashrom-v1.3.0/tests/lifecycle.c:46: error: Failure!
Comment 4 Fabian Groffen gentoo-dev 2023-06-16 19:56:22 UTC
The failing test is:

[ RUN      ] linux_mtd_probe_lifecycle_test_success
Testing flashrom_programmer_init for programmer=linux_mtd ...
__wrap_stat is called
__wrap_fopen is called
__wrap_fread is called
__wrap_fclose is called
__wrap_stat is called
__wrap_fopen is called
__wrap_fread is called
__wrap_fclose is called
[  FAILED  ] linux_mtd_probe_lifecycle_test_success

It fails because it tries to open /sys/class/mtd, which I also don't have on my system (Linux 6.1.27-gentoo-r1).  I don't see it on glibc either (as well as musl).

So I believe this is actually a "generic" (non-musl) bug, where the test should be disabled, for it can only work on hosts that have mtd (storage) enabled in the kernel.
Comment 5 Marek Szuba archtester gentoo-dev 2023-10-25 22:35:29 UTC
(In reply to Fabian Groffen from comment #4)

> So I believe this is actually a "generic" (non-musl) bug, where the test
> should be disabled, for it can only work on hosts that have mtd (storage)
> enabled in the kernel.

That is not quite correct - while it is true that the programmer linux_mtd tries to open files in /sys/class/mtd, the test suite mocks them.

Which would imply that it is not flashrom but dev-util/cmocka that MUSL breaks.
Comment 6 matoro archtester 2023-12-20 03:20:33 UTC
I see a very similar error even on glibc, just the right-hand side is 0x2 instead of 0x1.

stderr:
[  PASSED  ] 7 test(s).
[  PASSED  ] 1 test(s).
[  PASSED  ] 10 test(s).
[  ERROR   ] --- 0 != 0x2
[   LINE   ] --- ../flashrom-v1.3.0/tests/lifecycle.c:25: error: Failure!