Skip to content

NAG Fortran compiler -rpath configuration error #4034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nncarlson opened this issue Aug 6, 2017 · 5 comments
Open

NAG Fortran compiler -rpath configuration error #4034

nncarlson opened this issue Aug 6, 2017 · 5 comments

Comments

@nncarlson
Copy link

With NAG 6.0, 6.1 and openmpi 2.1.1, mpifort gives the error

gcc: error: unrecognized command line option ‘-rpath’

This may have been part of #1284 (now closed). If it was ever fixed, it is back now. The issue is that the compiler wrapper uses -Wl,-rpath which results in -rpath being passed to gcc. In order to get that flag to the linker, the wrapper must use -Wl,-Wl,,-rpath. See http://baradi09.blogspot.com/2014/08/compiling-openmpi-with-nag-fortran.html

@nncarlson
Copy link
Author

Actually there are several -Wl, options in mpifort and I suspect they may all be wrong for the same reason.

@ggouaillardet
Copy link
Contributor

@nncarlson thanks for the report.

this is a known issue that has been around for a while ...
i fixed that some time ago, but then my NAG evaluation license has expired and the related commits were never backported into the v2 branches.

can you please give a try to v3.0.0rc2 ?
(the fixes were backported into this branch)

if you'd rather use the v2.1 series, you can manually download the patch at https://github.com/open-mpi/ompi/pull/2092.patch, and apply it.
note you need recent autotools, and then you will have to run ./autogen.sh --force

@nncarlson
Copy link
Author

nncarlson commented Aug 14, 2017

@ggouaillardet sorry it took me so long to give this a try.

I downloaded v3.0.0rc2 and ran ./autogen.pl (no .sh) -- that seemed to go fine. I was then able to successfully build and use this version, so I'd say your fixes are spot on.

Out of curiosity when is 3.0.0 due to be released?

@ggouaillardet
Copy link
Contributor

@nncarlson did you get a chance to try the patch at https://github.com/open-mpi/ompi/pull/2092.patch on the v2.x branch ? once this gets tested, i will do my best to have it included in the next v2.1.1 release.

v3.0.0 is due anytime now ... once we can solve the remaining blocking issues

@nncarlson
Copy link
Author

@ggouaillardet I've tested the patch now, and it too looks good to me. It applied cleanly to 2.1.1 with some offsets/fuzzes. Ran autogen.pl --force and then configure as usual. This also fixes the problem I reported in #4032.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants