[mpich-discuss] pgf90-Error-Unknown switch: -pthread

James Long jlong at iarc.uaf.edu
Wed Jul 9 18:38:31 CDT 2014


$ env CC=pgcc FC=pgf90 CXX=pgCC CPPFLAGS="-DNDEBUG -DpgiFortran" CFLAGS="-O2 -noswitcherror" FFLAGS="-O2 -w -noswitcherror" FCFLAGS="-noswitcherror" ./configure --prefix=/opt/mpich-slurm --with-pmi=slurm --with-pm=no --with-slurm-include=/usr/include/slurm --with-slurm-lib=/usr/lib/slurm --enable-fortran=yes

results in the same make error...

Jim

On Jul 9, 2014, at 2:56 PM, Gus Correa wrote:

> Hi James
> 
> Adding '-noswitcherror' to the CFLAGS, FFLAGS, FCFLAGS,
> may be a workaround to this problem.
> 
> My two cents,
> Gus Correa
> 
> On 07/09/2014 05:55 PM, James Long wrote:
>> I need to use srun to launch mpi jobs under slurm, so configured mpich-3.1.1 with
>> 
>> $ env CC=pgcc FC=pgf90 CXX=pgCC CPPFLAGS="-DNDEBUG -DpgiFortran" CFLAGS="-O2" FFLAGS="-O2 -w" ./configure --prefix=/opt/mpich-slurm --with-pmi=slurm --with-pm=no --with-slurm-include=/usr/include/slurm --with-slurm-lib=/usr/lib/slurm --enable-fortran=yes
>> 
>> The following error occurs when compiling:
>> 
>>   CC       src/mpid/common/datatype/lib_libmpi_la-mpir_type_flatten.lo
>>   CC       src/mpid/common/sched/lib_libmpi_la-mpid_sched.lo
>>   CC       src/mpid/common/thread/lib_libmpi_la-mpid_thread.lo
>>   CC       src/mpi_t/lib_libmpi_la-mpit.lo
>>   CC       src/nameserv/pmi/lib_libmpi_la-pmi_nameserv.lo
>>   GEN      lib/libmpi.la
>> pgf90-Error-Unknown switch: -pthread
>> make[2]: *** [lib/libmpi.la] Error 1
>> make[2]: Leaving directory `/home/boss/mpich-3.1.1'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/boss/mpich-3.1.1'
>> make: *** [all] Error 2
>> 
>> config.log is at http://pastebin.com/aB8CZsr0
>> 
>> Jim
>> --
>> 
>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>> James Long
>> International Arctic Research Center
>> University of Alaska Fairbanks
>> jlong|at|alaska.edu
>> (907) 474-2440
>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>> 
>> 
>> 
>> 
>> _______________________________________________
>> discuss mailing list     discuss at mpich.org
>> To manage subscription options or unsubscribe:
>> https://lists.mpich.org/mailman/listinfo/discuss
>> 
> 
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss

--

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
James Long
International Arctic Research Center
University of Alaska Fairbanks
jlong|at|alaska.edu
(907) 474-2440
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%







More information about the discuss mailing list