On Mar 10, 2005, at 2:06 PM, Jong Chun Park wrote:
> I'm trying to install HPCC which requires mpi. While compling and
> linking, the following error was reported. Does anybody know how to
> fix this linking error? I'd appreciate if somebody can give me a help.
> /usr/lib/libmpi.a(abort.o)(.text+0x84): In function `MPI_Abort':
> : undefined reference to `_kio'
> /usr/lib/libmpi.a(abort.o)(.text+0x8c): In function `MPI_Abort':
> : undefined reference to `_kio'
These errors look like libmpi was linked in, but liblam was not. There
are multiple libraries that must be included to properly link with LAM.
The list is dependent upon the configuration of the particular LAM
install (whether PBS/TM is enabled, Myrinet support is found, etc.), so
I can't even give you the list of libraries to include.
Generally, we recommend using the included wrapper compilers (mpicc,
mpiCC/mpic++, and mpif77) instead of trying to figure out what
libraries you have to use for a particular platform. If you can't use
the wrapper compilers for some reason, you can use "mpi{cc,CC,c++,f77}
-showme" to get the list of flags you should use to compile and link
your application.
Hope this helps,
Brian
--
Brian Barrett
LAM/MPI developer and all around nice guy
Have an LAM/MPI day: http://www.lam-mpi.org/
|