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

ipo: warning #11009:

milenko1976
Beginner
1,024 Views
I got this:
ifort -o ray ray.o time.o model.o tomo.o blkdat.o ray.par ray.com
ipo: warning #11009: file format not recognized for ray.par
ipo: warning #11009: file format not recognized for ray.com
/usr/bin/ld.real:ray.par: file format not recognized; treating as linker script
/usr/bin/ld.real:ray.par:2: syntax error
make: *** [ray] Error 1

I am trying to compile code with Intel Fortran 11.1.
ray.par:
parameter(nxmax=601, nymax=1, nzmax=25,
+ nximax=300, nyimax=1, nzimax=24,
+ nray=1200, nsources=99, nwrite=1000, ncolour=10)

What is wrong?
0 Kudos
2 Replies
Kevin_D_Intel
Employee
1,024 Views

.par and .com are not a valid file suffixesso the compiler passes those to the linker. However, it appears both are probably intended to be included by otherFortran source file(s), perhaps via INCLUDE. You should inspect the Fortran sourcefiles associated with the .o files present on your command line and look for ray.par and/or ray.com. I'd guess ray.com might declare COMMON blocks.

Since you didn't show the ifort commands leading up to this final ifort link command, I assume the compilation of the Fortran source files ahead of it were successful, so you might just remove ray.par and ray.com from the ifort command that you showed here. If all the .o files listed are present and valid, then the link may succeed.

0 Kudos
milenko1976
Beginner
1,024 Views
Thanks Kevin.I am going ot follow your instructions.
0 Kudos
Reply