public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/65944] New: FAIL: g++.dg/lto/pr65276: undefined reference to std2::exception::~exception()
@ 2015-04-30  9:05 vries at gcc dot gnu.org
  2015-04-30 11:18 ` [Bug testsuite/65944] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2015-04-30  9:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65944

            Bug ID: 65944
           Summary: FAIL: g++.dg/lto/pr65276: undefined reference to
                    std2::exception::~exception()
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

g++.sum (unix/):
...
FAIL: g++.dg/lto/pr65276 cp_lto_pr65276_0.o-cp_lto_pr65276_1.o link, -flto -O0
-std=c++11
...

g++.sum (unix/-m32):
...
FAIL: g++.dg/lto/pr65276 cp_lto_pr65276_0.o-cp_lto_pr65276_1.o link, -flto -O0
-std=c++11
...

g++.log:
...
build/gcc/testsuite/g++1/../../xg++ -Bbuild/gcc/testsuite/g++1/../../
cp_lto_pr65276_0.o cp_lto_pr65276_1.o -fno-diagnostics-show-caret
-fdiagnostics-color=never -nostdinc++
-Ibuild/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-Ibuild/x86_64-unknown-linux-gnu/libstdc++-v3/include
-Isrc/libstdc++-v3/libsupc++ -Isrc/libstdc++-v3/include/backward
-Isrc/libstdc++-v3/testsuite/util -fmessage-length=0 -flto -O0 -std=c++11
-Lbuild/x86_64-unknown-linux-gnu/./libstdc++-v3/src/.libs
-Bbuild/x86_64-unknown-linux-gnu/./libstdc++-v3/src/.libs
-Lbuild/x86_64-unknown-linux-gnu/./libstdc++-v3/src/.libs -o
g++-dg-lto-pr65276-01.exe
cp_lto_pr65276_1.o: In function `std2::runtime_error::~runtime_error()':
pr65276_1.C:(.text._ZN4std213runtime_errorD2Ev[_ZN4std213runtime_errorD5Ev]+0x8):
undefined reference to `std2::exception::~exception()'
cp_lto_pr65276_1.o: In function `std2::runtime_error::~runtime_error()':
pr65276_1.C:(.text._ZN4std213runtime_errorD0Ev[_ZN4std213runtime_errorD5Ev]+0xc):
undefined reference to `std2::exception::~exception()'
cp_lto_pr65276_1.o:(.rodata._ZTVN4std29exceptionE[_ZTVN4std29exceptionE]+0x10):
undefined reference to `std2::exception::~exception()'
cp_lto_pr65276_1.o:(.rodata._ZTVN4std29exceptionE[_ZTVN4std29exceptionE]+0x18):
undefined reference to `std2::exception::~exception()'
collect2: error: ld returned 1 exit status
compiler exited with status 1

FAIL: g++.dg/lto/pr65276 cp_lto_pr65276_0.o-cp_lto_pr65276_1.o link, -flto -O0
-std=c++11
...

Fail in same testcase also observed at:
https://gcc.gnu.org/ml/gcc-testresults/2015-04/msg02807.html .

as version:
...
GNU assembler (GNU Binutils for Ubuntu) 2.20.1-system.20100303
...

ld version:
...
GNU ld (GNU Binutils for Ubuntu) 2.20.1-system.20100303
...


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

* [Bug testsuite/65944] FAIL: g++.dg/lto/pr65276: undefined reference to std2::exception::~exception()
  2015-04-30  9:05 [Bug testsuite/65944] New: FAIL: g++.dg/lto/pr65276: undefined reference to std2::exception::~exception() vries at gcc dot gnu.org
@ 2015-04-30 11:18 ` rguenth at gcc dot gnu.org
  2015-06-17 10:12 ` [Bug testsuite/65944] [5/6 Regression] " uros at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-04-30 11:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65944

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The testcase is about not ICEing - eventually adding -nostdlib -r will still
reproduce the original issue.

Otherwise the fix is to properly "complete" the header parts of std::exception,
maybe simply by including the appropriate headers.


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

* [Bug testsuite/65944] [5/6 Regression] FAIL: g++.dg/lto/pr65276: undefined reference to std2::exception::~exception()
  2015-04-30  9:05 [Bug testsuite/65944] New: FAIL: g++.dg/lto/pr65276: undefined reference to std2::exception::~exception() vries at gcc dot gnu.org
  2015-04-30 11:18 ` [Bug testsuite/65944] " rguenth at gcc dot gnu.org
@ 2015-06-17 10:12 ` uros at gcc dot gnu.org
  2015-06-17 10:15 ` ubizjak at gmail dot com
  2015-07-02  9:48 ` clyon at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: uros at gcc dot gnu.org @ 2015-06-17 10:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65944

--- Comment #4 from uros at gcc dot gnu.org ---
Author: uros
Date: Wed Jun 17 10:12:17 2015
New Revision: 224551

URL: https://gcc.gnu.org/viewcvs?rev=224551&root=gcc&view=rev
Log:
        PR testsuite/65944
        * g++.dg/lto/pr65276_0.C: Add std2::exception::~exception() function.


Modified:
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
    branches/gcc-5-branch/gcc/testsuite/g++.dg/lto/pr65276_0.C


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

* [Bug testsuite/65944] [5/6 Regression] FAIL: g++.dg/lto/pr65276: undefined reference to std2::exception::~exception()
  2015-04-30  9:05 [Bug testsuite/65944] New: FAIL: g++.dg/lto/pr65276: undefined reference to std2::exception::~exception() vries at gcc dot gnu.org
  2015-04-30 11:18 ` [Bug testsuite/65944] " rguenth at gcc dot gnu.org
  2015-06-17 10:12 ` [Bug testsuite/65944] [5/6 Regression] " uros at gcc dot gnu.org
@ 2015-06-17 10:15 ` ubizjak at gmail dot com
  2015-07-02  9:48 ` clyon at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2015-06-17 10:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65944

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed.
>From gcc-bugs-return-489167-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jun 17 10:32:44 2015
Return-Path: <gcc-bugs-return-489167-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55642 invoked by alias); 17 Jun 2015 10:32:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 55492 invoked by uid 48); 17 Jun 2015 10:32:41 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/63494] ICE with deferred-character-length component
Date: Wed, 17 Jun 2015 10:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-63494-4-aaCzTjunGw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63494-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63494-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg01499.txt.bz2
Content-length: 459

https://gcc.gnu.org/bugzilla/show_bug.cgi?idc494

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Daniel.Kokron at nasa dot gov

--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
*** Bug 66562 has been marked as a duplicate of this bug. ***


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

* [Bug testsuite/65944] [5/6 Regression] FAIL: g++.dg/lto/pr65276: undefined reference to std2::exception::~exception()
  2015-04-30  9:05 [Bug testsuite/65944] New: FAIL: g++.dg/lto/pr65276: undefined reference to std2::exception::~exception() vries at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-06-17 10:15 ` ubizjak at gmail dot com
@ 2015-07-02  9:48 ` clyon at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: clyon at gcc dot gnu.org @ 2015-07-02  9:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65944

Christophe Lyon <clyon at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clyon at gcc dot gnu.org

--- Comment #6 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Since this fix, I am observing this regression on arm* targets:
cp_lto_pr65276_1.o (symbol from plugin): In function `typeinfo for
std2::runtime_error':
(.text+0x0): multiple definition of `typeinfo name for std2::exception'
cp_lto_pr65276_0.o (symbol from plugin):(.text+0x0): first defined here
cp_lto_pr65276_1.o (symbol from plugin): In function `typeinfo for
std2::runtime_error':
(.text+0x0): multiple definition of `typeinfo for std2::exception'
cp_lto_pr65276_0.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status

FAIL: g++.dg/lto/pr65276 cp_lto_pr65276_0.o-cp_lto_pr65276_1.o link, -flto -O0
-std=c++11


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

end of thread, other threads:[~2015-07-02  9:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-30  9:05 [Bug testsuite/65944] New: FAIL: g++.dg/lto/pr65276: undefined reference to std2::exception::~exception() vries at gcc dot gnu.org
2015-04-30 11:18 ` [Bug testsuite/65944] " rguenth at gcc dot gnu.org
2015-06-17 10:12 ` [Bug testsuite/65944] [5/6 Regression] " uros at gcc dot gnu.org
2015-06-17 10:15 ` ubizjak at gmail dot com
2015-07-02  9:48 ` clyon at gcc dot gnu.org

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