← Back to team overview

dolfin team mailing list archive

Re: osx and ufc

 

On Sat, Dec 29, 2007 at 07:04:21PM +0100, Alessio Quaglino wrote:
> I'm trying to configure dolfin under osx (Leopard), and I get the following:
> 
> macbook-di-alessio-quaglino:ufc aqua$ ./configure --with-boost=/usr/local/
> --disable-pydolfin
> 
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for mpic++... mpic++
> checking for C++ compiler default output file name... a.out
> checking whether the C++ compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C++ compiler... yes
> checking whether mpic++ accepts -g... yes
> checking for style of include used by make... GNU
> checking dependency style of mpic++... gcc3
> checking for mpicc... mpicc
> checking whether we are using the GNU C compiler... yes
> checking whether mpicc accepts -g... yes
> checking for mpicc option to accept ISO C89... none needed
> checking dependency style of mpicc... gcc3
> checking for C++ compiler vendor... gnu
> checking for gawk... (cached) awk
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether ln -s works... yes
> checking for an ANSI C-conforming const... yes
> checking for inline... inline
> checking how to run the C++ preprocessor... mpic++ -E
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for size_t... yes
> checking for libtool... yes
> checking build system type... i686-apple-darwin9.1.0
> checking host system type... i686-apple-darwin9.1.0
> checking for a sed that does not truncate output... /usr/bin/sed
> checking for ld used by mpicc... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
> checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is
> GNU ld... no
> checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to reload
> object files... -r
> checking for BSD-compatible nm... /usr/bin/nm -p
> checking how to recognise dependent libraries... pass_all
> checking how to run the C preprocessor... mpicc -E
> checking dlfcn.h usability... yes
> checking dlfcn.h presence... yes
> checking for dlfcn.h... yes
> checking how to run the C++ preprocessor... mpic++ -E
> checking for g77... no
> checking for xlf... no
> checking for f77... no
> checking for frt... no
> checking for pgf77... no
> checking for cf77... no
> checking for fort77... no
> checking for fl32... no
> checking for af77... no
> checking for xlf90... no
> checking for f90... no
> checking for pgf90... no
> checking for pghpf... no
> checking for epcf90... no
> checking for gfortran... no
> checking for g95... no
> checking for xlf95... no
> checking for f95... no
> checking for fort... no
> checking for ifort... no
> checking for ifc... no
> checking for efc... no
> checking for pgf95... no
> checking for lf95... no
> checking for ftn... no
> checking whether we are using the GNU Fortran 77 compiler... no
> checking whether  accepts -g... no
> checking the maximum length of command line arguments... 196608
> checking command to parse /usr/bin/nm -p output from mpicc object... rm:
> conftest.dSYM: is a directory
> rm: conftest.dSYM: is a directory
> rm: conftest.dSYM: is a directory
> rm: conftest.dSYM: is a directory
> ok
> checking for objdir... .libs
> checking for ar... ar
> checking for ranlib... ranlib
> checking for strip... strip
> rm: conftest.dSYM: is a directory
> rm: conftest.dSYM: is a directory
> checking if mpicc supports -fno-rtti -fno-exceptions... rm: conftest.dSYM:
> is a directory
> no
> checking for mpicc option to produce PIC... -fno-common
> checking if mpicc PIC flag -fno-common works... rm: conftest.dSYM: is a
> directory
> yes
> checking if mpicc static flag -static works... rm: conftest.dSYM: is a
> directory
> no
> checking if mpicc supports -c -o file.o... rm: conftest.dSYM: is a directory
> yes
> checking whether the mpicc linker
> (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared
> libraries... yes
> checking dynamic linker characteristics... darwin9.1.0 dyld
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> configure: creating libtool
> appending configuration tag "CXX" to libtool
> rm: conftest.dSYM: is a directory
> rm: conftest.dSYM: is a directory
> checking for ld used by mpic++...
> /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
> checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is
> GNU ld... no
> checking whether the mpic++ linker
> (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared
> libraries... yes
> checking for mpic++ option to produce PIC... -fno-common
> checking if mpic++ PIC flag -fno-common works... rm: conftest.dSYM: is a
> directory
> yes
> checking if mpic++ static flag -static works... rm: conftest.dSYM: is a
> directory
> no
> checking if mpic++ supports -c -o file.o... rm: conftest.dSYM: is a directory
> yes
> checking whether the mpic++ linker
> (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared
> libraries... yes
> checking dynamic linker characteristics... darwin9.1.0 dyld
> checking how to hardcode library paths into programs... immediate
> appending configuration tag "F77" to libtool
> checking for xml2-config... /usr/bin/xml2-config
> checking for libxml - version >= 2.0.0... yes (version 2.6.16)
> checking for boostlib >= 1.33... yes
> checking for pkg-config... /opt/local/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for GLIB... no
> checking for GTS... no
> Missing GTS
> checking for UFC... configure: error: Package requirements (ufc-1) were
> not met:
> 
> No package 'ufc-1' found
> 
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
> 
> Alternatively, you may set the environment variables UFC_CFLAGS
> and UFC_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> 
> 
> I've installed ufc in the standard path:
> 
> macbook-di-alessio-quaglino:ufc aqua$ sudo python setup.py install
> Password:
> Installing UFC under
> /System/Library/Frameworks/Python.framework/Versions/2.5...
> running install
> running build
> running build_py
> running install_lib
> running install_data
> copying ufc-1.pc ->
> /System/Library/Frameworks/Python.framework/Versions/2.5/lib/pkgconfig
> running install_egg_info
> Removing /Library/Python/2.5/site-packages/UFC-1.0-py2.5.egg-info
> Writing /Library/Python/2.5/site-packages/UFC-1.0-py2.5.egg-info
> 
> 
> Thanks for the help,
> Alessio

Try

  pkg-config --exists ufc-1 && echo "Good" || echo "Bad"

If this does not print "Good". then pkg-config does not read

  /System/Library/Frameworks/Python.framework/Versions/2.5/lib/pkgconfig

so you need to add that to PKG_CONFIG_PATH.

-- 
Anders


References