Summary: | dev-perl/X11-XCB-0.190.0 fails to compile (USR-MERGE-SYSTEM): XCB.xs:183:36: error: __PACKAGE__ undeclared (first use in this function) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Perl team <perl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | plevine457, sam |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 870412 | ||
Attachments: |
build.log
X11-XCB-0.190.0-clang16-debug.patch |
Description
Agostino Sarubbo
2023-01-08 06:05:36 UTC
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(+) |