https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-crypt/libscrypt-1.22-r2 fails tests. Discovered on: amd64 (internal ref: gcc14_tinderbox) System: GCC-14-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-14) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Created attachment 892469 [details] build.log build log and emerge --info
Error(s) that match a know pattern: TEST THREE: FAILED to match reference on hash TEST ONE and a half: Successfully failed on error: Invalid argument
This is an open issue upstream reported in 2023 by another distro https://github.com/technion/libscrypt/issues/60 It fails when file crypto_scrypt-nosse.c is compiled with clang 15 -O2 or gcc 13.2.1 -O3. With optimization to -Os/-O2, or with clang 14 or an earlier gcc and keeping -O3, it passes. I verified that it still fails the same with gcc 14.2.1 -O3 and passes with -O2.
(In reply to gen2dev from comment #3) > This is an open issue upstream reported in 2023 by another distro > https://github.com/technion/libscrypt/issues/60 > > It fails when file crypto_scrypt-nosse.c is compiled with clang 15 -O2 or > gcc 13.2.1 -O3. With optimization to -Os/-O2, or with clang 14 or an earlier > gcc and keeping -O3, it passes. > > I verified that it still fails the same with gcc 14.2.1 -O3 and passes with > -O2. Rereading the upstream, I got the clang optimization backward. They say it passes with clang -O2 and fails with -Os. Also passes with gcc 10.5.0 but fails with gcc 12.3.1.
I'm reducing it.
Reported to GCC at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117800.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5b51f75ae23b06b09c460871f738a779bbe3177 commit f5b51f75ae23b06b09c460871f738a779bbe3177 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-11-27 04:06:14 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-27 04:06:14 +0000 app-crypt/libscrypt: fix aliasing violation Closes: https://bugs.gentoo.org/931556 Signed-off-by: Sam James <sam@gentoo.org> .../libscrypt/files/libscrypt-1.22-aliasing.patch | 309 +++++++++++++++++++++ app-crypt/libscrypt/libscrypt-1.22-r3.ebuild | 37 +++ 2 files changed, 346 insertions(+)