rStan math version

If its from this thread then I think the issue is that not everything you added to the compiler was added to stanc3. The best would be to file an issue to the stanc3 repo.