** Changed in: dolfin
       Status: Confirmed => Fix Committed

-- 
Newly added cgal detection in scons does not set needed cflags
https://bugs.launchpad.net/bugs/492295
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.

Status in DOLFIN: Fix Committed

Bug description:
Simple run of the scons.local script detects CGAL correctly and generates a 
pkgconfig file, but 
1. the -I includepath is not detected correctly (should be /home/andre/local/ 
instead of /usr/include)
2. and the cflag -frounding-math is not appended to the cflags when scons run 
the compilation.

Relevant environment variables:
export LOCALPATH=${HOME}/local
export CPLUS_INCLUDE_PATH=$CPLUS_INLUDE_PATH:$LOCALPATH/include
export LD_LIBRARY_PATH=$LOCALPATH/lib:${LOCALPATH}/lib/vmtk:$LD_LIBRARY_PATH
export 
PKG_CONFIG_PATH=$LOCALPATH/lib/pkgconfig:$PKG_CONFIG_PATH:/usr/lib/pkgconfig

cgal.pc:
Name: cgal
Version: 3.5.0
Description: Computational Geometry Algorithms Library
Libs: -L/usr/lib -lCGAL -lCGAL_Core
Cflags: -I/usr/include -frounding-math

scons  output:

Fri Dec 04 13:46 an...@andre-laptop:cgal_branch 78>./scons.local 
scons: Reading SConscript files ...                              
/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/simula-scons
Using options from 
/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/options.cache
Checking for pkg-config... yes                                                  
                                 
Checking for boost... no (pkg-config file not found)                            
                                 
 Trying to generate pkg-config file for boost... done                           
                                 
 Found Boost and generated pkg-config file in                                   
                                 
 
'/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/pkgconfig'
                    
Checking for boost_filesystem... no (pkg-config file not found)                 
                                 
 Trying to generate pkg-config file for boost_filesystem... done                
                                 
 Found Boost.Filesystem and generated pkg-config file in                        
                                 
 
'/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/pkgconfig'
                    
Checking for boost_program_options... no (pkg-config file not found)            
                                 
 Trying to generate pkg-config file for boost_program_options... done           
                                 
 Found Boost.Program_options and generated pkg-config file in                   
                                 
 
'/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/pkgconfig'
                    
Checking for cgal... no (pkg-config file not found)                             
                                 
 Trying to generate pkg-config file for cgal... done                            
                                 
 Found cgal and generated pkg-config file in                                    
                                 
 
'/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/pkgconfig'
                    
Checking for cholmod... no (pkg-config file not found)                          
                                 
 Trying to generate pkg-config file for cholmod... done                         
                                 
 Found CHOLMOD and generated pkg-config file in                                 
                                 
 
'/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/pkgconfig'
                    
Checking for gts... yes                                                         
                                 
Checking for libxml-2.0... yes                                                  
                                 
Checking for mtl4... no (pkg-config file not found)                             
                                 
 Trying to generate pkg-config file for mtl4... failed                          
                                 
Checking for numpy-1... yes                                                     
                                 
Checking for parmetis... no (pkg-config file not found)                         
                                 
 Trying to generate pkg-config file for parmetis... done                        
                                 
 Found ParMETIS and generated pkg-config file in                                
                                 
 
'/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/pkgconfig'
                    
Checking for petsc... no (pkg-config file not found)                            
                                 
 Trying to generate pkg-config file for petsc... done                           
                                 
 Found PETSc and generated pkg-config file in                                   
                                 
 
'/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/pkgconfig'
                    
Checking for python-2... yes                                                    
                                 
Checking for scotch... no (pkg-config file not found)                           
                                 
 Trying to generate pkg-config file for scotch... done                          
                                 
 Found SCOTCH and generated pkg-config file in                                  
                                 
 
'/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/pkgconfig'
                    
Checking for slepc... no (pkg-config file not found)                            
                                 
 Trying to generate pkg-config file for slepc... done                           
                                 
 Found SLEPc and generated pkg-config file in                                   
                                 
 
'/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/pkgconfig'
                    
Checking for trilinos... no (pkg-config file not found)                         
                                 
 Trying to generate pkg-config file for trilinos... failed                      
                                 
Checking for ufc-1... yes                                                       
                                 
Checking for umfpack... no (pkg-config file not found)                          
                                 
 Trying to generate pkg-config file for umfpack... done                         
                                 
 Found UMFPACK and generated pkg-config file in                                 
                                 
 
'/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/pkgconfig'
                    
Checking for zlib... no (pkg-config file not found)                             
                                 
 Trying to generate pkg-config file for zlib... done                            
                                 
 Found zlib and generated pkg-config file in                                    
                                 
 
'/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/pkgconfig'
                    
Resolving compiler... done                                                      
                                 
Found optional package: cgal (version 3.5)                                      
                                 
Found optional package: umfpack (version 5.2.0)                                 
                                 
Found optional package: cholmod (version 1.6.0)                                 
                                 
Found optional package: parmetis (version 3.1)                                  
                                 
Found optional package: slepc (version 3.0.0)                                   
                                 
Found optional package: zlib (version 1.2.3)                                    
                                 
Found optional package: petsc (version 3.0.0)                                   
                                 
Found optional package: gts (version 0.7)                                       
                                 
Found optional package: scotch (version 5.0)                                    
                                 
Unable to find optional package: trilinos (version 7.0.0)                       
                                 
Unable to find optional package: mtl4 (version 4)                               
                                 
Enabling compilation of Python wrappers                                         
                                 
---------------------------------------------------------                       
                                 
Configuration of DOLFIN finished. Now run                                       
                                 

    scons

to build DOLFIN. To see available configure options, run

    scons configure --help or -h

For a list of general SCons options, run

    scons --help-options or -H

---------------------------------------------------------
scons: Reading SConscript files ...                      
/home/andre/homebase/software/packages/src/fenics-unstable/tmp/cgal_branch/scons/simula-scons
scons: done reading SConscript files.                                           
             
scons: Building targets ...                                                     
             
mpic++ -o dolfin/ale/TransfiniteInterpolation.os -c -Wall -pipe -ansi 
-BOOST_UBLAS_NDEBUG -DDEBUG -g -O2 -Werror -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK 
-DPACKAGE_VERSION=\"0.9.4\" -DHAS_CGAL=1 -DHAS_UMFPACK=1 -DHAS_CHOLMOD=1 
-DHAS_PARMETIS=1 -DHAS_SLEPC=1 -DHAS_ZLIB=1 -DHAS_PETSC=1 -DHAS_GTS=1 
-DHAS_SCOTCH=1 -fno-strict-aliasing -fPIC -I. -I/home/andre/local/include 
-I/usr/include -I/usr/include -I/usr/include -I/usr/include/libxml2 
-I/usr/include -I/usr/include/suitesparse -I/usr/include/suitesparse 
-I/usr/include -I/home/andre/local -I/home/andre/local/include 
-I/home/andre/local/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib 
-I/usr/include -I/home/andre/local/include -I/home/andre/local/include 
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -I/usr/include 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/scotch 
dolfin/ale/TransfiniteInterpolation.cpp
mpic++ -o dolfin/ale/HarmonicSmoothing.os -c -Wall -pipe -ansi 
-BOOST_UBLAS_NDEBUG -DDEBUG -g -O2 -Werror -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK 
-DPACKAGE_VERSION=\"0.9.4\" -DHAS_CGAL=1 -DHAS_UMFPACK=1 -DHAS_CHOLMOD=1 
-DHAS_PARMETIS=1 -DHAS_SLEPC=1 -DHAS_ZLIB=1 -DHAS_PETSC=1 -DHAS_GTS=1 
-DHAS_SCOTCH=1 -fno-strict-aliasing -fPIC -I. -I/home/andre/local/include 
-I/usr/include -I/usr/include -I/usr/include -I/usr/include/libxml2 
-I/usr/include -I/usr/include/suitesparse -I/usr/include/suitesparse 
-I/usr/include -I/home/andre/local -I/home/andre/local/include 
-I/home/andre/local/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib 
-I/usr/include -I/home/andre/local/include -I/home/andre/local/include 
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -I/usr/include 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/scotch 
dolfin/ale/HarmonicSmoothing.cpp
mpic++ -o dolfin/ale/ALE.os -c -Wall -pipe -ansi -BOOST_UBLAS_NDEBUG -DDEBUG -g 
-O2 -Werror -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK -DPACKAGE_VERSION=\"0.9.4\" 
-DHAS_CGAL=1 -DHAS_UMFPACK=1 -DHAS_CHOLMOD=1 -DHAS_PARMETIS=1 -DHAS_SLEPC=1 
-DHAS_ZLIB=1 -DHAS_PETSC=1 -DHAS_GTS=1 -DHAS_SCOTCH=1 -fno-strict-aliasing 
-fPIC -I. -I/home/andre/local/include -I/usr/include -I/usr/include 
-I/usr/include -I/usr/include/libxml2 -I/usr/include -I/usr/include/suitesparse 
-I/usr/include/suitesparse -I/usr/include -I/home/andre/local 
-I/home/andre/local/include -I/home/andre/local/include 
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -I/usr/include 
-I/home/andre/local/include -I/home/andre/local/include 
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -I/usr/include 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/scotch 
dolfin/ale/ALE.cpp



_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Reply via email to