Boost logo

Boost-Build :

Subject: Re: [Boost-build] Changes to template-depth in qcc.jam not working fully
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-11-24 04:15:45

On Monday 24 November 2008 03:08:28 Niklas Angare wrote:
> The accumulators/test/weighted_tail_variate_means test fails with "template
> instantiation depth exceeds maximum of 100" when running regression tests
> with the qcc toolset. I've tried to increase the depth by editing
> tools/build/v2/tools/qcc.jam so that it's like gcc.jam which has a default
> depth of 128 but the compiler is still called with -Wc,-ftemplate-depth-100.
> My changes have effect when I run bjam directly in the
> libs/accumulators/test directory, but not when I run regression tests. I
> have to add --bjam-options="c++-template-depth=128" to the command line to
> make it work.

You need to provide exact information about what you did -- down to specific
commands. In particular, what "run regression tests" means? If that means
using, then it is downloading and using SVN HEAD version of Boost.Build,
so any changes you made in qcc.jam are probably of no effect.

In general, I would not be happy with changing hardcoded defaults in qcc.jam
depending on what Boost library pushes that limit, but given that qcc.jam is
basically gcc, it makes sense for both to have the same default. Therefore, I've
checked in this change:


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at