[Bug c++/24649] New: Hello world c++ prog core dumps when configured with /usr/ccs/bin/as

steve at telxio dot com gcc-bugzilla@gcc.gnu.org
Thu Nov 3 05:47:00 GMT 2005

When gcc is configured to use /usr/ccs/bin/as on Solaris2.10, simple c++ prog
involving cout fails with core dump. When the same version is configured to use
GNU as the problem disappears

R500.ramses.602> gcc -v
Reading specs from
Configured with: ../configure --prefix=/opt/utsi/test/R500/opt/utsi
--with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld
--without-gnu-ld --enable-languages=c,c++ --enable-shared --with-cpu=ultrasparc
Thread model: posix
gcc version 3.4.4

R500.ramses.604> g++ tt.cc
R500.ramses.605> ./a.out
Segmentation Fault(coredump)
R500.ramses.606> ldd a.out
        libstdc++.so.6 =>       
        libm.so.2 =>     /lib/libm.so.2
        libgcc_s.so.1 =>         /opt/utsi/test/R500/opt/utsi/lib/libgcc_s.so.1
        libc.so.1 =>     /lib/libc.so.1

========== tt.cc ===============
#if 0
#include <ostream.h>
#include <iostream>
using namespace std;

main(int argc, char*argv[])
    cout << "Hello World" << endl;
    return 0;

           Summary: Hello world c++ prog core dumps when configured with
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: steve at telxio dot com
 GCC build triplet: sparc-sun-solaris2.10
  GCC host triplet: sparc-sun-solaris2.10
GCC target triplet: sparc-sun-solaris2.10


More information about the Gcc-bugs mailing list