ifort in OS X

From: Dennis Fisher Date: August 06, 2010 technical Source: mail-archive.com
Colleagues Several days ago, I posted a solution to a problem that several people have encountered -- the newest version of XCode on the Mac did not appear to be compatible with Intel Fortran. Rich Tabor (UCSF) had this same problem and, with the assistance of Alison Boeckman, found a different solution. I have pasted their solution below. Dennis Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-7784) Fax: 1-866-PLessThan (1-866-753-7784) www.PLessThan.com Dennis, We also had this problem a few weeks ago here at UCSF. As it turned out the problem seemed to be with optimization. We solved this problem with ifort by building nonmem with optimization turned off. This was not as simple as using the "n" option. It turns out that ifort by default has optimization turned on so when SETUP7 is used with option "n" (for no optimization), it sets the default (which is to optimize). So we had to change SETUP for ifort so that the default was not op=" " but to op="-O0". Thanks to Alison for these details. She felt that it was probably something to do with optimization. Here are a couple of additional links to intel pages that talk about the problem. They will be coming out with a bug fix release in the next few weeks I believe. http://software.intel.com/en-us/forums/showthread.php?t=73942 UPDATE 5/7/2010: Xcode 3.2.2 and ifort are not compatible and can cause incorrect runtime results or segmentation faults. A possible workaround is to add -use-asm option to all compile and ifort link commands (see below). We are continuing to work with Apple to resolve this issue. Another forum post points to a problematic linker shipped with xcode: http://software.intel.com/en-us/forums/showthread.php?t=75480&o=d&s=lr The failure you experienced after the OS upgrade relates to a known issue with the linker (ld) that Apple provides with the Xcode 3.2.2 release you are also using. The problematic linker version is: ld64-97.2 From this last thread, it seems that they do updates every three months or so and mid-august would be the next one. Richard