Page 1 of 1

gfortran: unrecognized option '-nofor_main'

Posted: Fri Nov 12, 2010 3:59 pm
by mailoliver
Dear all:

I get some errors messages, when I try to compile yambo. Could you help me.
I try to compile with:

Code: Select all

 ./configure --with-mpi=/share/data1/lvty/tool/mpich2/lib/libmpich.a 
                  FC=/share/data1/lvty/intel/Compiler/11.0/074/bin/intel64/ifort 
                  F77=/share/data1/lvty/intel/Compiler/11.0/074/bin/intel64/ifort 
                 MPIF=/share/data1/lvty/tool/mpich2/bin/mpif90 
                 MPICC=/share/data1/lvty/tool/mpich2/bin/mpicc 
                 FCFLAGS=-I/share/data1/lvty/tool/mpich2/include 
the configuration information:

Code: Select all

# [VER] 3.2.3 r.676
# 
# [SYS] linux@x86_64
# [SRC] /share/data1/lvty/tool/yambo/yambo-3.2.3-rev.11
# [BIN] /share/data1/lvty/tool/yambo/yambo-3.2.3-rev.11/bin
# [FFT] Goedecker Fast Fourier transform with 0 cache
#
# [ ] Double precision
# [X] Redundant compilation  
# [X] MPI 
# [ ] PW (3.2) support
# [ ] ETSF I/O support
# [ ] SCALAPACK
# [ ] LibXC
# [  ] NETCDF/Large Files 
# [XX ] Built-in BLAS/LAPACK/LOCAL
#
# [ CPP ] gcc -E -P
# [  C  ] gcc -g -O2 -D_C_US -D_FORTRAN_US
# [MPICC] /share/data1/lvty/tool/mpich2/bin/mpicc -g -O2 -D_C_US -D_FORTRAN_US
# [ F90 ] /share/data1/lvty/intel/Compiler/11.0/074/bin/intel64/ifort -I/share/data1/lvty/tool/mpich2/include 
# [MPIF ] mpif90 -I/share/data1/lvty/tool/mpich2/include 
# [ F77 ] /share/data1/lvty/intel/Compiler/11.0/074/bin/intel64/ifort -I/share/data1/lvty/tool/mpich2/include
# [Cmain] -nofor_main
# [NoOpt] -assume bscc -O0 -xW
#
# [ MAKE ] make
# [EDITOR] vim
Error message:

Code: Select all

>>>[Making modules]<<<
make[1]: Entering directory `/share/data1/lvty/tool/yambo/yambo-3.2.3-rev.11/src/modules'
gfortran: unrecognized option '-nofor_main'
mod_pars.F gfortran: unrecognized option '-nofor_main'
mod_units.F gfortran: unrecognized option '-nofor_main'
mod_stderr.F gfortran: unrecognized option '-nofor_main'
mod_par_proc.F gfortran: unrecognized option '-nofor_main'
mod_wrapper.F gfortran: unrecognized option '-nofor_main'
mod_fields.F gfortran: unrecognized option '-nofor_main'
mod_collision.F gfortran: unrecognized option '-nofor_main'
mod_drivers.F gfortran: unrecognized option '-nofor_main'
mod_FFT.F gfortran: unrecognized option '-nofor_main'
mod_timing.F gfortran: bscc: No such file or directory
gfortran: unrecognized option '-nofor_main'
gfortran: language W not recognized
gfortran: language W not recognized
make[1]: *** [mod_logo.o] Error 1
make[1]: Leaving directory `/share/data1/lvty/tool/yambo/yambo-3.2.3-rev.11/src/modules'
make: *** [yambo] Error 2

Re: gfortran: unrecognized option '-nofor_main'

Posted: Fri Nov 12, 2010 5:11 pm
by andrea marini
I think that you are trying to use an MPI compiled with gfortran together with a serial Intel compiler. This is why gfortran complains about the -nofor_main option that is an Intel option.

Please check that the compiler used to compile MPI and, please, add you full name and affiliation in your signature.

Re: gfortran: unrecognized option '-nofor_main'

Posted: Sat Nov 13, 2010 3:44 am
by mailoliver
Thank you for your reply.
I try to compile serial version yambo with CC=gcc F90=ifort F77=ifort. It is ok.
I recompile the mpich2 with F90=ifort F77=ifort CC=gcc. Then recompile yambo.
But I get same error message:
gfortran: unrecognized option '-nofor_main'

why?

Tieyu Lu

Re: gfortran: unrecognized option '-nofor_main'

Posted: Sat Nov 13, 2010 8:59 am
by andrea marini
mailoliver wrote:Thank you for your reply.
I try to compile serial version yambo with CC=gcc F90=ifort F77=ifort. It is ok.
I recompile the mpich2 with F90=ifort F77=ifort CC=gcc. Then recompile yambo.
But I get same error message:
gfortran: unrecognized option '-nofor_main'

why?
I have no idea, sorry. If you write F90=ifort and, then, you get a message from gfortran there is something wrong in your mpifch2 compilation. What is the config.log of the mpich compilation ? Maybe from there you can understand why gfortran is used instead of ifort.

Please, add your complete name and affiliation in your signature. This is a kind request we do to all members of this board

Re: gfortran: unrecognized option '-nofor_main'

Posted: Mon Nov 15, 2010 9:30 am
by claudio
Try to compile using only gfortran

F90=gfortran F77=gfortran CC=gcc

and check if it works.

Re: gfortran: unrecognized option '-nofor_main'

Posted: Mon Nov 15, 2010 7:31 pm
by Conor Hogan
And also tell us what
mpif90 -V
or
mpif90 --version
gives!

Re: gfortran: unrecognized option '-nofor_main'

Posted: Sat Dec 04, 2010 12:01 pm
by mailoliver
Dr. Conor Hogan :

Thank you for your help.
I find that in my cluster mpif90 is linked to gfortran. I try to use MPIF=mpiifort, and MPICC=mpiicc to compile yambo. Then I can compile the code.

bests,

Tieyu Lu