This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
trouble with configure scripts & g++ 3.0
- To: gcc-bugs at gcc dot gnu dot org
- Subject: trouble with configure scripts & g++ 3.0
- From: Steve Murphy <murf at e-tools dot com>
- Date: Mon, 6 Aug 2001 21:10:23 -0600 (MDT)
I just built gcc 3.0; configure won't build a test C++ program that
will run...
[2015]/usr4/work/plib_parse Yes, Master? gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/3.0/specs
Configured with: ../gcc-3.0/configure --with-gnu-ld --with-gnu-as --enable-shared
Thread model: posix
gcc version 3.0
GNU assembler 2.11.2
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `sparc-sun-solaris2.5.1'.
GNU ld 2.11.2
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
Supported emulations:
elf32_sparc
I ran "make CFLAGS='-O' LIBCFLAGS='-O2' LIBCXXFLAGS='-O2 -fno-implicit-templates' bootstrap-lean"
The program:
int
main ()
{
;
return 0;
}
the compile line:
g++ prog.C
and the command line:
a.out
Here's the stack trace from gdb:
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.5.1"...
Loading commands from ~/.gdbinit
loading emacs-csh specific loadfile...
(gdb) run
Starting program: /usr2/usr4/work/plib_parse/a.out
Program received signal SIGSEGV, Segmentation fault.
0xef757a94 in __do_global_dtors_aux () from /usr/local/lib/libstdc++.so.3
What am I doing wrong?
murf
--
murf: Steve Murphy, CTO & VP Technology
57 Lane 17 Electronic Tools Company
Cody, Wyoming work: (307)754-8154
home: (307)754-5675
email: murf@e-tools.com