Skip to content
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

NAG Fortran compiler does not recognize the -pthread option #4032

Open
nncarlson opened this issue Aug 5, 2017 · 1 comment
Open

NAG Fortran compiler does not recognize the -pthread option #4032

nncarlson opened this issue Aug 5, 2017 · 1 comment

Comments

@nncarlson
Copy link

I'm trying to build 2.1.1 using the NAG 6.1 Fortran compiler (and system gcc 6.4.1) and it fails in the fortran/use-mpi-tkr directory when it tries to link the libmpi_usempi.so.20.10.0 shared library. The -pthread option is being used but this is not something the NAG compiler understands, and it fails as a consequence.

Who is responsible for putting that option there? openmpi, libtool?

If it should be handed off to the backend gcc compiler, then it ought to be -Wc,-pthread. And perhaps the NAG option -thread_safe should also be used? (Note it doesn't translate into -pthread for the gcc backend.) I'm not really sure what the -pthread thing is all about.

@nncarlson
Copy link
Author

@ggouaillardet, you should know that this issue is also resolved by v3.0.0rc2. This error occurred when building the default shared libraries. That prompted me to build static libraries, which is the context for #4034, which is also fixed by v3.0.0rc2. Any chance these fixes can be back ported to 2.1?

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

1 participant