This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24649] New: Hello world c++ prog core dumps when configured with /usr/ccs/bin/as
- From: "steve at telxio dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2005 05:47:36 -0000
- Subject: [Bug c++/24649] New: Hello world c++ prog core dumps when configured with /usr/ccs/bin/as
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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
/opt/utsi/test/R500/opt/utsi/lib/gcc/sparc-sun-solaris2.10/3.4.4/specs
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 =>
/opt/utsi/test/R500/opt/utsi/lib/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
/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1
========== tt.cc ===============
#if 0
#include <ostream.h>
#else
#include <iostream>
using namespace std;
#endif
int
main(int argc, char*argv[])
{
cout << "Hello World" << endl;
return 0;
}
--
Summary: Hello world c++ prog core dumps when configured with
/usr/ccs/bin/as
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24649