- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
% uname -a
Linux hostname 2.6.18-92.1.6.el5 #1 SMP Fri Jun 20 02:36:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
% icc -o junk_c junk.C
% ifort -o junk_f junk.f
% file junk_c
junk_c: ELF 64-bit LSB executable, AMD x86-64
% file junk_f
junk_f: ELF 32-bit LSB executable
Why the heck is the fortran compiler generating 32-bit binaries? All the installed dynamic libraries are 64-bit so I can't even run the resulting binary if it needs linkage to one of the libraries.
This is with the Intel 10.0.026 compiler suite.
Thanks in advance!
Gary
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, it turns out to be a simple solution. There are two compilers one is fc/10.0.026/bin/ifort and the other is fce/10.0.026/bin/ifort. The one in the "fc" generates 32-bit binaries while the one in "fce" generates 64-bit binaries.
I don't own this system and didn't install the compilers so maybe this is obvious if you have the compiler installation manual?
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you read the compiler documentation, this is described. In version 11 it will work a bit differently in that there is one ifortvars.sh script and you supply an argument to it to specify which platform you want to compile for.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page