← Back to team overview

dolfin team mailing list archive

CGAL problems on OS X

 

Hi,

I have some problems with CGAL on OS X when building dolfin:

mpic++ -o dolfin/quadrature/BarycenterQuadrature.os -c -Wall -pipe
-ansi -DBOOST_UBLAS_NDEBUG -DDEBUG -g -O2 -Werror -DHAS_MPI=1
-DMPICH_IGNORE_CXX_SEEK -DPACKAGE_VERSION=\"0.9.8+\" -DHAS_CGAL=1
-DHAS_TRILINOS=1 -DHAS_UMFPACK=1 -DHAS_CHOLMOD=1 -DHAS_PARMETIS=1
-DHAS_LAPACK=1 -DHAS_SLEPC=1 -DHAS_ZLIB=1 -DHAS_MTL4=1 -DHAS_PETSC=1
-DHAS_GMP=1 -DHAS_SCOTCH=1 -fno-strict-aliasing -frounding-math
-DMTL_HAS_BLAS -fPIC -I.
-I/Users/fenicsslave3/jhbuildbot/fenics/include
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/include/libxml2
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/include/trilinos
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/include/suitesparse
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/src/mtl4
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/include
-I/Users/fenicsslave3/Work/FEniCS/include
dolfin/quadrature/BarycenterQuadrature.cpp
cc1plus: warnings being treated as errors
/Users/fenicsslave3/Work/FEniCS/include/CGAL/Lazy.h: In member
function 'typename CGAL::Qualified_result_of<typename R_::Compute_x_3,
CGAL::Point_3<R_>, void, void, void, void, void, void, void>::type
CGAL::Point_3<R_>::x() const [with R_ =
CGAL::Lazy_kernel<CGAL::Simple_cartesian<CGAL::Gmpq>,
CGAL::Simple_cartesian<CGAL::Interval_nt<false> >,
CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Gmpq>,
CGAL::Simple_cartesian<CGAL::Interval_nt<false> >,
CGAL::NT_converter<CGAL::Gmpq, CGAL::Interval_nt<false> > > >]':
/Users/fenicsslave3/Work/FEniCS/include/CGAL/Lazy.h:335: warning:
'<anonymous>.CGAL::Lazy_construction_nt<CGAL::Lazy_kernel<CGAL::Simple_cartesian<CGAL::Gmpq>,
CGAL::Simple_cartesian<CGAL::Interval_nt<false> >,
CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Gmpq>,
CGAL::Simple_cartesian<CGAL::Interval_nt<false> >,
CGAL::NT_converter<CGAL::Gmpq, CGAL::Interval_nt<false> > > >,
CGAL::CartesianKernelFunctors::Compute_x_3<CGAL::Simple_cartesian<CGAL::Interval_nt<false>
> >, CGAL::CartesianKernelFunctors::Compute_x_3<CGAL::Simple_cartesian<CGAL::Gmpq>
> >::ec' is used uninitialized in this function
/Users/fenicsslave3/Work/FEniCS/include/CGAL/Lazy.h:1229: note:
'<anonymous>.CGAL::Lazy_construction_nt<CGAL::Lazy_kernel<CGAL::Simple_cartesian<CGAL::Gmpq>,
CGAL::Simple_cartesian<CGAL::Interval_nt<false> >,
CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Gmpq>,
CGAL::Simple_cartesian<CGAL::Interval_nt<false> >,
CGAL::NT_converter<CGAL::Gmpq, CGAL::Interval_nt<false> > > >,
CGAL::CartesianKernelFunctors::Compute_x_3<CGAL::Simple_cartesian<CGAL::Interval_nt<false>
> >, CGAL::CartesianKernelFunctors::Compute_x_3<CGAL::Simple_cartesian<CGAL::Gmpq>
> >::ec' was declared here
{standard input}:unknown:Undefined local symbol LC3
{standard input}:unknown:Undefined local symbol LC6
{standard input}:unknown:Undefined local symbol LC9
{standard input}:unknown:Undefined local symbol LC10
{standard input}:unknown:Undefined local symbol LC11
{standard input}:unknown:Undefined local symbol LC16
{standard input}:unknown:Undefined local symbol LC1
scons: *** [dolfin/quadrature/BarycenterQuadrature.os] Error 1
scons: building terminated because of errors.
dolfin/quadrature/BarycenterQuadrature.os failed: Error 1

I'm not sure how to resolve this (without removing the -Werror flag). Any ideas?

Johannes



Follow ups