<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
Thanks to Jeff Squyres for the note below.<br>
I've tested and mpi.pc -> ompi.pc is not sufficient for Fortran,
just C.<br>
<br>
There seem to be two approaches:<br>
(1) foo-f90.pc etc. versions of the pc packages.<br>
(2) adding fflags, fcflags, etc. to the pc packages.<br>
<br>
(2) seems to be used in most packages that support fortran; adding
variables that match<br>
the GNU configure, etc. conventions: ie. FFLAGS, FCFLAGS, CXXFLAGS,
etc.<br>
Approach (1) has the semantic problem of using 'pkg-config --cflags
ompi-f90" to get Fortran, not C, flags.<br>
There is the minor bug that `pkg-config --variables=fflags --libs
mpi` doesn't work as an alternative,<br>
for which I've submitted a report against pkg-config.<br>
<br>
So I will create a patch to enhance ompi.pc by adding fflags, etc.
support.<br>
For libs, this has the problem of requiring "-lmpi_f90" on the libs
line even if F90 is not being<br>
used (for example), but adding "-Wl,--as-needed" _should_ clear
this.<br>
(Work testing this is required).<br>
<br>
regards<br>
Alastair<br>
<br>
<br>
<br>
- -------- Original Message --------<br>
Subject: Bug#752785: openmpi: Please add mpi.pc<br>
Date: Thu, 26 Jun 2014 16:08:19 +0000<br>
From: Jeff Squyres (jsquyres) <a class="moz-txt-link-rfc2396E" href="mailto:jsquyres@cisco.com"><jsquyres@cisco.com></a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:mckinstry@debian.org">mckinstry@debian.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:mckinstry@debian.org"><mckinstry@debian.org></a><br>
<br>
<br>
<br>
Google alerts found this bug for me...<br>
<br>
Don't forget about "mpifort", which is the replacement for
now-deprecated mpif77 and mpif90.<br>
<br>
I don't remember offhand whether MPICH supports mpifort or not, but
Open MPI has deprecated mpif77 and mpif90 in favor of the name
"mpifort".<br>
<br>
- -- <br>
Jeff Squyres<br>
<a class="moz-txt-link-abbreviated" href="mailto:jsquyres@cisco.com">jsquyres@cisco.com</a><br>
For corporate legal information go to:
<a class="moz-txt-link-freetext" href="http://www.cisco.com/web/about/doing_business/legal/cri/">http://www.cisco.com/web/about/doing_business/legal/cri/</a><br>
<br>
<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1<br>
Comment: Using GnuPG with Thunderbird - <a class="moz-txt-link-freetext" href="http://www.enigmail.net/">http://www.enigmail.net/</a><br>
<br>
iQIcBAEBCAAGBQJTrUUPAAoJEN9LdrZRJ3QsCfYQALfgztKhnM5gADHKxslYjRW/<br>
KAiB8aKcDwjH4OVv5vclzDdUZAyKg0Tt/yCtgofyKQy7Ret6/p8qnU5CtOcP7t3z<br>
MK7gC0JphNV9MN4vOyy4FsXg7tkr4ldNMtJlHSstdnlXs4bZvFnL3iDvADpxrbVU<br>
8xwE8EvfdEz62inj1zjoEQg8VkqSsE0U3dpQ82c7bXqCmfAFPJDIjgGJUOyG4T4p<br>
bRJbgV0y3El9Y9NYp9HldyidDhsMpwK3P3aki3Z+TtvvbpBE+dsFaFH8qMrQTr7G<br>
En5ZCVEnQ80MVLdcLDap/3IwQtp8nPcjBMoZ8gTl1AlLUoHGSdRQkrkfkSTHON0y<br>
VWl0gHitGl1F5N4GdTYnkPABFKUz2wvVZKzpLn11Uprh3uhPsg6axC9/iVQc2rct<br>
/46P98dkfpChXqtCocYBML5G3Ax55GPTbDkbEMEmpvjWIIIPjcyg20rKFvfMQ8W7<br>
PM+CtzSWKIoVrmtAy6GfnHQrP+NmprOY+CqiYbpB5Bqgxr3BS37fMGs/VWrtFrHL<br>
9f4S6hWyFpY7Dxrc07bYRsb85yd2tnyUPmQe6UhpcMLfIUoDNDosWeqCkF7rpAun<br>
lfrkdaTPXmS0FNj38E5e4c8nanP2eSWoz0XZJMgYqlWidOxyYFQ7C+x70MEL5pdt<br>
Vfzuun9aFYM3Z7u6/86u<br>
=zgbY<br>
-----END PGP SIGNATURE-----<br>
<br>
</body>
</html>