| ^ enchant.c: In function enchant_session_new: enchant.c:672:44: warning: cast between incompatible function types from void (*)(void *) to void (*)(void *, void *) [-Wcast-function-type] 672 | g_slist_foreach (user_config_dirs, (GFunc)g_free, NULL); | ^ enchant.c: In function enchant_dict_suggest: enchant.c:991:87: error: passing argument 4 of enchant_pwl_suggest from incompatible pointer type [-Wincompatible-pointer-types] 991 | l_suggs = enchant_pwl_suggest(session->personal, word, len, dict_suggs, &n_pwl_suggs); | ^~~~~~~~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_desktop_systemd-20240520-094755 The attached etc.portage.tar.xz has all details. ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-14 * clang/llvm (if any): clang version 18.1.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/18/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg /usr/lib/llvm/18 18.1.6 Python 3.11.9 Available Rust versions: [1] rust-bin-1.77.1 * The following VMs are available for generation-2: *) Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21] Available Java Virtual Machines: [1] openjdk-bin-21 system-vm The Glorious Glasgow Haskell Compilation System, version 9.2.8 php cli (if any): go version go1.22.3 linux/amd64 HEAD of ::gentoo commit e6d3e6b6b2fc6120d523ee687df634b3b3757220 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Tue May 21 22:18:45 2024 +0000 2024-05-21 22:18:45 UTC emerge -qpvO app-text/enchant
Created attachment 893725 [details] emerge-info.txt
Created attachment 893726 [details] app-text:enchant-1.6.1-r2:20240522-011058.log
Created attachment 893727 [details] emerge-history.txt
Created attachment 893728 [details] environment
Created attachment 893729 [details] etc.clang.tar.xz
Created attachment 893730 [details] etc.portage.tar.xz
Created attachment 893731 [details] logs.tar.xz
Created attachment 893732 [details] qlist-info.txt
Created attachment 893733 [details] temp.tar.xz
Same problem, tried with clang 18 and 19, gcc 13 and 14.
Errata, compiles with GCC 13, but not with 14.
For anyone hitting this, why do you have enchant:0? What is pulling it in for you? I don't see any deps on enchant:0 at a glance. I see some enchant:* deps we should maybe fix to be :2 to help get rid of :0.
(In reply to Sam James from comment #12) > For anyone hitting this, why do you have enchant:0? What is pulling it in > for you? > > I don't see any deps on enchant:0 at a glance. I see some enchant:* deps we > should maybe fix to be :2 to help get rid of :0. i.e. Please share output of emerge -pvc app-text/enchant:0.
(In reply to Sam James from comment #13) > (In reply to Sam James from comment #12) > > For anyone hitting this, why do you have enchant:0? What is pulling it in > > for you? > > > > I don't see any deps on enchant:0 at a glance. I see some enchant:* deps we > > should maybe fix to be :2 to help get rid of :0. > > i.e. Please share output of emerge -pvc app-text/enchant:0. # emerge -pvc app-text/enchant:0 Calculating dependencies... done! app-text/enchant-1.6.1-r2 pulled in by: app-text/gtkspell-2.0.16-r2 requires >=app-text/enchant-1.1.6:0
app-text/enchant-1.6.1-r2 pulled in by: app-text/gtkspell-2.0.16-r2 requires >=app-text/enchant-1.1.6:0 app-text/gtkspell-2.0.16-r2 pulled in by: net-im/pidgin-2.14.13 requires >=app-text/gtkspell-2.0.2:2
OK, apparently my grepping was poor ;) Thanks, let me look. If Pidgin is really stuck on older gtkspell (likely until it ports to gtk3/4 finally), then I'll just fix enchant.
Interestingly, gtkspell-3 does support both gtk2 and gtk3.
Fedora just did https://src.fedoraproject.org/rpms/enchant/c/c4f1921ba3df8453d9fd4c8cc1c11b3adc794e10?branch=rawhide and maybe that's good enough given nothing is really using this except for Pidgin and Pidgin got https://discourse.imfreedom.org/t/pidgin-3-0-0-experimental-1-announcement/216 earlier.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cc24169b9ded53a4552542036291f7df5a2571c commit 0cc24169b9ded53a4552542036291f7df5a2571c Author: Sam James <sam@gentoo.org> AuthorDate: 2024-11-22 14:01:27 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-22 14:01:27 +0000 app-text/enchant: build with -std=gnu89 for :0 Done with regret but :0 is absolutely ancient and I don't think it's worth spending time on this given only pidgin->gtkspell-2 is left depending on this. Do the same as Fedora and built w/ -std=gnu89. Closes: https://bugs.gentoo.org/932436 Signed-off-by: Sam James <sam@gentoo.org> app-text/enchant/enchant-1.6.1-r2.ebuild | 5 +++++ 1 file changed, 5 insertions(+)