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

Using Intel Fortran Compiler 11.1 for Mac OS X with Xcode 3.2

Andreas_Hoffie
Beginner
1,784 Views

Hello,

I am trying to set up the Intel Fortran Compiler 11. for Mac OS X with Xcode 3.2!

As I see it, the explanations given in the "getting_startet_f.pdf" (also as file attached) user guide that came with the compiler are for Xcode versions earlier than 3, because from step three on, the explanations do not match:

You must first create or choose an existing Xcode* project. These instructions assume you are creating a new project.

1. Launch Xcode in the Developer > Applications folder.

2. Choose New Project from the File menu.

3. When the New Project Assistant window appears, select a project under Command Line Utility.

4. Double-click the target you want to change in the Target group under the Groups & Files list.

5. Click Rules in the Target Info window. 6. Click the + button at the bottom, left-hand corner of the Target Info window, to

add a new rule. 7. From the new Rule section, choose FORTRAN source files using Intel Fortran

Compiler.

See the Building Applications with Xcode* section in the compiler documentation for more information about using the compiler with the Xcode integrated development environment.

I would appreciate to receive similar instructions to set the compiler up with Xcode 3.2.

Thanks very much!

Andreas

0 Kudos
9 Replies
Andreas_Hoffie
Beginner
1,784 Views
OK, found the answer by myself. A simple hint in the instruction that the rules tab can be found by double clicking on the newly defined target could have been helpful here... I did not know where to find the "rules" tab. Therefore the instructions given in the Intel "getting_started.pdf" guide are definitely applicable to Xcode 3.2. -Andreas
0 Kudos
Kevin_D_Intel
Employee
1,784 Views


Glad you resolved this, sorry if the Getting Started guide was confusing/lacking.It was created before Xcode 3.2 so I'll review/re-try the referenced section and suggest anyimprovements to our Documentation team.

0 Kudos
Andreas_Hoffie
Beginner
1,784 Views

where is the "run log window" in Xcode 3.2?

as compared to the intel compiler user and reference guide

file:///opt/intel/Compiler/11.1/080/Documentation/en_US/compiler_f/com.intel.compilers.ifort.docset/Contents/Resources/Documents/ifort/doc_files/index.htm

Section "Building Application with the Xcode IDE", "Running the Executable", pt.4: "the output from the executable appears in the 'run log window'"

Thanks!

0 Kudos
Kevin_D_Intel
Employee
1,784 Views
On the Xcode options bar at the top of the screen, under Run > Console.
0 Kudos
Andreas_Hoffie
Beginner
1,784 Views

Hi Kevin,

when I choose the compiler in Xcode 3.2, why does it say "Intel Fortran Compiler 11.1 (Limited Feature)"? Does the "Limited Feature" come from because I am using a student version?

Thanks!

Andreas

0 Kudos
Steven_L_Intel1
Employee
1,784 Views
No - we call it that because the Fortran integration into Xcode is not complete due to limitations in Xcode. For example, it does not understand module dependencies and you can't start the Intel debugger from within Xcode.
0 Kudos
Kevin_D_Intel
Employee
1,784 Views

No. The student license affords access to the same product features as the commercial license.

The "Limited Feature" tag is used to note some functional limitations exist with the compiler's integrationsunder Xcode. One such limitation is the handling of modules and the present inability to determine the necessary compilation order. At present, users must order source files under the target according to the USE order in their source to ensure the required .mod files are present as source for the associated target is compiled.

There's limitations also with debugging Fortran under the Xcode interface and the underlying debugger, gdb, and its understanding of some Fortran source. One also cannot integrate the Intel Debugger (idb) with Xcode.

That's all the tag is about.

0 Kudos
Andreas_Hoffie
Beginner
1,784 Views
Thanks a lot for the quick replies.... So, how can I make use of the Intel Debugger?
0 Kudos
Kevin_D_Intel
Employee
1,784 Views

You must use the Intel debugger via the command-line under a terminal window. There's no GUI :(

You execute the debugger with the command: idb

/usr/bin/idb should refer to the latest IDB version installed on your system, but its probably safest to open the terminal window and then "source" the ifortvars.sh setup script first for the Intel compiler you have installed.

The script lives under: /opt/intel/Compiler/11.1/080/bin (for your installed version) and you must provide either an ia32 or intel64 argument depending on your system's processor. I expect the latter is what you want.

So here are the steps:

  1. Open the terminal Window
  2. Execute: source /opt/intel/Compiler/11.1/08/bin/ifortvars.sh intel64
  3. "Change directory" to where your executable is located
  4. Execute: idb
0 Kudos
Reply