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

Problem compiling ifort

jivifair
Beginner
3,097 Views
Hi everyone,

I would like some help compiling with Intel Fortran Composer XE 2011 for Linux*.
I always used gfortran to compile my fortran codes without a problem, but for necessity,
now I would like to use the intel compiler.

The problem is that when I attempt to compile, for example:
ifort testing.f90
fortcom: No such file or directory
ifort: error #10273: Fatal error in fortcom, terminated by 0x64

How can I fix this???
My Ubuntu is 10.04-LTS,

Thanks...

P.D.
I'm a scientist student, not expert on programation topics.

0 Kudos
1 Solution
mecej4
Honored Contributor III
3,097 Views
If you merely run the scripts as you did, the variables are set for the duration of the running of the script and then discarded.

You have to use the "source" verb as a prefix (or, equivalently, type a dot and space before "./ifortvars.sh ia32"). The compiler documentation describes this in detail.

View solution in original post

0 Kudos
7 Replies
mecej4
Honored Contributor III
3,097 Views
Did you set up the IFort environment before attempting to compile? This is usually achieved by sourcing the startup script(s) ifortvars.sh or compilervars.sh with one argument: ia32 or intel64. Details are given in the documentation.
0 Kudos
jivifair
Beginner
3,097 Views
Hi mecej4,

I tried on my terminal:
./ifortvars.sh ia32
./compilervars.sh ia32

those two commands executed without problem, nevertheless I get the same problem when I try to compile a Fortran code:

hugo@remotebatcomputer:~/Documentos/proyecto-maestria/program_29_may_12$ ifort testing.f90 -o test.exe
fortcom: No such file or directory
ifort: error #10273: Fatal error in fortcom, terminated by 0x64

0 Kudos
mecej4
Honored Contributor III
3,098 Views
If you merely run the scripts as you did, the variables are set for the duration of the running of the script and then discarded.

You have to use the "source" verb as a prefix (or, equivalently, type a dot and space before "./ifortvars.sh ia32"). The compiler documentation describes this in detail.
0 Kudos
jivifair
Beginner
3,097 Views
I did not find any documentation on the installation manual for the compiler,
I searched for a long time without success. Where specifically can I find it?


0 Kudos
mecej4
Honored Contributor III
3,097 Views
The release notes are included in the software download and should be on your machine. You can also obtain the correct version here. See Article 3.4.2 Establishing the Compiler Environment.
0 Kudos
jivifair
Beginner
3,097 Views
Alright,

what I did was...
on the directory of my fortran code (*.f90) I ran "source /opt/intel/bin/compilervars.sh ia32"
then I compiled the program with the usual "ifort *.f90 -o out.exe", the compiling was successful.

I compile another programs without problem. Hope the next post will be a different topic.

Another question, how do I give you points for best answer?







0 Kudos
Steven_L_Intel1
Employee
3,097 Views
You can click on the righmost star above the post to give the post five stars, and you should also have an option to mark a post as the accepted answer. Both of these will give points.
0 Kudos
Reply