Since upgrading to Leopard, Xcode 3.0 and Intel Fortran 10,
I am unable to build static libraries.
If I build the sample program below in Xcode using a Command
Line and Debug (I can’t get Release to work for any projects now either), it
executes without error. If I then cut out the two subroutines and create a new
project for Static Libraries, I get the following errors:
Building target “Build Library Test” of project
“Build Library Test” with configuration “Debug” — (1 error) Checking Dependencies cd
"/Users/rwb4807/Build Library Test"
/usr/bin/ifort-10.1-base/bin/ifort -static -arch_only i386 -o
"/Users/rwb4807/Build Library Test/build/Debug/libBuild Library
Test.a" "-L/Users/rwb4807/Build Library Test/build/Debug"
-staticlib -filelist "/Users/rwb4807/Build Library Test/build/Build
Library Test.build/Debug/Build Library Test.build/Objects-normal/i386/Build
Library Test.LinkFileList" -syslibroot /Developer/SDKs/MacOSX10.5.sdk Unsupported machine model:
GLOB_MACHINE_MODEL_EFI2 xilibtool: error error_during_IPO_compilation:
problem during multi-file optimization compilation (code 1) xilibtool: error error_during_IPO_compilation:
problem during multi-file optimization compilation (code 1) xilibtool: error
error_during_IPO_compilation: problem during multi-file optimization
compilation (code 1) xilibtool: error
error_during_IPO_compilation: problem during multi-file optimization
compilation (code 1) xilibtool: error
error_during_IPO_compilation: problem during multi-file optimization
compilation (code 1) xilibtool: error
error_during_IPO_compilation: problem during multi-file optimization
compilation (code 1)
Build failed (1 error)
I am at a losse as to how to fix the errors, can some one
please help? Thanks in advance.
Sample Code:
Program Untitled Integer N Print *, 'Hello from the Main Program' N = 2 Print *, 'N = ', N
Print *, ' ' Call SADD1( N ) CALL SMUL2( N ) Stop End C
Subroutine SADD1( N ) Integer N Print *, 'Hello from Subroutine SADD1' Print *, 'N = ', N N = N + 1 Print *, 'N+1 = ', N Print *, ' ' Return End C Subroutine SMUL2( N ) Integer N Print *, 'Hello from Subroutine SMUL2' Print *, 'N = ', N N = 2*N Print *, '2*N = ', N Print *, ' ' Return End
|