[mvapich-discuss] PGI -pthread switch

Matthew Russell matthew.g.russell at gmail.com
Sun Mar 15 14:15:16 EDT 2015


Hi,

I can't seem to build mvpich2 v2.1rc2 (or rc1) due to:

make[2]: Entering directory
`/cm/shared/apps/mvapich2/pgi/64/2015/2.1rc2/mvapich2-2.1rc2'
  GEN      lib/libmpi.la
pgf77-Error-Unknown switch: -pthread
make[2]: *** [lib/libmpi.la] Error 1

I tried following advice in the list such as:
http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/2014-January/004779.html

I removed every instance of -pthread I could find, even wrote a script to
remove everything.  Specifically in,

confdb/ltmain.sh contrib/hwloc/src/libhwloc_embedded.la
contrib/hwloc/config/ltmain.sh contrib/hwloc/libtool limic2-0.5.6/ltmain.sh
src/pm/hydra/mpl/confdb/ltmain.sh
src/pm/hydra/tools/topo/hwloc/hwloc/config/ltmain.sh
src/pm/hydra/confdb/ltmain.sh src/mpl/confdb/ltmain.sh src/mpl/libtool
src/openpa/src/opa_primitives.h src/openpa/confdb/ltmain.sh
src/openpa/libtool src/mpi/romio/confdb/ltmain.sh src/mpi/romio/libtool
src/mpi/romio/libromio.la libch3affinity.la

In my source directory I have:
[matt at dena mvapich2-2.1rc2]$ grep -rnis -- -pthread *
[matt at dena mvapich2-2.1rc2]$


I also added -noswitcherror to FCFLAGS and FFLAGS

But no matter what, I still get this error.

I have no idea where it's getting this flag.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20150315/dfc2714d/attachment.html>


More information about the mvapich-discuss mailing list