Bug#616191: unreliable exit status of fort77

2011-03-04 Thread Ralf Wildenhues
* Ralf Wildenhues wrote on Thu, Mar 03, 2011 at 05:12:27AM CET:
 This should fail reliably with a compile error, but doesn't if -g is
 also passed:
 
 $ cat  a.f \EOF
   program main
 #if 1
   choke me
 #endif
   end
 EOF

I just noted that other flags also cause the exit status to be turned to
zero wrongly.  For example, -k does, which is kind of ugly as it can
cause Heisenbugs.

Cheers,
Ralf



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#616191: unreliable exit status of fort77

2011-03-02 Thread Ralf Wildenhues
Package: fort77
Version: 1.15-8
Severity: normal

Hello there,

fort77 fails to return reliable failure upon either
- preprocessing errors, and
- syntax errors in some cases.

For example, this should fail due to a preprocessing error:

$ cat  a.f \EOF
  program main
#if 1
#include ac_nonexistent.h
#endif
  end
EOF
$ fort77 -c -cpp a.f; echo $?
stdin:3: error: ac_nonexistent.h: No such file or directory
   MAIN main:
0
$

This should fail reliably with a compile error, but doesn't if -g is
also passed:

$ cat  a.f \EOF
  program main
#if 1
  choke me
#endif
  end
EOF
$ fort77 -c -cpp a.f; echo $?
   MAIN main:
Error on line 3 of stdin: unclassifiable statement (starts chokeme)
/usr/bin/fort77: aborting compilation
255
$ fort77 -c -g -cpp a.f; echo $?
   MAIN main:
Error on line 3 of stdin: unclassifiable statement (starts chokeme)
0
$

(I'm working on Autoconf macros to detect Fortran preprocessing flags,
in case you're wondering.)

Cheers, and thanks for maintaining Debian,
Ralf

-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (510, 'stable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages fort77 depends on:
ii  cpp   4:4.4.5-1  The GNU C preprocessor (cpp)
ii  f2c   20090411-1 A FORTRAN 77 to C/C++ translator
ii  perl [perl5]  5.10.1-17  Larry Wall's Practical Extraction 

fort77 recommends no packages.

fort77 suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org