LAPACK Archives

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


Hello,
A classic trick if one can not figure out the needed fortran libraries is 
to link with the fortran compiler (and not the C compiler).
Julien.


On Sat, 28 Jul 2007, Sorkin Dima wrote:

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

<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