Subject: CGAL users discussion list
List archive
- From: Filippo <>
- To:
- Subject: [cgal-discuss] placeholder: CGAL 5.2 and Boost 1.75 with gcc
- Date: Thu, 14 Jan 2021 17:55:32 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:mGdcZh/eFcZeVv9uRHKM819IXTAuvvDOBiVQ1KB30+4cTK2v8tzYMVDF4r011RmVBNSds6oP0rWe8/i5HzBZvtDZ6DFKWacPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3wOgVvO+v6BJPZgdip2OCu4Z3TZBhDiCagbb9oIxi6sAHcutMKjYd+Jao91xnEqWZMd+hK2G9kP12ekwv+68uq4JJv7yFcsO89+sBdVqn3Y742RqFCAjQ8NGA16szrtR3dQgaK+3ARTGYYnAdWDgbc9B31UYv/vSX8tupmxSmVJtb2QqwuWTSj9KhkVhnlgzoaOjEj8WHXjstwjL9HoB+kuhdyzZLYbJ2TOfFjeK7WYNEUSndbXstJSSJPAp6yYYgBAeUPMulXs5LwqEESoRakHwSgGO3ixztOi3Tr3aM6yeMhEQTe0QIgHtIOtHXUrM3tNKcVTOu4y6rIzTHfb/NO2jfw64zFfwsuofGJUrN8a9beyU4qFw7ciFibtIPqMS+P2OsXr2ib8/RvVfipi2M/qAx/ojaiy8gxh4TVmI8Yy1HJ+TtnzIorIdC2Rkx2b96mHZZQqSyXNoR7Tt88T2x1pCs31LkLtIOmcSUIxpkq2hjSYOGEfYiQ+h/vSvudLSliiH57Zr6yhQy+/VWgx+HmS8W5005GojdLn9TPrHwByhje58idRvdj40us1yyD2x7Q5+xCPEs6j7DUK4Q7zb41jpcTsVrMHivxmEjuia+WcVgk+vSy5+ToZ7XnqYWQN4lqhQHiKqgum8q/DvokMgUWQWSX5Pqw2Kf98UHnQrhGlOA6n6nDvJzHJskXvqu5DBVU0oYn5Ra/FTCm0NEAkHkEKFJFZAqHj4vqNlzKO/34AvK/glu2nDh3wPDGO6XtAo/RIXjbjLfhYbF95lZAxwo8199f44tYBawAIPLoRkDxqcfYDgQiPgyvw+fnDc192ZkEVWKOBK+ZKqLSvkWS6uIhOenfLLMS7T3yIvxg6//1hmIigncce7Oo1N0ZciOWBPNjdmuYZXv0mtBJRWQOohI9HL3Ch1iSFzVUYiDhDOoH+jgnBdf+Xs/4TYe3jenZhXrpLthtfmlDT2u0PzLoeoGDAqtebSWPPolulyxCU7W9Gdd4iUOe8TTiwr8iFdL6vzUCvMOx291loebUkENqrG0mP4Gmy2iIClpMsCYNTj4y0rp4pB0vxVKTl6N/hq4BGA==
Hello
I am trying to link CGAL to my software. I cannot
compile neither CGAL 5.2 (git branch 5.2.x-branch) nor CGAL 5.1
(git branch 5.1.x-branch) with Boost 1.75 and mpicc/mpiccx
(openmpi/4.0.2 and gcc-4.8.5). My software exploits libmesh to
compute mesh intersection via CGAL.
The error I get concerns the placeholders and it is apparently a
current issue with CGAL/Boost interfacing
$locinst/cgal/include/CGAL/convex_hull_3.h: In
function 'typename std::__cxx11::list<Point>::iterator
CGAL::Convex_hull_3::internal::farthest_outside_point(Face_handle,
std::__cxx11::list<Point>&, const Traits&)':
$locinst/cgal/include/CGAL/convex_hull_3.h:579:67: error: '_1'
was not declared in this scope
579 |
boost::bind(less_dist_to_plane, plane, _1, _2));
|
^~
$locinst//cgal/include/CGAL/convex_hull_3.h:579:67:
note: suggested alternatives:
In file included from
$locinst/boost/include/boost/mpl/aux_/include_preprocessed.hpp:37,
...
$locinst/boost/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:29:16:
note: 'mpl_::_1'
29 | typedef arg<1> _1;
| ^~
....
/gpfs/softs/spack/opt/spack/linux-centos7-haswell/gcc-4.8.5/gcc-9.2.0-k4debouieljbsurbrr2w755davwl6xsu/include/c++/9.2.0/functional:211:34:
note: 'std::placeholders::_1'
211 | extern const _Placeholder<1> _1;
I configure CGAL via the following command:
cmake -DCMAKE_INSTALL_PREFIX=${locinst}/cgal -DCMAKE_BUILD_TYPE=Release -DGMP_LIBRARIES=${locinst}/gmp-6.1.2/lib/libgmp.so -DMPFR_LIBRARIES=${locinst}/mpfr-3.1.6/lib/libmpfr.so -DGMP_INCLUDE_DIR=${locinst}/gmp-6.1.2/include -DMPFR_INCLUDE_DIR=${locinst}/mpfr-3.1.6-dw2bdrou2piprxsnfj3qsbroml3ych6v/include -DCGAL_HEADER_ONLY=OFF $srclib/cgal
Boost 1.75 is configured with mpicc.
Finally, the libmesh installation is based on petsc 3.13.1 with mpicc/mpicxx.
Is there any workaround for this? Should I switch to gnu++14 dialect in my software or reinstall gcc with gnu++14 dialect support?
Thanks
Filippo
- [cgal-discuss] placeholder: CGAL 5.2 and Boost 1.75 with gcc, Filippo, 01/14/2021
- Re: [cgal-discuss] placeholder: CGAL 5.2 and Boost 1.75 with gcc, Sebastien Loriot (GeometryFactory), 01/15/2021
- Re: [cgal-discuss] placeholder: CGAL 5.2 and Boost 1.75 with gcc, Laurent Rineau (CGAL/GeometryFactory), 01/15/2021
Archive powered by MHonArc 2.6.19+.