Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946544 - net-libs/mbedtls-2.28.9 fails tests with sys-devel/gcc:15 (union initialisation change)
Summary: net-libs/mbedtls-2.28.9 fails tests with sys-devel/gcc:15 (union initialisati...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Azamat H. Hackimov
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-12-16 07:51 UTC by Agostino Sarubbo
Modified: 2024-12-23 05:07 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,29.07 KB, application/x-xz)
2024-12-16 07:51 UTC, Agostino Sarubbo
Details
1-LastTest.log.xz (1-LastTest.log.xz,74.22 KB, application/x-xz)
2024-12-16 07:51 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 2024-12-16 07:51:26 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-libs/mbedtls-2.28.9 fails tests.
Discovered on: amd64 (internal ref: gcc15_tinderbox)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-12-16 07:51:27 UTC
Created attachment 914156 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2024-12-16 07:51:28 UTC
Created attachment 914157 [details]
1-LastTest.log.xz

1-LastTest.log (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 3 Agostino Sarubbo gentoo-dev 2024-12-16 07:51:29 UTC
Error(s) that match a know pattern:


	 81 - psa_crypto-suite (Failed)
	 93 - psa_crypto_op_fail.generated-suite (Failed)
	101 - psa_crypto_storage_format.v0-suite (Failed)
The following tests FAILED:
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-16 15:03:06 UTC
For now, we should pass -fzero-init-padding-bits=unions (with a test-flags-... check) until the upstream bug is fixed.
Comment 5 Larry the Git Cow gentoo-dev 2024-12-23 05:07:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40ea68177623b1b912f6c6d9c97fb7e8232b6e6c

commit 40ea68177623b1b912f6c6d9c97fb7e8232b6e6c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-23 05:03:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-23 05:04:08 +0000

    net-libs/mbedtls: fix tests with GCC 15
    
    GCC 15 makes a change to union initialisation and exposes a bug in
    mbedtls. Build with the new -fzero-init-padding-bits=unions flag if
    supported to fix the testsuite until the upstream bug is fixed.
    
    Bug: https://github.com/Mbed-TLS/mbedtls/issues/9814
    Closes: https://bugs.gentoo.org/946544
    Signed-off-by: Sam James <sam@gentoo.org>

 .../mbedtls/{mbedtls-2.28.8.ebuild => mbedtls-2.28.8-r1.ebuild}  | 9 ++++++++-
 .../mbedtls/{mbedtls-2.28.9.ebuild => mbedtls-2.28.9-r1.ebuild}  | 9 ++++++++-
 .../mbedtls/{mbedtls-3.6.2.ebuild => mbedtls-3.6.2-r1.ebuild}    | 9 ++++++++-
 3 files changed, 24 insertions(+), 3 deletions(-)