[MacPorts] #19871: gdb @ 6.8 fails to build everything
MacPorts
noreply at macports.org
Tue Mar 2 10:34:53 PST 2010
#19871: gdb @ 6.8 fails to build everything
----------------------------------+-----------------------------------------
Reporter: dweber@… | Owner: dweber@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Resolution: wontfix | Keywords:
Port: gdb |
----------------------------------+-----------------------------------------
Comment(by chris.walter@…):
Replying to [comment:22 captsolo@…]:
> an update: GDB 7.1.50 gets installed fine, but there are problems when
trying to load a program to debug (e.g. python in this case):
>
> {{{
> (gdb) run
> Starting program: /opt/local/bin/python
> Unable to find Mach task port for process-id 37881: (os/kern) failure
(0x5).
> (please check gdb is codesigned - see taskgated(8))
> }}}
>
> any ideas how to fix this?
I followed the apple discussion thread above to:
http://sourceware.org/gdb/wiki/BuildingOnDarwin
following the advice there and in:
http://lists.apple.com/archives/Darwin-dev/2009/Sep/msg00097.html
I did the following to my local copy (on 10.6.2)
sudo chgrp procmod gdb
sudo chmod g+s gdb
after building from the 7.1 cvs branch.
after doing this I was able to successfully debug a fortran program built
with mp gfortran 4.4 and 4.5.
It only works for dwarf-2 not stabs+ (so -g alone should work but remember
to keep the .o files).
As a plus I can see fortran common block variables which doesn't work in
the apple gdb.
I do get a warning like this:
warning: can't find section '__DATA.__common' in OSO file XXX
Also there are *lots* of warning like:
warning:
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/work/build/x86_64
-apple-darwin10/libgcc/letf2_s.o': can't open to read symbols: No such
file or directory.
when you start the program but it seems to work anyway.
--
Ticket URL: <http://trac.macports.org/ticket/19871#comment:24>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list