Re: [ccp4bb] SOLVED [ccp4bb] compiling Fortran 77 code on a Linux box (using gfortran ?)

2013-03-06 Thread vellieux
Hi all, Problem solved thanks to Jorge Navaza's suggestion: remove all compilation flags but only have -Wall as a compilation flag. There is no run time error any more and there is no error at compilation time. The program runs fine. Thanks to Thomas Jens, Harry Powell, Ian Tickle, Ian

Re: [ccp4bb] SOLVED [ccp4bb] compiling Fortran 77 code on a Linux box (using gfortran ?)

2013-03-06 Thread Ian Tickle
Fred, OK I just noticed I didn't have the -malign-double flag. With that it compiles but on running I get: Program received signal SIGSEGV: Segmentation fault - invalid memory reference. Backtrace for this error: #0 0x12244B #1 0x122A9C #2 0x473907 #3 0x1BD238 #4 0x1CB4BF #5 0x80486E2 in

Re: [ccp4bb] SOLVED [ccp4bb] compiling Fortran 77 code on a Linux box (using gfortran ?)

2013-03-06 Thread vellieux
Hi again Ian and list, The following flags seem to work fine: gfortran -o ../bin/$1 -std=legacy -ffixed-format -Wno-globals -w -O3 -funroll-loops -ffast-math -fno-second-underscore $1.f (followed by the library or libraries, compiled with the same flags). Problem solved as far as I am