This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

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++
R500.ramses.605> ./a.out
Segmentation Fault(coredump)
R500.ramses.606> ldd a.out =>       
/opt/utsi/test/R500/opt/utsi/lib/ =>     /lib/ =>         /opt/utsi/test/R500/opt/utsi/lib/ =>     /lib/

========== ===============
#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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]