public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/11132] New: Cannot work with gdb
@ 2010-01-04 21:57 cmb at bnl dot gov
  2010-01-05  3:43 ` [Bug gdb/11132] " ppluzhnikov at google dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: cmb at bnl dot gov @ 2010-01-04 21:57 UTC (permalink / raw)
  To: gdb-prs

Installed gdb v7.0.1 as per instructions.  Compiled program using -g version of
gfortran.
Then attempted to run using gdb with the following result:
[~/Documents/mom/bnlcode] benkov% gdb aero
GNU gdb (GDB) 7.0.1
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-apple-darwin9.8.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /Users/benkov/Documents/mom/bnlcode/aero...
warning: section __DATA.__common not found in
/Users/benkov/Documents/mom/bnlcode/TRAMP_isofwd.o

warning: section __DATA.__common not found in
/Users/benkov/Documents/mom/bnlcode/TRAMP_isorev.o
(no debugging symbols found)...done.
(gdb) break newTRAMP_init.f:73
No source file named newTRAMP_init.f.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (newTRAMP_init.f:73) pending.
(gdb) run
`fmain.o' has disappeared; keeping its symbols.
Starting program: /Users/benkov/Documents/mom/bnlcode/aero 
Unable to find Mach task port for process-id 27997: (os/kern) failure (0x5).
 (please check gdb is codesigned - see taskgated(8))
(gdb) quit
[~/Documents/mom/bnlcode] benkov% 

Cannot understand any of the error messages.

Thank you for your help.

-- 
           Summary: Cannot work with gdb
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: cmb at bnl dot gov
                CC: gdb-prs at sourceware dot org
  GCC host triplet: MacBook Pro running Mac OS X 10.5.8


http://sourceware.org/bugzilla/show_bug.cgi?id=11132

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/11132] Cannot work with gdb
  2010-01-04 21:57 [Bug gdb/11132] New: Cannot work with gdb cmb at bnl dot gov
@ 2010-01-05  3:43 ` ppluzhnikov at google dot com
  2010-01-07 14:57 ` benkov at bnl dot gov
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ppluzhnikov at google dot com @ 2010-01-05  3:43 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From ppluzhnikov at google dot com  2010-01-05 03:43 -------
You must digitally sign your GDB.
Please see http://sourceware.org/gdb/wiki/BuildingOnDarwin

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=11132

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/11132] Cannot work with gdb
  2010-01-04 21:57 [Bug gdb/11132] New: Cannot work with gdb cmb at bnl dot gov
  2010-01-05  3:43 ` [Bug gdb/11132] " ppluzhnikov at google dot com
@ 2010-01-07 14:57 ` benkov at bnl dot gov
  2010-01-11 19:16 ` benkov at bnl dot gov
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: benkov at bnl dot gov @ 2010-01-07 14:57 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From benkov at bnl dot gov  2010-01-07 14:57 -------
Subject: RE:  Cannot work with gdb

Hi!

Thanks for your e-mail.  I followed all your instructions and created a
certificate called gdb-cert (it appears on the certificates list).
However, when I tried to do the last step:

codesign -s gdb-cert gdb

I got an error message: Cannot find code object on disk.  I tried giving
the full path for the gdb binary and still got the same message.  Hope
you can help me get past this.

Many thanks,

Carmen

-----Original Message-----
From: ppluzhnikov at google dot com
[mailto:sourceware-bugzilla@sourceware.org] 
Sent: Monday, January 04, 2010 10:43 PM
To: cmb@bnl.gov
Subject: [Bug gdb/11132] Cannot work with gdb


------- Additional Comments From ppluzhnikov at google dot com
2010-01-05 03:43 -------
You must digitally sign your GDB.
Please see http://sourceware.org/gdb/wiki/BuildingOnDarwin

-- 
           What    |Removed                     |Added
------------------------------------------------------------------------
----
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=11132

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11132

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/11132] Cannot work with gdb
  2010-01-04 21:57 [Bug gdb/11132] New: Cannot work with gdb cmb at bnl dot gov
  2010-01-05  3:43 ` [Bug gdb/11132] " ppluzhnikov at google dot com
  2010-01-07 14:57 ` benkov at bnl dot gov
@ 2010-01-11 19:16 ` benkov at bnl dot gov
  2010-02-03 19:55 ` [Bug gdb/11132] GDB does not install properly, missing files cmb at bnl dot gov
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: benkov at bnl dot gov @ 2010-01-11 19:16 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From benkov at bnl dot gov  2010-01-11 19:16 -------
Subject: RE:  Cannot work with gdb

New input.  I got the gdb certificate to "take" by changing the last
line of your instructions as follows:

The gdb binary deck is in directory ~/Download/gdb-7.0.1/gdb

Positioned myself in my root directory.

Entered: sudo codesign -s gdb-cert Download/gdb-7.0.1/gdb/gdb

So many thanks for your help.  When I compile my fortran code (using
gfortran) to use gbd do I need to use flags other than -c and -g?

Carmen

-----Original Message-----
From: benkov at bnl dot gov [mailto:sourceware-bugzilla@sourceware.org] 
Sent: Thursday, January 07, 2010 9:58 AM
To: cmb@bnl.gov
Subject: [Bug gdb/11132] Cannot work with gdb


------- Additional Comments From benkov at bnl dot gov  2010-01-07 14:57
-------
Subject: RE:  Cannot work with gdb

Hi!

Thanks for your e-mail.  I followed all your instructions and created a
certificate called gdb-cert (it appears on the certificates list).
However, when I tried to do the last step:

codesign -s gdb-cert gdb

I got an error message: Cannot find code object on disk.  I tried giving
the full path for the gdb binary and still got the same message.  Hope
you can help me get past this.

Many thanks,

Carmen

-----Original Message-----
From: ppluzhnikov at google dot com
[mailto:sourceware-bugzilla@sourceware.org] 
Sent: Monday, January 04, 2010 10:43 PM
To: cmb@bnl.gov
Subject: [Bug gdb/11132] Cannot work with gdb


------- Additional Comments From ppluzhnikov at google dot com
2010-01-05 03:43 -------
You must digitally sign your GDB.
Please see http://sourceware.org/gdb/wiki/BuildingOnDarwin

-- 
           What    |Removed                     |Added
------------------------------------------------------------------------
----
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=11132

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.




-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11132

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/11132] GDB does not install properly, missing files
  2010-01-04 21:57 [Bug gdb/11132] New: Cannot work with gdb cmb at bnl dot gov
                   ` (2 preceding siblings ...)
  2010-01-11 19:16 ` benkov at bnl dot gov
@ 2010-02-03 19:55 ` cmb at bnl dot gov
  2010-02-08 15:24 ` cmb at bnl dot gov
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cmb at bnl dot gov @ 2010-02-03 19:55 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From cmb at bnl dot gov  2010-02-03 19:55 -------
I need to work with gdb on the mac, but after I installed it and tried to use
it I get a whole bunch of error messages such as:
warning: `/Users/gkhanna/build/i386-apple-darwin9.5.0/libgcc/trunctfxf2_s.o':
can't open to read symbols: No such file or directory.
I followed all the installation instructions......

Many thanks.
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |
            Summary|Cannot work with gdb        |GDB does not install
                   |                            |properly, missing files


http://sourceware.org/bugzilla/show_bug.cgi?id=11132

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/11132] GDB does not install properly, missing files
  2010-01-04 21:57 [Bug gdb/11132] New: Cannot work with gdb cmb at bnl dot gov
                   ` (3 preceding siblings ...)
  2010-02-03 19:55 ` [Bug gdb/11132] GDB does not install properly, missing files cmb at bnl dot gov
@ 2010-02-08 15:24 ` cmb at bnl dot gov
  2010-02-08 15:25 ` cmb at bnl dot gov
  2010-02-11 18:16 ` tromey at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: cmb at bnl dot gov @ 2010-02-08 15:24 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From cmb at bnl dot gov  2010-02-08 15:24 -------
Created an attachment (id=4578)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4578&action=view)
GDB list of files it cannot find

The fortran program accessed, aero, was compiled with the following makefile:
MODEL = aero

# The following command is for gfortran on the Mac.
 FC = /usr/local/bin/gfortran
# This is the make file for the SUN Solaris.
# Compiler Definitions
# Decks used by this file are in directory: ~/mom/newbnlcode.
# FC = /opt/compilers/SUNWspro11.0/SUNWspro/bin/f95

# List of Object files needed for linking
OBJECTS =\
 bnlTRAMP_config.o \
 bnlTRAMP_param_GISS.o \
 aero_tracer_com.o \
 bnlTRAMP_actv.o \
 TRAMP_depv.o \
 bnlTRAMP_setup.o \
 bnlTRAMP_subs.o \
TRAMP_diam.o \
 TRAMP_npf.o \
 TRAMP_coag.o \
 TRAMP_dicrete.o \
 bnlTRAMP_init.o \
 TRAMP_quad.o \
 bnlaero_driver.o \
 bnlnewTRAMP_matrix.o \
 aero_testsubs.o \
 TRAMP_thermo_isorr.o \
 TRAMP_isocom.o \
 TRAMP_isofwd.o \
 TRAMP_isorev.o \
 aero_nomicrophysics.o \
.SUFFIXES: .f .F90

$(MODEL): $(OBJECTS)
	$(FC) $(OBJECTS) -o aero $

.F90.o:
	$(FC)  -ffixed-line-length-none -c -e -g -fbounds-check    $<

.f.o:
	$(FC) -ffixed-line-length-none -c -e -g -fbounds-check	  $<


clean:
	rm *.o *.mod aero


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11132

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/11132] GDB does not install properly, missing files
  2010-01-04 21:57 [Bug gdb/11132] New: Cannot work with gdb cmb at bnl dot gov
                   ` (4 preceding siblings ...)
  2010-02-08 15:24 ` cmb at bnl dot gov
@ 2010-02-08 15:25 ` cmb at bnl dot gov
  2010-02-11 18:16 ` tromey at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: cmb at bnl dot gov @ 2010-02-08 15:25 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1


http://sourceware.org/bugzilla/show_bug.cgi?id=11132

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/11132] GDB does not install properly, missing files
  2010-01-04 21:57 [Bug gdb/11132] New: Cannot work with gdb cmb at bnl dot gov
                   ` (5 preceding siblings ...)
  2010-02-08 15:25 ` cmb at bnl dot gov
@ 2010-02-11 18:16 ` tromey at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at redhat dot com @ 2010-02-11 18:16 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-02-11 18:16 -------
warning: `/Users/gkhanna/build/i386-apple-darwin9.5.0/libgcc/trunctfxf2_s.o':
can't open to read symbols: No such file or directory.

This is not a gdb installation problem.
That file does not come from gdb, it comes from gcc.

There is a gdb problem here; afaik it is fixed in cvs.
Could you try cvs head, or a (very) recent snapshot?
Thanks.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://sourceware.org/bugzilla/show_bug.cgi?id=11132

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-02-11 18:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-04 21:57 [Bug gdb/11132] New: Cannot work with gdb cmb at bnl dot gov
2010-01-05  3:43 ` [Bug gdb/11132] " ppluzhnikov at google dot com
2010-01-07 14:57 ` benkov at bnl dot gov
2010-01-11 19:16 ` benkov at bnl dot gov
2010-02-03 19:55 ` [Bug gdb/11132] GDB does not install properly, missing files cmb at bnl dot gov
2010-02-08 15:24 ` cmb at bnl dot gov
2010-02-08 15:25 ` cmb at bnl dot gov
2010-02-11 18:16 ` tromey at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).