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

Fortran on Mac / XCode 2.3

Intel_C_Intel
Employee
2,493 Views

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

0 Kudos
15 Replies
Steven_L_Intel1
Employee
2,493 Views
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.
0 Kudos
Intel_C_Intel
Employee
2,493 Views
Hi Steve,



I tried it but it did not help.



I'll give it another try.



Regards,



Pierre-Olivier
0 Kudos
Intel_C_Intel
Employee
2,493 Views
Nothing to do, I tried a second time re-installation and it did not work.
0 Kudos
Steven_L_Intel1
Employee
2,493 Views
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.
0 Kudos
Intel_C_Intel
Employee
2,493 Views
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
0 Kudos
rspaulding
Beginner
2,493 Views
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
0 Kudos
TimP
Honored Contributor III
2,493 Views
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.
0 Kudos
Steven_L_Intel1
Employee
2,493 Views
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

0 Kudos
rspaulding
Beginner
2,493 Views
Great, thank you for the quick reply!!
0 Kudos
jd_weeks
Beginner
2,493 Views
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!
0 Kudos
Intel_C_Intel
Employee
2,493 Views
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
0 Kudos
Steven_L_Intel1
Employee
2,493 Views
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.
0 Kudos
Steven_L_Intel1
Employee
2,493 Views
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

0 Kudos
jonmitch
Beginner
2,493 Views
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
0 Kudos
Steven_L_Intel1
Employee
2,493 Views
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.
0 Kudos
Reply