← Back to team overview

dolfin team mailing list archive

scons build

 

Hi,
I am trying to build dolfin from mercurial repositories. Just copied it
today.
I just re-built  boost 1.34.1  locally. installed it
in /home/osman/local

I have petsc-2.3.3-p8 with dynamic/shared libs. have set PETSC_DIR. Also
added the lib/arch directory to LD_LIBRARY_PATH which also
had /home/osman/local/lib

I have umfpack/atlas built with gfortran and all reside
in /home/osman/local/lib and /home/osman/local/include
LD_LIBRARY_PATH has that also.

Created umfpack.pc in  /usr/local/lib/pkgconfig with:
prefix=/home/osman/local
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib
compiler=gfortran
Name: UMFPACK
Description: Sparse Solver
Version: 5.0.2
Requires:
Conflicts:
Libs: -L${libdir} -llapack -lf77blas -lcblas -latlas -lgfortran -lm
Cflags: -I${includedir}

Also created boost.pc:
Name: boost
Description: C++ library
Version: 1.34.1
Requires:
Conflicts:
Libs: -L/home/osman/local/lib
Cflags: -I/home/osman/local/include

Now when I do scons 
scons: Reading SConscript files ...
Checking for numpy-1...
** Warning: Added /home/osman/FENICS2/dolfin/scons/pkgconfig
    as PKG_CONFIG_PATH **
yes
Checking for scotch... no (pkg-config file not found)
 Trying to generate pkg-config file for scotch... failed
 *** Unable to generate a suitable pkg-config file for scotch.
 *** If scotch is present on your system, try setting the SCOTCH_DIR
 *** environment variable to the directory where scotch is installed.
Checking for ufc-1... yes
Checking for umfpack... yes
Checking for python-2... yes
Checking for petsc... no (pkg-config file not found)
 Trying to generate pkg-config file for petsc... Can not find alternate
for mpicc
Can not find alternate for mpicc
Can not find alternate for mpicc
Can not find alternate for mpicc
Can not find alternate for mpicc
Can not find alternate for mpicc
Can not find alternate for mpicc
Can not find alternate for mpicc
failed
 *** Unable to generate a suitable pkg-config file for petsc.
 *** If petsc is present on your system, try setting the PETSC_DIR
 *** environment variable to the directory where petsc is installed.
 *** PETSC_DIR is currently set to /home/osman/petsc-2.3.3-p8
Checking for gts... yes
Checking for boost... yes
Checking for slepc... no (pkg-config file not found)
 Trying to generate pkg-config file for slepc... Can not find alternate
for mpicc
Can not find alternate for mpicc
Can not find alternate for mpicc
Can not find alternate for mpicc
Can not find alternate for mpicc
Can not find alternate for mpicc
Can not find alternate for mpicc
Can not find alternate for mpicc
failed
 *** Unable to generate a suitable pkg-config file for slepc.
 *** If slepc is present on your system, try setting the SLEPC_DIR
 *** environment variable to the directory where slepc is installed.
Checking for libxml-2.0... yes
Warning: Unknown dependency package: boost
scons: done reading SConscript files.
scons: *** No targets specified and no Default() targets found.  Stop.


No makefile no nothing!!!

Before doing all this, I was able to build dolfin without umfpack, petsc
but with python. 
But it is very slow, and some fail.









Follow ups