Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835457 - media-libs/harfbuzz[abi_x86_32] fails test phase with Clang -O1/-O2/-O3
Summary: media-libs/harfbuzz[abi_x86_32] fails test phase with Clang -O1/-O2/-O3
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL: https://github.com/harfbuzz/harfbuzz/...
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2022-03-17 02:10 UTC by unhappy-ending
Modified: 2023-02-21 12:43 UTC (History)
4 users (show)

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


Attachments
build.log test failure (harfbuzz-fail.log,410.67 KB, text/plain)
2022-03-17 02:11 UTC, unhappy-ending
Details
build.log test passing (harfbuzz-pass.log,442.98 KB, text/plain)
2022-03-17 02:11 UTC, unhappy-ending
Details
build.log 64 bit optimized test passing (harfbuzz-pass-64bit.log,225.41 KB, text/x-log)
2022-03-17 03:18 UTC, unhappy-ending
Details
clang-tests.patch (clang-tests.patch,667 bytes, patch)
2022-07-01 09:55 UTC, unhappy-ending
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.