my new-abi can't cout

Larry Evans jcampbell3@prodigy.net
Sun Jul 23 03:55:00 GMT 2000


For some strange reason, cout<<0, aborts when compiled with -f new-abi.
Here's the make output:
==========================================

make -k bugreport
uname -a
Linux localhost.localdomain 2.2.13-4mdk #1 Tue Sep 7 18:23:11 CEST 1999
i586 unknown
../../../snap-20000626/bin/g++ -v
Reading specs from
../../../snap-20000626/bin/../lib/gcc-lib/i586-pc-linux/2.96/specs
gcc version 2.96 20000626 (experimental)
-------------------
../../../snap-20000626/bin/g++ -fnew-abi main.cpp -o main.exe
main.exe
make: *** [run] Segmentation fault
-------------------
cat main.cpp
#include <iostream>
  int
main(void)
  { cout<<0
  ; return 0
  ;}
-------------------
When gdb was run on main.exe, got:
----------------------------------
Program received signal SIGSEGV, Segmentation fault.
0x804dc6a in _ZN9streambuf7seekposExi (this=0x8056980, pos=0,
mode=717074848)
    at
/home/evansl/prog_dev/gcc_all/gcc-2.96/snap-20000626/src/libio/streambuf.cc:120

Current language:  auto; currently c++
(gdb) bt
#0  0x804dc6a in _ZN9streambuf7seekposExi (this=0x8056980, pos=0,
    mode=717074848)
    at
/home/evansl/prog_dev/gcc_all/gcc-2.96/snap-20000626/src/libio/streambuf.cc:120

(gdb)
----------------------------------
The configure for the bootstrap was:
----------------------------------
/home/evansl/prog_dev/gcc_all/gcc-2.96/snap-20000626/src/configure
--prefix=/home/evansl/prog_dev/gcc_all/gcc-2.96/snap-20000626
--with-local-prefix=/home/evansl/prog_dev/gcc_all/gcc-2.96/snap-20000626/usr/local
--with-gxx-include-dir=/home/evansl/prog_dev/gcc_all/gcc-2.96/snap-20000626/usr/local/include/g++
--enable-version-specific-runtime-libs --enable-languages=c++
--enable-new-gxx-abi --enable-checking --disable-nls
----------------------------------
Is there something else I should do to get a program compiled with
-fnew-abi to run?
TIA.





More information about the Gcc-help mailing list