<div dir="ltr"><div>Thanks a lot, Philipp, for you feedback. I know what you mean: ./makenek clean. Am I right?<br>I use this command. It works with gnu compilers, but when i compile nek with intel ( mpiifort and mpiicc ) it doesn't.<br><br>During the compilation a get two types of string in my console: this <br><br>mpiicc  -c  -O2  -DNEKNEK -DMPI -DUNDERSCORE -DTIMER  /home/itp/ryzhenkov/Nek5000/core/3rd_party/finiparser.c -o obj/finiparser.o;<br><br>and this<br><br>/home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(gs.o): In function `cr_exec': gs.c:(.text+0x322): undefined reference to `ompi_mpi_unsigned_char'.<br><br>It seems like in one part ( Nek5000/core/3rd_party/ ) all options set properly, but in another part ( Nek5000/3rd_party/gslib/src ) links to mpi library are absent.<br><br></div>Regards, Vatlav.<br><div><br>> you need to clean the object files in gs lib.<br>> makenek realclean I think is the command.<br>> Best regards,<br>> Philipp<br>><br>>  On 2017-09-29 11:56, <a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a> wrote:<br>>> Hi Neks!<br>>><br>>> How to compile new version of Nek with mpiifort and mpiicc?<br>>><br>>> When i try to do that a catch errors like:<br>>><br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(gs.o): In<br>>> function `cr_exec':<br>>> gs.c:(.text+0x322): undefined reference to `ompi_mpi_unsigned_char'<br>>> gs.c:(.text+0x388): undefined reference to `ompi_mpi_unsigned_char'<br>>> gs.c:(.text+0x3d5): undefined reference to `ompi_mpi_unsigned_char'<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(gs.o): In<br>>> function `pw_exec':<br>>> gs.c:(.text+0x56f): undefined reference to `ompi_mpi_unsigned_char'<br>>> gs.c:(.text+0x629): undefined reference to `ompi_mpi_unsigned_char'<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(gs.o):gs.c:(.text+0x1f8b):<br>>> more undefined references to `ompi_mpi_unsigned_char' follow<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(gs.o): In<br>>> function `gs_setup_pick_':<br>>> gs.c:(.text+0x3a1b): undefined reference to `MPI_Comm_f2c'<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(crystal.o): In<br>>> function `gslibcrystal_router':<br>>> crystal.c:(.text+0x30e): undefined reference to `ompi_mpi_unsigned_char'<br>>> crystal.c:(.text+0x34a): undefined reference to `ompi_mpi_unsigned_char'<br>>> crystal.c:(.text+0x3e0): undefined reference to `ompi_mpi_unsigned_char'<br>>> crystal.c:(.text+0x4d3): undefined reference to `ompi_mpi_unsigned_char'<br>>> crystal.c:(.text+0x51b): undefined reference to `ompi_mpi_unsigned_char'<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(crystal.o):crystal.c:(.text+0x585):<br>>> more undefined references to `ompi_mpi_unsigned_char' follow<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(comm.o): In<br>>> function `gslibcomm_allreduce.part.4':<br>>> comm.c:(.text+0x4b): undefined reference to `ompi_mpi_float'<br>>> comm.c:(.text+0xf1): undefined reference to `ompi_mpi_unsigned_char'<br>>> comm.c:(.text+0x163): undefined reference to `ompi_mpi_unsigned_char'<br>>> comm.c:(.text+0x18c): undefined reference to `ompi_mpi_unsigned_char'<br>>> comm.c:(.text+0x243): undefined reference to `ompi_mpi_op_max'<br>>> comm.c:(.text+0x297): undefined reference to `ompi_mpi_int'<br>>> comm.c:(.text+0x2a7): undefined reference to `ompi_mpi_op_prod'<br>>> comm.c:(.text+0x2b3): undefined reference to `ompi_mpi_long'<br>>> comm.c:(.text+0x2c3): undefined reference to `ompi_mpi_long_long_int'<br>>> comm.c:(.text+0x2d3): undefined reference to `ompi_mpi_double'<br>>> comm.c:(.text+0x2e3): undefined reference to `ompi_mpi_op_min'<br>>> comm.c:(.text+0x2f3): undefined reference to `ompi_mpi_op_sum'<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(comm.o): In<br>>> function `gslibcomm_scan':<br>>> comm.c:(.text+0x441): undefined reference to `ompi_mpi_unsigned_char'<br>>> comm.c:(.text+0x468): undefined reference to `ompi_mpi_unsigned_char'<br>>> comm.c:(.text+0x4ed): undefined reference to `ompi_mpi_unsigned_char'<br>>> comm.c:(.text+0x51b): undefined reference to `ompi_mpi_unsigned_char'<br>>> comm.c:(.text+0x56b): undefined reference to `ompi_mpi_unsigned_char'<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(comm.o):comm.c:(.text+0x600):<br>>> more undefined references to `ompi_mpi_unsigned_char' follow<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(fcrystal.o): In<br>>> function `crystal_setup_':<br>>> fcrystal.c:(.text+0x59): undefined reference to `MPI_Comm_f2c'<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(fcrs.o): In<br>>> function `crs_setup_':<br>>> fcrs.c:(.text+0x3e): undefined reference to `MPI_Comm_f2c'<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(findpts.o): In<br>>> function `comm_init_check_.constprop.8':<br>>> findpts.c:(.text+0x186): undefined reference to `MPI_Comm_f2c'<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(xxt.o): In<br>>> function `sum':<br>>> xxt.c:(.text+0x154): undefined reference to `ompi_mpi_unsigned_char'<br>>> xxt.c:(.text+0x1c8): undefined reference to `ompi_mpi_unsigned_char'<br>>> xxt.c:(.text+0x21c): undefined reference to `ompi_mpi_unsigned_char'<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(xxt.o): In<br>>> function `apply_QQt':<br>>> xxt.c:(.text+0x313): undefined reference to `ompi_mpi_unsigned_char'<br>>> xxt.c:(.text+0x3c8): undefined reference to `ompi_mpi_unsigned_char'<br>>> /home/itp/ryzhenkov/Nek5000/3rd_party/gslib/src/libgs.a(xxt.o):xxt.c:(.text+0x41b):<br>>> more undefined references to `ompi_mpi_unsigned_char' follow.<br>>><br>>> It looks like there are no links to mpi library.<br>>><br>>> With old version compilation successful.<br>>><br>>> Regards, Vatslav<br>>><br>>> _______________________________________________<br>>> Nek5000-users mailing list<br>>> <a href="mailto:Nek5000-users@lists.mcs.anl.gov">Nek5000-users@lists.mcs.anl.gov</a><br>>> <a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br></div></div>