Fortran on Mac / XCode 2.3

Fortran on Mac / XCode 2.3

Hi,

I've installed XCode 2.3 and since then, I've got this error when using ifort :

ld: can't open: /usr/lib/crt2.o (No such file or directory, errno = 2)

How can I modify the config file to set-up the right path ?

Best regards,

PODallaire

16 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

As stated in the installation guide, if you update XCode you must uninstall and reinstall the compiler. The installation will detect XCode 2.3 and install support for it.

Steve - Intel Developer Support

Hi Steve,

I tried it but it did not help.

I'll give it another try.

Regards,

Pierre-Olivier

Nothing to do, I tried a second time re-installation and it did not work.

Well, I was told it should. But then again, we were working with a preview of XCode 2.3 and Apple has an annoying habit of making incompatible changes when they release updates - even worse than Linux (I did not believe such a thing was possible.)

Please report the issue to Intel Premier Support so that you can get the solution when available.

Steve - Intel Developer Support

Hi Steve !

I've submitted the problem yesterday and one of your collegue told me this morning (10 minutes ago ...) that this problem wil be solve with the next release of the compiler.

Thanks !

Pierre-Olivier

Is there a mailing list to get on to be notified when the fix comes out? Sorry I could not find anything obvious.

Thank you,

Ryan

If you have a full license for the compiler, you should get e-mail notice when updates are posted for download. That practice has been followed again since 9.1 came out.

A correction - if you have registered your license for the compiler and created an Intel Premier Support account (done with registration), you'll get notices. Simply posessing a full license is not sufficient.

Message Edited by Steve_Lionel on 06-02-2006 09:57 AM

Steve - Intel Developer Support

Great, thank you for the quick reply!!

Steve and Pierre:

So I should not install XCode 2.3 right now, eh?

I have XCode 2.2.0 presently installed; I have encountered a problem and found that the minimum version of XCode for ifort 9.1.024 is 2.2.1. So I would like to upgrade my XCode to 2.2.1, but I can't find download files at Apple to do this...

Am I stuck until Intel comes out with an update for ifort?

Thanks!

You can download XCode 2.2.1 at http://developer.apple.com/

Log in , go to download section and developper tools -> you will fin xcode 2.2.1

Cheers

PO

Here's what I've been told:

- There is a new compiler update being validated now - I expect it to be released early next week. This should work with the released Xcode 2.3
- If you are running into the crt2.o error, just create a dummy object module called crt2.o and link it in with your project.

A heads up on another issue. Apple changed the way debugging works in Xcode 2.3 (without telling us.) They now require that the .o files from your application be available to the debugger. If you use a single command to compile and link your source, the Intel compilers delete the .o files after linking.

The workaround (described in the release notes for the update) is to do the compile and link in separate commands. Those of you who use Xcode or makefiles to build debug applications aren't affected.

I expect that a future update of the Intel compilers will leave the .o files around in all cases.

Steve - Intel Developer Support

Oh yeah, Xcode 2.2.1. The advice of our Xcode expert is "you really don't want to go there", as the support of Fortran is weak.

Message Edited by Steve_Lionel on 06-02-2006 01:06 PM

Steve - Intel Developer Support

Hi-

Sorry to join in the discussion late. I'm having the same issue with linking to "crt2.o". Can you explain in more detail what you mean by "just create a dummy object module..."?

Many thanks,
Jonathan

At this point you shouldn't need that - just get the current version of the compiler from Intel Premier Support File Downloads.

But if you wanted to anyway - create a source file such as this:

subroutine crt2dummy
end

Compile it. Rename the .o file to be crt2.o and include it in your link.

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today