22 Jan 2006 19:01
f2cl trouble with common block -- function make-<block name> undefined
Robert Dodier <robert.dodier <at> gmail.com>
2006-01-22 18:01:49 GMT
2006-01-22 18:01:49 GMT
Hello,
I'm trying to translate a program which has a named common block.
I'm using current cvs version of f2cl with clisp 2.34.
A simple example which shows the problem is
PROGRAM FOO
INTEGER BAR
COMMON /MYCOMN/BAR
BAR=12345
WRITE(6,10)BAR
10 FORMAT('BAR IS ', I5)
RETURN
END
g77 compiles this program and when executed it yields BAR IS 12345.
I translate this with (f2cl::f2cl "tmp.f" :declare-common t)
(same problem with (f2cl::f2cl "tmp.f" :declare-common t :common-as-array t)
by the way). The translation is apparently successful.
However, (load "tmp.lisp") complains "undefined function
FORTRAN-TO-LISP::MAKE-MYCOMN".
I looked at f2cl5.lisp and it looks like the stuff in create-sym-macros-array
is relevant in the :common-as-array case. However it appears that the
make-array at line 774 is never executed. I couldn't figure out anything else.
I searched the clocc-list and clocc-devel archives and checked the
bug reports (open and closed) but I didn't see anything about this problem.
Hopefully there is something simple I'm overlooking. Thanks for your help.
(Continue reading)
RSS Feed