https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-perl/X11-XCB-0.190.0 fails to compile (USR-MERGE-SYSTEM). Discovered on: amd64 (internal ref: usr-merge_tinderbox) NOTE: (USR-MERGE-SYSTEM) in the summary means that the bug was found on a machine that runs default/linux/amd64/17.1/systemd/merged-usr profile but this bug MAY or MAY NOT BE related to the new profile.
Created attachment 847876 [details] build.log build log and emerge --info
The problem doesn't appear to be related to clang-16. build.log shows it was being built with gcc and I can't reproduce with clang-15+stricter settings.
(In reply to Peter Levine from comment #2) > The problem doesn't appear to be related to clang-16. build.log shows it > was being built with gcc and I can't reproduce with clang-15+stricter > settings. Disregard. Although the config shows gcc is used, there is likely a clang-16 bug since I'm getting "warning: incompatible pointer types passing 'xcb_client_message_data_t *'" and for some reason clang is ignoring "/etc/clang/gentoo-stricter.cfg".
OK, I misread. The warning isn't related to function pointers and is innocuous. The issue isn't related to clang. It is results from building dev-lang/perl with the "debug" USE flag. After rebuilding dependent perl modules against it, building dev-perl/X11-XCB fails.
Upstream PR submitted: https://github.com/stapelberg/X11-XCB/pull/3 Two issues in one. The "__PACKAGE__ undeclared" issue is not clang-specific. There's a "call to undeclared function" issue that is clang-16 specific.
Created attachment 848699 [details, diff] X11-XCB-0.190.0-clang16-debug.patch PR accepted upstream.
Great work, thank you.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b75d588596d13dbd739cc0cf1100d3cc28afd9b commit 7b75d588596d13dbd739cc0cf1100d3cc28afd9b Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-17 01:54:40 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-17 01:54:40 +0000 dev-perl/X11-XCB: backport build fixes Closes: https://bugs.gentoo.org/890178 Thanks-to: Peter Levine <plevine457@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> dev-perl/X11-XCB/X11-XCB-0.190.0-r1.ebuild | 63 ++++++++++++++++++++++ .../files/X11-XCB-0.190.0-build-fixes.patch | 37 +++++++++++++ 2 files changed, 100 insertions(+)