Skip to content

compiler wrappers not fully obeying --disable-wrapper-runpath #6539

@hppritcha

Description

@hppritcha

One of our sysadmins who doesn't like the --enable-new-dtags option has noticed that for versions of Open MPI which support the --enable/--disable-wrapper-runpath, it doesn't impact the fortran wrappers:

The new --disable-wrapper-runpath option doesn't seem to work for all wrappers. I did a build of 3.1.3 and I see that the C/C++ compiler wrappers look correct but the Fortran wrappers (and a couple of others) still have --enable-new-dtags set.
 
module load openmpi/3.1.3-gcc_7.3.0-runpath
mpicc --showme
gcc -I/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/include -pthread -Wl,-rpath -Wl,/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/lib -L/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/lib -lmpi
mpic++ --showme
g++ -I/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/include -pthread -Wl,-rpath -Wl,/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/lib -L/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/lib -lmpi
 
 
mpif77 --showme
gfortran -I/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/include -pthread -I/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/lib -Wl,-rpath -Wl,/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/lib -Wl,--enable-new-dtags -L/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi
mpif90 --showme
gfortran -I/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/include -pthread -I/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/lib -Wl,-rpath -Wl,/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/lib -Wl,--enable-new-dtags -L/projects/opt/centos7/openmpi/test/3.1.3-gcc_7.3.0/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions