Issue: dev-perl/X11-XCB-0.190.0 fails to compile (USR-MERGE-SYSTEM).
Discovered on: amd64 (internal ref: usr-merge_tinderbox)
(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 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
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]
PR accepted upstream.
Great work, thank you.
The bug has been closed via the following commit(s):
Author: Sam James <firstname.lastname@example.org>
AuthorDate: 2023-01-17 01:54:40 +0000
Commit: Sam James <email@example.com>
CommitDate: 2023-01-17 01:54:40 +0000
dev-perl/X11-XCB: backport build fixes
Thanks-to: Peter Levine <firstname.lastname@example.org>
Signed-off-by: Sam James <email@example.com>
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(+)