Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920475 - media-gfx/prusaslicer-2.6.1 fails with ‘prior’ is not a member of ‘boost’ in sci-mathematics/cgal-5.5.2
Summary: media-gfx/prusaslicer-2.6.1 fails with ‘prior’ is not a member of ‘boost’ in ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 921180
Blocks:
  Show dependency tree
 
Reported: 2023-12-21 13:59 UTC by Attila Tóth
Modified: 2024-01-02 07:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2023-12-21 13:59:46 UTC
FAILED: src/libslic3r/CMakeFiles/libslic3r_cgal.dir/MeshBoolean.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DCGAL_USE_GMPXX=1 -DSLIC3R_GUI -DUNICODE -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/var/tmp/portage/media-gfx/prusaslicer-2.6.1/work/PrusaSlicer-version_2.6.1/src -I/var/tmp/portage/media-gfx/prusaslicer-2.6.1/work/PrusaSlicer-version_2.6.1_build/src/platform -I/var/tmp/portage/media-gfx/prusaslicer-2.6.1/work/PrusaSlicer-version_2.6.1_build/src/libslic3r -isystem /usr/include/eigen3 -isystem /var/tmp/portage/media-gfx/prusaslicer-2.6.1/work/PrusaSlicer-version_2.6.1/src/libigl  -DNDEBUG -O2 -march=native -pipe -fext-numeric-literals -Wall -Wno-reorder -std=gnu++17 -fPIC -fsigned-char -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -frounding-math -MD -MT src/libslic3r/CMakeFiles/libslic3r_cgal.dir/MeshBoolean.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r_cgal.dir/MeshBoolean.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r_cgal.dir/MeshBoolean.cpp.o -c /var/tmp/portage/media-gfx/prusaslicer-2.6.1/work/PrusaSlicer-version_2.6.1/src/libslic3r/MeshBoolean.cpp
In file included from /usr/include/CGAL/Intersections_3/Plane_3_Triangle_3.h:25,
                 from /usr/include/CGAL/intersection_3.h:59,
                 from /usr/include/CGAL/Kernel/function_objects.h:29,
                 from /usr/include/CGAL/Cartesian/function_objects.h:20,
                 from /usr/include/CGAL/Cartesian/Cartesian_base.h:62,
                 from /usr/include/CGAL/Simple_cartesian.h:20,
                 from /usr/include/CGAL/Exact_predicates_exact_constructions_kernel.h:20,
                 from /var/tmp/portage/media-gfx/prusaslicer-2.6.1/work/PrusaSlicer-version_2.6.1/src/libigl/igl/copyleft/cgal/assign.h:12,
                 from /var/tmp/portage/media-gfx/prusaslicer-2.6.1/work/PrusaSlicer-version_2.6.1/src/libigl/igl/copyleft/cgal/mesh_boolean.cpp:11,
                 from /var/tmp/portage/media-gfx/prusaslicer-2.6.1/work/PrusaSlicer-version_2.6.1/src/libigl/igl/copyleft/cgal/mesh_boolean.h:226,
                 from /var/tmp/portage/media-gfx/prusaslicer-2.6.1/work/PrusaSlicer-version_2.6.1/src/libslic3r/MeshBoolean.cpp:12:
/usr/include/CGAL/Intersections_3/internal/Plane_3_Triangle_3_intersection.h: In function ‘typename CGAL::Intersection_traits<K, typename K::Plane_3, typename K::Triangle_3>::result_type CGAL::Intersections::internal::intersection(const typename K::Plane_3&, const typename K::Triangle_3&, const K&)’:
/usr/include/CGAL/Intersections_3/internal/Plane_3_Triangle_3_intersection.h:144:65: error: ‘prior’ is not a member of ‘boost’; did you mean ‘boost::mpl::prior’?
  144 |            k.construct_segment_3_object()(*pts.begin(), *boost::prior(pts.end())));
      |                                                                 ^~~~~
In file included from /usr/include/boost/mpl/next.hpp:17,
                 from /usr/include/boost/mpl/bind.hpp:25,
                 from /usr/include/boost/mpl/lambda.hpp:18,
                 from /usr/include/boost/mpl/apply.hpp:25,
                 from /usr/include/boost/iterator/iterator_facade.hpp:36,
                 from /usr/include/boost/iterator/iterator_adaptor.hpp:15,
                 from /usr/include/boost/iterator/transform_iterator.hpp:13,
                 from /usr/include/CGAL/boost/iterator/transform_iterator.hpp:27,
                 from /usr/include/CGAL/Coercion_traits.h:27,
                 from /usr/include/CGAL/number_type_basic.h:35,
                 from /usr/include/CGAL/basic.h:28,
                 from /usr/include/CGAL/Cartesian/Cartesian_base.h:20:
/usr/include/boost/mpl/next_prior.hpp:38:8: note: ‘boost::mpl::prior’ declared here
   38 | struct prior
      |        ^~~~~
ninja: build stopped: subcommand failed.


Reproducible: Always




It is actually a problem of sci-mathematics/cgal-5.5.2.
Upon upgrading cgal to 5.6, prusaslicer can be compiled.
Source of cgal ebuild that works: hep-forge overlay
https://data.gpo.zugaina.org/hep-forge/sci-mathematics/cgal/

In the mean time waiting for prusaslicer version bump to 2.7.1:
https://bugs.gentoo.org/918596
https://bitbucket.org/szymonsz/gen2-overlay/src/master/media-gfx/prusaslicer/
Comment 1 Greg Kubaryk 2023-12-21 21:42:07 UTC
please comment with the output from 'emerge --info' and attach a build.log, then reopen by changing the status back to UNCONFIRMED