Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 835457

Summary: media-libs/harfbuzz[abi_x86_32] fails test phase with Clang -O1/-O2/-O3
Product: Gentoo Linux Reporter: unhappy-ending <unhappy-ending>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: CONFIRMED ---    
Severity: normal CC: gnome, office, sam, srcshelton
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/harfbuzz/harfbuzz/issues/3483
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 408963    
Attachments: build.log test failure
build.log test passing
build.log 64 bit optimized test passing
clang-tests.patch

Description unhappy-ending 2022-03-17 02:10:03 UTC
When compiling media-libs/harfbuzz with Clang plus any optimization level greater than 0, the test phase will fail. When set to -O0, test phase passes. No such problems with GCC.
Comment 1 unhappy-ending 2022-03-17 02:11:04 UTC
Created attachment 767202 [details]
build.log test failure
Comment 2 unhappy-ending 2022-03-17 02:11:27 UTC
Created attachment 767203 [details]
build.log test passing
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-17 02:26:09 UTC
Thanks!

Could you please report the issue upstream & link it here?

Also, include /etc/portage/package.tmp/portage/media-libs/harfbuzz-4.0.1/work/harfbuzz-4.0.1-abi_x86_64.amd64/meson-logs/testlog.txt.
Comment 4 unhappy-ending 2022-03-17 03:18:16 UTC
While looking for the test.log in abi_x86_64 I noticed it didn't exist and realized that's because the test phase failed before it got to the 64 bit tests. Those pass fine, just tested, adding a new build log.
Comment 5 unhappy-ending 2022-03-17 03:18:53 UTC
Created attachment 767204 [details]
build.log 64 bit optimized test passing
Comment 6 unhappy-ending 2022-03-17 03:26:08 UTC
Upstream: https://github.com/harfbuzz/harfbuzz/issues/3483
Comment 7 Matt Turner gentoo-dev 2022-03-17 04:40:02 UTC
For clarity: I think the report is that tests fail when harfbuzz is compiled for 32-bit x86.
Comment 8 unhappy-ending 2022-06-21 08:05:36 UTC
FWIW this is a Clang + LLVM toolchain built system. 

I've been doing more testing on this. It seems to do with dev-libs/glib, will report more when I can whittle it down to what's causing the problem.
Comment 10 unhappy-ending 2022-07-01 09:55:48 UTC
Created attachment 789155 [details, diff]
clang-tests.patch

Including the patch if needed until it merges downstream.