Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29284 Discussions

Cannot find the option "Intel(R) Fortran Compiler" in Xcode->Target->Info

changks888
Beginner
515 Views

Hi,

I already installed Fortran in this Mac. The "ifort" can beexecutedunder the terminal, however the option, "Intel Fortran Compiler" can not be found in Xcode 3.0 -> Taget -> Info

I already look at the instruction and I followed it. How can I compiler/run the multi-programs under Xcode using Intel Fortran compiler?

I do have a makefile as below. Normally, it should work when typing "make" in the terminal. The makefile did not work under mac with Intel Fortran.

How can I let it work? I post the Makefile as below.

==========================

.SUFFIXES : .f90 .obj

FC=xlf90

FFLAGS= -q64 -O0 -qrealsize=8 -qintsize=8 -qsave -qspillsize=32648

OBJ=Allometry.o aprep.o canadd.o canalb.o canvap.o carbon.o cgrow.o \

chkwat.o cianda.o classa.o classb.o classd.o classg.o classi.o classs.o \

classt.o classw.o commondat.o cwcalc.o diasurf.o drcoef.o flxsurfz.o \

gatprep.o gralb.o grdran.o grinfl.o icebal.o photosyn.o precision.o \

qsat.o sldiag.o sninfl.o snoadd.o snoalba.o snoalbw.o snovap.o \

stomata.o stomata_col.o subcan.o tfreez.o tmcalc.o tmelt.o tnpost.o \

tnprep.o tprep.o trim_name.o tsolvc.o tsolve.o tspost.o tsprep.obj \

twcalc.o VegDyn.o vjtmp.o watrof.o wend.o wfill.o wflow.o wprep.o xit.o

default: runclass

all: runclass

.f.o:

$(FC) $(FFLAGS) -c $*.f

runclass: $(OBJ)

$(FC) -o $@ $(FFLAGS) $(OBJ) runclass.f

clean:

rm *.o

==========================

0 Kudos
3 Replies
Kevin_D_Intel
Employee
515 Views

Which Intel Fortran compiler package did you install?

Xcode must be installed first, followed by installing the Intel compiler.

If the Intel Fortran integrations with Xcode installed successfully, there will be a Default Fortran rule defined under the Rules tab for the Target. Using the Xcode GUI, under Groups & Files, right-click the target name, then left-click Get Info and finally click on the Rules tab. Scroll through the rules to see if a Default Fortran rule exists.

If you do not see a Default Fortran rule then there may have been an issue installing the Intel Fortran Xcode integrations. If the rule is missing, first make certain you are only installing the Intel Fortran 10.1 Release with Xcode 3.0, uninstall the current Intel Fortran compiler and then re-install it.

Regarding the makefile issue, what was the error you received when running the makefile when trying to use ifort?

The enclosed makefile is configured to use xlf90, but perhaps the version you ran with ifort contains FC=ifort and the appropriate FFLAGS settings for ifort specific options.

While it is not necessary, you can also "source" the ifort setup script ifortvars.sh or ifortvars.csh to initialize your working shell to use the ifort compiler. The ifort setup scripts reside in the Intel Fortran compiler installation directory under the parent directory /opt/intel.

0 Kudos
changks888
Beginner
515 Views

Thanks Kevin so much.

I installed the Intel Fortran Compiler that is the newly version11.0.054. Before installing the Intel Fortran Compiler, I already installed the Xcode 3.0.

I did not find a "Default Fortran rule" under theRulestab for the Target. I do have a"Fortran source files" under"Fortran source rule" in thetheRulestab.

Can I use Intel Fortran version 11 with Xcode 3.0? Should I reinstall the Xcode and then reinstall"Intel Fortran version 11"again? How to uninstall it?

Currently, I compile the multi-programs under terminal. My strategy was to "ifort -c *.F90" and the "ifort -o runclass *.o"

The error message was:

Undefined symbols:

"_allometry_", referenced from:

_vegdyn_ in VegDyn.o

_carbon_ in carbon.o

_carbon_ in carbon.o

ld: symbol(s) not found

===

I try to compile and run it under a Makefile, however some error came out. Here is the error message.

make: *** No rule to make target `Allometry.o', needed by `runclass'. Stop.

Here is the Makefile.

.SUFFIXES : .F90 .o

OBJ=Allometry.o aprep.o canadd.o canalb.o canvap.o carbon.o cgrow.o

chkwat.o cianda.o classa.o classb.o classd.o classg.o classi.o classs.o

classt.o classw.o commondat.o cwcalc.o diasurf.o drcoef.o flxsurfz.o

gatprep.o gralb.o grdran.o grinfl.o icebal.o photosyn.o precision.o

qsat.o sldiag.o sninfl.o snoadd.o snoalba.o snoalbw.o snovap.o

stomata.o stomata_col.o subcan.o tfreez.o tmcalc.o tmelt.o tnpost.o

tnprep.o tprep.o trim_name.o tsolvc.o tsolve.o tspost.o tsprep.o

twcalc.o VegDyn.o vjtmp.o watrof.o wend.o wfill.o wflow.o wprep.o xit.o

FC = ifort

default: runclass

all: runclass

.F90.o:

$(FC) -c *.F90

runclass: $(OBJ)

$(FC) -o $@ $(OBJ) runclass.F90

clean:

rm *.o

... cut ...

0 Kudos
changks888
Beginner
515 Views
It seems I solved the problem of using the Makefile. However, I generate another question/error message. If possible, I still have to find the solution about how to run the code in Xcode using Intel Fortran Compiler.

What is those two lines mean?
forrtl: No such file or directory
forrtl: severe (29): file not found, unit 89, file /Users/cks/CNCLASS/fort.89


Thanks.

===I post the process and error message as below=========

kuo-hsien-changs-macbook-pro:CNCLASS cks$ make
ifort -O0 -real_size 64 -integer_size 64 -save -c Allometry.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c aprep.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c canadd.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c canalb.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c canvap.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c carbon.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c cgrow.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c chkwat.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c cianda.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c classa.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c classb.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c classd.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c classg.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c classi.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c classs.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c classt.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c classw.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c commondat.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c cwcalc.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c diasurf.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c drcoef.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c flxsurfz.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c gatprep.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c gralb.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c grdran.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c grinfl.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c icebal.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c photosyn.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c precision.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c qsat.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c sldiag.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c sninfl.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c snoadd.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c snoalba.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c snoalbw.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c snovap.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c stomata.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c stomata_col.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c subcan.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c tfreez.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c tmcalc.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c tmelt.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c tnpost.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c tnprep.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c tprep.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c trim_name.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c tsolvc.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c tsolve.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c tspost.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c tsprep.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c twcalc.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c VegDyn.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c vjtmp.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c watrof.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c wend.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c wfill.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c wflow.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c wprep.F90
ifort -O0 -real_size 64 -integer_size 64 -save -c xit.F90
ifort -o runclass -O0 -real_size 64 -integer_size 64 -save Allometry.o aprep.o canadd.o canalb.o canvap.o carbon.o cgrow.o chkwat.o cianda.o classa.o classb.o classd.o classg.o classi.o classs.o classt.o classw.o commondat.o cwcalc.o diasurf.o drcoef.o flxsurfz.o gatprep.o gralb.o grdran.o grinfl.o icebal.o photosyn.o precision.o qsat.o sldiag.o sninfl.o snoadd.o snoalba.o snoalbw.o snovap.o stomata.o stomata_col.o subcan.o tfreez.o tmcalc.o tmelt.o tnpost.o tnprep.o tprep.o trim_name.o tsolvc.o tsolve.o tspost.o tsprep.o twcalc.o VegDyn.o vjtmp.o watrof.o wend.o wfill.o wflow.o wprep.o xit.o runclass.F90
kuo-hsien-changs-macbook-pro:CNCLASS cks$ ./runclass
1990 89
forrtl: No such file or directory
forrtl: severe (29): file not found, unit 89, file /Users/cks/CNCLASS/fort.89

Image PC Routine Line Source
runclass 000000010010A331 Unknown Unknown Unknown
runclass 00000001001093F4 Unknown Unknown Unknown
runclass 00000001000D4763 Unknown Unknown Unknown
runclass 000000010009ECCF Unknown Unknown Unknown
runclass 000000010009E47C Unknown Unknown Unknown
runclass 00000001000BC549 Unknown Unknown Unknown
runclass 0000000100074E89 Unknown Unknown Unknown
runclass 0000000100000B5C Unknown Unknown Unknown
runclass 0000000100000AF4 Unknown Unknown Unknown
kuo-hsien-changs-macbook-pro:CNCLASS cks$ ls fort*
fort.100
kuo-hsien-changs-macbook-pro:CNCLASS cks$


0 Kudos
Reply