Working .stan Script Fails to Compile with PyStan

@rok_cesnovar apologies for the lack of clarity – had data { on the same like as the triple “`” (to create a code snippet), just updated discourse formatting to clean things up (plus an additional content edit, as I realize I shared the wrong version of my specification).

@ahartikainen/@ariddell based on your guidance, I’ve moved my workflow out from Anaconda – new python environment is v. 3.10.5, PyStan version is still 3.5.0. I’m again able to build and sample my model, but when the build command completes I’m thrown a wall of warning messages (copied below).

Given that model output looks reasonable, (and baring a few Exception alerts about initialization for the cut-points on the ordered logit failing the ordering constraint, sampling doesn’t prompt any additional warning messages), how concerned should I be regarding the following build warnings?

ld: warning: ignoring file /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/lib/libsundials_cvodes.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/lib/libsundials_idas.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/lib/libsundials_nvecserial.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/lib/libtbb.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/lib/libtbbmalloc.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/lib/libtbbmalloc_proxy.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: direct access in function 'long double boost::math::detail::bessel_j0<long double>(long double)' from file '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/stan_services.o' to global weak symbol 'long double boost::math::detail::bessel_j0<long double>(long double)::Q2' from file 'build/temp.macosx-10.9-universal2-3.10/Users/bennett/Library/Caches/httpstan/4.8.0/models/oeggh5yh/model_oeggh5yh.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'long double boost::math::detail::bessel_j0<long double>(long double)' from file '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/stan_services.o' to global weak symbol 'long double boost::math::detail::bessel_j0<long double>(long double)::Q2' from file 'build/temp.macosx-10.9-universal2-3.10/Users/bennett/Library/Caches/httpstan/4.8.0/models/oeggh5yh/model_oeggh5yh.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'long double boost::math::detail::bessel_j0<long double>(long double)' from file '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/stan_services.o' to global weak symbol 'long double boost::math::detail::bessel_j0<long double>(long double)::P2' from file 'build/temp.macosx-10.9-universal2-3.10/Users/bennett/Library/Caches/httpstan/4.8.0/models/oeggh5yh/model_oeggh5yh.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'long double boost::math::detail::bessel_j0<long double>(long double)' from file '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/stan_services.o' to global weak symbol 'long double boost::math::detail::bessel_j0<long double>(long double)::P2' from file 'build/temp.macosx-10.9-universal2-3.10/Users/bennett/Library/Caches/httpstan/4.8.0/models/oeggh5yh/model_oeggh5yh.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'long double boost::math::detail::bessel_j0<long double>(long double)' from file '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/stan_services.o' to global weak symbol 'long double boost::math::detail::bessel_j0<long double>(long double)::Q1' from file 'build/temp.macosx-10.9-universal2-3.10/Users/bennett/Library/Caches/httpstan/4.8.0/models/oeggh5yh/model_oeggh5yh.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'long double boost::math::detail::bessel_j0<long double>(long double)' from file '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/stan_services.o' to global weak symbol 'long double boost::math::detail::bessel_j0<long double>(long double)::Q1' from file 'build/temp.macosx-10.9-universal2-3.10/Users/bennett/Library/Caches/httpstan/4.8.0/models/oeggh5yh/model_oeggh5yh.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'long double boost::math::detail::bessel_j0<long double>(long double)' from file '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/stan_services.o' to global weak symbol 'long double boost::math::detail::bessel_j0<long double>(long double)::P1' from file 'build/temp.macosx-10.9-universal2-3.10/Users/bennett/Library/Caches/httpstan/4.8.0/models/oeggh5yh/model_oeggh5yh.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'long double boost::math::detail::bessel_j0<long double>(long double)' from file '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpstan/stan_services.o' to global weak symbol 'long double boost::math::detail::bessel_j0<long double>(long double)::P1' from file 'build/temp.macosx-10.9-universal2-3.10/Users/bennett/Library/Caches/httpstan/4.8.0/models/oeggh5yh/model_oeggh5yh.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

(and several other warnings (comprising more characters than I’m able to post in a single comment) of the form ld: warning: direct access in function [..] from file 'build/temp.macosx-10.9-universal2-3.10/Users/bennett/Library/Caches/httpstan/4.8.0/models/oeggh5yh/model_oeggh5yh.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.)