dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #19211
Re: CGAL problems on OS X
On Thu, Aug 19, 2010 at 3:41 PM, Andre Massing <massing@xxxxxxxxx> wrote:
> Hi!
>
> I did not encounter such an error on my machine, at least I do not remember. Will have a look at it.
> Anyway, I just saw that there is a
>
> #include "BarycenterQuadrature.h"
>
> Line 14 in dolfin/quadrature/BarycenterQuadrature.h , so it is self including.
> Johannes, could you remove it?
> Maybe it resolves the problem (at I am not sure how self including actually are handled)...
I tried removing the line but it didn't help.
Johannes
> --
> Andre
>
> Den 19. aug. 2010 kl. 15.20 skrev Johannes Ring:
>
>> 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
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dolfin
>> Post to : dolfin@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dolfin
>> More help : https://help.launchpad.net/ListHelp
>
> --
> André Massing email: massing@xxxxxxxxx
> Ph.D. student mobile: +47 469 57 401
> Simula Research Laboratory
> NO-1367 Fornebu, Norway
>
>
References