Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Spanky Deluxe

macrumors 603
Original poster
Mar 17, 2005
5,293
1,839
London, UK
I've been given some code that I need to compile and run. It was designed for G95 (although I know that they use the Intel compiler when its run on a cluster) and the makefile, makeflag and makerules files are all designed with G95 in mind.

G95 doesn't seem to work properly on Leopard right now - in fact it doesn't even seem to compile. Since I can get the Intel C++ and Fortran compilers for a total of about £35, I figured I may as well get those.

I haven't had to play with makefiles much before and when I did it was for some C code I was working on over the Summer. I have never touched Fortran before in my life and have to learn it sharpish - in the mean time I need to at least get this code (which is meant to be intact and working) to at least compile.

Any ideas?

Spanky

Edit: BTW, in the makeflags file I did try simply changing the FC = g95 flag to FC = ifort and it didn't seem to play nice. :(

Edit 2: The problems seem to be arising from the options parsed to the compiler:

ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
ifort: command line warning #10006: ignoring unknown option '-fbounds-check'
ifort: command line warning #10006: ignoring unknown option '-ftrace=full'
ifort: command line warning #10006: ignoring unknown option '-fendian=big'
ifort: command line warning #10006: ignoring unknown option '-fshort-circuit'
ifort: command line warning #10006: ignoring unknown option '-fmod=modules'

There are various errors in the code found as well although they may be due to these options not being activated.

The options for the compiler are:

Code:
FFLAGS = -g -Wall -Wimplicit-none -fbounds-check -ftrace=full 
FFLAGS += -fendian=big -fshort-circuit -fmod=modules
FFLAGS += -r8
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.