Summary: | media-gfx/superslicer-2.5.59.2-r2 fails to compile: MeshBoolean.cpp:150:5: error: cannot bind non-const lvalue reference of type CGAL::SM_Vertex_index& to an rvalue of type boost::iterators::detail::iterator_facade_base<CGAL::Surface_mesh<CGAL::Point_3<C | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | 3D Printing Team <3dprint> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | asturm, brutus_dansereau, fluffysheap, frechter, gentoo-bugzilla, gentoo.2019, r.schedel |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
Patch to fix constness in MeshBoolean.cpp Still fails later with meshboolean patch applied superslicer-2.5.59.8-boost-replace-load-string-file.patch |
Description
Agostino Sarubbo
2024-02-08 13:22:49 UTC
Created attachment 884565 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: -- Could NOT find CURL (missing: CURL_DIR) FAILED: src/libslic3r/CMakeFiles/libslic3r_cgal.dir/MeshBoolean.cpp.o /var/tmp/portage/media-gfx/superslicer-2.5.59.2-r2/work/SuperSlicer-2.5.59.2/src/libslic3r/MeshBoolean.cpp:150:5: error: cannot bind non-const lvalue reference of type 'CGAL::SM_Vertex_index&' to an rvalue of type 'boost::iterators::detail::iterator_facade_base<CGAL::Surface_mesh<CGAL::Point_3<CGAL::Epick> >::Index_iterator<CGAL::SM_Vertex_index>, CGAL::SM_Vertex_index, std::random_access_iterator_tag, CGAL::SM_Vertex_index, long int, false, false>::reference' {aka 'CGAL::SM_Vertex_index'} IMHO happened after marking sci-mathematics/cgal-5.6 stable recently. After masking (i.e. using cgal-5.5.2), builds again. Created attachment 884767 [details, diff]
Patch to fix constness in MeshBoolean.cpp
Own local constness fix patch under /etc/portage/patches/media-gfx/superslicer-2.5.59.2-r2/ allows to build again with latest CGAL 5.6.
List of patches increases, more so when trying to build newer versions.
Maybe latest 2.5.59.7 release comment, indicating more time towards development, will improve situation?
Created attachment 885172 [details]
Still fails later with meshboolean patch applied
MeshBoolean patch fixes an error but it still fails for me later on.
/var/tmp/portage/media-gfx/superslicer-2.5.59.2-r2/work/SuperSlicer-2.5.59.2/src/slic3r/GUI/ScriptExecutor.cpp:13:10: fatal error: boost/filesystem/string_file.hpp: No such file or directory
> MeshBoolean patch fixes an error but it still fails for me later on. > > /var/tmp/portage/media-gfx/superslicer-2.5.59.2-r2/work/SuperSlicer-2.5.59.2/ > src/slic3r/GUI/ScriptExecutor.cpp:13:10: fatal error: > boost/filesystem/string_file.hpp: No such file or directory different topic, wrt newer Boost 1.84.0 stable, dropping deprecated string_file -> bug 918510 Created attachment 886706 [details, diff] superslicer-2.5.59.8-boost-replace-load-string-file.patch (In reply to Sylvain from comment #5) > Created attachment 885172 [details] > Still fails later with meshboolean patch applied > > > MeshBoolean patch fixes an error but it still fails for me later on. > > /var/tmp/portage/media-gfx/superslicer-2.5.59.2-r2/work/SuperSlicer-2.5.59.2/ > src/slic3r/GUI/ScriptExecutor.cpp:13:10: fatal error: > boost/filesystem/string_file.hpp: No such file or directory I fixed the patch (see attachment) to address this. I can confirm this is still an issue, both on x86 and aarch64 - current ebuild (2.5.59.2-r2) fails to build with the same error when compiling MehsBoolean. The current upstream version is 2.5.59.8, perhaps the newest version has dealt with this issue. With the MeshBoolean and load-string patches, I'm able to build 2.5.59.2-r2. Best option is to follow snova at https://forums.gentoo.org/viewtopic-p-8818654.html and install the upstream 2.5.59.8 version entirely. He gives a very good explanation at the end of his thread. |