Fortran libraries in odepkg (Octave 4.1.0+)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fortran libraries in odepkg (Octave 4.1.0+)

Sebastian Schöps
Dear Mike & Ben, dear all,

> Il 19 ago 2016 10:42 AM, "Jacopo Corno" <[hidden email]> ha scritto:
> I get the same error as Sebastian and Marco
> mkoctfile: no way to compile Fortran file cash/mebdfdae.f
> with Octave 4.1.0+ (hg_id = 029c5f4eac3a+) and g++ (version 5.3)

as you know, I compile Octave 4.1+ with clang on my Mac. When I try to install odepkg, then I see errors as

#error "unknown C++ to Fortran calling convention"

Carlo and Jacopo get the same error with gcc on linux but can fix this by "./configure F77=gfortran", (which seems to be a bug in itself). I can avoid that error if I add

"define F77_USES_GFORTRAN_CALLING_CONVENTION 1"

to the header files of odepkg. However, some errors remain, e.g.

f77-fcn.h:363:11: error: C++ requires a type specifier for all declarations.
F77_FUNC (xstopx, XSTOPX) (F77_CONST_CHAR_ARG_DECL

f77-fcn.h:363:19: error: unknown type name 'XSTOPX'
F77_FUNC (xstopx, XSTOPX) (F77_CONST_CHAR_ARG_DECL

There might be a bug wrt Fortran and that would be bad for the 4.2 release since it can screw up several packages.

@Ben, Mike: I think you both compile with clang, right? Could you try to install odepkg an report whether it works?
 
Thanks,
Sebastian
Reply | Threaded
Open this post in threaded view
|

Re: Fortran libraries in odepkg (Octave 4.1.0+)

Carlo de Falco-2

Il 31 ago 2016 10:08 PM, "Sebastian" <[hidden email]> ha scritto:
> I see errors as
>
> #error "unknown C++ to Fortran calling convention"
>
> Carlo and Jacopo get the same error with gcc on linux but can fix this by "./configure F77=gfortran",

Sebastian this is not correct I could never reproduce this same error.
Without specifying F77 I saw a different bug which has been reported by Marco Caliari on the tracker.

Sorry if I wasn't clear with this respect.

c.