mtd-utils: Testsuites are failing if LTO is enabled

Sudip Mukherjee sudipm.mukherjee at gmail.com
Wed Jul 3 08:26:15 PDT 2024


Hi All,

The "mtdlib_test" from the testsuite is failing if LTO and -O2
optimizations are enabled.

PASS: ubilib_test
FAIL: mtdlib_test
============================================================================
Testsuite summary for mtd-utils 2.2.0
============================================================================
# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to linux-mtd at lists.infradead.org
============================================================================

I am attaching the test-suite.log with this mail.

Steps to reproduce:

export CFLAGS="-O2 -flto=auto"
./autogen.sh
./configure --enable-unit-tests
make
make check V=1

But if only "-O2" or only "-flto=auto" is used then the failure is not
seen. The failure is seen only if both "-O2" and "-flto=auto" are used
together.

I will be happy to test any patch or provide any more logs if needed.


-- 
Regards
Sudip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-suite.log
Type: text/x-log
Size: 1775 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20240703/d9acdeef/attachment.bin>


More information about the linux-mtd mailing list