Test failures on NixOS unstable (gcc10?)
David Oberhollenzer
david.oberhollenzer at sigma-star.at
Wed Jan 20 05:50:00 EST 2021
Hi,
On 1/19/21 9:49 AM, Rouven Czerwinski wrote:
> mtd-utils within NixOS automatically executes the tests, and those have
> been failing since middle of 2020 [1]. I tried locally and can reproduce
> on current nixpkgs master (latest available packages), I am attaching
> the test-log as instructed by the test output. I think those failures
> are due to NixOS using gcc-10 since then.
>
Unfortunately, I have not yet been able to reproduce this.
The unit tests seem to work fine on my Fedora system with gcc-10.2.1,
so this might be related to some other change at the time?
I remember cmocka being a bit fragile from the time the unit tests where
added. The "--enable-unit-tests" configure option tries to manipulate the
CFLAGS from within the configure script to make it work. Is your build
system perhaps attempting to set the CFLAGS externally at make time?
Regards,
David
More information about the linux-mtd
mailing list