c++ -I/usr/local/include -O2 -pipe -march=haswell -fstack-protector-strong -fno-strict-aliasing -pedantic -std=c++2a -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address -frelaxed-template-template-args -Wno-ambiguous-reversed-operator -MD -MP -MF .commands.opt.d -c -o .commands.opt.o commands.cc command_manager.cc:97:24: error: no matching function for call to 'gather' | gather<HashSet>(); ^~~~~~~~~~~~~~~ ./ranges.hh:633:6: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'Container' auto gather() ^ ./ranges.hh:642:6: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'Container' auto gather() ^ 1 error generated. gmake[2]: *** [Makefile:103: .command_manager.opt.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... commands.cc:2154:76: error: no matching function for call to 'gather' CommandManager::instance().execute_single_command(parser | gather<Vector>(), context, shell_context); ^~~~~~~~~~~~~~ ./ranges.hh:633:6: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'Container' auto gather() ^ ./ranges.hh:642:6: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'Container' auto gather() ^ 1 error generated. gmake[2]: *** [Makefile:103: .commands.opt.o] Error 1 gmake[2]: Leaving directory '/tmp/stage/usr/ports/editors/kakoune/work/kakoune-2023.08.05/src' ===> Compilation failed unexpectedly.
FreeBSD 13.2-STABLE amd64, system clang++ 16.0.6.
Created attachment 243891 [details] Fix for 13.2-STABLE (clang16) The fix incorporates the patch from: https://github.com/krobelus/kakoune/commit/344d31f42b8ced12626d4f87a22ffa5a671668fd Could you please test it ? Thanks!
(In reply to Ashish SHUKLA from comment #2) Yes, it helps. Thanks.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5d0a2e9fe2049332f3a0d84e751f00db9be5c1ce commit 5d0a2e9fe2049332f3a0d84e751f00db9be5c1ce Author: Ashish SHUKLA <ashish@FreeBSD.org> AuthorDate: 2023-08-06 13:15:49 +0000 Commit: Ashish SHUKLA <ashish@FreeBSD.org> CommitDate: 2023-08-06 19:12:06 +0000 editors/kakoune: Fix building on 13.2-STABLE PR: 272968 Reported by: Oleh Hushchenkov <o dot hushchenkov at gmail dot com> editors/kakoune/Makefile | 10 +++++++++- editors/kakoune/distinfo | 4 +++- 2 files changed, 12 insertions(+), 2 deletions(-)
Thanks for testing. Committed!