I have compiled fortran 77 code for geophysical processing(written by other person).When I tried to change parameters file to allow for larger chunks and larger matrices to be inverted I got this
rm -f *.o
rm -f birrp
ifort -fast -Wl -o birrp birrp.f coherence.f dataft.f diagnostic.f fft.f filter.f math.f rarfilt.f response.f rtpss.f utils.f weight.f zlinpack.f
ifort: command line warning #10157: ignoring option '-W'; argument is of wrong type
filter.f(1): warning #6178: The return value of this FUNCTION has not been defined. [FILTER]
complex function filter(f,fpar,npar)
-----------------------^
utils.f(890): warning #7532: The number of arguments is incompatible with intrinsic procedure, assume 'external'. [DATE]
call date( 0, time1, year1, month1, day1, hour1, min1, sec1 )
-----------^
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu//libc.a(libc_fatal.o): In function `__libc_message.constprop.0':
(.text+0x13b): relocation truncated to fit: R_X86_64_PC32 against symbol `__abort_msg' defined in .bss section in /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu//libc.a(abort.o)
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu//libc.a(libc_fatal.o): In function `__libc_message':
(.text+0x421): relocation truncated to fit: R_X86_64_PC32 against symbol `__abort_msg' defined in .bss section in /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu//libc.a(abort.o)
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu//libc.a(gconv_db.o): In function `__gconv_get_modules_db':
I am on Ubuntu 14.04.How should I set the compilation options?My makefile
FC90 = ifort
FCFLAGS= -fast -WlTARGETS= clean birrp
OBJSOC= birrp.f coherence.f dataft.f diagnostic.f fft.f filter.f math.f rarfilt.f response.f rtpss.f utils.f weight.f zlinpack.f
all: $(TARGETS)clean:
rm -f *.o
rm -f birrpbirrp:$(OBJSOC)
$(FC90) $(FCFLAGS) -o $@ $(OBJSOC) $(LIBS)# General compile rules
.SUFFIXES: .f .o
.f90.o:
$(FC90) $(FCFLAGS) -c -o $@ $<