This is the mail archive of the gcc-bugs@gcc.gnu.org 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++/43734] cerr related segmentation fault


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43734

--- Comment #6 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-09-26 13:22:58 UTC ---
Not easily, because I don't have an installed version with GNU ld
around, and haven't figured out all the options necessary to compile and
link with an uninstalled g++.

That said, the example works just fine with g++ 4.4.2, 4.5.2, and 4.6.0
configured with Sun as and ld.

A couple of comments on the configure options used:

Configured with: ../gcc-4.4.3/configure --prefix=/usr/local/gcc-4.4.3
--disable-shared --enable-languages=c,c++ --enable-threads=posix

Why --disable-shared?  This may cause problems and isn't tested.

--enable-__cxa_atexit --with-gnu-as --with-as=/usr/local/binutils-2.20.1/bin/as

--enable-__cxa_atexit cannot work on Solaris.  I'm working on a patch
for the necessary libc support, but that will make it into Solaris 12 or
a Solaris 11 update at the earliest.  The option should be harmless, but
is certainly useless.

--with-gnu-ld --with-ld=/usr/local/binutils-2.20.1/bin/ld

The installation guide strongly recomments using Sun ld on Solaris for a
reason.  Many patches necessary to improve the situation with GNU ld on
Solaris only went into binutils 2.21, so I'd strongly suggest to retry
with gld 2.21.1 if you really insist on using GNU ld.

    Rainer


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