integer type is defined as 64 bit on x86-64, but dgesv_ expects 32 bit

Bug #222094 reported by Zed
6
Affects Status Importance Assigned to Milestone
lapack3 (Ubuntu)
Invalid
Undecided
Unassigned
Nominated for Jaunty by Evgeni Golov
libf2c2 (Debian)
Fix Released
Unknown
libf2c2 (Ubuntu)
Fix Released
Undecided
Evgeni Golov
Nominated for Jaunty by Evgeni Golov

Bug Description

Binary package hint: libf2c2

I try to run the function dgesv_ in lapack. It compiles, links and runs, but the output is wrong.

In the lapack manual it says that it expects data of type integer array (arguments of type "integer *").
f2c.h defines integer as long int, which on x86-64 is 64 bit.

When I look at an integer array filled by dgesv_, it is clear that the integers are 32 bit. When I change the definition of integer in f2c.h to int, the function works.

Not sure if the error is in f2c.h, or in the lapack build.
I use liblapack3gf 3.1.1-0.3ubuntu2.

ProblemType: Bug
Architecture: amd64
Date: Fri Apr 25 20:49:25 2008
Dependencies:
 libgcc1 1:4.2.3-2ubuntu7
 gcc-4.2-base 4.2.3-2ubuntu7
 libc6 2.7-10ubuntu3
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: openafs nvidia
Package: libf2c2 20050501-2
PackageArchitecture: amd64
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: libf2c2
Uname: Linux 2.6.24-16-generic x86_64

Tags: apport-bug
Revision history for this message
Evgeni Golov (evgeni) wrote :

That is fixed in 20061008-4.1 in Debian unstable (the problem was in f2c.h). Please sync.

Changed in libf2c2:
assignee: nobody → sargentd
status: New → Confirmed
Revision history for this message
Evgeni Golov (evgeni) wrote :

It's a bug in libf2c2, not in lapack3

Changed in lapack3:
status: New → Invalid
Changed in libf2c2:
status: Unknown → Fix Released
Revision history for this message
JC Hulce (soaringsky) wrote :

Debian fixed version appears to have been synced.

Changed in libf2c2 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.