This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Compiling libstdc++-v3 without the testsuite
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Peter-Frank Spierenburg <peter at spierepf dot dyndns dot org>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Fri, 03 Dec 2004 22:12:39 +0100
- Subject: Re: Compiling libstdc++-v3 without the testsuite
- References: <Pine.LNX.4.44.0412031640020.517-100000@spierepf.dyndns.org>
Hi,
Greetings,
I am attempting to build a g++ cross-compiler without support for
exceptions. My problem is that the libstdc++-v3 testsuite uses the throw()
statement in about a million places and therefore refuses to compile. Is
there a ./configure time option which prevents compilation of the
testsuite? I cannot find one in the docs.
If I understand correctly your problem, in principle you only need to pass
-fno-exceptions at build time, as part of the CXXFLAGS.
*But* I see that probably recently we are not testing sufficiently with
that option
and you may need to fix locally a bit the code (we'll take care of those
issues
ASAP): have a look to libstdc++-v3/libsupc++/exceptions_define.h, the idea
is that in principle we should never use naked throw,
__throw_exception_again
instead. For me, 3.4.x works out of the box by just fixing a couple of
naked throw
in testsuite_abi.cc.
I hope you will find this info useful, maybe others more expert than me
in this
area can give you other suggestions.
Paolo.