- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
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?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
.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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Kevin.I am going ot follow your instructions.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page