Oslandia / SFCGAL

MOVED TO GITLAB: https://gitlab.com/sfcgal/SFCGAL. A wrapper around CGAL that intents to implement 2D and 3D operations on OGC standards models
https://sfcgal.org
Other
112 stars 54 forks source link

SFCGAL 1.1.0 compile error #73

Closed Veence closed 8 years ago

Veence commented 9 years ago

I’ve try to update the version of SFCGAL provided by MacPorts to 1.1.0, but the compilation fails in GeometrySet.cpp. I’m appending a log of the errors clang produces. Sorry, I don’t program in C++ anymore, so my help is rather limited here. Thanks!

Veence commented 9 years ago

[ 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 (!valuecomp()(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' 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' requested here iterator find(const keytype& 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_2, 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' requested here iterator find(const keytype& 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_2, 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_2, 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_2, 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 (!valuecomp()(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' 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' requested here iterator find(const keytype& 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_3, 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' requested here iterator find(const keytype& 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_3, 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_3, 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_3, 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

mhugo commented 9 years ago

What version of CGAL is installed ? What version of clang ?

Veence commented 9 years ago

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

mhugo commented 9 years ago

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).

kashif commented 9 years ago

yes that fixes the problem on mac

Veence commented 9 years ago

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

Veence commented 9 years ago

PS: Unless of course you plan to release a 1.1.1 version, for example, with the patch included in the next hours.

V.

mhugo commented 9 years ago

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 ...

kashif commented 9 years ago

sure i can do that as well

mhugo commented 9 years ago

Sorry, I meant :

kashif commented 9 years ago

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 ...

kashif commented 9 years ago

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)
vmora commented 9 years ago

@mhugo, @kashif note: now all the tests are integrated in ctest:

make test

:)

kashif commented 9 years ago

cool thanks! I might send you a travis.yml pull request as well soon...

vmora commented 9 years ago

@kashif the segfault is an issue of it's own. Can you open a new one please ?

kashif commented 9 years ago

sure will do

vmora commented 9 years ago

thanks a lot

kashif commented 9 years ago

./test/regress/standalone/standalone-regress-test-SFCGAL runs without any issues on OSX

strk commented 9 years ago

@kashif it would be lovely if you could send that travis.yml :)

Veence commented 9 years ago

It has not been committed yet. Could you do it?

mhugo commented 8 years ago

The remaining issue here is the garden test that still segfaults #74 . Can any mac user test on the last version ?