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

Mysterious failure to build a static library

jd_weeks
Beginner
482 Views
OK- yesterday I tried to build my library using ifort 9.1.024 and XCode 2.2.0. Then I noticed that XCode 2.2.1 is the minimum version.

So today I downloaded XCode 2.3 and installed it. First I uninstalled ifort using the script. It wasn't entirely successful, but I forged onward. I re-installed ifort after installing XCode 2.3. Now I get this result from building my static library:

Building target IgorFortran of project Igor with configuration Debug


Checking Dependencies
Libtool /Users/john/IgorDev/Igor6XcodeProject/build/Debug/libIgorFortran.a normal i386
cd /Users/john/IgorDev/Igor6XcodeProject
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/usr/bin/ifort-9.1-base/bin/xilibtool -static -arch_only i386 -o /Users/john/IgorDev/Igor6XcodeProject/build/Debug/libIgorFortran.a -L/Users/john/IgorDev/Igor6XcodeProject/build/Debug -L/Users/john/IgorDev/Igor6XcodeProject/../linpack -L/opt/intel/fc/9.1.024/lib -filelist /Users/john/IgorDev/Igor6XcodeProject/build/Igor.build/Debug/IgorFortran.build/Objects-normal/i386/IgorFortran.LinkFileList -syslibroot /Developer/SDKs/MacOSX10.4u.sdk
dyld: Library not loaded: libifcore.dylib
Referenced from: /usr/bin/ifort-9.1-base/bin/fortcom
Reason: image not found
xilibtool: error: Fatal error in /usr/bin/ifort-9.1-base/bin/fortcom, terminated by trace trap
xilibtool: error: problem during multi-file optimization compilation (code 1)
xilibtool: error: problem during multi-file optimization compilation (code 1)

Maybe this is related:
I've been around this a few times- I tried uninstalling ifort manually. When I re-install it the label on the button is always "Upgrade" instead of "Install". Is that a problem?
0 Kudos
2 Replies
jd_weeks
Beginner
482 Views
I forgot to mention that libifcore.dylib is, in fact, present in /opt/intel/fc/9.1.024/lib.
0 Kudos
jd_weeks
Beginner
482 Views
I have since successfully built my library using a make file. That's a viable option since I'm doing that with gfortran for the ppc version, but one of the advantages of Intel fortran that I was looking forward to was integration into the XCode IDE.
0 Kudos
Reply