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

Lion 10.7.2 Update 7 ld error

Ed_Warnken
Beginner
839 Views
DId a clean install of update 7 as well as an update, with the same ld error.
UsingIntel Fortran Composer XE 2011 for Mac OS* X Update 7, Version 2011.7.246
Mac 10.7.2

bash-3.2# ifort t.f90
ld: library not found for -lcrt1.10.6.o
bash-3.2# locate crt1.10.6.o
/Volumes/MacX/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/crt1.10.6.o
/Volumes/MacX/Developer/SDKs/MacOSX10.6.sdk/usr/lib/crt1.10.6.o
/Volumes/MacX/Developer/SDKs/MacOSX10.7.sdk/usr/lib/crt1.10.6.o
/Volumes/MacX/usr/lib/crt1.10.6.o
bash-3.2#
0 Kudos
4 Replies
Ron_Green
Moderator
839 Views
I can't say for certain, but the non-default location for Developer may be confusing the ifort driver. First, do you

source /opt/intel/bin/compilervars.sh intel64

before the compilation.

Second, have you tried to link Developer under root? Like this:

ln -s /Volumes/MacX/Developer /Developer

You can also dump the entire compilation environment along with the paths using:

ifort -dryrun t.f90

that should show where the driver is searching for the libraries. When you installed ifort, was Developer under /Volumes/MacX or did you move it there after ifort was installed? It's odd, even though your Developer is in an odd location, I would think the installer would have pathed in the Developer path you gave it during the installation. There may be a bug here with the installer and odd Developer locations.

ron
0 Kudos
Ron_Green
Moderator
839 Views
also, forgot to ask - but you are using Xcode 4.2 ?

ron
0 Kudos
Ron_Green
Moderator
839 Views
Here's my output on a Lion 10.7.2 and Xcode 4.2 system with Update 7 ifort. First, we source the compilervars.sh script to set paths, and then compile:

super$ source /opt/intel/bin/compilervars.sh intel64
super$ ifort test.f90
super$

no problems. But again, I have Developer under root dir, /Developer

ron
0 Kudos
Ed_Warnken
Beginner
839 Views
Thanks for the replies. I am using XCode 4.1 as the 4.2 update fails to install (logged with Apple Bug).
I did a restart of the Mac, and a reinstall of Update 7, and removed all old versions and links,
and the test compile now works with no library errors.
0 Kudos
Reply