Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

another LAPACK linking problem

gijs
Beginner
306 Views
Hi,

when linking the lapack lib using ifort (l_fc_pc_8.0.039_pe044.1 on a PIII system) I get an undefined reference error for a couple of routines. With ifc 7.1 everything works fine. I built the library for both compilers in the same manner.
I suspect that in building the lapack lib, ifort links in some P4 specific/optimized library. Could that be the case and is there a way to prevent that, e.g. using -lm?

ifort -O3 -xK -Vaxlib -o lid90 obj/utils.o obj/opticalModule.o obj/lidorta.o obj/main.o -L/usr/people/soestvg/lib/libifort -llapack95 -llapack -lblas -lmath
/usr/people/soestvg/lib/libifort/liblapack.a(ilaenv.o): In function `ilaenv_':
ilaenv.o(.text+0x128): undefined reference to `f_cpystr'
ilaenv.o(.text+0x183): undefined reference to `f_cpystr'
/usr/people/soestvg/lib/libifort/liblapack.a(xerbla.o): In function `xerbla_':
xerbla.o(.text+0x12): undefined reference to `f_iob'
xerbla.o(.text+0x27): undefined reference to `f_iob'
xerbla.o(.text+0x3f): undefined reference to `f_iob'
xerbla.o(.text+0x48): undefined reference to `f_iob'
xerbla.o(.text+0x51): undefined reference to `f_stop'
make: *** [lid90] Error 1

Any help is appreciated.

Cheers,

Gijs
0 Kudos
2 Replies
TimP
Honored Contributor III
306 Views
ifort 8.0 has a completely different group of WRITE support functions.
It looks like you have tried to link a liblapack.a which you built with 7.1. Only the libsvml libraries should differ between P-III and other processor targets.
0 Kudos
gijs
Beginner
306 Views
Erm, right. I must have mixed something up building the library. It works now.
Thanks
Gijs
0 Kudos
Reply