Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29280 Discussions

preprocessor problem with ifort8.0 on RH9.0

emconsta
Beginner
516 Views
Hi, I recently installed IFC 8.0 on RH 9.0. Everything seems to run smoothly until I have to compile .F or .F90. For instance, when I try to compile a hello world program .. this is what happens:

$ifort hw.f
a.out
Hello world!

... next the same program ...

$ifort hw.F
fortcom: Severe: File not found: '/tmp/ifort'
compilation aborted for hw.F (code 1)

If I run 'fpp' first on the renamed 'hw.fpp' and then 'ifort' on the 'fpp's output everything is ok. Has anyone dealt with such a problem?
0 Kudos
3 Replies
TimP
Honored Contributor III
516 Views
Do you have write permissions on /tmp, and sufficient space there? In case your administrator doesn't permit you to use /tmp, do you have TMPDIR environment variable set? If you're looking for a fix for a red hat 9 misfeature, I don't think you'll find it here.
0 Kudos
emconsta
Beginner
516 Views
I have write permission and all the rights to /tmp. Also, I logged as root and the outcome was the same. What I don't understand is why does 'ifortbin' call for 'ifort' in /tmp. I noticed that 'ifort' executes 'ifortbin' which preprocesses the file and then 'ifortbin' calls 'ifort' again to compile the preprocessed output. The call for compilation looks for 'ifort' in /tmp.
Anyway, I seem to have fixed the problem by creating a symbolic link in /tmp to 'ifort'.. but I don't like it, it's a messy workaround.
Thanks for your time!
0 Kudos
TimP
Honored Contributor III
516 Views
The compiler does put pre-processor output files in /tmp, probably in file names beginning with ifort. I don't expect it to be looking for executable files there.
0 Kudos
Reply