public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* other/4878: gcc 3.0.2 output crashes HP-UX linker
@ 2001-11-02 14:40 porten
  0 siblings, 0 replies; 6+ messages in thread
From: porten @ 2001-11-02 14:40 UTC (permalink / raw)
  To: gcc-gnats


>Number:         4878
>Category:       other
>Synopsis:       gcc 3.0.2 output crashes HP-UX linker
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 14 10:56:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Harri Porten
>Release:        gcc version 3.0.2
>Organization:
>Environment:
hppa1.1-hp-hpux10.20 (and 11.00)
/usr/bin/ld B.10.37 991028
bintuils 2.11.2
>Description:
The following piece of code will crash HP's system linker
(B.10.37) when trying to build a shared library:

  struct X { virtual ~X();  };
  struct Y { virtual void foo(); };
  struct W : public X, public Y { virtual void foo(); };
  struct Q : public W { };
  void bar() { Q q; }

I know it mustn't be gcc's fault as /usr/bin/ld is at
least partly guilty because of it's fatal reaction.
But where is the real problem ?
>How-To-Repeat:
g++ -shared -fPIC crash.cpp
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: other/4878: gcc 3.0.2 output crashes HP-UX linker
@ 2002-02-27  9:00 rodrigc
  0 siblings, 0 replies; 6+ messages in thread
From: rodrigc @ 2002-02-27  9:00 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, porten

Synopsis: gcc 3.0.2 output crashes HP-UX linker

State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Tue Feb 26 18:55:10 2002
State-Changed-Why:
    Closed at request of submitter.

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


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

* Re: other/4878: gcc 3.0.2 output crashes HP-UX linker
@ 2002-02-26 18:32 rodrigc
  0 siblings, 0 replies; 6+ messages in thread
From: rodrigc @ 2002-02-26 18:32 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, porten

Synopsis: gcc 3.0.2 output crashes HP-UX linker

State-Changed-From-To: analyzed->feedback
State-Changed-By: rodrigc
State-Changed-When: Tue Feb 26 18:12:18 2002
State-Changed-Why:
    Analyzing this bug report again:
    
    - in the PR, you state you are having problems
      with the linker that comes with HP-UX
    - you then go on to say that you are using binutils
    
    Why aren't you using the linker in binutils?
    You should use the binutils ld if you are going to
    use binutils.

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


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

* Re: other/4878: gcc 3.0.2 output crashes HP-UX linker
@ 2002-01-07  8:01 rodrigc
  0 siblings, 0 replies; 6+ messages in thread
From: rodrigc @ 2002-01-07  8:01 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, porten

Synopsis: gcc 3.0.2 output crashes HP-UX linker

State-Changed-From-To: closed->analyzed
State-Changed-By: rodrigc
State-Changed-When: Mon Jan  7 08:00:56 2002
State-Changed-Why:
    Reopened at request of submitter.

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


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

* Re: other/4878: gcc 3.0.2 output crashes HP-UX linker
@ 2002-01-07  2:26 Harri Porten
  0 siblings, 0 replies; 6+ messages in thread
From: Harri Porten @ 2002-01-07  2:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/4878; it has been noted by GNATS.

From: Harri Porten <porten@trolltech.com>
To: rodrigc@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
    nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: other/4878: gcc 3.0.2 output crashes HP-UX linker
Date: Mon, 7 Jan 2002 11:19:18 +0100 (CET)

 On 5 Jan 2002 rodrigc@gcc.gnu.org wrote:
 
 > State-Changed-From-To: open->closed
 > State-Changed-By: rodrigc
 > State-Changed-When: Fri Jan  4 21:46:00 2002
 > State-Changed-Why:
 >     gcc 3.0 works better with GNU binutils than
 >     the native utilities on HP:
 >     http://gcc.gnu.org/install/specific.html#hppa*-hp-hpux*
 >     
 >     You are better off using GNU binutils.
 
 I already do. My original report stated that I am using binutils 2.11.2.
 Quote from compiling with -v:
 
 /opt/gcc-3.0.2/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.0.2/../../../../hppa1.1-hp-hpux10.20/bin/as
 -o /var/tmp/ccppVe6D.o /var/tmp/ccYO5OWi.s
 
 Whereas
 /opt/gcc-3.0.2/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.0.2/../../../../hppa1.1-hp-hpux10.20/bin/as
 -v results in:
 
 GNU assembler version 2.11.2 (hppa1.1-hp-hpux10.20) using BFD version 
 2.11.2
 
 I've played around with the assembler output a bit. Seems like gcc is not
 outputting some symbols which then make the linker crash. gas does
 accept (faulty?) assembler code that is missing symbol definitions (_foo).
 The system assembler says "as: error 7403: undefined label - _foo (7403)".
 But that's something I rather should report elsewhere.
 
         .SPACE $TEXT$
         .SUBSPA $CODE$,ACCESS=0x2c
 
 _FOO
         .PROC
         .CALLINFO CALLS
 
         .word P%_foo
         NOP
 
         .PROCEND
 
 Please reopen this report.
 
 Harri.
 


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

* Re: other/4878: gcc 3.0.2 output crashes HP-UX linker
@ 2002-01-04 21:46 rodrigc
  0 siblings, 0 replies; 6+ messages in thread
From: rodrigc @ 2002-01-04 21:46 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, porten

Synopsis: gcc 3.0.2 output crashes HP-UX linker

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Fri Jan  4 21:46:00 2002
State-Changed-Why:
    gcc 3.0 works better with GNU binutils than
    the native utilities on HP:
    http://gcc.gnu.org/install/specific.html#hppa*-hp-hpux*
    
    You are better off using GNU binutils.
    

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


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

end of thread, other threads:[~2002-02-27  2:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-02 14:40 other/4878: gcc 3.0.2 output crashes HP-UX linker porten
2002-01-04 21:46 rodrigc
2002-01-07  2:26 Harri Porten
2002-01-07  8:01 rodrigc
2002-02-26 18:32 rodrigc
2002-02-27  9:00 rodrigc

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