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

2013-03-07 Thread Jon Agirre
Dear Fred, I would say that you're using a buggy gfortran version (http://lists.debian.org/debian-gcc/2009/03/msg00070.html). You may want to check your version with 'gfortran --version' in order to be sure of it. The '-malign-double' switch provides only a slight optimization and as you have

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

2013-03-07 Thread vellieux
Hi Jon, Thanks for the feedback. The version I am using (which is not that reported in the web page you mention, Version: 4:4.3.2-2) is: GNU Fortran (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4). Hence it appears that the bug hasn't been entirely dealt with. Ian Tickle was getting segmentation

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

2013-03-07 Thread Ian Tickle
I'm using gcc 4.7.2 (latest stable version I think). I don't get the compilation error of the FORMAT statement but I do get the segfault error on running with the '-malign-double' switch that I reported. So it would appear that even the current stable version is buggy! As Jon said the

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

2013-03-06 Thread Harry Powell
Hi Fred If you look very carefully at your Fortran code you will probably find a small error/inconsistency that g77 allowed but gfortran picked up on or compiled as written rather than as intended. My move from g77 to gfortran when building Mosflm (which is moderately large) was pretty

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

2013-03-06 Thread Ian Tickle
Hi Fred I regularly compile F77 code with gfortran: I always get lots of warnings and the occasional error that I didn't get with g77 mainly because gfortran is much stricter applying the standard (and a good thing too!). I also regularly use ifort (which isn't quite as strict as gfortran and

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

2013-03-06 Thread Thomas, Jens
Hi Fred, From: CCP4 bulletin board [CCP4BB@JISCMAIL.AC.UK] on behalf of vellieux [frederic.velli...@ibs.fr] When compiling Fortran77 code (these are the flags used for compilation: -o ../bin/$1 -std=legacy -Wno-globals -w -O3 -malign-double

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

2013-03-06 Thread Ian Clifton
Hi Fred, vellieux frederic.velli...@ibs.fr writes: [...] I get errors (at run time) of the type: At line 138 of file program.f (unit = 6, file = 'stdout') Fortran runtime error: Missing initial left parenthesis in format [...] Mmm, that kind of error rings a bell … is the relevant

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

2013-03-06 Thread vellieux
Dear all, By popular request here is an example of some code where gfortran gives run time errors. This is at the very beginning of the program, the first write statement where a parenthesis is seen as missing at run time: (the first hyphens are not within the Fortran code but there to

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

2013-03-06 Thread Ian Tickle
Fred The relevant bit of code, with the FORMAT statement closed with a ')' and an END statement added to make it a viable program, is: WRITE (*,10) 10 FORMAT(///,25X,'*', . /,25X,'* *') END For me this compiles

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

2013-03-06 Thread Francois Berenger
Hi, The command: $ aptitude install fort77 would install an f77 command on Ubuntu/Debian Linux. In fact that's a wrapper for f2c, but maybe it behaves like a real f77 compiler, I would give it a try personnally. On 03/06/2013 06:48 PM, vellieux wrote: Hello, For those who still know the