Comments (21)
[ 66%] Building CXX object src/CMakeFiles/SFCGAL.dir/detail/generator/building.cpp.o
cd /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src && /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -DCGAL_INTERSECTION_VERSION=1 -DSFCGAL_BUILD_SHARED -DSFCGAL_EXPORTS -pipe -Os -stdlib=libc++ -arch x86_64 -DNDEBUG -arch x86_64 -mmacosx-version-min=10.10 -fPIC -I/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/include -I/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/patches/CGAL-4.3 -isystem /opt/local/include -o CMakeFiles/SFCGAL.dir/detail/generator/building.cpp.o -c /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/generator/building.cpp
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:22:
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/include/SFCGAL/detail/GeometrySet.h:30:
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/include/SFCGAL/Kernel.h:24:
In file included from /opt/local/include/CGAL/Exact_predicates_exact_constructions_kernel.h:28:
In file included from /opt/local/include/CGAL/Simple_cartesian.h:28:
In file included from /opt/local/include/CGAL/Cartesian/Cartesian_base.h:28:
In file included from /opt/local/include/CGAL/basic.h:42:
In file included from /opt/local/include/CGAL/assertions.h:344:
In file included from /opt/local/include/CGAL/Uncertain.h:26:
In file included from /opt/local/include/CGAL/Profile_counter.h:57:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:460:17: error: no matching function for call to object of type 'const SFCGAL::detail::ComparePoints'
{return static_cast<const _Compare&>(*this)(__x.__cc.first, __y);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tree:2102:14: note: in instantiation of member function 'std::__1::__map_value_compareCGAL::Point_2<CGAL::Epeck, std::__1::__value_typeCGAL::Point_2<CGAL::Epeck, int>, SFCGAL::detail::ComparePoints, true>::operator()' requested here
if (!value_comp()(__root->_value, __v))
^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tree:2028:20: note: in instantiation of function template specialization 'std::__1::__treestd::__1::__value_type<CGAL::Point_2<CGAL::Epeck, int>, std::__1::__map_value_compareCGAL::Point_2<CGAL::Epeck, std::__1::__value_typeCGAL::Point_2<CGAL::Epeck, int>, SFCGAL::detail::ComparePoints, true>, std::__1::allocatorstd::__1::__value_type<CGAL::Point_2<CGAL::Epeck, int> > >::__lower_boundCGAL::Point_2<CGAL::Epeck >' requested here
iterator __p = __lower_bound(__v, __root(), __end_node());
^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:1090:68: note: in instantiation of function template specialization 'std::__1::__treestd::__1::__value_type<CGAL::Point_2<CGAL::Epeck, int>, std::__1::__map_value_compareCGAL::Point_2<CGAL::Epeck, std::__1::__value_typeCGAL::Point_2<CGAL::Epeck, int>, SFCGAL::detail::ComparePoints, true>, std::__1::allocatorstd::__1::__value_type<CGAL::Point_2<CGAL::Epeck, int> > >::findCGAL::Point_2<CGAL::Epeck >' requested here
iterator find(const key_type& __k) {return _tree.find(__k);}
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:593:76: note: in instantiation of member function 'std::__1::mapCGAL::Point_2<CGAL::Epeck, int, SFCGAL::detail::ComparePoints, std::__1::allocator<std::__1::pair<const CGAL::Point_2CGAL::Epeck, int> > >::find' requested here
const typename PointMap::const_iterator foundSource = pointMap.find( it->primitive().source() );
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:795:5: note: in instantiation of function template specialization 'SFCGAL::detail::recompose_segments<2>' requested here
recompose_segments( _segments, geometries, dim_t() );
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:560:10: note: candidate function not viable: 'this' argument has type 'const SFCGAL::detail::ComparePoints', but method is not marked const
bool operator()( const CGAL::Point_2& lhs, const CGAL::Point_2& rhs ) {
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:563:10: note: candidate function not viable: 'this' argument has type 'const SFCGAL::detail::ComparePoints', but method is not marked const
bool operator()( const CGAL::Point_3& lhs, const CGAL::Point_3& rhs ) {
^
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:22:
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/include/SFCGAL/detail/GeometrySet.h:30:
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/include/SFCGAL/Kernel.h:24:
In file included from /opt/local/include/CGAL/Exact_predicates_exact_constructions_kernel.h:28:
In file included from /opt/local/include/CGAL/Simple_cartesian.h:28:
In file included from /opt/local/include/CGAL/Cartesian/Cartesian_base.h:28:
In file included from /opt/local/include/CGAL/basic.h:42:
In file included from /opt/local/include/CGAL/assertions.h:344:
In file included from /opt/local/include/CGAL/Uncertain.h:26:
In file included from /opt/local/include/CGAL/Profile_counter.h:57:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:463:17: error: no matching function for call to object of type 'const SFCGAL::detail::ComparePoints'
{return static_cast<const _Compare&>(*this)(__x, __y.__cc.first);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tree:2029:26: note: in instantiation of member function 'std::__1::__map_value_compareCGAL::Point_2<CGAL::Epeck, std::__1::__value_typeCGAL::Point_2<CGAL::Epeck, int>, SFCGAL::detail::ComparePoints, true>::operator()' requested here
if (__p != end() && !value_comp()(__v, *__p))
^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:1090:68: note: in instantiation of function template specialization 'std::__1::__treestd::__1::__value_type<CGAL::Point_2<CGAL::Epeck, int>, std::__1::__map_value_compareCGAL::Point_2<CGAL::Epeck, std::__1::__value_typeCGAL::Point_2<CGAL::Epeck, int>, SFCGAL::detail::ComparePoints, true>, std::__1::allocatorstd::__1::__value_type<CGAL::Point_2<CGAL::Epeck, int> > >::findCGAL::Point_2<CGAL::Epeck >' requested here
iterator find(const key_type& __k) {return _tree.find(__k);}
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:593:76: note: in instantiation of member function 'std::__1::mapCGAL::Point_2<CGAL::Epeck, int, SFCGAL::detail::ComparePoints, std::__1::allocator<std::__1::pair<const CGAL::Point_2CGAL::Epeck, int> > >::find' requested here
const typename PointMap::const_iterator foundSource = pointMap.find( it->primitive().source() );
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:795:5: note: in instantiation of function template specialization 'SFCGAL::detail::recompose_segments<2>' requested here
recompose_segments( _segments, geometries, dim_t() );
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:560:10: note: candidate function not viable: 'this' argument has type 'const SFCGAL::detail::ComparePoints', but method is not marked const
bool operator()( const CGAL::Point_2& lhs, const CGAL::Point_2& rhs ) {
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:563:10: note: candidate function not viable: 'this' argument has type 'const SFCGAL::detail::ComparePoints', but method is not marked const
bool operator()( const CGAL::Point_3& lhs, const CGAL::Point_3& rhs ) {
^
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:22:
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/include/SFCGAL/detail/GeometrySet.h:30:
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/include/SFCGAL/Kernel.h:24:
In file included from /opt/local/include/CGAL/Exact_predicates_exact_constructions_kernel.h:28:
In file included from /opt/local/include/CGAL/Simple_cartesian.h:28:
In file included from /opt/local/include/CGAL/Cartesian/Cartesian_base.h:28:
In file included from /opt/local/include/CGAL/basic.h:42:
In file included from /opt/local/include/CGAL/assertions.h:344:
In file included from /opt/local/include/CGAL/Uncertain.h:26:
In file included from /opt/local/include/CGAL/Profile_counter.h:57:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:1207:17: error: no matching function for call to object of type 'const SFCGAL::detail::ComparePoints'
if (_tree.value_comp().key_comp()(__k, __nd->_value.__cc.first))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:1376:36: note: in instantiation of member function 'std::__1::mapCGAL::Point_2<CGAL::Epeck, int, SFCGAL::detail::ComparePoints, std::__1::allocator<std::__1::pair<const CGAL::Point_2CGAL::Epeck, int> > >::__find_equal_key' requested here
__node_base_pointer& __child = __find_equal_key(__parent, __k);
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:599:17: note: in instantiation of member function 'std::__1::mapCGAL::Point_2<CGAL::Epeck, int, SFCGAL::detail::ComparePoints, std::__1::allocator<std::__1::pair<const CGAL::Point_2CGAL::Epeck, int> > >::operator[]' requested here
pointMap[ it->primitive().source() ] = sourceId;
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:795:5: note: in instantiation of function template specialization 'SFCGAL::detail::recompose_segments<2>' requested here
recompose_segments( _segments, geometries, dim_t() );
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:560:10: note: candidate function not viable: 'this' argument has type 'const SFCGAL::detail::ComparePoints', but method is not marked const
bool operator()( const CGAL::Point_2& lhs, const CGAL::Point_2& rhs ) {
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:563:10: note: candidate function not viable: 'this' argument has type 'const SFCGAL::detail::ComparePoints', but method is not marked const
bool operator()( const CGAL::Point_3& lhs, const CGAL::Point_3& rhs ) {
^
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:22:
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/include/SFCGAL/detail/GeometrySet.h:30:
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/include/SFCGAL/Kernel.h:24:
In file included from /opt/local/include/CGAL/Exact_predicates_exact_constructions_kernel.h:28:
In file included from /opt/local/include/CGAL/Simple_cartesian.h:28:
In file included from /opt/local/include/CGAL/Cartesian/Cartesian_base.h:28:
In file included from /opt/local/include/CGAL/basic.h:42:
In file included from /opt/local/include/CGAL/assertions.h:344:
In file included from /opt/local/include/CGAL/Uncertain.h:26:
In file included from /opt/local/include/CGAL/Profile_counter.h:57:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:460:17: error: no matching function for call to object of type 'const SFCGAL::detail::ComparePoints'
{return static_cast<const _Compare&>(*this)(__x.__cc.first, __y);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tree:2102:14: note: in instantiation of member function 'std::__1::__map_value_compareCGAL::Point_3<CGAL::Epeck, std::__1::__value_typeCGAL::Point_3<CGAL::Epeck, int>, SFCGAL::detail::ComparePoints, true>::operator()' requested here
if (!value_comp()(__root->_value, __v))
^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tree:2028:20: note: in instantiation of function template specialization 'std::__1::__treestd::__1::__value_type<CGAL::Point_3<CGAL::Epeck, int>, std::__1::__map_value_compareCGAL::Point_3<CGAL::Epeck, std::__1::__value_typeCGAL::Point_3<CGAL::Epeck, int>, SFCGAL::detail::ComparePoints, true>, std::__1::allocatorstd::__1::__value_type<CGAL::Point_3<CGAL::Epeck, int> > >::__lower_boundCGAL::Point_3<CGAL::Epeck >' requested here
iterator __p = __lower_bound(__v, __root(), __end_node());
^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:1090:68: note: in instantiation of function template specialization 'std::__1::__treestd::__1::__value_type<CGAL::Point_3<CGAL::Epeck, int>, std::__1::__map_value_compareCGAL::Point_3<CGAL::Epeck, std::__1::__value_typeCGAL::Point_3<CGAL::Epeck, int>, SFCGAL::detail::ComparePoints, true>, std::__1::allocatorstd::__1::__value_type<CGAL::Point_3<CGAL::Epeck, int> > >::findCGAL::Point_3<CGAL::Epeck >' requested here
iterator find(const key_type& __k) {return _tree.find(__k);}
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:593:76: note: in instantiation of member function 'std::__1::mapCGAL::Point_3<CGAL::Epeck, int, SFCGAL::detail::ComparePoints, std::__1::allocator<std::__1::pair<const CGAL::Point_3CGAL::Epeck, int> > >::find' requested here
const typename PointMap::const_iterator foundSource = pointMap.find( it->primitive().source() );
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:795:5: note: in instantiation of function template specialization 'SFCGAL::detail::recompose_segments<3>' requested here
recompose_segments( _segments, geometries, dim_t() );
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:563:10: note: candidate function not viable: 'this' argument has type 'const SFCGAL::detail::ComparePoints', but method is not marked const
bool operator()( const CGAL::Point_3& lhs, const CGAL::Point_3& rhs ) {
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:560:10: note: candidate function not viable: 'this' argument has type 'const SFCGAL::detail::ComparePoints', but method is not marked const
bool operator()( const CGAL::Point_2& lhs, const CGAL::Point_2& rhs ) {
^
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:22:
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/include/SFCGAL/detail/GeometrySet.h:30:
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/include/SFCGAL/Kernel.h:24:
In file included from /opt/local/include/CGAL/Exact_predicates_exact_constructions_kernel.h:28:
In file included from /opt/local/include/CGAL/Simple_cartesian.h:28:
In file included from /opt/local/include/CGAL/Cartesian/Cartesian_base.h:28:
In file included from /opt/local/include/CGAL/basic.h:42:
In file included from /opt/local/include/CGAL/assertions.h:344:
In file included from /opt/local/include/CGAL/Uncertain.h:26:
In file included from /opt/local/include/CGAL/Profile_counter.h:57:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:463:17: error: no matching function for call to object of type 'const SFCGAL::detail::ComparePoints'
{return static_cast<const _Compare&>(*this)(__x, __y.__cc.first);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tree:2029:26: note: in instantiation of member function 'std::__1::__map_value_compareCGAL::Point_3<CGAL::Epeck, std::__1::__value_typeCGAL::Point_3<CGAL::Epeck, int>, SFCGAL::detail::ComparePoints, true>::operator()' requested here
if (__p != end() && !value_comp()(__v, *__p))
^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:1090:68: note: in instantiation of function template specialization 'std::__1::__treestd::__1::__value_type<CGAL::Point_3<CGAL::Epeck, int>, std::__1::__map_value_compareCGAL::Point_3<CGAL::Epeck, std::__1::__value_typeCGAL::Point_3<CGAL::Epeck, int>, SFCGAL::detail::ComparePoints, true>, std::__1::allocatorstd::__1::__value_type<CGAL::Point_3<CGAL::Epeck, int> > >::findCGAL::Point_3<CGAL::Epeck >' requested here
iterator find(const key_type& __k) {return _tree.find(__k);}
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:593:76: note: in instantiation of member function 'std::__1::mapCGAL::Point_3<CGAL::Epeck, int, SFCGAL::detail::ComparePoints, std::__1::allocator<std::__1::pair<const CGAL::Point_3CGAL::Epeck, int> > >::find' requested here
const typename PointMap::const_iterator foundSource = pointMap.find( it->primitive().source() );
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:795:5: note: in instantiation of function template specialization 'SFCGAL::detail::recompose_segments<3>' requested here
recompose_segments( _segments, geometries, dim_t() );
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:563:10: note: candidate function not viable: 'this' argument has type 'const SFCGAL::detail::ComparePoints', but method is not marked const
bool operator()( const CGAL::Point_3& lhs, const CGAL::Point_3& rhs ) {
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:560:10: note: candidate function not viable: 'this' argument has type 'const SFCGAL::detail::ComparePoints', but method is not marked const
bool operator()( const CGAL::Point_2& lhs, const CGAL::Point_2& rhs ) {
^
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:22:
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/include/SFCGAL/detail/GeometrySet.h:30:
In file included from /opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/include/SFCGAL/Kernel.h:24:
In file included from /opt/local/include/CGAL/Exact_predicates_exact_constructions_kernel.h:28:
In file included from /opt/local/include/CGAL/Simple_cartesian.h:28:
In file included from /opt/local/include/CGAL/Cartesian/Cartesian_base.h:28:
In file included from /opt/local/include/CGAL/basic.h:42:
In file included from /opt/local/include/CGAL/assertions.h:344:
In file included from /opt/local/include/CGAL/Uncertain.h:26:
In file included from /opt/local/include/CGAL/Profile_counter.h:57:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:1207:17: error: no matching function for call to object of type 'const SFCGAL::detail::ComparePoints'
if (_tree.value_comp().key_comp()(__k, __nd->_value.__cc.first))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:1376:36: note: in instantiation of member function 'std::__1::mapCGAL::Point_3<CGAL::Epeck, int, SFCGAL::detail::ComparePoints, std::__1::allocator<std::__1::pair<const CGAL::Point_3CGAL::Epeck, int> > >::__find_equal_key' requested here
__node_base_pointer& __child = __find_equal_key(__parent, __k);
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:599:17: note: in instantiation of member function 'std::__1::mapCGAL::Point_3<CGAL::Epeck, int, SFCGAL::detail::ComparePoints, std::__1::allocator<std::__1::pair<const CGAL::Point_3CGAL::Epeck, int> > >::operator[]' requested here
pointMap[ it->primitive().source() ] = sourceId;
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:795:5: note: in instantiation of function template specialization 'SFCGAL::detail::recompose_segments<3>' requested here
recompose_segments( _segments, geometries, dim_t() );
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:563:10: note: candidate function not viable: 'this' argument has type 'const SFCGAL::detail::ComparePoints', but method is not marked const
bool operator()( const CGAL::Point_3& lhs, const CGAL::Point_3& rhs ) {
^
/opt/local/var/macports/build/_Macports_dports_gis_sfcgal/sfcgal/work/SFCGAL-1.1.0/src/detail/GeometrySet.cpp:560:10: note: candidate function not viable: 'this' argument has type 'const SFCGAL::detail::ComparePoints', but method is not marked const
bool operator()( const CGAL::Point_2& lhs, const CGAL::Point_2& rhs ) {
^
6 errors generated.
make[2]: *** [src/CMakeFiles/SFCGAL.dir/detail/GeometrySet.cpp.o] Error 1
from sfcgal.
What version of CGAL is installed ? What version of clang ?
from sfcgal.
Salut !
What version of CGAL is installed ? What version of clang ?
CGAL 4.5.2 et pour clang c’est la dernière version disponible avec Xcode 6.3 donc :
Air > clang -v
Apple LLVM version 6.1.0 (clang-602.0.42) (based on LLVM 3.6.0svn)
Je ne sais pas si ça apporte grand chose.
Merci de cette réponse plus que rapide !
Vincent
from sfcgal.
Thanks.
But I can't reproduce. I've just compiled successfully with clang and CGAL 4.5.2 (under ubuntu). It seems to come from the std c++ lib on mac (probably a bit more strict than the one on Linux).
Could you try to add "const" to the reported functions in src/detail/GeometrySet.cpp like this, around line 559 :
bool operator()( const CGAL::Point_2& lhs, const CGAL::Point_2& rhs ) const { ... bool operator()( const CGAL::Point_3& lhs, const CGAL::Point_3& rhs ) const { ...
... relaunch the compilation and tell us if it fixes it ?
(Désolé, je préfère continuer en anglais, si jamais ce rapport de bug peut servir à d'autres).
from sfcgal.
yes that fixes the problem on mac
from sfcgal.
yes that fixes the problem on mac
Confirmed.
Going to write a patch file and update the Portfile.
Thanks a lot for your insight.
Vincent
from sfcgal.
PS: Unless of course you plan to release a 1.1.1 version, for example, with the patch included in the next hours.
V.
from sfcgal.
I've just pushed the fix on the master branch. I am about to release a 1.1.1 version.
We don't have (yet) a mac machine to test on, so If one of you have the opportunity to confirm that unit tests and garden tests run without problem on mac (compile with ENABLE_TESTS), that would be perfect ...
from sfcgal.
sure i can do that as well
from sfcgal.
Sorry, I meant :
- compile with SFCGAL_BUILD_TESTS
- run ./test/unit/unit-test-SFCGAL
- run ./test/garden/garden-test-SFCGAL
- run ./test/regress/standalone/standalone-regress-test-SFCGAL
from sfcgal.
yes thats what i ended up doing... I only get:
Running 424 test cases...
unknown location:0: fatal error in "testFileCoversTest": memory access violation at address: 0x00000028: no mapping at fault address
/Users/kashif/c++/SFCGAL/test/unit/SFCGAL/algorithm/CoversTest.cpp:116: last checkpoint
which i guess is because i am running the tests from the build
folder and it is not finding the SFCGAL_TEST_DIRECTORY
...
from sfcgal.
also ./test/garden/garden-test-SFCGAL
segfaults:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000028
0x00000001000ebb6e in CGAL::import_from_polyhedron_subset<CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> >, CGAL::Combinatorial_map<3u, CGAL::internal_IOP::Item_with_points_and_volume_info<CGAL::Epeck, CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<int>, CGAL::Combinatorial_map_storage_1<3u, CGAL::internal_IOP::Item_with_points_and_volume_info<CGAL::Epeck, CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<int> > >, std::__1::__list_iterator<CGAL::internal::In_place_list_const_iterator<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck, CGAL::I_Polyhedron_derived_items_3<SFCGAL::detail::Items_with_mark_on_hedge>, std::__1::allocator<int> >, CGAL::Boolean_tag<true>, CGAL::Plane_3<CGAL::Epeck> > > >, std::__1::allocator<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck, CGAL::I_Polyhedron_derived_items_3<SFCGAL::detail::Items_with_mark_on_hedge>, std::__1::allocator<int> >, CGAL::Boolean_tag<true>, CGAL::Plane_3<CGAL::Epeck> > > > > >, void*>, CGAL::internal_IOP::Non_intersection_halfedge<CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::map<CGAL::internal::In_place_list_const_iterator<CGAL::HalfedgeDS_in_place_list_halfedge<CGAL::I_Polyhedron_halfedge<SFCGAL::detail::Halfedge_with_mark<CGAL::HalfedgeDS_list_types<CGAL::Epeck, CGAL::I_Polyhedron_derived_items_3<SFCGAL::detail::Items_with_mark_on_hedge>, std::__1::allocator<int> > > > >, std::__1::allocator<CGAL::HalfedgeDS_in_place_list_halfedge<CGAL::I_Polyhedron_halfedge<SFCGAL::detail::Halfedge_with_mark<CGAL::HalfedgeDS_list_types<CGAL::Epeck, CGAL::I_Polyhedron_derived_items_3<SFCGAL::detail::Items_with_mark_on_hedge>, std::__1::allocator<int> > > > > > >, CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Dart<3u, CGAL::Combinatorial_map_storage_1<3u, CGAL::internal_IOP::Item_with_points_and_volume_info<CGAL::Epeck, CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<int> > >, std::__1::allocator<CGAL::Dart<3u, CGAL::Combinatorial_map_storage_1<3u, CGAL::internal_IOP::Item_with_points_and_volume_info<CGAL::Epeck, CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<int> > > >, CGAL::Default, CGAL::Default>, false>, CGAL::internal_IOP::Compare_address<CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<std::__1::pair<CGAL::internal::In_place_list_const_iterator<CGAL::HalfedgeDS_in_place_list_halfedge<CGAL::I_Polyhedron_halfedge<SFCGAL::detail::Halfedge_with_mark<CGAL::HalfedgeDS_list_types<CGAL::Epeck, CGAL::I_Polyhedron_derived_items_3<SFCGAL::detail::Items_with_mark_on_hedge>, std::__1::allocator<int> > > > >, std::__1::allocator<CGAL::HalfedgeDS_in_place_list_halfedge<CGAL::I_Polyhedron_halfedge<SFCGAL::detail::Halfedge_with_mark<CGAL::HalfedgeDS_list_types<CGAL::Epeck, CGAL::I_Polyhedron_derived_items_3<SFCGAL::detail::Items_with_mark_on_hedge>, std::__1::allocator<int> > > > > > > const, CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Dart<3u, CGAL::Combinatorial_map_storage_1<3u, CGAL::internal_IOP::Item_with_points_and_volume_info<CGAL::Epeck, CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<int> > >, std::__1::allocator<CGAL::Dart<3u, CGAL::Combinatorial_map_storage_1<3u, CGAL::internal_IOP::Item_with_points_and_volume_info<CGAL::Epeck, CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<int> > > >, CGAL::Default, CGAL::Default>, false> > > > > ()
(gdb) bt
#0 0x00000001000ebb6e in CGAL::import_from_polyhedron_subset<CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> >, CGAL::Combinatorial_map<3u, CGAL::internal_IOP::Item_with_points_and_volume_info<CGAL::Epeck, CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<int>, CGAL::Combinatorial_map_storage_1<3u, CGAL::internal_IOP::Item_with_points_and_volume_info<CGAL::Epeck, CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<int> > >, std::__1::__list_iterator<CGAL::internal::In_place_list_const_iterator<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck, CGAL::I_Polyhedron_derived_items_3<SFCGAL::detail::Items_with_mark_on_hedge>, std::__1::allocator<int> >, CGAL::Boolean_tag<true>, CGAL::Plane_3<CGAL::Epeck> > > >, std::__1::allocator<CGAL::HalfedgeDS_in_place_list_face<CGAL::I_Polyhedron_facet<CGAL::HalfedgeDS_face_base<CGAL::HalfedgeDS_list_types<CGAL::Epeck, CGAL::I_Polyhedron_derived_items_3<SFCGAL::detail::Items_with_mark_on_hedge>, std::__1::allocator<int> >, CGAL::Boolean_tag<true>, CGAL::Plane_3<CGAL::Epeck> > > > > >, void*>, CGAL::internal_IOP::Non_intersection_halfedge<CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::map<CGAL::internal::In_place_list_const_iterator<CGAL::HalfedgeDS_in_place_list_halfedge<CGAL::I_Polyhedron_halfedge<SFCGAL::detail::Halfedge_with_mark<CGAL::HalfedgeDS_list_types<CGAL::Epeck, CGAL::I_Polyhedron_derived_items_3<SFCGAL::detail::Items_with_mark_on_hedge>, std::__1::allocator<int> > > > >, std::__1::allocator<CGAL::HalfedgeDS_in_place_list_halfedge<CGAL::I_Polyhedron_halfedge<SFCGAL::detail::Halfedge_with_mark<CGAL::HalfedgeDS_list_types<CGAL::Epeck, CGAL::I_Polyhedron_derived_items_3<SFCGAL::detail::Items_with_mark_on_hedge>, std::__1::allocator<int> > > > > > >, CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Dart<3u, CGAL::Combinatorial_map_storage_1<3u, CGAL::internal_IOP::Item_with_points_and_volume_info<CGAL::Epeck, CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<int> > >, std::__1::allocator<CGAL::Dart<3u, CGAL::Combinatorial_map_storage_1<3u, CGAL::internal_IOP::Item_with_points_and_volume_info<CGAL::Epeck, CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<int> > > >, CGAL::Default, CGAL::Default>, false>, CGAL::internal_IOP::Compare_address<CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<std::__1::pair<CGAL::internal::In_place_list_const_iterator<CGAL::HalfedgeDS_in_place_list_halfedge<CGAL::I_Polyhedron_halfedge<SFCGAL::detail::Halfedge_with_mark<CGAL::HalfedgeDS_list_types<CGAL::Epeck, CGAL::I_Polyhedron_derived_items_3<SFCGAL::detail::Items_with_mark_on_hedge>, std::__1::allocator<int> > > > >, std::__1::allocator<CGAL::HalfedgeDS_in_place_list_halfedge<CGAL::I_Polyhedron_halfedge<SFCGAL::detail::Halfedge_with_mark<CGAL::HalfedgeDS_list_types<CGAL::Epeck, CGAL::I_Polyhedron_derived_items_3<SFCGAL::detail::Items_with_mark_on_hedge>, std::__1::allocator<int> > > > > > > const, CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Dart<3u, CGAL::Combinatorial_map_storage_1<3u, CGAL::internal_IOP::Item_with_points_and_volume_info<CGAL::Epeck, CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<int> > >, std::__1::allocator<CGAL::Dart<3u, CGAL::Combinatorial_map_storage_1<3u, CGAL::internal_IOP::Item_with_points_and_volume_info<CGAL::Epeck, CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >, std::__1::allocator<int> > > >, CGAL::Default, CGAL::Default>, false> > > > > ()
#1 0x00000001000e5585 in CGAL::Node_visitor_refine_polyhedra<CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> >, CGAL::Default, CGAL::Default, CGAL::Default, CGAL::Default>::finalize<CGAL::internal_IOP::Triangle_segment_intersection_points<CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> >, CGAL::Epeck, CGAL::internal_IOP::Predicates_on_constructions, true> > ()
#2 0x00000001000dc97e in CGAL::Polyhedron_corefinement<CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> >, CGAL::Epeck, CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> > >::operator()<CGAL::Emptyset_iterator, std::__1::back_insert_iterator<std::__1::vector<std::__1::pair<CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> >*, int>, std::__1::allocator<std::__1::pair<CGAL::Polyhedron_3<CGAL::Epeck, SFCGAL::detail::Items_with_mark_on_hedge, CGAL::HalfedgeDS_default, std::__1::allocator<int> >*, int> > > > > ()
#3 0x0000000100264a06 in SFCGAL::algorithm::_intersection_solid_solid ()
#4 0x00000001002446d3 in CGAL::Box_intersection_d::modified_two_way_scan<std::__1::__wrap_iter<CGAL::Box_intersection_d::Box_with_handle_d<double, 3, SFCGAL::detail::PrimitiveHandle<3>*, CGAL::Box_intersection_d::ID_FROM_HANDLE>*>, std::__1::__wrap_iter<CGAL::Box_intersection_d::Box_with_handle_d<double, 3, SFCGAL::detail::PrimitiveHandle<3>*, CGAL::Box_intersection_d::ID_FROM_HANDLE>*>, SFCGAL::algorithm::intersection_cb<3>, CGAL::Box_intersection_d::Predicate_traits_d<CGAL::Box_intersection_d::Box_traits_d<CGAL::Box_intersection_d::Box_with_handle_d<double, 3, SFCGAL::detail::PrimitiveHandle<3>*, CGAL::Box_intersection_d::ID_FROM_HANDLE> >, true> > ()
#5 0x0000000100243bc1 in CGAL::Box_intersection_d::segment_tree<std::__1::__wrap_iter<CGAL::Box_intersection_d::Box_with_handle_d<double, 3, SFCGAL::detail::PrimitiveHandle<3>*, CGAL::Box_intersection_d::ID_FROM_HANDLE>*>, std::__1::__wrap_iter<CGAL::Box_intersection_d::Box_with_handle_d<double, 3, SFCGAL::detail::PrimitiveHandle<3>*, CGAL::Box_intersection_d::ID_FROM_HANDLE>*>, SFCGAL::algorithm::intersection_cb<3>, double, CGAL::Box_intersection_d::Predicate_traits_d<CGAL::Box_intersection_d::Box_traits_d<CGAL::Box_intersection_d::Box_with_handle_d<double, 3, SFCGAL::detail::PrimitiveHandle<3>*, CGAL::Box_intersection_d::ID_FROM_HANDLE> >, true> > ()
#6 0x000000010024341a in SFCGAL::algorithm::intersection<3> ()
#7 0x0000000100240253 in SFCGAL::algorithm::intersection3D ()
#8 0x0000000100240d7c in SFCGAL::algorithm::intersection3D ()
#9 0x000000010001a7fb in main ()
(gdb)
from sfcgal.
@mhugo, @kashif note: now all the tests are integrated in ctest:
make test
:)
from sfcgal.
cool thanks! I might send you a travis.yml
pull request as well soon...
from sfcgal.
@kashif the segfault is an issue of it's own. Can you open a new one please ?
from sfcgal.
sure will do
from sfcgal.
thanks a lot
from sfcgal.
./test/regress/standalone/standalone-regress-test-SFCGAL
runs without any issues on OSX
from sfcgal.
@kashif it would be lovely if you could send that travis.yml :)
from sfcgal.
It has not been committed yet. Could you do it?
from sfcgal.
The remaining issue here is the garden test that still segfaults #74 . Can any mac user test on the last version ?
from sfcgal.
Related Issues (20)
- Bundled build HOT 2
- Replace auto_ptr by unique_ptr HOT 2
- Memory leak in extrude HOT 4
- PostGIS make error HOT 17
- unit-test & garden-test timeout with Boost 1.67 HOT 19
- Red warnings upon build of SFGCAL 1.3.6 HOT 1
- 1.3.6 build error on Fedora 30 (CGAL 4.14, gcc 9.0.1) HOT 19
- Undefined behaviour in CGAL when using difference3D HOT 2
- Crash under sfcgal_geometry_triangulate_2dz / SFCGAL::algorithm::isValid HOT 5
- "Geometry& operator= " is not implemented HOT 8
- CGAL 5.0 support HOT 6
- SFCGAL generates incorrect 3D intersection HOT 5
- Segfault on isValid HOT 6
- Installation creates both (prefix)/lib AND (prefix)/lib64 HOT 1
- Failing ApproximateMedialAxis and StraightSkeleton unit tests on Mac OS X HOT 2
- Broken libtoolize HOT 6
- Valid Solid shells cannot be converted to CGAL polyhedra HOT 16
- make is error HOT 4
- Could not find a configuration file for package "CGAL" on SFCGAL-1.3.7 HOT 2
- [IMPORTANT] Gitlab migration HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sfcgal.