The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

linking problem

Open discussion regarding features, bugs, issues, vendors, etc.

linking problem

Postby asp » Sun Jul 20, 2008 4:45 pm

hello,

i'm getting the following error from the linker

[...cut...]/mpich/1.2.7..5/mx-intel/extras/lib/libblacs.a(bi_f77_init.o)(.text+0x13): In function `bi_f77_init_':
: undefined reference to `mpi_init_'

how do I fix it? linker options: "-lmpich -lfmpich -lscalapack -lblacsF77init -lblacs -lblas -llapack -lblacsCinit" in case that matters

thanks
asp
 
Posts: 15
Joined: Sat Jul 19, 2008 3:21 pm

Re: linking problem

Postby Julien Langou » Sun Jul 20, 2008 4:52 pm

Try to put the mpi libraries behind the blacs libraries
(or link with mpicc or mpif77)
Julien Langou
 
Posts: 835
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA

Re: linking problem

Postby asp » Mon Jul 21, 2008 1:56 am

no effect. same error.
asp
 
Posts: 15
Joined: Sat Jul 19, 2008 3:21 pm

Re: linking problem

Postby Julien Langou » Mon Jul 21, 2008 8:54 am

Fine, try to use the scalapack installer:
http://www.netlib.org/scalapack/scalapack_installer.tgz
Julien Langou
 
Posts: 835
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA

Re: linking problem

Postby asp » Tue Jul 22, 2008 4:25 am

thanks i fixed that problem now i'm getting this

mpicc main.o -o test_exe -lscalapack -llapack -lblacs -lblacsCinit -lblacsF77init -lblacs
[...cut...]/mx-intel/extras/lib/libscalapack.a(pxerbla.o)(.text+0x62): In function `pxerbla_':
: undefined reference to `for_write_seq_fmt'
[...cut...]/mx-intel/extras/lib/libscalapack.a(pxerbla.o)(.text+0x80): In function `pxerbla_':
: undefined reference to `for_write_seq_fmt_xmit'
[...cut...]/mx-intel/extras/lib/libscalapack.a(pxerbla.o)(.text+0xa4): In function `pxerbla_':
: undefined reference to `for_write_seq_fmt_xmit'
[...cut...]/mx-intel/extras/lib/libscalapack.a(pxerbla.o)(.text+0xc9): In function `pxerbla_':
: undefined reference to `for_write_seq_fmt_xmit'
[...cut...]/mx-intel/extras/lib/libscalapack.a(xerbla.o)(.text+0x4c): In function `xerbla_':
: undefined reference to `for_write_seq_fmt'
[...cut...]/mx-intel/extras/lib/libscalapack.a(xerbla.o)(.text+0x6b): In function `xerbla_':
: undefined reference to `for_write_seq_fmt_xmit'
[...cut...]/mx-intel/extras/lib/libscalapack.a(xerbla.o)(.text+0x81): In function `xerbla_':
: undefined reference to `for_stop_core'
make: *** [test_exe] Error 1

tried to play with -lxerblac and -lxerblaf -- didn't work, any thoughts? thanks
asp
 
Posts: 15
Joined: Sat Jul 19, 2008 3:21 pm

Re: linking problem

Postby asp » Tue Jul 22, 2008 3:42 pm

problem solved. needed to link against libifcore.
asp
 
Posts: 15
Joined: Sat Jul 19, 2008 3:21 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 4 guests