This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
libstdc++-2
- From: Oskar Mencer <mencer at research dot bell-labs dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 3 Dec 2002 18:46:42 -0500
- Subject: libstdc++-2
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/