← Back to team overview

dolfin team mailing list archive

Re: [Question #157819]: Importing dolfin in python gives Symbol not found: __gfortran_getarg_i4

 

Question #157819 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/157819

Robert Crim gave more information on the question:
It turns out that CGAL hadn't been installed.

So, I noticed that during DOLFIN config, I get notice that gfortran
can't be found:

rob@cosmo dolfin-0.9.10 $ ./dorsal_configure 
-- Checking for package 'Armadillo'
-- Checking for package 'SCOTCH-PT'
-- Performing test SCOTCH_TEST_RUNS
-- Performing test SCOTCH_TEST_RUNS - Success
-- Checking for package 'AMD'
-- Checking for package 'BLAS'
-- Checking for package 'UMFPACK'
-- Checking for package 'AMD'
-- Checking for package 'BLAS'
-- Checking for package 'CHOLMOD'
-- Checking for package 'AMD'
-- Checking for package 'BLAS'
-- Checking for package 'LAPACK'
-- Checking for package 'CHOLMOD'
-- Checking for package 'AMD'
-- Checking for package 'BLAS'
-- Checking for package 'LAPACK'
-- Checking for package 'Trilinos'
-- Checking for package 'MTL4'
-- Checking for package 'BLAS'
-- Checking for package 'PETSc'
-- PETSC_DIR is /Users/rob/Development/FEniCS
-- PETSC_ARCH is empty
-- Found petscconf.h
-- Unable to find library gfortran
-- PETSc test runs
-- Checking for package 'SLEPc'
-- SLEPC_DIR is /Users/rob/Development/FEniCS
-- Unable to find library gfortran
-- SLEPc test runs
-- Checking for package 'CGAL'
-- Checking for package 'CPPUNIT'
-- 
-- The following optional packages were found:
-- -------------------------------------------
-- (OK) OPENMP
-- (OK) MPI
-- (OK) PETSC
-- (OK) SLEPC
-- (OK) MTL4
-- (OK) UMFPACK
-- (OK) CHOLMOD
-- (OK) SCOTCH
-- (OK) PARMETIS
-- (OK) CGAL
-- (OK) ZLIB
-- (OK) PYTHON
-- 
-- The following optional packages were not enabled:
-- -------------------------------------------------
-- (--) GMP
-- 
-- The following optional packages could not be found:
-- ---------------------------------------------------
-- (**) TRILINOS
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/rob/Development/FEniCS/src/dolfin-0.9.10/dorsal_build_dir


Now, I can't complete building DOLFIN, I get the following error:

Building CXX object dolfin/CMakeFiles/dolfin.dir/mesh/LocalMeshData.cpp.o
Building CXX object dolfin/CMakeFiles/dolfin.dir/mesh/IntersectionOperator.cpp.o
In file included from /usr/local/include/CGAL/intersection_3_1.h:426,
                 from /usr/local/include/CGAL/intersection_3.h:28,
                 from /usr/local/include/CGAL/intersections.h:30,
                 from /usr/local/include/CGAL/internal/AABB_tree/AABB_node.h:25,
                 from /usr/local/include/CGAL/internal/AABB_tree/AABB_traversal_traits.h:24,
                 from /usr/local/include/CGAL/AABB_tree.h:25,
                 from /Users/rob/Development/FEniCS/src/dolfin-0.9.10/dolfin/mesh/cgal_includes.h:21,
                 from /Users/rob/Development/FEniCS/src/dolfin-0.9.10/dolfin/mesh/IntersectionOperatorImplementation.h:28,
                 from /Users/rob/Development/FEniCS/src/dolfin-0.9.10/dolfin/mesh/IntersectionOperator.cpp:22:
/usr/local/include/CGAL/Intersections_3/intersection_3_1_impl.h:291: error: redefinition of 'template<class K> CGAL::Object CGAL::internal::intersection(const typename K::Segment_3&, const typename K::Segment_3&, const K&)'
/Users/rob/Development/FEniCS/src/dolfin-0.9.10/dolfin/mesh/Segment_3_Segment_3_intersection.h:46: error: 'template<class K> CGAL::Object CGAL::internal::intersection(const typename K::Segment_3&, const typename K::Segment_3&, const K&)' previously declared here
/usr/local/include/CGAL/Intersections_3/intersection_3_1_impl.h:314: error: redefinition of 'template<class K> bool CGAL::internal::do_intersect(const typename K::Segment_3&, const typename K::Segment_3&, const K&)'
/Users/rob/Development/FEniCS/src/dolfin-0.9.10/dolfin/mesh/Segment_3_Segment_3_intersection.h:34: error: 'template<class K> bool CGAL::internal::do_intersect(const typename K::Segment_3&, const typename K::Segment_3&, const K&)' previously declared here
/usr/local/include/CGAL/Intersections_3/intersection_3_1_impl.h:1543: error: redefinition of 'template<class K> CGAL::Object CGAL::intersection(const CGAL::Segment_3<R>&, const CGAL::Segment_3<R>&)'
/Users/rob/Development/FEniCS/src/dolfin-0.9.10/dolfin/mesh/Segment_3_Segment_3_intersection.h:71: error: 'template<class K> CGAL::Object CGAL::intersection(const CGAL::Segment_3<R>&, const CGAL::Segment_3<R>&)' previously declared here
/usr/local/include/CGAL/Intersections_3/intersection_3_1_impl.h:1550: error: redefinition of 'template<class K> bool CGAL::do_intersect(const CGAL::Segment_3<R>&, const CGAL::Segment_3<R>&)'
/Users/rob/Development/FEniCS/src/dolfin-0.9.10/dolfin/mesh/Segment_3_Segment_3_intersection.h:62: error: 'template<class K> bool CGAL::do_intersect(const CGAL::Segment_3<R>&, const CGAL::Segment_3<R>&)' previously declared here
[  1%] Building CXX object dolfin/CMakeFiles/dolfin.dir/mesh/LocalMeshRefinement.cpp.o
[  1%] Building CXX object dolfin/CMakeFiles/dolfin.dir/mesh/Mesh.cpp.o
make[2]: *** [dolfin/CMakeFiles/dolfin.dir/mesh/IntersectionOperator.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [dolfin/CMakeFiles/dolfin.dir/all] Error 2
make: *** [all] Error 2

You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.