Upstream has fixed the issue in the linked pull request, but libfmt-11 cannot be unmasked until a stable release is ready.
Created attachment 906942 [details] emerge --info and build log
How about restricting the libfmt version in ebuild for now, or backporting the patch?
The upstream patch seems incomplete. I had to patch a ton more files to get compilation to succeed. My hypothesis is that upstream builds with IOSS_DEBUG_OUTPUT defined, which includes the necessary header throughout more of the project. Without that definition (as seems to be the case when building for Gentoo?), a ton more includes need to be added throughout the project. It should probably be cleaned up a bit, but I do have a patch I've applied myself to get vtk to build. I'll upload it in a second.
Created attachment 912725 [details, diff] fix-libfmt-missing-join-include.patch his is my patch for building vtk against libfmt-11.0.2. Compared to upstream's patch, this adds the required fmt ranges.h include to a lot more places (pretty much anywhere that calls the libfmt join() function). With this I'm successfully able to build vtk-9.3.0-r3 against libfmt-11.0.2.
(In reply to Gabriel Marcano from comment #4) > Created attachment 912725 [details, diff] [details, diff] > fix-libfmt-missing-join-include.patch > > his is my patch for building vtk against libfmt-11.0.2. Compared to > upstream's patch, this adds the required fmt ranges.h include to a lot more > places (pretty much anywhere that calls the libfmt join() function). With > this I'm successfully able to build vtk-9.3.0-r3 against libfmt-11.0.2. Worked well here, thanks!
(In reply to Gabriel Marcano from comment #4) > Created attachment 912725 [details, diff] [details, diff] > fix-libfmt-missing-join-include.patch WFM. vtk builds ok with it and freecad 1.0 seems to be happy to. Though I have yet to use the software for anything (other than launching it).
In order to help to narrow source of issue in other sci-libs/vtk-9.3.0-r3 issues (e.g. #945731) it would be helpful if readers who have successfully build sci-libs/vtk-9.3.0-r3 could post the output of emerge -p -v sci-libs/vtk-9.3.0-r3 Thks in advance
# emerge -pv vtk These are the packages that would be merged, in order: Calculating dependencies... done! Dependency resolution took 6.75 s (backtrack: 0/20). [ebuild R ] sci-libs/vtk-9.3.0-r3:0/9.3::gentoo USE="freetype logging python qt6 rendering sdl threads views -all-modules -boost -cuda (-debug) -doc -examples -ffmpeg -gdal -gles2-only -imaging -java -las -mpi -mysql -odbc -opencascade -openmp -openvdb -pdal -postgres (-qt5) -tbb -test -tk -vtkm -web" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11" VIDEO_CARDS="-nvidia" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB HTH
(In reply to Rémi Cardona from comment #8) > HTH Very helpful & time saving too. TYVM
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84af3342f9240ac12918d9c8cd95d788749cefd3 commit 84af3342f9240ac12918d9c8cd95d788749cefd3 Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2024-12-05 12:17:40 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-12-05 18:01:14 +0000 sci-libs/vtk: 9.3.1 support libfmt-11 Closes: https://bugs.gentoo.org/942306 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> sci-libs/vtk/files/vtk-9.3.1-fix-fmt-11.patch | 70 +++++++++++++++++++++++++++ sci-libs/vtk/vtk-9.3.1.ebuild | 1 + 2 files changed, 71 insertions(+)
*** Bug 945942 has been marked as a duplicate of this bug. ***
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=099675b4d87b58545cadcef958c7633a8e7e9762 commit 099675b4d87b58545cadcef958c7633a8e7e9762 Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2024-12-10 12:26:20 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-01-05 20:33:29 +0000 sci-libs/vtk: 9.3.0-r3 backport libfmt-11 patch Closes: https://bugs.gentoo.org/945942 Bug: https://bugs.gentoo.org/942306 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> sci-libs/vtk/vtk-9.3.0-r3.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)