public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34719] New: N_GSYM stabs warning with common blocks on Mac OS X Leopard
@ 2008-01-08 21:36 dojo at masterleep dot com
2008-01-09 0:47 ` [Bug fortran/34719] " burnus at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: dojo at masterleep dot com @ 2008-01-08 21:36 UTC (permalink / raw)
To: gcc-bugs
Under Mac OS X Leopard using the prepackaged gfortran binaries from 12/31/2007,
any fortran program with a common block emits a N_GSYM stabs warning when
compiled in debug mode. This is with the Leopard version of XCode (3.0).
$ cat test.f
program test
common nrange
call firmssh(1)
end
subroutine firmssh(curmax)
common nrange
return
end
$ gfortran -g -c test.f
$ gfortran test.o
can't find atom for N_GSYM stabs nrange:G(0,5) in test.o
can't find atom for N_GSYM stabs nrange:G(0,5) in test.o
ld: warning, duplicate dylib /usr/local/gfortran/lib/libgcc_s.1.dylib
$ gfortran --version
GNU Fortran (GCC) 4.3.0 20071231 (experimental) [trunk revision 131236]
Copyright (C) 2007 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
$ ld -v
@(#)PROGRAM:ld PROJECT:ld64-77
--
Summary: N_GSYM stabs warning with common blocks on Mac OS X
Leopard
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dojo at masterleep dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34719
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/34719] N_GSYM stabs warning with common blocks on Mac OS X Leopard
2008-01-08 21:36 [Bug fortran/34719] New: N_GSYM stabs warning with common blocks on Mac OS X Leopard dojo at masterleep dot com
@ 2008-01-09 0:47 ` burnus at gcc dot gnu dot org
2008-01-19 17:54 ` [Bug target/34719] " fxcoudert at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-01-09 0:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2008-01-08 23:33 -------
If I read http://gcc.gnu.org/ml/gcc-patches/2007-02/msg00735.html correctly, it
should work if you use -gdwarf-2 instead of -g.
My understanding is that it not a bug in GCC, but I might be wrong.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34719
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/34719] N_GSYM stabs warning with common blocks on Mac OS X Leopard
2008-01-08 21:36 [Bug fortran/34719] New: N_GSYM stabs warning with common blocks on Mac OS X Leopard dojo at masterleep dot com
2008-01-09 0:47 ` [Bug fortran/34719] " burnus at gcc dot gnu dot org
@ 2008-01-19 17:54 ` fxcoudert at gcc dot gnu dot org
2008-01-29 20:16 ` fago at caltech dot edu
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-01-19 17:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from fxcoudert at gcc dot gnu dot org 2008-01-19 17:33 -------
Reproduced on powerpc-apple-darwin9.1.0, both with -m32 and -m64. It happens
with stabs, but not with dwarf.
$ gfortran -gstabs test.f -g -m32
can't find atom for N_GSYM stabs nrange:G(0,5) in /var/tmp//cco3n4ye.o
can't find atom for N_GSYM stabs nrange:G(0,5) in /var/tmp//cco3n4ye.o
$ gfortran -gstabs test.f -g -m64
can't find atom for N_GSYM stabs nrange:G(0,5) in /var/tmp//ccHIBm2j.o
can't find atom for N_GSYM stabs nrange:G(0,5) in /var/tmp//ccHIBm2j.o
Marked as wrong-debug and assigned to "target" component.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Component|fortran |target
Ever Confirmed|0 |1
GCC build triplet| |*-apple-darwin89
GCC host triplet| |*-apple-darwin89
GCC target triplet| |*-apple-darwin89
Keywords| |wrong-debug
Last reconfirmed|0000-00-00 00:00:00 |2008-01-19 17:33:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34719
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/34719] N_GSYM stabs warning with common blocks on Mac OS X Leopard
2008-01-08 21:36 [Bug fortran/34719] New: N_GSYM stabs warning with common blocks on Mac OS X Leopard dojo at masterleep dot com
2008-01-09 0:47 ` [Bug fortran/34719] " burnus at gcc dot gnu dot org
2008-01-19 17:54 ` [Bug target/34719] " fxcoudert at gcc dot gnu dot org
@ 2008-01-29 20:16 ` fago at caltech dot edu
2008-01-29 20:24 ` fxcoudert at gcc dot gnu dot org
2008-01-29 20:28 ` fago at earthlink dot net
4 siblings, 0 replies; 6+ messages in thread
From: fago at caltech dot edu @ 2008-01-29 20:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from fago at caltech dot edu 2008-01-29 19:36 -------
This also happens on 4.2.2 It is indeed fixed by using -gdwarf-2.
So should gcc set the type of debug information differently on Leopard, or is
it Apple's issue? If the former, it seems like it should be straight-forward;
will it make it into 4.2.3?
Thanks,
Matt
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34719
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/34719] N_GSYM stabs warning with common blocks on Mac OS X Leopard
2008-01-08 21:36 [Bug fortran/34719] New: N_GSYM stabs warning with common blocks on Mac OS X Leopard dojo at masterleep dot com
` (2 preceding siblings ...)
2008-01-29 20:16 ` fago at caltech dot edu
@ 2008-01-29 20:24 ` fxcoudert at gcc dot gnu dot org
2008-01-29 20:28 ` fago at earthlink dot net
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-01-29 20:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from fxcoudert at gcc dot gnu dot org 2008-01-29 19:45 -------
(In reply to comment #3)
> will it make it into 4.2.3?
No way: the release process for 4.2.3 has started:
http://gcc.gnu.org/ml/gcc/2008-01/msg00477.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34719
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/34719] N_GSYM stabs warning with common blocks on Mac OS X Leopard
2008-01-08 21:36 [Bug fortran/34719] New: N_GSYM stabs warning with common blocks on Mac OS X Leopard dojo at masterleep dot com
` (3 preceding siblings ...)
2008-01-29 20:24 ` fxcoudert at gcc dot gnu dot org
@ 2008-01-29 20:28 ` fago at earthlink dot net
4 siblings, 0 replies; 6+ messages in thread
From: fago at earthlink dot net @ 2008-01-29 20:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from fago at earthlink dot net 2008-01-29 19:47 -------
So it is a gcc issue -- seems like it will have to wait for 4.4 then? Easy
enough work-around I guess. Thanks!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34719
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-01-29 19:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-08 21:36 [Bug fortran/34719] New: N_GSYM stabs warning with common blocks on Mac OS X Leopard dojo at masterleep dot com
2008-01-09 0:47 ` [Bug fortran/34719] " burnus at gcc dot gnu dot org
2008-01-19 17:54 ` [Bug target/34719] " fxcoudert at gcc dot gnu dot org
2008-01-29 20:16 ` fago at caltech dot edu
2008-01-29 20:24 ` fxcoudert at gcc dot gnu dot org
2008-01-29 20:28 ` fago at earthlink dot net
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).