public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* bootstrap/9249: Solaris 8: bootstrap fails with --enable-__cxa-atexit
@ 2003-01-09 16:26 cludwig
  0 siblings, 0 replies; 3+ messages in thread
From: cludwig @ 2003-01-09 16:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9249
>Category:       bootstrap
>Synopsis:       Solaris 8: bootstrap fails with --enable-__cxa-atexit
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 09 08:26:07 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     cludwig@cdc.informatik.tu-darmstadt.de
>Release:        gcc version 3.2.1
>Organization:
>Environment:
sparc-sun-solaris2.8
>Description:
Configuration:

../gcc-3.2.1-SOURCE/configure \
  --prefix=/cdc/tmp-cludwig/gcc/gcc-3.2.1 \
  --with-gnu-as --with-as=/cdc/tmp-cludwig/gcc/binutils-2.13/bin/as \
  --with-gnu-ld --with-ld=/cdc/tmp-cludwig/gcc/binutils-2.13/bin/ld \
  --disable-multilib --enable-threads \
  --enable-version-specific-runtime-libs \
  --enable-languages='c,c++' --enable-__cxa_atexit

`make bootstrap' produces:

[...]
abi_check.o: In function `__static_initialization_and_destruction_0(int, int)':
/cdc/tmp-cludwig/gcc/gcc-3.2.1-BUILD/sparc-sun-solaris2.8/libstdc++-v3/include/iostream:63: undefined reference to `__cxa_atexit'
collect2: ld returned 1 exit status
make[4]: *** [abi_check] Error 1
make[4]: Leaving directory `/cdc/tmp-cludwig/gcc/gcc-3.2.1-BUILD/sparc-sun-solaris2.8/libstdc++-v3/testsuite'
[...]

As soon as I left out the option `--enable-__cxa-atexit' I could successfully 
build and install the compiler. The same option did not
cause any problems on my notebook (i686-pc-linux-gnu).

If you need it, I can send you the complete log of `make bootstrap'
as well as sparc-sun-solaris2.8/libstdc++-v3/config.log.

Regards

Christoph
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bootstrap/9249: Solaris 8: bootstrap fails with --enable-__cxa-atexit
@ 2003-01-10  9:56 Christoph Ludwig
  0 siblings, 0 replies; 3+ messages in thread
From: Christoph Ludwig @ 2003-01-10  9:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR bootstrap/9249; it has been noted by GNATS.

>From cludwig@cdc.informatik.tu-darmstadt.de  Mon Jan 13 00:47:57 2003
From: Christoph Ludwig <cludwig@cdc.informatik.tu-darmstadt.de>
To: Phil Edwards <phil@jaj.com>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: bootstrap/9249: Solaris 8: bootstrap fails with --enable-__cxa-atexit
Date: Fri, 10 Jan 2003 10:49:53 +0100

 Hi,
 
 On Thu, Jan 09, 2003 at 05:57:46PM -0500, Phil Edwards wrote:
 > On Thu, Jan 09, 2003 at 04:24:28PM -0000, cludwig@cdc.informatik.tu-darmstadt.de wrote:
 > __cxa_atexit is part of glibc, not SUN's libc.  You can't use it if it's
 > not there.
 
 Good point. :-) But let me change the PR into a feature and
 documentation  request:
 
 a) http://gcc.gnu.org/install/configure.html does not mention
    --enable-__cxa-atexit at all. I found it only when I ran
    `gcc/configure --help'. I guess you need to supply this option if
    you want to use the compiler option -fuse-cxa-atexit?
    Or does it make -fuse-cxa-atexit the default?
 
 b) configure should complain if --enable-__cxa-atexit was passed but
    is not supported rather than produce linker errors at the end of
    the build process.
 
 Nevertheless, thanks for the clarification!
 
 Regards
 
 Christoph
 -- 
 http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/cludwig.html
 LiDIA-CA: http://www.informatik.tu-darmstadt.de/TI/Forschung/LiDIA-CA/
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bootstrap/9249: Solaris 8: bootstrap fails with --enable-__cxa-atexit
@ 2003-01-09 23:06 Phil Edwards
  0 siblings, 0 replies; 3+ messages in thread
From: Phil Edwards @ 2003-01-09 23:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR bootstrap/9249; it has been noted by GNATS.

>From phil@jaj.com  Mon Jan 13 00:46:55 2003
From: Phil Edwards <phil@jaj.com>
To: cludwig@cdc.informatik.tu-darmstadt.de
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: bootstrap/9249: Solaris 8: bootstrap fails with --enable-__cxa-atexit
Date: Thu, 9 Jan 2003 17:57:46 -0500

 On Thu, Jan 09, 2003 at 04:24:28PM -0000, cludwig@cdc.informatik.tu-darmstadt.de wrote:
 > 
 > [...]
 > abi_check.o: In function `__static_initialization_and_destruction_0(int, int)':
 > /cdc/tmp-cludwig/gcc/gcc-3.2.1-BUILD/sparc-sun-solaris2.8/libstdc++-v3/include/iostream:63: undefined reference to `__cxa_atexit'
 
 Well, yeah.
 
 
 > As soon as I left out the option `--enable-__cxa-atexit' I could successfully 
 > build and install the compiler. The same option did not
 > cause any problems on my notebook (i686-pc-linux-gnu).
 
 __cxa_atexit is part of glibc, not SUN's libc.  You can't use it if it's
 not there.
 
 
 
 -- 
 I would therefore like to posit that computing's central challenge, viz. "How
 not to make a mess of it," has /not/ been met.
                                                  - Edsger Dijkstra, 1930-2002


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-10  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-09 16:26 bootstrap/9249: Solaris 8: bootstrap fails with --enable-__cxa-atexit cludwig
2003-01-09 23:06 Phil Edwards
2003-01-10  9:56 Christoph Ludwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).