I was trying to run some tests locally and ran into problems. From a clean clone of Stan, this is what I’m seeing:
> ./runTests.py src/test/unit/services/optimize/bfgs_test.cpp
------------------------------------------------------------
make -j1 test/test-models/good/optimization/rosenbrock.hpp
make: *** No rule to make target `test/test-models/good/optimization/rosenbrock.hpp'. Stop.
make -j1 test/test-models/good/optimization/rosenbrock.hpp failed
exit now (01/06/22 09:09:23 EST)
Are there any additional steps that need to happen before I can run these tests?
At the very least, it looks like there’s no dependency on bin/stanc, so there’s no mechanism to generate the .hpp files from .stan files.
I’m going to dig through the Jenkinsfile to see if there’s a way around it. (I know how to generate the .hpp files by hand, but if there’s something I can do to fix the Makefile, I will… but only after it’s verified that there’s a problem.)
@rok_cesnovar, thanks! That’s what I found too, but I didn’t see it download bin/stanc and even after I manually downloaded it, it didn’t trigger the build. I’ll try to see what’s up with the makefile.
I’m on an M1 Macbook with the default Make installed with XCode, so there might be a version difference with Make.
I was looking at the full make output (with the -p option) and my guess is that findfiles might not be resolving to the right thing on a Mac. But that’s a wild guess that I’ll confirm in a little bit.