> On Sat, Oct 12, 2013 at 2:29 PM, Daniel Lee <
bea...@alum.mit.edu <mailto:
bea...@alum.mit.edu>> wrote:
>
> Bob and/or Jiqiang,
>
> Can you try out this branch and see if it works for XCode 5?
> feature/issue-278-Xcode5
>
> The pull request is here:
>
https://github.com/stan-dev/stan/pull/279
>
> If it works, feel free to merge.
>
>
> On Thu, Oct 10, 2013 at 3:18 PM, Bob Carpenter <
ca...@alias-i.com <mailto:
ca...@alias-i.com>> wrote:
>
> The good news is that I forgot to run with -j4 the first time, so
> it's only 5 minutes, not 10 minutes to build. That's
> still not good.
>
> The default template depth of 128 in Xcode 5's version
> of g++ and clang++ isn't enough.
>
> Here's what gnu says:
>
> -ftemplate-depth=n
> Set the maximum instantiation depth for template classes to n. A limit
> on the template instantiation depth is needed
> to detect endless recursions during template class instantiation.
> ANSI/ISO C++ conforming programs must not rely on a
> maximum depth greater than 17 (changed to 1024 in C++11).
> The default value is 900, as the compiler can run out of
> stack space before hitting 1024 in some situations.
>
> <
http://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html>
>
> So we violate pre-C++11 but are OK with C++11.
>
> Xcode for some reason used 128 as the default template-depth. Ours isn't
> the only project this broke when building in default settings.
>
> I verified that we can build with:
>
> -ftemplate-depth=256
>
> This works for both g++ and clang++, at least under Xcode 5.
>
> - Bob
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to