[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem in octave



Am Mittwoch, den 25.07.2007, 15:12 -0400 schrieb John W. Eaton:
> On 23-Jul-2007, Thomas Weber wrote:
> 
> | Am Montag, den 23.07.2007, 21:38 +0530 schrieb Goudar Vishwanathappa
> | Manu:
> | > Hello
> | > I don't know whether this is a right place to ask this question. I am
> | > using octave 2.9.9 version present in Testing. I just tried out the
> | > following multiplication and was surprised.
> | > 
> | > 
> | > >>a=[3+6i, 1+5i]                   ! complex vector a is defined
> | > >>a*a'                                  ! It is multiplied by its conjugate
> | > ans =  0.50000 + 0.50000i     ! I get this answer
> | 
> | It's a bug. ATLAS is built with g77 as Fortran compiler, while Octave
> | (2.9.9) was built with gfortran. This results in bugs when working with
> | complex numbers.
> | 
> | There's not much we as maintainers can currently do. We are waiting for
> | Octave 2.9.12 to migrate to testing (it's waiting for an ARM build on a
> | machine with enough ram[1], but mails to arm@buildd.debian.org yield no
> | result).
> 
> As long as the libraries are built with g77, then couldn't we use the
> -ff2c option for gfortran so the calling conventions are the same?

Yes. OTOH, passing an extra flag to gfortran is about as much work as
using g77 (in the package scripts). The latter has the advantage that it
is easily trackable which packages must be changed for the jump from g77
to gfortran. That's about the main reason for going back to g77 in
Octave packages. 


> If Debian transitions to the gfortran calling conventions for
> libraries like ATLAS, then will that break programs compiled with g77?

No idea, I'm don't have much knowledge about Fortran.

	Thomas




Reply to: