Bug#442346: gdb: GDB unable to debug F90-program

2007-09-15 Thread Marcus Lundblad
Package: gdb
Version: 6.4.90.dfsg-1
Severity: grave
Justification: renders package unusable

I compiled a Fortran 90-program using the -g flag to f95
When I try to run the program in gdb I get this:

sagittarius$ gdb ./dist
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as x86_64-linux-gnu...BFD: 
/home/marcus/prg/partalg/baltic/dist: don't know how to handle OS specific 
section `.gnu.hash' [0x6ff6]
/home/marcus/prg/partalg/baltic/dist: not in executable format: 

The source code is available here: 
http://www.update.uu.se/~ml/partalg-20070915.tar.gz

It requires gfortran (obviously), lapack3-dev and metis-4.0. Metis is not
available in Debian, so I got the tar-ball here: 
http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-4.0.tar.gz 

The Metis package can be compiled by just running make in the unpacked
directory. There is no configure script, so I just copy the whole directory 
(metis-4.0) to /opt and link to it from /opt/metis

I hard-coded this library path (/opt/metis/libmetis.a) in my Makefile.

And finally to build my package:
In the resulting directory partalg
First cd to source and run make
Then cd ../baltic and run make

The resulting binary is called dist.
Running this will cause a crash

And running gdb on the binary results in the above mentioned error.

Thanks

Regards, Marcus



-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.18-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gdb depends on:
ii  libc6 2.6.1-1GNU C Library: Shared libraries
ii  libncurses5   5.6+20070825-1 Shared libraries for terminal hand
ii  libreadline5  5.2-3  GNU readline and history libraries

gdb recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#442346: gdb: GDB unable to debug F90-program

2007-09-15 Thread Daniel Jacobowitz
close 442346
fixed 442346 6.6.dfsg-3
merge 442346 425838
tags 442346 + lenny
thanks

On Sat, Sep 15, 2007 at 01:21:59PM +0200, Marcus Lundblad wrote:
 This GDB was configured as x86_64-linux-gnu...BFD: 
 /home/marcus/prg/partalg/baltic/dist: don't know how to handle OS specific 
 section `.gnu.hash' [0x6ff6]
 /home/marcus/prg/partalg/baltic/dist: not in executable format: 

This is fixed in the GDB in unstable.  I'm trying to get a new one
into testing.

-- 
Daniel Jacobowitz
CodeSourcery



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]