help-octave
[Top][All Lists]
Advanced

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

Re: custom arpack linked with custom ATLAS and lapack not found by octav


From: Riccardo Corradini
Subject: Re: custom arpack linked with custom ATLAS and lapack not found by octave 3.2.0
Date: Fri, 26 Jun 2009 07:59:42 +0000 (GMT)

Hi Tatsuro,
I applied your hint but nothing seems to change ...

checking for F77_FUNC(dseupd,DSEUPD) in -larpack... no
configure: WARNING: arpack not found. This will result in a lack of the eigs function.

this is the output of libarpack.a compilation


address@hidden:~/d1/packaging/arpack/ARPACK$ make all
Making lib in /home/corradin/d1/packaging/arpack/ARPACK/UTIL
make[1]: Entering directory `/home/corradin/d1/packaging/arpack/ARPACK/UTIL'
Makefile:47: warning: overriding commands for target `.f.o'
../ARmake.inc:94: warning: ignoring old commands for target `.f.o'
gfortran -O3 -fexceptions -fPIC -m64 -c svout.f
gfortran -O3 -fexceptions -fPIC -m64 -c smout.f
gfortran -O3 -fexceptions -fPIC -m64 -c icnteq.f
gfortran -O3 -fexceptions -fPIC -m64 -c icopy.f
gfortran -O3 -fexceptions -fPIC -m64 -c iset.f
gfortran -O3 -fexceptions -fPIC -m64 -c iswap.f
gfortran -O3 -fexceptions -fPIC -m64 -c ivout.f
gfortran -O3 -fexceptions -fPIC -m64 -c second.f
ar  rv /home/corradin/lib/arpack/libarpack.a svout.o  smout.o icnteq.o icopy.o iset.o iswap.o ivout.o second.o
r - svout.o
r - smout.o
r - icnteq.o
r - icopy.o
r - iset.o
r - iswap.o
r - ivout.o
r - second.o
ranlib /home/corradin/lib/arpack/libarpack.a
gfortran -O3 -fexceptions -fPIC -m64 -c dvout.f
gfortran -O3 -fexceptions -fPIC -m64 -c dmout.f
gfortran -O3 -fexceptions -fPIC -m64 -c zvout.f
gfortran -O3 -fexceptions -fPIC -m64 -c zmout.f
ar  rv /home/corradin/lib/arpack/libarpack.a dvout.o  dmout.o icnteq.o icopy.o iset.o iswap.o ivout.o second.o
r - dvout.o
r - dmout.o
r - icnteq.o
r - icopy.o
r - iset.o
r - iswap.o
r - ivout.o
r - second.o
ranlib /home/corradin/lib/arpack/libarpack.a
gfortran -O3 -fexceptions -fPIC -m64 -c cvout.f
gfortran -O3 -fexceptions -fPIC -m64 -c cmout.f
ar  rv /home/corradin/lib/arpack/libarpack.a svout.o  smout.o cvout.o  cmout.o  icnteq.o icopy.o iset.o iswap.o ivout.o second.o
r - svout.o
r - smout.o
r - cvout.o
r - cmout.o
r - icnteq.o
r - icopy.o
r - iset.o
r - iswap.o
r - ivout.o
r - second.o
ranlib /home/corradin/lib/arpack/libarpack.a
ar  rv /home/corradin/lib/arpack/libarpack.a dvout.o  dmout.o zvout.o  zmout.o icnteq.o icopy.o iset.o iswap.o ivout.o second.o
r - dvout.o
r - dmout.o
r - zvout.o
r - zmout.o
r - icnteq.o
r - icopy.o
r - iset.o
r - iswap.o
r - ivout.o
r - second.o
ranlib /home/corradin/lib/arpack/libarpack.a
make[1]: Leaving directory `/home/corradin/d1/packaging/arpack/ARPACK/UTIL'
Making lib in /home/corradin/d1/packaging/arpack/ARPACK/SRC
make[1]: Entering directory `/home/corradin/d1/packaging/arpack/ARPACK/SRC'
Makefile:50: warning: overriding commands for target `.f.o'
../ARmake.inc:94: warning: ignoring old commands for target `.f.o'
gfortran -O3 -fexceptions -fPIC -m64 -c sgetv0.f
gfortran -O3 -fexceptions -fPIC -m64 -c slaqrb.f
gfortran -O3 -fexceptions -fPIC -m64 -c sstqrb.f
gfortran -O3 -fexceptions -fPIC -m64 -c ssortc.f
gfortran -O3 -fexceptions -fPIC -m64 -c ssortr.f
gfortran -O3 -fexceptions -fPIC -m64 -c sstatn.f
gfortran -O3 -fexceptions -fPIC -m64 -c sstats.f
gfortran -O3 -fexceptions -fPIC -m64 -c snaitr.f
gfortran -O3 -fexceptions -fPIC -m64 -c snapps.f
gfortran -O3 -fexceptions -fPIC -m64 -c snaup2.f
gfortran -O3 -fexceptions -fPIC -m64 -c snaupd.f
gfortran -O3 -fexceptions -fPIC -m64 -c snconv.f
gfortran -O3 -fexceptions -fPIC -m64 -c sneigh.f
gfortran -O3 -fexceptions -fPIC -m64 -c sngets.f
gfortran -O3 -fexceptions -fPIC -m64 -c ssaitr.f
gfortran -O3 -fexceptions -fPIC -m64 -c ssapps.f
gfortran -O3 -fexceptions -fPIC -m64 -c ssaup2.f
gfortran -O3 -fexceptions -fPIC -m64 -c ssaupd.f
gfortran -O3 -fexceptions -fPIC -m64 -c ssconv.f
gfortran -O3 -fexceptions -fPIC -m64 -c sseigt.f
gfortran -O3 -fexceptions -fPIC -m64 -c ssgets.f
gfortran -O3 -fexceptions -fPIC -m64 -c sneupd.f
gfortran -O3 -fexceptions -fPIC -m64 -c sseupd.f
sseupd.f:566.72:

            if (ncv .eq. 1) go to 30                                   
                                                                        1
sseupd.f:612.72:

 30      end if                                                        
                                                                        2
Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)
gfortran -O3 -fexceptions -fPIC -m64 -c ssesrt.f
ar  rv /home/corradin/lib/arpack/libarpack.a sgetv0.o slaqrb.o sstqrb.o ssortc.o ssortr.o sstatn.o sstats.o snaitr.o snapps.o snaup2.o snaupd.o snconv.o sneigh.o sngets.o ssaitr.o ssapps.o ssaup2.o ssaupd.o ssconv.o sseigt.o ssgets.o sneupd.o sseupd.o ssesrt.o
r - sgetv0.o
r - slaqrb.o
r - sstqrb.o
r - ssortc.o
r - ssortr.o
r - sstatn.o
r - sstats.o
r - snaitr.o
r - snapps.o
r - snaup2.o
r - snaupd.o
r - snconv.o
r - sneigh.o
r - sngets.o
r - ssaitr.o
r - ssapps.o
r - ssaup2.o
r - ssaupd.o
r - ssconv.o
r - sseigt.o
r - ssgets.o
r - sneupd.o
r - sseupd.o
r - ssesrt.o
ranlib /home/corradin/lib/arpack/libarpack.a
gfortran -O3 -fexceptions -fPIC -m64 -c dgetv0.f
gfortran -O3 -fexceptions -fPIC -m64 -c dlaqrb.f
gfortran -O3 -fexceptions -fPIC -m64 -c dstqrb.f
gfortran -O3 -fexceptions -fPIC -m64 -c dsortc.f
gfortran -O3 -fexceptions -fPIC -m64 -c dsortr.f
gfortran -O3 -fexceptions -fPIC -m64 -c dstatn.f
gfortran -O3 -fexceptions -fPIC -m64 -c dstats.f
gfortran -O3 -fexceptions -fPIC -m64 -c dnaitr.f
gfortran -O3 -fexceptions -fPIC -m64 -c dnapps.f
gfortran -O3 -fexceptions -fPIC -m64 -c dnaup2.f
gfortran -O3 -fexceptions -fPIC -m64 -c dnaupd.f
gfortran -O3 -fexceptions -fPIC -m64 -c dnconv.f
gfortran -O3 -fexceptions -fPIC -m64 -c dneigh.f
gfortran -O3 -fexceptions -fPIC -m64 -c dngets.f
gfortran -O3 -fexceptions -fPIC -m64 -c dsaitr.f
gfortran -O3 -fexceptions -fPIC -m64 -c dsapps.f
gfortran -O3 -fexceptions -fPIC -m64 -c dsaup2.f
gfortran -O3 -fexceptions -fPIC -m64 -c dsaupd.f
gfortran -O3 -fexceptions -fPIC -m64 -c dsconv.f
gfortran -O3 -fexceptions -fPIC -m64 -c dseigt.f
gfortran -O3 -fexceptions -fPIC -m64 -c dsgets.f
gfortran -O3 -fexceptions -fPIC -m64 -c dneupd.f
gfortran -O3 -fexceptions -fPIC -m64 -c dseupd.f
dseupd.f:566.72:

            if (ncv .eq. 1) go to 30                                   
                                                                        1
dseupd.f:612.72:

 30      end if                                                        
                                                                        2
Warning: Deleted feature: GOTO at (1) jumps to END of construct at (2)
gfortran -O3 -fexceptions -fPIC -m64 -c dsesrt.f
ar  rv /home/corradin/lib/arpack/libarpack.a dgetv0.o dlaqrb.o dstqrb.o dsortc.o dsortr.o dstatn.o dstats.o dnaitr.o dnapps.o dnaup2.o dnaupd.o dnconv.o dneigh.o dngets.o dsaitr.o dsapps.o dsaup2.o dsaupd.o dsconv.o dseigt.o dsgets.o dneupd.o dseupd.o dsesrt.o
r - dgetv0.o
r - dlaqrb.o
r - dstqrb.o
r - dsortc.o
r - dsortr.o
r - dstatn.o
r - dstats.o
r - dnaitr.o
r - dnapps.o
r - dnaup2.o
r - dnaupd.o
r - dnconv.o
r - dneigh.o
r - dngets.o
r - dsaitr.o
r - dsapps.o
r - dsaup2.o
r - dsaupd.o
r - dsconv.o
r - dseigt.o
r - dsgets.o
r - dneupd.o
r - dseupd.o
r - dsesrt.o
ranlib /home/corradin/lib/arpack/libarpack.a
gfortran -O3 -fexceptions -fPIC -m64 -c cnaitr.f
gfortran -O3 -fexceptions -fPIC -m64 -c cnapps.f
gfortran -O3 -fexceptions -fPIC -m64 -c cnaup2.f
gfortran -O3 -fexceptions -fPIC -m64 -c cnaupd.f
gfortran -O3 -fexceptions -fPIC -m64 -c cneigh.f
gfortran -O3 -fexceptions -fPIC -m64 -c cneupd.f
gfortran -O3 -fexceptions -fPIC -m64 -c cngets.f
gfortran -O3 -fexceptions -fPIC -m64 -c cgetv0.f
gfortran -O3 -fexceptions -fPIC -m64 -c csortc.f
gfortran -O3 -fexceptions -fPIC -m64 -c cstatn.f
ar  rv /home/corradin/lib/arpack/libarpack.a cnaitr.o cnapps.o cnaup2.o cnaupd.o cneigh.o cneupd.o cngets.o cgetv0.o csortc.o cstatn.o
r - cnaitr.o
r - cnapps.o
r - cnaup2.o
r - cnaupd.o
r - cneigh.o
r - cneupd.o
r - cngets.o
r - cgetv0.o
r - csortc.o
r - cstatn.o
ranlib /home/corradin/lib/arpack/libarpack.a
gfortran -O3 -fexceptions -fPIC -m64 -c znaitr.f
gfortran -O3 -fexceptions -fPIC -m64 -c znapps.f
gfortran -O3 -fexceptions -fPIC -m64 -c znaup2.f
gfortran -O3 -fexceptions -fPIC -m64 -c znaupd.f
gfortran -O3 -fexceptions -fPIC -m64 -c zneigh.f
gfortran -O3 -fexceptions -fPIC -m64 -c zneupd.f
gfortran -O3 -fexceptions -fPIC -m64 -c zngets.f
gfortran -O3 -fexceptions -fPIC -m64 -c zgetv0.f
gfortran -O3 -fexceptions -fPIC -m64 -c zsortc.f
gfortran -O3 -fexceptions -fPIC -m64 -c zstatn.f
ar  rv /home/corradin/lib/arpack/libarpack.a znaitr.o znapps.o znaup2.o znaupd.o zneigh.o zneupd.o zngets.o zgetv0.o zsortc.o zstatn.o
r - znaitr.o
r - znapps.o
r - znaup2.o
r - znaupd.o
r - zneigh.o
r - zneupd.o
r - zngets.o
r - zgetv0.o
r - zsortc.o
r - zstatn.o
ranlib /home/corradin/lib/arpack/libarpack.a
make[1]: Leaving directory `/home/corradin/d1/packaging/arpack/ARPACK/SRC'
ranlib /home/corradin/lib/arpack/libarpack.a

I am not an expert of Fortran language, but I guess there are some problems in compilation of dseupd.f and sseupd.f or probably the macro in configure is not able to detect properly a custom arpack lib.
What do you think?
Thanks a lot for all your help
Riccardo Corradini
--- Ven 26/6/09, Tatsuro MATSUOKA <address@hidden> ha scritto:

Da: Tatsuro MATSUOKA <address@hidden>
Oggetto: Re: custom arpack linked with custom ATLAS and lapack not found by octave 3.2.0
A: "Riccardo Corradini" <address@hidden>, address@hidden
Data: Venerdì 26 giugno 2009, 03:29

Hello

Source of ARPACK is designed for f77 complier.

in UTIL/second.f
24:       EXTERNAL           ETIME

ETIME in gfortran is internal function.
This line should be commented out like
24:*       EXTERNAL           ETIME

I hope the above is helpful for you.

Regards

Tatsuro

--- Riccardo Corradini  wrote:

> Dear octave users,
> I have a problem both compiling octave 3.2.0 and 3.2.1rc1 when I try to tell configure to detect
> arpack library
> here there is configure
> ./configure --prefix=/home/corradin/octave-3.2.0/ CFLAGS="-O2 -I
> /home/corradin/lib/suitesparse/include/" CXXFLAGS="-O2 -I
> /home/corradin/lib/suitesparse/include/" LDFLAGS="-lm -lgfortran -lpthread
> -L/home/corradin/lib/lapack/ -L/home/corradin/lib/arpack/ -L/home/corradin/lib/atlas/lib/
> -L/home/corradin/lib/qrupdate -L/home/corradin/lib/suitesparse/lib " --with-blas="-llapack
> -lptcblas -lptf77blas -latlas"
> If I exclude arpack from compilation everything goes fine
> Here there is Armake.inc of arpack
>
> ###########################################################################
> #
> # Program: ARPACK
> #
> # Module: ARmake.inc
> #
> # Purpose: Top-level Definitions
> #
> # Creation date: February 22, 1996
> #
> # Modified:
> #
> # Send bug reports, comments or suggestions to address@hidden
> #
> ############################################################################
> #
> # %---------------------------------%
> # | SECTION 1: PATHS AND LIBRARIES |
> # %---------------------------------%
> #
> #
> # %--------------------------------------%
> # | You should change the definition of |
> # | home if ARPACK is built some place |
> # | other than your home directory. |
> # %--------------------------------------%
> #
> home = $(HOME)/lib/arpack
> #
> # %--------------------------------------%
> # | The platform identifier to suffix to |
> # | the end of library names |
> # %--------------------------------------%
> #
> curdir = $(PWD)/.
> #
> # %------------------------------------------------------%
> # | The directories to find the various pieces of ARPACK |
> # %------------------------------------------------------%
> #
>
> UTILdir = $(PWD)/UTIL
> SRCdir = $(PWD)/SRC
> #
> #
> # %-------------------------------------------------------------------%
> # | Comment out the previous line and uncomment the following |
> # | if you already have the BLAS and LAPACK installed on your system. |
> # | NOTE: ARPACK assumes the use of LAPACK version 2 codes. |
> # %-------------------------------------------------------------------%
> #
> DIRS = $(UTILdir) $(SRCdir)
> #
> # %---------------------------------------------------%
> # | The name of the libraries to be created/linked to |
> # %---------------------------------------------------%
> #
> ARPACKLIB = $(HOME)/lib/arpack/libarpack.a
> LAPACKLIB = $(HOME)/lib/lapack/lapack.a
> BLASLIB = $(HOME)/lib/atlas/lib/liblapack.a $(HOME)/lib/atlas/lib/libptcblas.a
> $(HOME)/lib/atlas/lib/libptf77blas.a $(HOME)/lib/atlas/lib/libatlas.a
>
> #
> ALIBS = $(ARPACKLIB) $(LAPACKLIB) $(BLASLIB)
> #
> #
> # %---------------------------------------------------------%
> # | SECTION 2: COMPILERS |
> # | |
> # | The following macros specify compilers, linker/loaders, |
> # | the archiver, and their options. You need to make sure |
> # | these are correct for your system. |
> # %---------------------------------------------------------%
> #
> #
> # %------------------------------%
> # | Make our own suffixes' list. |
> # %------------------------------%
> #
> .SUFFIXES:
> .SUFFIXES: .f .o
> #
> # %------------------%
> # | Default command. |
> # %------------------%
> #
> .DEFAULT:
>  @$(ECHO) "Unknown target $@, try: make help"
> #
> # %-------------------------------------------%
> # | Command to build .o files from .f files. |
> # %-------------------------------------------%
> #
> .f.o:
>  @$(ECHO) Making $@ from $<
>  @$(FC) -c $(FFLAGS) $<
> #
> # %-----------------------------------------%
> # | Various compilation programs and flags. |
> # | You need to make sure these are correct |
> # | for your system. |
> # %-----------------------------------------%
> #
> FC = gfortran
> FFLAGS = -O3 -fexceptions -fPIC -m64
>
> LDFLAGS = -lm -lgfortran -lgfortranbegin -lpthread $(ALIBS)
> CD = cd
>
> ECHO = echo
>
> LN = ln
> LNFLAGS = -s
>
> MAKE = make
>
> RM = rm
> RMFLAGS = -f
>
> SHELL = /bin/sh
> #
> # %----------------------------------------------------------------%
> # | The archiver and the flag(s) to use when building an archive |
> # | (library). Also the ranlib routine. If your system has no |
> # | ranlib, set RANLIB = touch. |
> # %----------------------------------------------------------------%
> #
> AR = ar
> ARFLAGS = rv
> #RANLIB = touch
> RANLIB = ranlib
> #
> # %----------------------------------%
> # | This is the general help target. |
> # %----------------------------------%
> #
> help:
>  @$(ECHO) "usage: make ?"
>
> I don't understand what's wrong, because lapack and ATLAS go very well on octave's test ( make
> check).
> Thanks a lot for all your patience and help
> Bests
> Riccardo
>
>
>
>
>
>       > _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>


--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/


reply via email to

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