[Nek5000-users] Undefined references when compiling

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Wed Nov 15 18:39:51 CST 2017


Hi all,

I've never had any problem when compiling (in my personal computer or in
the cluster server where I run simulations). Now I'm trying to use the
latest version of Nek, and it worked in my computer but when I try to
compile a case in the cluster I get errors.

Attached is the full compiler.out file, but the final part is:


[...]
/user/r/robinson/Nek5000/3rd_party/gslib/src/libgs.a(amg.o): In function
`dread_mpi.isra.22':
amg.c:(.text+0x53b): undefined reference to `ompi_mpi_double'
/user/r/robinson/Nek5000/3rd_party/gslib/src/libgs.a(amg.o): In function
`dopen_mpi.constprop.27':
amg.c:(.text+0x5eb): undefined reference to `ompi_mpi_info_null'
/user/r/robinson/Nek5000/3rd_party/gslib/src/libgs.a(amg.o): In function
`gslib_crs_amg_setup':
amg.c:(.text+0x18d2): undefined reference to `ompi_mpi_unsigned_char'
amg.c:(.text+0x1cc1): undefined reference to `ompi_mpi_unsigned_char'
amg.c:(.text+0x1cde): undefined reference to `ompi_mpi_unsigned_char'
amg.c:(.text+0x1cfb): undefined reference to `ompi_mpi_unsigned_char'
amg.c:(.text+0x1dcb): undefined reference to `ompi_mpi_unsigned_char'
/user/r/robinson/Nek5000/3rd_party/gslib/src/libgs.a(amg.o):amg.c:(.text+0x1df1):
more undefined references to `ompi_mpi_unsigned_char' follow
collect2: ld returned 1 exit status
make: *** [nek5000] Error 1


I notice that there are a lot of undefined references related to MPI. One
differences is that in my computer I have openmpi but the cluster has
mpich. Perhaps it is related with that, although when I use previous
versions of Nek I have no problem in the cluster.

I can notice too that all the errors come from
Nek5000/3rd_party/gslib/src.
I went into that folder and realized that maybe I should install gslib
libraries, and that means asking for the cluster administrator to do it.

What do you think I should do?

Thanks in advance,

JP.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20171115/89c04688/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compiler.out
Type: application/octet-stream
Size: 32716 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20171115/89c04688/attachment-0001.obj>


More information about the Nek5000-users mailing list