public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26526]  New: 4.1.0 regression: std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined
@ 2006-03-02  4:11 ctsa at u dot washington dot edu
  2006-03-02  4:52 ` [Bug libstdc++/26526] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ctsa at u dot washington dot edu @ 2006-03-02  4:11 UTC (permalink / raw)
  To: gcc-bugs

Code calling ostream::operator<<(streambuf*) fails to link with g++ 4.1.0 when
_GLIBCXX_DEBUG is defined; more specifically, when _GLIBCXX_EXTERN_TEMPLATE is
defined to 0. This problem is not observed with 
1) g++ 4.0.1 on the same system or 
2) the same configuration of g++ 4.1.0 for i686-linux

test.cc:
"""
#include <iostream>

main() {
  std::cout << std::cin.rdbuf();
}
"""

[ctsa@genome]$ g++ -D_GLIBCXX_DEBUG test.cc
/tmp/ccyq7RoG.o(.gnu.linkonce.t._ZNSolsEPSt15basic_streambufIcSt11char_traitsIcEE+0x75):
In function `std::basic_ostream<char, std::char_traits<char>
>::operator<<(std::basic_streambuf<char, std::char_traits<char> >*)':
: undefined reference to `long std::__copy_streambufs<char,
std::char_traits<char> >(std::basic_streambuf<char, std::char_traits<char> >*,
std::basic_streambuf<char, std::char_traits<char> >*)'
collect2: ld returned 1 exit status

the same link error occurs using "g++ -D_GLIBCXX_EXTERN_TEMPLATE=0 test.cc"


[ctsa@genome]$ g++ -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.1.0/configure -enable-languages=c,c++
--enable-concept-checks --enable-__cxa_atexit --disable-checking
--prefix=/home/ctsa/opt/x86_64-linux/gcc-4.1
Thread model: posix
gcc version 4.1.0


-- 
           Summary: 4.1.0 regression: std::__copy_streambufs link failure
                    when _GLIBCXX_DEBUG is defined
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ctsa at u dot washington dot edu
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26526


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

* [Bug libstdc++/26526] [4.1/4.2 Regression] std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined
  2006-03-02  4:11 [Bug c++/26526] New: 4.1.0 regression: std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined ctsa at u dot washington dot edu
@ 2006-03-02  4:52 ` pinskia at gcc dot gnu dot org
  2006-03-02 10:24 ` pcarlini at suse dot de
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-02  4:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-02 04:52 -------
Confirmed, weird.  It also works just fine on powerpc-darwin, though I could
not test the 64bit part there.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|x86_64-unknown-linux-gnu    |
   GCC host triplet|x86_64-unknown-linux-gnu    |
 GCC target triplet|x86_64-unknown-linux-gnu    |x86_64-*-linux-gnu
      Known to fail|                            |4.2.0 4.1.0
      Known to work|                            |4.0.3
   Last reconfirmed|0000-00-00 00:00:00         |2006-03-02 04:52:25
               date|                            |
            Summary|4.1.0 regression:           |[4.1/4.2 Regression]
                   |std::__copy_streambufs link |std::__copy_streambufs link
                   |failure when _GLIBCXX_DEBUG |failure when _GLIBCXX_DEBUG
                   |is defined                  |is defined
   Target Milestone|---                         |4.1.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26526


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

* [Bug libstdc++/26526] [4.1/4.2 Regression] std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined
  2006-03-02  4:11 [Bug c++/26526] New: 4.1.0 regression: std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined ctsa at u dot washington dot edu
  2006-03-02  4:52 ` [Bug libstdc++/26526] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-03-02 10:24 ` pcarlini at suse dot de
  2006-03-03 12:22 ` pcarlini at suse dot de
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2006-03-02 10:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pcarlini at suse dot de  2006-03-02 10:24 -------
Benjamin, can you have a look? The issue seems simple, in its essence: on
64-bit machines the recently added __copy_streambufs export is wrong - in fact
we are not exporting anything - because it reads everywhere:

  _ZSt17__copy_streambufsI[cw]St11char_traitsI[cw]EEiPSt15basic_streambuf*

and should be, on 64-bit machines, note l, not i, after the EE:

  _ZSt17__copy_streambufsI[cw]St11char_traitsI[cw]EElPSt15basic_streambuf*

The only problem now is doing the right thing wrt the library abi, i.e., I'm
not sure we can simply adjust now the export @GLIBCXX_3.4.6...


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bkoz at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26526


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

* [Bug libstdc++/26526] [4.1/4.2 Regression] std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined
  2006-03-02  4:11 [Bug c++/26526] New: 4.1.0 regression: std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined ctsa at u dot washington dot edu
  2006-03-02  4:52 ` [Bug libstdc++/26526] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
  2006-03-02 10:24 ` pcarlini at suse dot de
@ 2006-03-03 12:22 ` pcarlini at suse dot de
  2006-03-03 23:54 ` paolo at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2006-03-03 12:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pcarlini at suse dot de  2006-03-03 12:22 -------
I have a patch in testing.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pcarlini at suse dot de
                   |dot org                     |
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26526


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

* [Bug libstdc++/26526] [4.1/4.2 Regression] std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined
  2006-03-02  4:11 [Bug c++/26526] New: 4.1.0 regression: std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined ctsa at u dot washington dot edu
                   ` (2 preceding siblings ...)
  2006-03-03 12:22 ` pcarlini at suse dot de
@ 2006-03-03 23:54 ` paolo at gcc dot gnu dot org
  2006-03-03 23:55 ` pcarlini at suse dot de
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu dot org @ 2006-03-03 23:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo at gcc dot gnu dot org  2006-03-03 23:54 -------
Subject: Bug 26526

Author: paolo
Date: Fri Mar  3 23:54:21 2006
New Revision: 111690

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111690
Log:
2006-03-03  Paolo Carlini  <pcarlini@suse.de>

        PR libstdc++/26526
        * config/abi/pre/gnu.ver (__copy_streambufs, 64-bit version): Add
        @GLIBCXX_3.4.8; move existing symbols @GLIBCXX_3.4.8 to 3.4.9.
        * configure.ac (libtool_VERSION): To 6:9:0.
        * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.9.
        * configure: Regenerate.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/config/abi/pre/gnu.ver
    trunk/libstdc++-v3/configure
    trunk/libstdc++-v3/configure.ac
    trunk/libstdc++-v3/testsuite/testsuite_abi.cc


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26526


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

* [Bug libstdc++/26526] [4.1/4.2 Regression] std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined
  2006-03-02  4:11 [Bug c++/26526] New: 4.1.0 regression: std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined ctsa at u dot washington dot edu
                   ` (4 preceding siblings ...)
  2006-03-03 23:55 ` pcarlini at suse dot de
@ 2006-03-03 23:55 ` paolo at gcc dot gnu dot org
  2006-03-06 16:10 ` bkoz at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu dot org @ 2006-03-03 23:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from paolo at gcc dot gnu dot org  2006-03-03 23:55 -------
Subject: Bug 26526

Author: paolo
Date: Fri Mar  3 23:55:07 2006
New Revision: 111691

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111691
Log:
2006-03-03  Paolo Carlini  <pcarlini@suse.de>

        PR libstdc++/26526
        * config/linker-map.gnu (__copy_streambufs, 64-bit version): Add
        @GLIBCXX_3.4.8.
        * configure.ac (libtool_VERSION): To 6:8:0.
        * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.8.
        * configure: Regenerate.

Modified:
    branches/gcc-4_1-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_1-branch/libstdc++-v3/config/linker-map.gnu
    branches/gcc-4_1-branch/libstdc++-v3/configure
    branches/gcc-4_1-branch/libstdc++-v3/configure.ac
    branches/gcc-4_1-branch/libstdc++-v3/testsuite/testsuite_abi.cc


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26526


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

* [Bug libstdc++/26526] [4.1/4.2 Regression] std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined
  2006-03-02  4:11 [Bug c++/26526] New: 4.1.0 regression: std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined ctsa at u dot washington dot edu
                   ` (3 preceding siblings ...)
  2006-03-03 23:54 ` paolo at gcc dot gnu dot org
@ 2006-03-03 23:55 ` pcarlini at suse dot de
  2006-03-03 23:55 ` paolo at gcc dot gnu dot org
  2006-03-06 16:10 ` bkoz at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2006-03-03 23:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pcarlini at suse dot de  2006-03-03 23:55 -------
Fixed for 4.1.1.


-- 

pcarlini at suse dot de changed:

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


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26526


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

* [Bug libstdc++/26526] [4.1/4.2 Regression] std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined
  2006-03-02  4:11 [Bug c++/26526] New: 4.1.0 regression: std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined ctsa at u dot washington dot edu
                   ` (5 preceding siblings ...)
  2006-03-03 23:55 ` paolo at gcc dot gnu dot org
@ 2006-03-06 16:10 ` bkoz at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2006-03-06 16:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from bkoz at gcc dot gnu dot org  2006-03-06 16:10 -------

Paolo, versioning bits look fine. 

lm

cw

ij

are the usual rules you need to keep in mind for this stuff....

but fixing this is not a big deal.

-benjamin


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26526


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

end of thread, other threads:[~2006-03-06 16:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-02  4:11 [Bug c++/26526] New: 4.1.0 regression: std::__copy_streambufs link failure when _GLIBCXX_DEBUG is defined ctsa at u dot washington dot edu
2006-03-02  4:52 ` [Bug libstdc++/26526] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-03-02 10:24 ` pcarlini at suse dot de
2006-03-03 12:22 ` pcarlini at suse dot de
2006-03-03 23:54 ` paolo at gcc dot gnu dot org
2006-03-03 23:55 ` pcarlini at suse dot de
2006-03-03 23:55 ` paolo at gcc dot gnu dot org
2006-03-06 16:10 ` bkoz at gcc dot gnu dot 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).