octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: building 3.2.3 but not finding arpack


From: Ben Abbott
Subject: Re: building 3.2.3 but not finding arpack
Date: Thu, 19 Nov 2009 14:22:25 -0500

On Thursday, November 19, 2009, at 10:51AM, "John W. Eaton" <address@hidden> 
wrote:
>On 19-Nov-2009, Ben Abbott wrote:
>
>| My configure has the following options.
>| 
>| configure: running /bin/sh ./configure --disable-option-checking 
>'--prefix=/sw'  'FLIBS=/sw/lib/gcc4.4/lib/libgfortran.dylib' 
>'F77=/sw/bin/gfortran' 'CC=gcc-4' 'CPP=cpp-4' 'CXX=g++-4' 
>'--infodir=${prefix}/share/info' '--mandir=${prefix}/share/man' 
>'--libexecdir=${prefix}/lib' '-enable-shared' '-enable-dl' '--disable-static' 
>'--with-hdf5' 'CPPFLAGS=-g -I/sw/include -I/sw/include/freetype2 
>-I/sw/lib/flex/include' 'FFLAGS=-g -ff2c' 'LDFLAGS=-L/sw/lib/fltk-aqua/lib 
>-L/sw/lib/flex/lib -L/sw/lib/gcc4.4/lib/ -L/sw/lib -larpack -lgfortran 
>-lGraphicsMagick -lfltk_gl -lfltk -lpthread' '--with-blas=-framework 
>Accelerate' 'CFLAGS=-g -I /sw/include -O3' 'CXXFLAGS=-g -I /sw/include -O3' 
>--cache-file=/dev/null --srcdir=.
>| checking for a BSD-compatible install... /sw/bin/ginstall -c
>| 
>| My arpack lib, which worked with the developers sources until about the time 
>libtool was added, is /sw/lib/libarpack.a
>| 
>| Unfortunately, configure does not find it. From config.log ...
>| 
>|  1427 configure:19002: checking for F77_FUNC(dseupd,DSEUPD) in -larpack
>|  1428 configure:19045: gcc-4 -o conftest -g -I /sw/include -O3 -g 
>-I/sw/include -I/sw/include/freetype2 -I/sw/lib/flex/include -I/sw/include 
>-L/sw/      lib/fltk-aqua/lib -L/sw/lib/flex/lib -L/sw/lib/gcc4.4/lib/ 
>-L/sw/lib -larpack -lgfortran -lGraphicsMagick -lfltk_gl -lfltk -lpthread 
>conftest      .c -larpack  /sw/lib/gcc4.4/lib/libgfortran.dylib -lhdf5 -lz -lm 
> >&5
>
>The undefined symbols you show are from LAPACK and/or BLAS.  I
>don't see those libraries listed in the above command.
>
>The test in configure is
>
>  save_LIBS="$LIBS"
>  LIBS="$LAPACK_LIBS $BLAS_LIBS $FLIBS $LIBS"
>  OCTAVE_CHECK_LIBRARY(arpack, ARPACK,
>    [arpack not found.  The eigs function will be disabled.],
>    [],
>    [dseupd],
>    [Fortran 77], [don't use the ARPACK library, disable eigs function])
>  LIBS="$save_LIBS"
>
>so we are putting LAPACK and BLAS libraries in LIBS, then using the
>library checking macro.  Why don't these show up in the command above?
>
>On my system, with the current sources I see
>
>  configure:28523: checking for dseupd in -larpack
>  configure:28530: gfortran -o conftest -O   conftest.f -larpack -llapack 
> -lblas  -L/usr/lib/gcc/x86_64-linux-gnu/4.3.4 
> -L/usr/lib/gcc/x86_64-linux-gnu/4.3.4/../../../../lib -L/lib/../lib 
> -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.3.4/../../.. 
> -lgfortranbegin -lgfortran -lm -lm  -lfreetype -lz -L/usr/X11R6/lib -lGL 
> -lGLU >&5
>
>Yours says checking for F77_FUNC(dseupd,DSEUPD), which seems odd since
>the F77_FUNC macro is not used in the ARPACK test or the
>OCTAVE_CHECK_LIBRARY macro from acinclude.m4
>
>I'm not sure why the lines in the configure script (19002 vs 28523).
>What version of autoconf are you using?  I have 2.64.
>
>Have you run autogen.sh recently?
>
>jwe

I ran autogen.sh must prior to trying this build.

My autoconf is 2.63.

The static library business may have something to do with Mac OSX 10.6.

Regarding the "Undefined symbols" (i.e. LAPACK and BLAS), I tried building a 
dyamic (shared) version of arpack. Which produced the same "Undefined symbols" 
errors. I was able to fix that by adding the "-Wl,-undefined,dynamic_lookup" 
option below.

        ( $(FC) $(FFLAGS) -dynamiclib -Wl,-undefined,dynamic_lookup $(OBJS) -o 
$(ARPACKDYLIB) )

I haven't experimented further, but with the resulting libarpack.dylib in 
/sw/lib, Octave's configure now finds arpack.

  ARPACK libraries:            -larpack

Ben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]