Summary: | dev-libs/libgee-0.20.6 fails to compile: hashmap.c:4089:23: error: incompatible function pointer types assigning to gboolean ()(GeeMapIterator ) (aka int ()(struct _GeeMapIterator )) from gboolean (GeeHashMapNodeIterator ) (aka int (s | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | StormByte, vimproved |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/gentoo/gentoo/pull/32211 https://github.com/gentoo/gentoo/pull/33036 https://bugs.gentoo.org/show_bug.cgi?id=915015 https://bugs.gentoo.org/show_bug.cgi?id=920315 |
||
Whiteboard: | fixed in 0.20.6-r1 | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 870412 | ||
Attachments: |
build.log
Build log and info libgee-0.20.6-clang-17.patch |
Description
Agostino Sarubbo
2023-02-14 12:38:32 UTC
Created attachment 851098 [details]
build.log
build log and emerge --info
Created attachment 865462 [details]
Build log and info
Replicated on x86_64 system.
Created attachment 871870 [details, diff]
libgee-0.20.6-clang-17.patch
Hi,
this patch ought to allow building libgee 0.20.6 with clang-17.
(In reply to ppw0 from comment #3) > Created attachment 871870 [details, diff] [details, diff] > libgee-0.20.6-clang-17.patch > > Hi, > > this patch ought to allow building libgee 0.20.6 with clang-17. I think you're patching generated C sources from Vala there. See https://github.com/gentoo/gentoo/pull/33036 instead. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2fa199d292ae87ce73b055be600a9c432c1f764 commit b2fa199d292ae87ce73b055be600a9c432c1f764 Author: Violet Purcell <vimproved@inventati.org> AuthorDate: 2023-09-24 16:15:03 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-10-01 07:48:45 +0000 dev-libs/libgee: Call vala_setup in pkg_setup libgee is written in vala, but the generated C sources are included in the release tarballs. However, vala_setup also includes the workaround for clang 16+, so call it here anyway. Closes: https://bugs.gentoo.org/894376 Signed-off-by: Violet Purcell <vimproved@inventati.org> Closes: https://github.com/gentoo/gentoo/pull/33036 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/libgee/libgee-0.20.6.ebuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd08499a62bbfd5db1835b970f0096c397cf8c7d commit cd08499a62bbfd5db1835b970f0096c397cf8c7d Author: Sam James <sam@gentoo.org> AuthorDate: 2023-10-01 12:02:05 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-10-01 12:02:37 +0000 Revert "dev-libs/libgee: Call vala_setup in pkg_setup" This reverts commit b2fa199d292ae87ce73b055be600a9c432c1f764. Bug: https://bugs.gentoo.org/894376 Bug: https://bugs.gentoo.org/915015 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/libgee/libgee-0.20.6.ebuild | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8df0d79319765acb4a7b2967340bf0e3a2ad843e commit 8df0d79319765acb4a7b2967340bf0e3a2ad843e Author: Sam James <sam@gentoo.org> AuthorDate: 2023-10-01 12:02:03 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-10-01 12:02:34 +0000 Revert "dev-libs/libgee: move vala_setup to src_configure" This reverts commit e5d8fda9c11d7af8452ac8c9084a6939458008e3. Bug: https://bugs.gentoo.org/894376 Bug: https://bugs.gentoo.org/915015 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/libgee/libgee-0.20.6.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Sorry, I didn't think about it properly. If we're doing that, we need a way to force regeneration of Vala files and I don't know enough about Vala for that yet. (Otherwise we're adding a pointless BDEPEND..) I can confirm this bug on a LLVM16 profile (no MUSL) and the patch applies and compiles successfully Happens on GCC 14 as well The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=406b2f69bdff4f078f6abba3d4e1959576de0444 commit 406b2f69bdff4f078f6abba3d4e1959576de0444 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-12-13 00:55:26 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-12-13 00:57:59 +0000 dev-libs/libgee: update EAPI 7 -> 8, backport Vala (-> C99) fixes In this case, it appears the Vala itself was wrong, which meant the generated C was wrong, rather than the Vala being right, but valac generating junk. Bug: https://bugs.gentoo.org/915015 Closes: https://bugs.gentoo.org/894376 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/libgee/files/libgee-0.20.6-c99-2.patch | 55 +++++++++++++++++++++++++ dev-libs/libgee/files/libgee-0.20.6-c99.patch | 43 +++++++++++++++++++ dev-libs/libgee/libgee-0.20.6-r1.ebuild | 40 ++++++++++++++++++ 3 files changed, 138 insertions(+) |