public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: debug/8229: Linking of a program fails if -g used on GCC 3.2/RH 7.1
@ 2002-10-21 23:46 rth
  0 siblings, 0 replies; 2+ messages in thread
From: rth @ 2002-10-21 23:46 UTC (permalink / raw)
  To: eru, gcc-bugs, gcc-prs, nobody

Synopsis: Linking of a program fails if -g used on GCC 3.2/RH 7.1

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Mon Oct 21 23:46:35 2002
State-Changed-Why:
    Binutils bug.  Fixed in current releases.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8229


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

* debug/8229: Linking of a program fails if -g used on GCC 3.2/RH 7.1
@ 2002-10-15  3:16 eru
  0 siblings, 0 replies; 2+ messages in thread
From: eru @ 2002-10-15  3:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8229
>Category:       debug
>Synopsis:       Linking of a program fails if -g used on GCC 3.2/RH 7.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 15 03:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Erkki Ruohtula
>Release:        GCC 3.2
>Organization:
>Environment:

>Description:
Compiling&linking the attached small (selfcontained) program
succeeds if no debugging option is used, fails with an
error message from "ld" if "-g" was specified.
>How-To-Repeat:
% gcc -v -g stupid-link-warning.c
Reading specs from /opt/gcc/linux/ix86/gcc_3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: /usr/local/src/gcc-3.2/configure --prefix=/opt/gcc/linux/ix86/gcc_3.2 --enable-__cxa_atexit --enable-threads=posix --enable-shared
Thread model: posix
gcc version 3.2
 /opt/gcc/linux/ix86/gcc_3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/cc1 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ stupid-link-warning.c -quiet -dumpbase stupid-link-warning.c -g -version -o /tmp/ccZ7fwxu.s
GNU CPP version 3.2 (cpplib) (i386 Linux/ELF)
GNU C version 3.2 (i686-pc-linux-gnu)
        compiled by GNU C version 3.2.
ignoring nonexistent directory "/opt/gcc/linux/ix86/gcc_3.2/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /opt/gcc/linux/ix86/gcc_3.2/include
 /opt/gcc/linux/ix86/gcc_3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/include
 /usr/include
End of search list.
 as --traditional-format -V -Qy -o /tmp/ccaF4iyW.o /tmp/ccZ7fwxu.s
GNU assembler version 2.11.90.0.8 (i386-redhat-linux) using BFD version 2.11.90.0.8
 /opt/gcc/linux/ix86/gcc_3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /opt/gcc/linux/ix86/gcc_3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/crtbegin.o -L/opt/gcc/linux/ix86/gcc_3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2 -L/opt/gcc/linux/ix86/gcc_3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../.. /tmp/ccaF4iyW.o -lgcc -lgcc_eh -lc -lgcc -lgcc_eh /opt/gcc/linux/ix86/gcc_3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/crtend.o /usr/lib/crtn.o
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
/tmp/ccaF4iyW.o: In function `main':
:7: the use of `tempnam' is dangerous, better use `mkstemp'
collect2: ld returned 1 exit status
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="stupid-link-warning.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="stupid-link-warning.c"

ZXh0ZXJuICAgICAgIGNoYXIgKnRlbXBuYW0oY29uc3QgY2hhciAqZGlyLCBjb25zdCBjaGFyICpw
ZngpOwoKZXh0ZXJuIGludCBwdXRzKGNvbnN0IGNoYXIgKnMpOwoKaW50IG1haW4odm9pZCkKewog
ICAgY2hhciAqcCA9IHRlbXBuYW0oIi90bXAiLCAieHl6enkiKTsKCgogICAgcHV0cyhwKTsKICAg
IHJldHVybiAwOwp9Cg==


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

end of thread, other threads:[~2002-10-22  6:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-21 23:46 debug/8229: Linking of a program fails if -g used on GCC 3.2/RH 7.1 rth
  -- strict thread matches above, loose matches on Subject: below --
2002-10-15  3:16 eru

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).