delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/03/18:47:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 3 Dec 2002 18:46:42 -0500
From: Oskar Mencer <mencer AT research DOT bell-labs DOT com>
X-X-Sender: <mencer AT nslocum DOT cs DOT bell-labs DOT com>
To: <cygwin AT cygwin DOT com>
Subject: libstdc++-2
Message-ID: <Pine.SGI.4.33.0212031835040.150643382-100000@nslocum.cs.bell-labs.com>
MIME-Version: 1.0

I'm trying to compile a C++ program written with g++ 2.95.3-5
on the new cygwin distribution using g++-2 (which is 2.95.3-10)

ld (called by g++-2 gives the following warnings & the executable crashes)

g++-2 file.cxx  -lmylib -g -o file.exe

/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(strstream.o):
warning: duplicate section `.data$_vt$10ostrstream$3ios' has different
size
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(strstream.o):
warning: duplicate section `.data$_vt$13strstreambase$3ios' has different
size
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(strstream.o):
warning: duplicate section `.data$_vt$3ios' has different size
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(strstream.o):
warning: duplicate section `.data$_vt$7ostream$3ios' has different size
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(fstream.o):
warning: duplicate section `.data$_vt$8ofstream$3ios' has different size
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(fstream.o):
warning: duplicate section `.data$_vt$11fstreambase$3ios' has different
size
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(fstream.o):
warning: duplicate section `.data$_vt$3ios' has different size
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(fstream.o):
warning: duplicate section `.data$_vt$7ostream$3ios' has different size
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(iostream.o):
warning: duplicate section `.data$_vt$7ostream$3ios' has different size
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(iostream.o):
warning: duplicate section `.data$_vt$3ios' has different size
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(streambuf.o):
warning: duplicate section `.data$_vt$3ios' has different size
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(stdiostream.o):
warning: duplicate section `.data$_vt$7ostream$3ios' has different size
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(stdiostream.o):
warning: duplicate section `.data$_vt$3ios' has different size
./stream.exe
make: *** [stream.dcf] Illegal instruction (core dumped)

===============================================================
I get the same warnings when I use one of my libs compiled with the old
g++ 2.95.3-5 instead of g++-2 so
my guess is that libstdc++-2 is the old libstdc++ and is not compiled with
the new g++-2
so I tried to recompile libstdc++ in the src distribution of gcc2 and get
the following crash

....
....
gcc-2  -DIN_GCC       -DHAVE_CONFIG_H  -o gencodes \
 gencodes.o rtl.o bitmap.o print-rtl.o ` case "obstack.o" in ?*) echo
obstack.o ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo
;; esac `  ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac
` -lintl -ladvapi32
./gencodes ./config/i386/i386.md > tmp-codes.h
Signal 11

on the other hand, libstdc++-2 might be compiled with an option that I
should also use with my program?...


oskar


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019