LAPACK Archives

[Lapack] lapack: linking with it on SGI (mipspro)

Hi.
  I have built a lapack on SGI machine using
mipspro compiler, 32 bit.
Tested it, looks ok. make.inc is attached.

Now: how do I link it to "c" code ?
(all the usual fortran symbols, I listed them below)
With gcc we used libg2c or libgfortran,
but what with mipspro ?

I tried
/usr/lib32/libfortran.so
/usr/lib32/mips3/libfortran.so
/usr/lib32/mips4/libfortran.so

none helped. I believe I miss something very easy.

Thank you,
  Dima.

CC  -o mbem0/test_lsqr_solvers mbem0/test_lsqr_solvers.o 
mbem0/lsqr_solve_lapack.o mbem0/pinv_with_dealii.o 
mbem0/external_libs/lsqr_wrapper.o pr1/src/tools/project1_definitions.o 
/user_temp/dsorkin/libs/parix/deal.II/lib/liblac.so 
/user_temp/dsorkin/libs/parix/deal.II/lib/libbase.so 
mbem0/external_libs/lsqr.o 
/user_temp/dsorkin/libs/installs/lib/lapack_IRIX64-32.a 
/user_temp/dsorkin/libs/installs/lib/blas_IRIX64-32.a 
/usr/lib32/libfortran.so -lm -L/user_temp/dsorkin/libs/parix/deal.II/lib 
-quiet_prelink -woff 131
ld32: ERROR   33 : Unresolved text symbol "__powdi" -- 1st referenced by 
/user_temp/dsorkin/libs/installs/lib/lapack_IRIX64-32.a(dlamch.o).
         Use linker option -v to see when and which objects, archives and 
dsos are loaded.
ld32: ERROR   33 : Unresolved text symbol "s_wsfe64" -- 1st referenced by 
/user_temp/dsorkin/libs/installs/lib/lapack_IRIX64-32.a(dlamch.o).
         Use linker option -v to see when and which objects, archives and 
dsos are loaded.
ld32: ERROR   33 : Unresolved text symbol "do_fioxi4v" -- 1st referenced 
by /user_temp/dsorkin/libs/installs/lib/lapack_IRIX64-32.a(dlamch.o).
         Use linker option -v to see when and which objects, archives and 
dsos are loaded.
ld32: ERROR   33 : Unresolved text symbol "e_wsfe64" -- 1st referenced by 
/user_temp/dsorkin/libs/installs/lib/lapack_IRIX64-32.a(dlamch.o).
         Use linker option -v to see when and which objects, archives and 
dsos are loaded.
ld32: ERROR   33 : Unresolved text symbol "do_fioxh1" -- 1st referenced by 
/user_temp/dsorkin/libs/installs/lib/lapack_IRIX64-32.a(xerbla.o).
         Use linker option -v to see when and which objects, archives and 
dsos are loaded.
ld32: ERROR   33 : Unresolved text symbol "s_stop" -- 1st referenced by 
/user_temp/dsorkin/libs/installs/lib/lapack_IRIX64-32.a(xerbla.o).
         Use linker option -v to see when and which objects, archives and 
dsos are loaded.
ld32: INFO    152: Output file removed because of error.
gmake: *** [mbem0/test_lsqr_solvers] Error 2
-------------- next part --------------
####################################################################
#  LAPACK make include file.                                       #
#  LAPACK, Version 3.1.1                                           #
#  February 2007                                                   #
####################################################################
#
SHELL = /sbin/sh
#
#  The machine (platform) identifier to append to the library names
#
PLAT = _IRIX64-32
#  
#  Modify the FORTRAN and OPTS definitions to refer to the
#  compiler and desired compiler options for your machine.  NOOPT
#  refers to the compiler options desired when NO OPTIMIZATION is
#  selected.  Define LOADER and LOADOPTS to refer to the loader and 
#  desired load options for your machine.
#
FORTRAN  = f77
OPTS     = -O3 -OPT:IEEE_NaN_inf=ON
#OPTS     = -g  -DEBUG:subscript_check=ON -trapuv -OPT:IEEE_NaN_inf=ON
DRVOPTS  = $(OPTS) -static
NOOPT    = -OPT:IEEE_NaN_inf=ON
#NOOPT    = -g  -DEBUG:subscript_check=ON -trapuv -OPT:IEEE_NaN_inf=ON
LOADER   = f77
LOADOPTS = -O3 -OPT:IEEE_NaN_inf=ON
#LOADOPTS = -g  -DEBUG:subscript_check=ON -trapuv -OPT:IEEE_NaN_inf=ON
#
# Timer for the SECOND and DSECND routines
#
# Default : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME
TIMER    = EXT_ETIME
# For RS6K : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME_
# TIMER    = EXT_ETIME_
# For gfortran compiler: SECOND and DSECND will use a call to the INTERNAL 
FUNCTION ETIME
# TIMER    = INT_ETIME
# If your Fortran compiler does not provide etime (like Nag Fortran Compiler, 
etc...)
# SECOND and DSECND will use a call to the INTERNAL FUNCTION CPU_TIME
# TIMER    = INT_CPU_TIME
# If neither of this works...you can use the NONE value... In that case, SECOND 
and DSECND will always return 0
# TIMER     = NONE
#
#  The archiver and the flag(s) to use when building archive (library)
#  If you system has no ranlib, set RANLIB = echo.
#
ARCH     = ar
ARCHFLAGS= cr
RANLIB   = echo
#
#  The location of the libraries to which you will link.  (The 
#  machine-specific, optimized BLAS library should be used whenever
#  possible.)
#
BLASLIB      = ../../blas$(PLAT).a
#BLASLIB     = -lblas
LAPACKLIB    = lapack$(PLAT).a
TMGLIB       = tmglib$(PLAT).a
EIGSRCLIB    = eigsrc$(PLAT).a
LINSRCLIB    = linsrc$(PLAT).a

<Prev in Thread] Current Thread [Next in Thread>


For additional information you may use the LAPACK/ScaLAPACK Forum.
Or one of the mailing lists, or