Thank you Åke, Reuti and Thomas for your replies. Just to clarify. The reason why /usr/lib64/libgfortran.so does not exist is intentional because on our cluster we use a minimal CentOS installation and all libraries are provided through the software stack built via EasyBuild on a non-system path.
The output of `mpifort -show` shows the correct executable for `gfortran` ( I checked with `which gfortran`): $ mpifort multitask_mpi.f90 -show gfortran multitask_mpi.f90 -I/accre/arch/easybuild/software/Compiler/GCC/5.4.0-2.26/OpenMPI/1.10.3/include -I/accre/arch/easybuild/software/Compiler/GCC/5.4.0-2.26/OpenMPI/1.10.3/lib -L/usr/lib64 -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath -Wl,/accre/arch/easybuild/software/Compiler/GCC/5.4.0-2.26/OpenMPI/1.10.3/lib -Wl,--enable-new-dtags -L/accre/arch/easybuild/software/Compiler/GCC/5.4.0-2.26/OpenMPI/1.10.3/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi If I try to compile the source code with the explicit command after removing the `-L/usr/lib64` flag it compiles, links and executes correctly. For the sake of testing I have built OpenMPI in the same exact way on another machine with the same minimal OS. The only difference (at least that I am aware of) is the root prefix of the installation path. In this case it works correctly even without removing `-L/usr/lib64`. To try to better understand, I have launched `mpifort -v`. Below you can find the paths in COMPILER_PATH and LIBRARY_PATH for both systems. Take into account that on the broken system `/accre/arch` is a symlink to `/gpfs22/accre/optimized/haswell`. But I do not see how this can be the problem... Working system: COMPILER_PATH /accre/arch/easybuild/software/Core/GCCcore/5.4.0/libexec/gcc/x86_64-unknown-linux-gnu/5.4.0/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/libexec/gcc/x86_64-unknown-linux-gnu/5.4.0/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/libexec/gcc/x86_64-unknown-linux-gnu/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/lib/gcc/x86_64-unknown-linux-gnu/ LIBRARY_PATH /accre/arch/easybuild/software/Core/GCCcore/5.4.0/lib64/../lib64/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/lib/../lib64/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/../../../../lib64/ /lib/../lib64/ /usr/lib/../lib64/ /accre/arch/easybuild/software/Compiler/GCC/5.4.0-2.26/OpenMPI/1.10.3/lib/ /accre/arch/easybuild/software/Compiler/GCC/5.4.0-2.26/hwloc/1.11.3/lib/ /accre/arch/easybuild/software/Compiler/GCCcore/5.4.0/numactl/2.0.11/lib/ /accre/arch/easybuild/software/Compiler/GCCcore/5.4.0/binutils/2.26/lib/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/lib64/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/lib/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/../../../ /lib/ /usr/lib/ Broken system: COMPILER_PATH /gpfs22/accre/optimized/haswell/easybuild/software/Core/GCCcore/5.4.0/bin/../libexec/gcc/x86_64-unknown-linux-gnu/5.4.0/ /gpfs22/accre/optimized/haswell/easybuild/software/Core/GCCcore/5.4.0/bin/../libexec/gcc/ LIBRARY_PATH /gpfs22/accre/optimized/haswell/easybuild/software/Core/GCCcore/5.4.0/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.4.0/ /gpfs22/accre/optimized/haswell/easybuild/software/Core/GCCcore/5.4.0/bin/../lib/gcc/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/lib64/../lib64/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/lib/../lib64/ /gpfs22/accre/optimized/haswell/easybuild/software/Core/GCCcore/5.4.0/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.4.0/../../../../lib64/ /lib/../lib64/ /usr/lib/../lib64/ /accre/arch/easybuild/software/Compiler/GCC/5.4.0-2.26/OpenMPI/1.10.3/lib/ /accre/arch/easybuild/software/Compiler/GCC/5.4.0-2.26/hwloc/1.11.3/lib/ /accre/arch/easybuild/software/Compiler/GCCcore/5.4.0/numactl/2.0.11/lib/ /accre/arch/easybuild/software/Compiler/GCCcore/5.4.0/binutils/2.26/lib/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/lib64/ /accre/arch/easybuild/software/Core/GCCcore/5.4.0/lib/ /gpfs22/accre/optimized/haswell/easybuild/software/Core/GCCcore/5.4.0/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.4.0/../../../ /lib/ /usr/lib/ -- Davide Vanzo, PhD Application Developer Adjunct Assistant Professor of Chemical and Biomolecular Engineering Advanced Computing Center for Research and Education (ACCRE) Vanderbilt University - Hill Center 201 (615)-875-9137 www.accre.vanderbilt.edu
_______________________________________________ users mailing list users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/users