CGAL 3.4 seg-fault in running examples (Mac OS X 10.5)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

CGAL 3.4 seg-fault in running examples (Mac OS X 10.5)

kishalay.kundu
I apologize in advance if this has been discussed before, but I'm having
problems running CGAL 3.4 on my Intel Core 2 duo based Mac OS X 10.5. I haven't
been able to pinpoint where the error may lie and have since decided to post
here. I have cmake 2.6.1, boost 1.37.1, gmp 4.2.4 and mpfr 2.3 (through
macports) installed. Following are the steps I take to install and run an
example in CGAL 3.4. I provide the command line outputs from cmake below. Could
someone please let me know what might be going wrong.

One last thing. As you can see below, cmake uses gcc 4.0.1 while doing all
this. I also have gcc 4.2.1 installed. When I use this, make gives me a
compiler error about "asm not allowed" and exits. (I have also provided the
command line output for that)

STeps:
1. cmake -DBUILD_SHARED_LIBS=FALSE -DWITH_examples=true
2. make
3. make -C examples/Surface_mesher
4. cd examples/Surface_mesher; ./mesh_a_3d_gray_image
(it segfaults after this on the make_surface_mesh() function

The command line output of "cmake -DBUILD_SHARED_LIBS=FALSE
-DWITH_examples=true" when using gcc 4.0.1 is given below:
$ cmake -DBUILD_SHARED_LIBS=FALSE -DWITH_examples=true
-- CGAL_MAJOR_VERSION=3
-- CGAL_MINOR_VERSION=4
-- CGAL_BUILD_VERSION=
-- CGAL_SONAME_VERSION=3
-- CGAL_SOVERSION     =3.0.0
-- CGAL_REFERENCE_CACHE_DIR=
-- Building static libraries
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=9
-- Mac Leopard detected
-- USING CMake version: 2.6.1
-- System: Darwin
-- USING GCC_VERSION = '4.0.1 (Apple Inc. build 5484)'
-- Using gcc version 4 or later. Adding -frounding-math
-- Build type: Release
-- USING CXXFLAGS = ' -frounding-math -fno-strict-aliasing -O3 -DNDEBUG'
-- USING LDFLAGS = ' '
-- GMPXX include:    /opt/local/include
-- GMPXX libraries:  /opt/local/lib/libgmpxx.dylib
-- GMP include:     /opt/local/include
-- GMP libraries:   /opt/local/lib/libgmp.dylib
-- GMP definitions:
-- USING GMP_VERSION = '4.2.4'
-- MPFR include:      /opt/local/include
-- MPFR libraries:    /opt/local/lib/libmpfr.dylib
-- MPFR definitions:  
-- USING MPFR_VERSION = '2.3.2'
-- Boost include:     /opt/local/include
-- Boost libraries:   /opt/local/lib/libboost_thread-mt.a
-- Boost definitions:
-- USING BOOST_VERSION = '1.37.0'
-- CMAKE_INSTALL_PREFIX=/usr/local
-- OpenGL include:     /System/Library/Frameworks/OpenGL.framework
-- OpenGL libraries:  
/System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.framework
-- USING ZLIB_VERSION = '1.2.3'
-- ZLib   include:     /usr/include
-- ZLib   libraries:   /usr/lib/libz.dylib
-- CGAL_Qt3 needs Qt3, cannot be configured.
-- CGAL_Qt4 needs Qt4, cannot be configured.
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Algebraic_foundations
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Alpha_shapes_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Alpha_shapes_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Apollonius_graph_2
example
-- Configuring
/Users/kish1/Desktop/CGAL-3.4/examples/Approximate_min_ellipsoid_d example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Arrangement_on_surface_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/BGL_arrangement_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/BGL_polyhedron_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/BGL_triangulation_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Boolean_set_operations_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Box_intersection_d
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/CGALimageIO example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Circular_kernel_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Circular_kernel_3
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Circulator example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Convex_hull_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Convex_hull_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Core example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Envelope_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Envelope_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Filtered_kernel example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Generator example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/HalfedgeDS example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Interpolation example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Interval_skip_list
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Jet_fitting_3 example
-- LAPACK include:    
-- LAPACK definitions: -DLAPACK_USE_F2C
-- LAPACK libraries:   /System/Library/Frameworks/Accelerate.framework
-- LAPACK link flags:  
-- BLAS include:    
-- BLAS definitions: -DBLAS_USE_F2C
-- BLAS libraries:   /System/Library/Frameworks/Accelerate.framework
-- BLAS link flags:  
-- Boost.ProgramOptions library: /opt/local/lib/libboost_program_options-mt.a
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Kernel_23 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Kinetic_data_structures
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Kinetic_framework
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Largest_empty_rect_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Matrix_search example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Mesh_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_annulus_d example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_circle_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_ellipse_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_quadrilateral_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_sphere_d example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_sphere_of_spheres_d
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Minkowski_sum_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Modular_arithmetic
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Nef_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Nef_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Nef_S2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/PDB example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Partition_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Point_set_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polygon example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polyhedron example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polyhedron_IO example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polynomial example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polynomial_kernel
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polytope_distance_d
example
-- Configuring
/Users/kish1/Desktop/CGAL-3.4/examples/Principal_component_analysis example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Profiling_tools example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/QP_solver example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/RangeSegmentTrees
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Ridges_3 example
-- LAPACK include:    
-- LAPACK definitions: -DLAPACK_USE_F2C
-- LAPACK libraries:   /System/Library/Frameworks/Accelerate.framework
-- LAPACK link flags:  
-- BLAS include:    
-- BLAS definitions: -DBLAS_USE_F2C
-- BLAS libraries:   /System/Library/Frameworks/Accelerate.framework
-- BLAS link flags:  
-- Boost.ProgramOptions library: /opt/local/lib/libboost_program_options-mt.a
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/STL_Extension example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Segment_Delaunay_graph_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Skin_surface_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Snap_rounding_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Spatial_searching
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Spatial_sorting example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Straight_skeleton_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Stream_lines_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Subdivision_method_3
example
-- Configuring
/Users/kish1/Desktop/CGAL-3.4/examples/Surface_mesh_parameterization example
-- USING CXXFLAGS = ' -frounding-math -fno-strict-aliasing -O3 -DNDEBUG
-fno-strict-aliasing'
-- USING EXEFLAGS = ' '
-- Boost.ProgramOptions library: /opt/local/lib/libboost_program_options-mt.a
-- TAUCS libraries not found. Please specify libraries location.
-- NOTICE: This directory requires the TAUCS library, and some examples will
not be compiled.
-- Configuring
/Users/kish1/Desktop/CGAL-3.4/examples/Surface_mesh_simplification example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Surface_mesher example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Triangulation_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Triangulation_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Voronoi_diagram_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Width_3 example
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/kish1/Desktop/CGAL-3.4

The command line output of "cmake -DBUILD_SHARED_LIBS=FALSE
-DWITH_examples=true" when using gcc 4.2.1 is given below:
$ cmake -DBUILD_SHARED_LIBS=FALSE -DWITH_examples=true
-- CGAL_MAJOR_VERSION=3
-- CGAL_MINOR_VERSION=4
-- CGAL_BUILD_VERSION=
-- CGAL_SONAME_VERSION=3
-- CGAL_SOVERSION     =3.0.0
-- CGAL_REFERENCE_CACHE_DIR=
-- Building static libraries
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=9
-- Mac Leopard detected
-- USING CMake version: 2.6.1
-- System: Darwin
-- USING GCC_VERSION = '4.2.1 (Apple Inc. build 5531)'
-- Using gcc version 4 or later. Adding -frounding-math
-- Using gcc version 4.2. Adding -fno-strict-aliasing
-- Build type: Release
-- USING CXXFLAGS = ' -frounding-math -fno-strict-aliasing -O3 -DNDEBUG'
-- USING LDFLAGS = ' '
-- GMPXX include:    /opt/local/include
-- GMPXX libraries:  /opt/local/lib/libgmpxx.dylib
-- GMP include:     /opt/local/include
-- GMP libraries:   /opt/local/lib/libgmp.dylib
-- GMP definitions:
-- USING GMP_VERSION = '4.2.4'
-- MPFR include:      /opt/local/include
-- MPFR libraries:    /opt/local/lib/libmpfr.dylib
-- MPFR definitions:  
-- USING MPFR_VERSION = '2.3.2'
-- Boost include:     /opt/local/include
-- Boost libraries:   /opt/local/lib/libboost_thread-mt.a
-- Boost definitions:
-- USING BOOST_VERSION = '1.37.0'
-- CMAKE_INSTALL_PREFIX=/usr/local
-- OpenGL include:     /System/Library/Frameworks/OpenGL.framework
-- OpenGL libraries:  
/System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.framework
-- USING ZLIB_VERSION = '1.2.3'
-- ZLib   include:     /usr/include
-- ZLib   libraries:   /usr/lib/libz.dylib
-- CGAL_Qt3 needs Qt3, cannot be configured.
-- CGAL_Qt4 needs Qt4, cannot be configured.
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Algebraic_foundations
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Alpha_shapes_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Alpha_shapes_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Apollonius_graph_2
example
-- Configuring
/Users/kish1/Desktop/CGAL-3.4/examples/Approximate_min_ellipsoid_d example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Arrangement_on_surface_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/BGL_arrangement_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/BGL_polyhedron_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/BGL_triangulation_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Boolean_set_operations_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Box_intersection_d
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/CGALimageIO example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Circular_kernel_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Circular_kernel_3
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Circulator example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Convex_hull_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Convex_hull_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Core example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Envelope_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Envelope_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Filtered_kernel example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Generator example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/HalfedgeDS example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Interpolation example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Interval_skip_list
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Jet_fitting_3 example
-- LAPACK include:    
-- LAPACK definitions: -DLAPACK_USE_F2C
-- LAPACK libraries:   /System/Library/Frameworks/Accelerate.framework
-- LAPACK link flags:  
-- BLAS include:    
-- BLAS definitions: -DBLAS_USE_F2C
-- BLAS libraries:   /System/Library/Frameworks/Accelerate.framework
-- BLAS link flags:  
-- Boost.ProgramOptions library: /opt/local/lib/libboost_program_options-mt.a
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Kernel_23 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Kinetic_data_structures
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Kinetic_framework
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Largest_empty_rect_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Matrix_search example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Mesh_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_annulus_d example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_circle_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_ellipse_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_quadrilateral_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_sphere_d example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_sphere_of_spheres_d
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Minkowski_sum_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Modular_arithmetic
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Nef_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Nef_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Nef_S2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/PDB example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Partition_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Point_set_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polygon example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polyhedron example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polyhedron_IO example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polynomial example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polynomial_kernel
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polytope_distance_d
example
-- Configuring
/Users/kish1/Desktop/CGAL-3.4/examples/Principal_component_analysis example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Profiling_tools example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/QP_solver example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/RangeSegmentTrees
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Ridges_3 example
-- LAPACK include:    
-- LAPACK definitions: -DLAPACK_USE_F2C
-- LAPACK libraries:   /System/Library/Frameworks/Accelerate.framework
-- LAPACK link flags:  
-- BLAS include:    
-- BLAS definitions: -DBLAS_USE_F2C
-- BLAS libraries:   /System/Library/Frameworks/Accelerate.framework
-- BLAS link flags:  
-- Boost.ProgramOptions library: /opt/local/lib/libboost_program_options-mt.a
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/STL_Extension example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Segment_Delaunay_graph_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Skin_surface_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Snap_rounding_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Spatial_searching
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Spatial_sorting example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Straight_skeleton_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Stream_lines_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Subdivision_method_3
example
-- Configuring
/Users/kish1/Desktop/CGAL-3.4/examples/Surface_mesh_parameterization example
-- USING CXXFLAGS = ' -frounding-math -fno-strict-aliasing -O3 -DNDEBUG
-fno-strict-aliasing'
-- USING EXEFLAGS = ' '
-- Boost.ProgramOptions library: /opt/local/lib/libboost_program_options-mt.a
-- TAUCS libraries not found. Please specify libraries location.
-- NOTICE: This directory requires the TAUCS library, and some examples will
not be compiled.
-- Configuring
/Users/kish1/Desktop/CGAL-3.4/examples/Surface_mesh_simplification example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Surface_mesher example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Triangulation_2 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Triangulation_3 example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Voronoi_diagram_2
example
-- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Width_3 example
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/kish1/Desktop/CGAL-3.4

The command line output of the subsequent "make" command:
$ make
"/Applications/CMake 2.6-1.app/Contents/bin/cmake"
-H/Users/kish1/Desktop/CGAL-3.4 -B/Users/kish1/Desktop/CGAL-3.4
--check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.6-1.app/Contents/bin/cmake" -E cmake_progress_start
/Users/kish1/Desktop/CGAL-3.4/CMakeFiles
/Users/kish1/Desktop/CGAL-3.4/CMakeFiles/progress.make
make -f CMakeFiles/Makefile2 all
make -f src/CGAL/CMakeFiles/CGAL.dir/build.make
src/CGAL/CMakeFiles/CGAL.dir/depend
cd /Users/kish1/Desktop/CGAL-3.4 && "/Applications/CMake
2.6-1.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles"
/Users/kish1/Desktop/CGAL-3.4 /Users/kish1/Desktop/CGAL-3.4/src/CGAL
/Users/kish1/Desktop/CGAL-3.4 /Users/kish1/Desktop/CGAL-3.4/src/CGAL
/Users/kish1/Desktop/CGAL-3.4/src/CGAL/CMakeFiles/CGAL.dir/DependInfo.cmake
--color=
make -f src/CGAL/CMakeFiles/CGAL.dir/build.make
src/CGAL/CMakeFiles/CGAL.dir/build
"/Applications/CMake 2.6-1.app/Contents/bin/cmake" -E cmake_progress_report
/Users/kish1/Desktop/CGAL-3.4/CMakeFiles
[  0%] Building CXX object src/CGAL/CMakeFiles/CGAL.dir/all_files.o
cd /Users/kish1/Desktop/CGAL-3.4/src/CGAL && /usr/bin/c++    -frounding-math
-fno-strict-aliasing -O3 -DNDEBUG -I/Users/kish1/Desktop/CGAL-3.4/include
-I/opt/local/include   -o CMakeFiles/CGAL.dir/all_files.o -c
/Users/kish1/Desktop/CGAL-3.4/src/CGAL/all_files.cpp
In file included from /opt/local/include/boost/detail/sp_counted_base.hpp:35,
                 from /opt/local/include/boost/detail/shared_count.hpp:29,
                 from /opt/local/include/boost/shared_ptr.hpp:32,
                 from /opt/local/include/boost/thread/tss.hpp:9,
                 from
/Users/kish1/Desktop/CGAL-3.4/include/CGAL/Modular_arithmetic/Residue_type.h:30,
                 from /Users/kish1/Desktop/CGAL-3.4/include/CGAL/Residue.h:31,
                 from
/Users/kish1/Desktop/CGAL-3.4/include/CGAL/Modular_traits.h:24,
                 from /Users/kish1/Desktop/CGAL-3.4/include/CGAL/int.h:29,
                 from
/Users/kish1/Desktop/CGAL-3.4/include/CGAL/number_type_basic.h:78,
                 from /Users/kish1/Desktop/CGAL-3.4/include/CGAL/basic.h:35,
                 from
/Users/kish1/Desktop/CGAL-3.4/include/CGAL/Cartesian/Cartesian_base.h:27,
                 from
/Users/kish1/Desktop/CGAL-3.4/include/CGAL/Simple_cartesian.h:27,
                 from
/Users/kish1/Desktop/CGAL-3.4/src/CGAL/Bbox_2_intersections.cpp:25,
                 from /Users/kish1/Desktop/CGAL-3.4/src/CGAL/all_files.cpp:21:
/opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp: In function ‘int
boost::detail::atomic_exchange_and_add(int*, int)’:
/opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp:43: error: asm
blocks not enabled, use `-fasm-blocks'
/opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp:46: error: expected
`)' before ‘:’ token
/opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp: In function
‘void boost::detail::atomic_increment(int*)’:
/opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp:59: error: asm
blocks not enabled, use `-fasm-blocks'
/opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp:62: error: expected
`)' before ‘:’ token
/opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp: In function ‘int
boost::detail::atomic_conditional_increment(int*)’:
/opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp:77: error: asm
blocks not enabled, use `-fasm-blocks'
/opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp:88: error: expected
`)' before ‘:’ token
make[2]: *** [src/CGAL/CMakeFiles/CGAL.dir/all_files.o] Error 1
make[1]: *** [src/CGAL/CMakeFiles/CGAL.dir/all] Error 2
make: *** [all] Error 2
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
Reply | Threaded
Open this post in threaded view
|

Re: CGAL 3.4 seg-fault in running examples (Mac OS

Qianqian Fang
I would like confirm this bug on Mac OS X 10.4 powerpc (gcc 4.0.1, cmake
2.6,
boost 1.33.1, gmp 4.1.4, mpfr 2.2.0, opengl 2.0, zlib 1.2.3), it had
exactly the
same story as Kishalay's for mesh_a_3d_gray_image.


[hidden email] wrote:

> I apologize in advance if this has been discussed before, but I'm having
> problems running CGAL 3.4 on my Intel Core 2 duo based Mac OS X 10.5. I haven't
> been able to pinpoint where the error may lie and have since decided to post
> here. I have cmake 2.6.1, boost 1.37.1, gmp 4.2.4 and mpfr 2.3 (through
> macports) installed. Following are the steps I take to install and run an
> example in CGAL 3.4. I provide the command line outputs from cmake below. Could
> someone please let me know what might be going wrong.
>
> One last thing. As you can see below, cmake uses gcc 4.0.1 while doing all
> this. I also have gcc 4.2.1 installed. When I use this, make gives me a
> compiler error about "asm not allowed" and exits. (I have also provided the
> command line output for that)
>
> STeps:
> 1. cmake -DBUILD_SHARED_LIBS=FALSE -DWITH_examples=true
> 2. make
> 3. make -C examples/Surface_mesher
> 4. cd examples/Surface_mesher; ./mesh_a_3d_gray_image
> (it segfaults after this on the make_surface_mesh() function
>
> The command line output of "cmake -DBUILD_SHARED_LIBS=FALSE
> -DWITH_examples=true" when using gcc 4.0.1 is given below:
> $ cmake -DBUILD_SHARED_LIBS=FALSE -DWITH_examples=true
> -- CGAL_MAJOR_VERSION=3
> -- CGAL_MINOR_VERSION=4
> -- CGAL_BUILD_VERSION=
> -- CGAL_SONAME_VERSION=3
> -- CGAL_SOVERSION     =3.0.0
> -- CGAL_REFERENCE_CACHE_DIR=
> -- Building static libraries
> -- Targetting Unix Makefiles
> -- Using /usr/bin/c++ compiler.
> -- DARWIN_VERSION=9
> -- Mac Leopard detected
> -- USING CMake version: 2.6.1
> -- System: Darwin
> -- USING GCC_VERSION = '4.0.1 (Apple Inc. build 5484)'
> -- Using gcc version 4 or later. Adding -frounding-math
> -- Build type: Release
> -- USING CXXFLAGS = ' -frounding-math -fno-strict-aliasing -O3 -DNDEBUG'
> -- USING LDFLAGS = ' '
> -- GMPXX include:    /opt/local/include
> -- GMPXX libraries:  /opt/local/lib/libgmpxx.dylib
> -- GMP include:     /opt/local/include
> -- GMP libraries:   /opt/local/lib/libgmp.dylib
> -- GMP definitions:
> -- USING GMP_VERSION = '4.2.4'
> -- MPFR include:      /opt/local/include
> -- MPFR libraries:    /opt/local/lib/libmpfr.dylib
> -- MPFR definitions:  
> -- USING MPFR_VERSION = '2.3.2'
> -- Boost include:     /opt/local/include
> -- Boost libraries:   /opt/local/lib/libboost_thread-mt.a
> -- Boost definitions:
> -- USING BOOST_VERSION = '1.37.0'
> -- CMAKE_INSTALL_PREFIX=/usr/local
> -- OpenGL include:     /System/Library/Frameworks/OpenGL.framework
> -- OpenGL libraries:  
> /System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.framework
> -- USING ZLIB_VERSION = '1.2.3'
> -- ZLib   include:     /usr/include
> -- ZLib   libraries:   /usr/lib/libz.dylib
> -- CGAL_Qt3 needs Qt3, cannot be configured.
> -- CGAL_Qt4 needs Qt4, cannot be configured.
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Algebraic_foundations
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Alpha_shapes_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Alpha_shapes_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Apollonius_graph_2
> example
> -- Configuring
> /Users/kish1/Desktop/CGAL-3.4/examples/Approximate_min_ellipsoid_d example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Arrangement_on_surface_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/BGL_arrangement_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/BGL_polyhedron_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/BGL_triangulation_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Boolean_set_operations_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Box_intersection_d
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/CGALimageIO example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Circular_kernel_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Circular_kernel_3
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Circulator example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Convex_hull_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Convex_hull_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Core example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Envelope_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Envelope_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Filtered_kernel example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Generator example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/HalfedgeDS example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Interpolation example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Interval_skip_list
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Jet_fitting_3 example
> -- LAPACK include:    
> -- LAPACK definitions: -DLAPACK_USE_F2C
> -- LAPACK libraries:   /System/Library/Frameworks/Accelerate.framework
> -- LAPACK link flags:  
> -- BLAS include:    
> -- BLAS definitions: -DBLAS_USE_F2C
> -- BLAS libraries:   /System/Library/Frameworks/Accelerate.framework
> -- BLAS link flags:  
> -- Boost.ProgramOptions library: /opt/local/lib/libboost_program_options-mt.a
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Kernel_23 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Kinetic_data_structures
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Kinetic_framework
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Largest_empty_rect_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Matrix_search example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Mesh_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_annulus_d example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_circle_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_ellipse_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_quadrilateral_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_sphere_d example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_sphere_of_spheres_d
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Minkowski_sum_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Modular_arithmetic
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Nef_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Nef_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Nef_S2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/PDB example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Partition_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Point_set_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polygon example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polyhedron example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polyhedron_IO example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polynomial example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polynomial_kernel
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polytope_distance_d
> example
> -- Configuring
> /Users/kish1/Desktop/CGAL-3.4/examples/Principal_component_analysis example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Profiling_tools example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/QP_solver example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/RangeSegmentTrees
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Ridges_3 example
> -- LAPACK include:    
> -- LAPACK definitions: -DLAPACK_USE_F2C
> -- LAPACK libraries:   /System/Library/Frameworks/Accelerate.framework
> -- LAPACK link flags:  
> -- BLAS include:    
> -- BLAS definitions: -DBLAS_USE_F2C
> -- BLAS libraries:   /System/Library/Frameworks/Accelerate.framework
> -- BLAS link flags:  
> -- Boost.ProgramOptions library: /opt/local/lib/libboost_program_options-mt.a
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/STL_Extension example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Segment_Delaunay_graph_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Skin_surface_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Snap_rounding_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Spatial_searching
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Spatial_sorting example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Straight_skeleton_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Stream_lines_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Subdivision_method_3
> example
> -- Configuring
> /Users/kish1/Desktop/CGAL-3.4/examples/Surface_mesh_parameterization example
> -- USING CXXFLAGS = ' -frounding-math -fno-strict-aliasing -O3 -DNDEBUG
> -fno-strict-aliasing'
> -- USING EXEFLAGS = ' '
> -- Boost.ProgramOptions library: /opt/local/lib/libboost_program_options-mt.a
> -- TAUCS libraries not found. Please specify libraries location.
> -- NOTICE: This directory requires the TAUCS library, and some examples will
> not be compiled.
> -- Configuring
> /Users/kish1/Desktop/CGAL-3.4/examples/Surface_mesh_simplification example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Surface_mesher example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Triangulation_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Triangulation_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Voronoi_diagram_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Width_3 example
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /Users/kish1/Desktop/CGAL-3.4
>
> The command line output of "cmake -DBUILD_SHARED_LIBS=FALSE
> -DWITH_examples=true" when using gcc 4.2.1 is given below:
> $ cmake -DBUILD_SHARED_LIBS=FALSE -DWITH_examples=true
> -- CGAL_MAJOR_VERSION=3
> -- CGAL_MINOR_VERSION=4
> -- CGAL_BUILD_VERSION=
> -- CGAL_SONAME_VERSION=3
> -- CGAL_SOVERSION     =3.0.0
> -- CGAL_REFERENCE_CACHE_DIR=
> -- Building static libraries
> -- Targetting Unix Makefiles
> -- Using /usr/bin/c++ compiler.
> -- DARWIN_VERSION=9
> -- Mac Leopard detected
> -- USING CMake version: 2.6.1
> -- System: Darwin
> -- USING GCC_VERSION = '4.2.1 (Apple Inc. build 5531)'
> -- Using gcc version 4 or later. Adding -frounding-math
> -- Using gcc version 4.2. Adding -fno-strict-aliasing
> -- Build type: Release
> -- USING CXXFLAGS = ' -frounding-math -fno-strict-aliasing -O3 -DNDEBUG'
> -- USING LDFLAGS = ' '
> -- GMPXX include:    /opt/local/include
> -- GMPXX libraries:  /opt/local/lib/libgmpxx.dylib
> -- GMP include:     /opt/local/include
> -- GMP libraries:   /opt/local/lib/libgmp.dylib
> -- GMP definitions:
> -- USING GMP_VERSION = '4.2.4'
> -- MPFR include:      /opt/local/include
> -- MPFR libraries:    /opt/local/lib/libmpfr.dylib
> -- MPFR definitions:  
> -- USING MPFR_VERSION = '2.3.2'
> -- Boost include:     /opt/local/include
> -- Boost libraries:   /opt/local/lib/libboost_thread-mt.a
> -- Boost definitions:
> -- USING BOOST_VERSION = '1.37.0'
> -- CMAKE_INSTALL_PREFIX=/usr/local
> -- OpenGL include:     /System/Library/Frameworks/OpenGL.framework
> -- OpenGL libraries:  
> /System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.framework
> -- USING ZLIB_VERSION = '1.2.3'
> -- ZLib   include:     /usr/include
> -- ZLib   libraries:   /usr/lib/libz.dylib
> -- CGAL_Qt3 needs Qt3, cannot be configured.
> -- CGAL_Qt4 needs Qt4, cannot be configured.
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Algebraic_foundations
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Alpha_shapes_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Alpha_shapes_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Apollonius_graph_2
> example
> -- Configuring
> /Users/kish1/Desktop/CGAL-3.4/examples/Approximate_min_ellipsoid_d example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Arrangement_on_surface_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/BGL_arrangement_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/BGL_polyhedron_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/BGL_triangulation_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Boolean_set_operations_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Box_intersection_d
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/CGALimageIO example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Circular_kernel_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Circular_kernel_3
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Circulator example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Convex_hull_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Convex_hull_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Core example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Envelope_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Envelope_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Filtered_kernel example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Generator example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/HalfedgeDS example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Interpolation example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Interval_skip_list
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Jet_fitting_3 example
> -- LAPACK include:    
> -- LAPACK definitions: -DLAPACK_USE_F2C
> -- LAPACK libraries:   /System/Library/Frameworks/Accelerate.framework
> -- LAPACK link flags:  
> -- BLAS include:    
> -- BLAS definitions: -DBLAS_USE_F2C
> -- BLAS libraries:   /System/Library/Frameworks/Accelerate.framework
> -- BLAS link flags:  
> -- Boost.ProgramOptions library: /opt/local/lib/libboost_program_options-mt.a
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Kernel_23 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Kinetic_data_structures
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Kinetic_framework
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Largest_empty_rect_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Matrix_search example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Mesh_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_annulus_d example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_circle_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_ellipse_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_quadrilateral_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_sphere_d example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Min_sphere_of_spheres_d
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Minkowski_sum_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Modular_arithmetic
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Nef_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Nef_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Nef_S2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/PDB example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Partition_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Point_set_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polygon example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polyhedron example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polyhedron_IO example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polynomial example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polynomial_kernel
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Polytope_distance_d
> example
> -- Configuring
> /Users/kish1/Desktop/CGAL-3.4/examples/Principal_component_analysis example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Profiling_tools example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/QP_solver example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/RangeSegmentTrees
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Ridges_3 example
> -- LAPACK include:    
> -- LAPACK definitions: -DLAPACK_USE_F2C
> -- LAPACK libraries:   /System/Library/Frameworks/Accelerate.framework
> -- LAPACK link flags:  
> -- BLAS include:    
> -- BLAS definitions: -DBLAS_USE_F2C
> -- BLAS libraries:   /System/Library/Frameworks/Accelerate.framework
> -- BLAS link flags:  
> -- Boost.ProgramOptions library: /opt/local/lib/libboost_program_options-mt.a
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/STL_Extension example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Segment_Delaunay_graph_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Skin_surface_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Snap_rounding_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Spatial_searching
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Spatial_sorting example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Straight_skeleton_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Stream_lines_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Subdivision_method_3
> example
> -- Configuring
> /Users/kish1/Desktop/CGAL-3.4/examples/Surface_mesh_parameterization example
> -- USING CXXFLAGS = ' -frounding-math -fno-strict-aliasing -O3 -DNDEBUG
> -fno-strict-aliasing'
> -- USING EXEFLAGS = ' '
> -- Boost.ProgramOptions library: /opt/local/lib/libboost_program_options-mt.a
> -- TAUCS libraries not found. Please specify libraries location.
> -- NOTICE: This directory requires the TAUCS library, and some examples will
> not be compiled.
> -- Configuring
> /Users/kish1/Desktop/CGAL-3.4/examples/Surface_mesh_simplification example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Surface_mesher example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Triangulation_2 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Triangulation_3 example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Voronoi_diagram_2
> example
> -- Configuring /Users/kish1/Desktop/CGAL-3.4/examples/Width_3 example
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /Users/kish1/Desktop/CGAL-3.4
>
> The command line output of the subsequent "make" command:
> $ make
> "/Applications/CMake 2.6-1.app/Contents/bin/cmake"
> -H/Users/kish1/Desktop/CGAL-3.4 -B/Users/kish1/Desktop/CGAL-3.4
> --check-build-system CMakeFiles/Makefile.cmake 0
> "/Applications/CMake 2.6-1.app/Contents/bin/cmake" -E cmake_progress_start
> /Users/kish1/Desktop/CGAL-3.4/CMakeFiles
> /Users/kish1/Desktop/CGAL-3.4/CMakeFiles/progress.make
> make -f CMakeFiles/Makefile2 all
> make -f src/CGAL/CMakeFiles/CGAL.dir/build.make
> src/CGAL/CMakeFiles/CGAL.dir/depend
> cd /Users/kish1/Desktop/CGAL-3.4 && "/Applications/CMake
> 2.6-1.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles"
> /Users/kish1/Desktop/CGAL-3.4 /Users/kish1/Desktop/CGAL-3.4/src/CGAL
> /Users/kish1/Desktop/CGAL-3.4 /Users/kish1/Desktop/CGAL-3.4/src/CGAL
> /Users/kish1/Desktop/CGAL-3.4/src/CGAL/CMakeFiles/CGAL.dir/DependInfo.cmake
> --color=
> make -f src/CGAL/CMakeFiles/CGAL.dir/build.make
> src/CGAL/CMakeFiles/CGAL.dir/build
> "/Applications/CMake 2.6-1.app/Contents/bin/cmake" -E cmake_progress_report
> /Users/kish1/Desktop/CGAL-3.4/CMakeFiles
> [  0%] Building CXX object src/CGAL/CMakeFiles/CGAL.dir/all_files.o
> cd /Users/kish1/Desktop/CGAL-3.4/src/CGAL && /usr/bin/c++    -frounding-math
> -fno-strict-aliasing -O3 -DNDEBUG -I/Users/kish1/Desktop/CGAL-3.4/include
> -I/opt/local/include   -o CMakeFiles/CGAL.dir/all_files.o -c
> /Users/kish1/Desktop/CGAL-3.4/src/CGAL/all_files.cpp
> In file included from /opt/local/include/boost/detail/sp_counted_base.hpp:35,
> from /opt/local/include/boost/detail/shared_count.hpp:29,
> from /opt/local/include/boost/shared_ptr.hpp:32,
> from /opt/local/include/boost/thread/tss.hpp:9,
> from
> /Users/kish1/Desktop/CGAL-3.4/include/CGAL/Modular_arithmetic/Residue_type.h:30,
> from /Users/kish1/Desktop/CGAL-3.4/include/CGAL/Residue.h:31,
> from
> /Users/kish1/Desktop/CGAL-3.4/include/CGAL/Modular_traits.h:24,
> from /Users/kish1/Desktop/CGAL-3.4/include/CGAL/int.h:29,
> from
> /Users/kish1/Desktop/CGAL-3.4/include/CGAL/number_type_basic.h:78,
> from /Users/kish1/Desktop/CGAL-3.4/include/CGAL/basic.h:35,
> from
> /Users/kish1/Desktop/CGAL-3.4/include/CGAL/Cartesian/Cartesian_base.h:27,
> from
> /Users/kish1/Desktop/CGAL-3.4/include/CGAL/Simple_cartesian.h:27,
> from
> /Users/kish1/Desktop/CGAL-3.4/src/CGAL/Bbox_2_intersections.cpp:25,
> from /Users/kish1/Desktop/CGAL-3.4/src/CGAL/all_files.cpp:21:
> /opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp: In function ‘int
> boost::detail::atomic_exchange_and_add(int*, int)’:
> /opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp:43: error: asm
> blocks not enabled, use `-fasm-blocks'
> /opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp:46: error: expected
> `)' before ‘:’ token
> /opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp: In function
> ‘void boost::detail::atomic_increment(int*)’:
> /opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp:59: error: asm
> blocks not enabled, use `-fasm-blocks'
> /opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp:62: error: expected
> `)' before ‘:’ token
> /opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp: In function ‘int
> boost::detail::atomic_conditional_increment(int*)’:
> /opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp:77: error: asm
> blocks not enabled, use `-fasm-blocks'
> /opt/local/include/boost/detail/sp_counted_base_gcc_x86.hpp:88: error: expected
> `)' before ‘:’ token
> make[2]: *** [src/CGAL/CMakeFiles/CGAL.dir/all_files.o] Error 1
> make[1]: *** [src/CGAL/CMakeFiles/CGAL.dir/all] Error 2
> make: *** [all] Error 2
>  

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
Reply | Threaded
Open this post in threaded view
|

Re: CGAL 3.4 seg-fault in running examples (Mac OS

Sylvain Pion
Administrator
In reply to this post by kishalay.kundu
[hidden email] wrote:
> I apologize in advance if this has been discussed before, but I'm having
> problems running CGAL 3.4 on my Intel Core 2 duo based Mac OS X 10.5. I haven't
> been able to pinpoint where the error may lie and have since decided to post
> here. I have cmake 2.6.1, boost 1.37.1, gmp 4.2.4 and mpfr 2.3 (through
> macports) installed. Following are the steps I take to install and run an
> example in CGAL 3.4. I provide the command line outputs from cmake below. Could
> someone please let me know what might be going wrong.

g++ 4.0 on the Mac is notoriously buggy when optimizing.
See the FAQ : http://www.cgal.org/FAQ.html#mac_optimization_bug

> One last thing. As you can see below, cmake uses gcc 4.0.1 while doing all
> this. I also have gcc 4.2.1 installed. When I use this, make gives me a
> compiler error about "asm not allowed" and exits. (I have also provided the
> command line output for that)

I don't know about this one.  Maybe try 4.3 ?

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/

smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: CGAL 3.4 seg-fault in running examples (Mac

kishalay.kundu
I managed to solve this by installing XCode 3.1.2 and then using gcc 4.2.1
(apple build 5566). The previous version gcc 4.2.1(apple build 5531) seemed to
have problems.
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss