Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] two questions on future CGAL developments

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] two questions on future CGAL developments


Chronological Thread 
  • From: Edoardo Milotti <>
  • To:
  • Subject: Re: [cgal-discuss] two questions on future CGAL developments
  • Date: Wed, 5 May 2010 20:27:57 +0200


I can answer to that question: the Intel Compiler (versions 11.0 and 11.1) is
tested by CGAL daily testsuite. You must make sure the following compilation
flags are used:
 -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC=1 -fp-model strict -diag-disable 980

(Probably only -fp-model strict is important, and the other flags are there to
silent some warnings.)

*However*, the compilation flag -strict-ansi of the Intel Compiler is (not yet)
supported. I have added that setup (with -strict-ansi), and things are going
better and better. Probably Intel Compiler 11.1 with -strict-ansi will be
supported (or almost supported) by CGAL-3.7.

Can you give use an example of the error log you get?

I do not use the -strict-ansi flag, while I always set -fp-model strict. 

I have tried to build the libraries with 

cmake -DCMAKE_C_COMPILER=/opt/intel/Compiler/11.1/088/bin/intel64/icc -DCMAKE_CXX_COMPILER=/opt/intel/Compiler/11.1/088/bin/intel64/icpc -DWITH_examples=true

and then make. The libraries build (with some warnings that tell me there are duplicate libraries), but when I try to run the examples I always get "segmentation error". 
Now I am using the libraries built by gcc 4.5. 
When I try to compile the program that calls CGAL with icpc I get a list of error messages like this:


********************

/CG_Software/CGAL-3.6/CGAL-3.6/include/CGAL/Triangulation_ds_cell_base_3.h(50): error: only "()" is allowed as initializer for array member "CGAL::Triangulation_ds_cell_base_3<TDS>::V"
      : V((Vertex_handle[4]) {v0, v1, v2, v3} ) {}
          ^
          detected during:
            instantiation of "CGAL::Triangulation_cell_base_3<GT, Cb>::Triangulation_cell_base_3(Cb::Vertex_handle, Cb::Vertex_handle, Cb::Vertex_handle, Cb::Vertex_handle) [with GT=K, Cb=CGAL::Triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<Vb, Fb>>]" at line 88 of "/CG_Software/CGAL-3.6/CGAL-3.6/include/CGAL/Alpha_shape_cell_base_3.h"
            instantiation of "CGAL::Alpha_shape_cell_base_3<Gt, Cb>::Alpha_shape_cell_base_3(Cb::Vertex_handle, Cb::Vertex_handle, Cb::Vertex_handle, Cb::Vertex_handle) [with Gt=K, Cb=CGAL::Triangulation_cell_base_3<K, CGAL::Triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<Vb, Fb>>>]" at line 301 of "/CG_Software/CGAL-3.6/CGAL-3.6/include/CGAL/Compact_container.h"
            instantiation of "CGAL::internal::CC_iterator<CGAL::Compact_container<T, Allocator_>, false> CGAL::Compact_container<T, Allocator_>::emplace(const T1 &, const T2 &, const T3 &, const T4 &) [with T=CGAL::Alpha_shape_cell_base_3<K, CGAL::Triangulation_cell_base_3<K, CGAL::Triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<Vb, Fb>>>>, Allocator_=CGAL::Default, T1=CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Alpha_shape_vertex_base_3<K,
                      CGAL::Triangulation_vertex_base_with_info_3<int, K, CGAL::Triangulation_vertex_base_3<K, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<Vb, Fb>>>>>, CGAL::Default>, false>, T2=CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Alpha_shape_vertex_base_3<K, CGAL::Triangulation_vertex_base_with_info_3<int, K, CGAL::Triangulation_vertex_base_3<K, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<Vb, Fb>>>>>,
                      CGAL::Default>, false>, T3=CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Alpha_shape_vertex_base_3<K, CGAL::Triangulation_vertex_base_with_info_3<int, K, CGAL::Triangulation_vertex_base_3<K, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<Vb, Fb>>>>>, CGAL::Default>, false>, T4=CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Alpha_shape_vertex_base_3<K, CGAL::Triangulation_vertex_base_with_info_3<int, K,
                      CGAL::Triangulation_vertex_base_3<K, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<Vb, Fb>>>>>, CGAL::Default>, false>]" at line 229 of "/CG_Software/CGAL-3.6/CGAL-3.6/include/CGAL/Triangulation_data_structure_3.h"
            instantiation of "CGAL::Compact_container<Cb::Rebind_TDS<CGAL::Triangulation_data_structure_3<Vb, Cb>>::Other, CGAL::Default>::iterator CGAL::Triangulation_data_structure_3<Vb, Cb>::create_face(CGAL::Compact_container<Vb::Rebind_TDS<CGAL::Triangulation_data_structure_3<Vb, Cb>>::Other, CGAL::Default>::iterator, CGAL::Compact_container<Vb::Rebind_TDS<CGAL::Triangulation_data_structure_3<Vb, Cb>>::Other, CGAL::Default>::iterator,
                      CGAL::Compact_container<Vb::Rebind_TDS<CGAL::Triangulation_data_structure_3<Vb, Cb>>::Other, CGAL::Default>::iterator) [with Vb=Vb, Cb=Fb]" at line 2194 of "/CG_Software/CGAL-3.6/CGAL-3.6/include/CGAL/Triangulation_data_structure_3.h"
            instantiation of "CGAL::Compact_container<Vb::Rebind_TDS<CGAL::Triangulation_data_structure_3<Vb, Cb>>::Other, CGAL::Default>::iterator CGAL::Triangulation_data_structure_3<Vb, Cb>::insert_increase_dimension(CGAL::Compact_container<Vb::Rebind_TDS<CGAL::Triangulation_data_structure_3<Vb, Cb>>::Other, CGAL::Default>::iterator) [with Vb=Vb, Cb=Fb]" at line 305 of "/CG_Software/CGAL-3.6/CGAL-3.6/include/CGAL/Triangulation_3.h"
            instantiation of "void CGAL::Triangulation_3<GT, Tds_>::init_tds() [with GT=K, Tds_=Tds]" at line 314 of "/CG_Software/CGAL-3.6/CGAL-3.6/include/CGAL/Triangulation_3.h"
            instantiation of "CGAL::Triangulation_3<GT, Tds_>::Triangulation_3(const GT &) [with GT=K, Tds_=Tds]" at line 178 of "/CG_Software/CGAL-3.6/CGAL-3.6/include/CGAL/Delaunay_triangulation_3.h"
            instantiation of "CGAL::Delaunay_triangulation_3<Gt, Tds_, CGAL::Default>::Delaunay_triangulation_3(const Gt &) [with Gt=K, Tds_=Tds]" at line ....

********************

The program compiles and runs correctly when I use g++ 4.5. 

Thanks, Edoardo Milotti



Archive powered by MHonArc 2.6.16.

Top of Page