Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29007 Discussions

ifort: command line error: no files specified; for help type "ifort -help"

seugirdor1
Beginner
3,508 Views
I am trying to compile a fortran code (WRF 3.6.1) with intel 15.0.3
 
I am calling the compiler, in bashrc, with the following lines:
 
export LD_LIBRARY_PATH=/share/apps/intel2015/lib/intel64:${LD_LIBRARY_PATH}
source /share/apps/intel2015/impi/5.0.3.048/bin64/mpivars.sh
source /share/apps/intel2015/bin/ifortvars.sh intel64
source /share/apps/intel2015/bin/iccvars.sh intel64
 
I am getting some errors during compilation with openmpi_v185, the first ones are the following ones:
 
ifort: command line error: no files specified; for help type "ifort -help"
make[3]: [module_state_description.o] Error 1 (ignored)
ifort: command line error: no files specified; for help type "ifort -help"
make[3]: [module_domain_type.o] Error 1 (ignored)
ifort: command line error: no files specified; for help type "ifort -help"
make[3]: [module_configure.o] Error 1 (ignored)
module_quilt_outbuf_ops.f90(112): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [MODULE_STATE_DESCRIPTION]
    USE module_state_description
--------^
 
Any help will be appreciated.
 
Thanks in advance
0 Kudos
5 Replies
Steven_L_Intel1
Employee
3,508 Views

Looks as if your makefile isn't right - the ifort commands are not properly formed. Since you didn't show us the commands it generates it's hard to say anything more.

0 Kudos
Lorri_M_Intel
Employee
3,508 Views

Are you using a script?  A makefile?

You haven't shown us the actual compilation lines.  

But, if I use my magic crystal ball, I can guess that the compilation line looks something like this:

   ifort -c module_state_description.f03

 

The file extensions that we support are .f, .f90, .for, .F, .F90, .FOR .FTN

I might have missed one ... but anyway, if you used a different extension than what we've specified, then you need to use -Tf before the filename.

              --Lorri

0 Kudos
Lorri_M_Intel
Employee
3,508 Views

ok, I see the problem, but not sure how you'd fix it yet.   The bad line looks like this, and note please the part I bolded.   The command line switch "-I" takes an argument that is an include directory, and it's expecting that "module_state_description.f90" is an include directory and not a source file.  I'll look at your file again, see if I can tell what to edit.

/share/apps/progs_ifort_15.0.3/openmpi_v185/bin/mpif90 -f90=/share/apps/intel2015/bin/ifort -c -i4  -O0 -fno-inline -fno-ip -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian   -I../dyn_em -I../dyn_nmm   -I/media/WDSpaceH/jalves/root2/WRF/external/esmf_time_f90  -I/media/WDSpaceH/jalves/root2/WRF/main -I/media/WDSpaceH/jalves/root2/WRF/external/io_netcdf -I/media/WDSpaceH/jalves/root2/WRF/external/io_int -I/media/WDSpaceH/jalves/root2/WRF/frame -I/media/WDSpaceH/jalves/root2/WRF/share -I/media/WDSpaceH/jalves/root2/WRF/phys -I/media/WDSpaceH/jalves/root2/WRF/chem -I/media/WDSpaceH/jalves/root2/WRF/inc -I/share/apps/progs_ifort_15.0.3/netcdf_v432/include -I.././Build  -I module_state_description.f90
 

0 Kudos
Lorri_M_Intel
Employee
3,508 Views

In your script, find the line that looks like this:

make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm   -I/media/WDSpaceH/jalves/root2/WRF/external/esmf_time_f90  -I/media/WDSpaceH/jalves/root2/WRF/main -I/media/WDSpaceH/jalves/root2/WRF/external/io_netcdf -I/media/WDSpaceH/jalves/root2/WRF/external/io_int -I/media/WDSpaceH/jalves/root2/WRF/frame -I/media/WDSpaceH/jalves/root2/WRF/share -I/media/WDSpaceH/jalves/root2/WRF/phys -I/media/WDSpaceH/jalves/root2/WRF/chem -I/media/WDSpaceH/jalves/root2/WRF/inc -I/share/apps/progs_ifort_15.0.3/netcdf_v432/include -I.././Build  -I" ext
 

And, remove the final "-I" at the end.

                       --Lorri

0 Kudos
seugirdor1
Beginner
3,508 Views

For a better analysis, I am attaching the stdout file out6.txt and stderr file err6.txt.

0 Kudos
Reply