jeyc
April 8, 2021, 5:10pm
1
Hello,
I have installed FreeFem++ 4.8. When I run this command:
/usr/local/share/freefem++/4.8/bin/ff-mpirun -np 2 mesh.edp
I get this error:
/usr/local/share/freefem++/4.8/bin/FreeFem+±mpi: symbol lookup error: /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libmpifort.so.12: undefined symbol: MPI_UNWEIGHTED
any sugestion please?
Thank you.
prj
April 8, 2021, 6:55pm
2
Could you please copy/paste the result of ldd /usr/local/share/freefem++/4.8/bin/FreeFem++-mpi
?
jeyc
April 9, 2021, 6:01am
3
Hello,
ldd /usr/local/share/freefem++/4.8/bin/FreeFem+±mpi
linux-vdso.so.1 => (0x00007ffe9d536000)
libumfpack.so.5 => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libumfpack.so.5 (0x00007f722a71e000)
libklu.so.1 => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libklu.so.1 (0x00007f722a4c6000)
libcholmod.so.3 => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libcholmod.so.3 (0x00007f722a16e000)
libbtf.so.1 => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libbtf.so.1 (0x00007f7229f66000)
libccolamd.so.2 => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libccolamd.so.2 (0x00007f7229d56000)
libcolamd.so.2 => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libcolamd.so.2 (0x00007f7229b46000)
libcamd.so.2 => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libcamd.so.2 (0x00007f7229936000)
libamd.so.2 => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libamd.so.2 (0x00007f7229726000)
libsuitesparseconfig.so.5 => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libsuitesparseconfig.so.5 (0x00007f722951e000)
libmetis.so => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libmetis.so (0x00007f722929e000)
libarpack.so.2 => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libarpack.so.2 (0x00007f7228fae000)
libmpicxx.so.12 => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libmpicxx.so.12 (0x00007f7228d86000)
libmpi.so.12 => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libmpi.so.12 (0x00007f7228846000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f722863e000)
librt.so.1 => /lib64/librt.so.1 (0x00007f7228436000)
libgfortran.so.3 => /lib64/libgfortran.so.3 (0x00007f722810e000)
libm.so.6 => /lib64/libm.so.6 (0x00007f7227e06000)
libquadmath.so.0 => /lib64/libquadmath.so.0 (0x00007f7227bc6000)
libz.so.1 => /lib64/libz.so.1 (0x00007f72279ae000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f722778e000)
libhdf5.so.8 => /lib64/libhdf5.so.8 (0x00007f7227196000)
libhdf5_hl.so.8 => /lib64/libhdf5_hl.so.8 (0x00007f7226f5e000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f7226c56000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f7226a3e000)
libc.so.6 => /lib64/libc.so.6 (0x00007f722666e000)
libmpifort.so.12 => /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libmpifort.so.12 (0x00007f7226436000)
libgomp.so.1 => /lib64/libgomp.so.1 (0x00007f722620e000)
/lib64/ld-linux-x86-64.so.2 (0x00007f722aa46000)
libXNVCtrl.so.0 => /lib64/libXNVCtrl.so.0 (0x00007f7226006000)
libXext.so.6 => /lib64/libXext.so.6 (0x00007f7225dee000)
libX11.so.6 => /lib64/libX11.so.6 (0x00007f7225aae000)
libsz.so.2 => /lib64/libsz.so.2 (0x00007f72258a6000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00007f722567e000)
libaec.so.0 => /lib64/libaec.so.0 (0x00007f7225476000)
libXau.so.6 => /lib64/libXau.so.6 (0x00007f722526e000)
Thank you.
prj
April 9, 2021, 6:21am
4
How about nm /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libmpi.so.12|grep MPI_UNWEIG
?
jeyc
April 9, 2021, 6:42am
5
nm /usr/local/share/freefem++/4.8/ff-petsc/r/lib/libmpi.so.12|grep MPI_UNWEIG
0000000000537928 b MPIR_C_MPI_UNWEIGHTED
000000000051e970 B MPIR_F_MPI_UNWEIGHTED
00000000004f4848 D MPI_UNWEIGHTED
prj
April 9, 2021, 7:06am
6
OK, maybe that’s because you have some HDF5 libraries that may mess things up. Could you please reconfigure with the added parameter --without-hdf5
?
jeyc
April 12, 2021, 7:53am
7
Hello,
it seems the problem was one of permissions. I have installed as user (not root) freefem ++ v4.8 in the required user’s / home directory and it works correctly.
Thank you.