gfortran: unrecognized option '-nofor_main'

Having trouble compiling the Yambo source? Using an unusual architecture? Problems with the "configure" script? This is the place to look.

Moderators: Daniele Varsano, andrea.ferretti, andrea marini, Conor Hogan, myrta gruning

Forum rules
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message

gfortran: unrecognized option '-nofor_main'

Postby mailoliver » Fri Nov 12, 2010 3:59 pm

Dear all:

I get some errors messages, when I try to compile yambo. Could you help me.
I try to compile with:
./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 inforation:

# [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:

>>>[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
Tieyu Lu
Physics Department of Xiamen university (China)
mailoliver
 
Posts: 12
Joined: Sat Oct 31, 2009 10:25 am

Re: gfortran: unrecognized option '-nofor_main'

Postby andrea marini » Fri Nov 12, 2010 5:11 pm

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.
Andrea MARINI
Istituto di Struttura della Materia, CNR, (Italy)
User avatar
andrea marini
 
Posts: 447
Joined: Mon Mar 16, 2009 4:27 pm

Re: gfortran: unrecognized option '-nofor_main'

Postby mailoliver » Sat Nov 13, 2010 3:44 am

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
Tieyu Lu
Physics Department of Xiamen university (China)
mailoliver
 
Posts: 12
Joined: Sat Oct 31, 2009 10:25 am

Re: gfortran: unrecognized option '-nofor_main'

Postby andrea marini » Sat Nov 13, 2010 8:59 am

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
Andrea MARINI
Istituto di Struttura della Materia, CNR, (Italy)
User avatar
andrea marini
 
Posts: 447
Joined: Mon Mar 16, 2009 4:27 pm

Re: gfortran: unrecognized option '-nofor_main'

Postby claudio » Mon Nov 15, 2010 9:30 am

Try to compile using only gfortran

F90=gfortran F77=gfortran CC=gcc

and check if it works.
Claudio Attaccalite
Institut Neel, CNRS/UJF ABINEEL group
25 rue des Martyrs BP 166, B√Ętiment D
38042 Grenoble cedex 9 France
web site: http://www.attaccalite.com
Freely download scientific books from: http://www.freescience.info
User avatar
claudio
 
Posts: 217
Joined: Tue Mar 31, 2009 11:33 pm

Re: gfortran: unrecognized option '-nofor_main'

Postby Conor Hogan » Mon Nov 15, 2010 7:31 pm

And also tell us what
mpif90 -V
or
mpif90 --version
gives!
Dr. Conor Hogan
CNR-ISM, via Fosso del Cavaliere, 00133 Roma, Italy;
Department of Physics and European Theoretical Spectroscopy Facility (ETSF),
University of Rome "Tor Vergata".
User avatar
Conor Hogan
 
Posts: 143
Joined: Tue Mar 17, 2009 12:17 pm

Re: gfortran: unrecognized option '-nofor_main'

Postby mailoliver » Sat Dec 04, 2010 12:01 pm

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
Tieyu Lu
Physics Department of Xiamen university (China)
mailoliver
 
Posts: 12
Joined: Sat Oct 31, 2009 10:25 am


Return to Compilation

Who is online

Users browsing this forum: No registered users and 2 guests