FreeBSD support
Submission Checklist
- [ ] Run unit tests
- [X] Declare copyright holder and agree to license (see below)
Summary
The make command on FreeBSD is BSD make.
gmake should be called instead of make.
- Add a function to detect FreeBSD.
- Modify
make_cmd()to returngmakeon FreeBSD. - replace hard coded
maketomake_cmd().
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Takeshi Enomoto
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
Thank you for the PR @tenomoto! @andrjohns @rok-cesnovar Any issues with adding this?
I think the test failures (at least the ones I've checked) are unrelated to these changes: I need to update one test after the latest release of the loo package.
I think the test failures (at least the ones I've checked) are unrelated to these changes: I need to update one test after the latest release of the loo package.
Just merged the fix into this branch so we'll see if everything passes now
Codecov Report
Attention: Patch coverage is 75.00000% with 1 lines in your changes are missing coverage. Please review.
Project coverage is 88.31%. Comparing base (
4b94b11) to head (c137627).
:exclamation: Current head c137627 differs from pull request most recent head 4976da1. Consider uploading reports for the commit 4976da1 to get more accurate results
| Files | Patch % | Lines |
|---|---|---|
| R/utils.R | 75.00% | 1 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #922 +/- ##
==========================================
- Coverage 88.32% 88.31% -0.02%
==========================================
Files 12 12
Lines 4548 4551 +3
==========================================
+ Hits 4017 4019 +2
- Misses 531 532 +1
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@tenomoto Is there a reason to require GNU make on FreeBSD? MacOS uses BSD make with no issues
@tenomoto Before this can be merged, cmdstan itself should be able to run on FreeBSD, which does not appear to be the case.
I just spun up a FreeBSD VM, and the stanc3 transpiler does not have FreeBSD-compatible binaries. Additionally, the OS detection used in the Makefiles for the various submodules and libraries in cmdstan does not handle FreeBSD.
The contribution is very much appreciated, but we can't introduce codepaths which imply support that doesn't exist
I just spun up a FreeBSD VM, and the stanc3 transpiler does not have FreeBSD-compatible binaries. Additionally, the OS detection used in the Makefiles for the various submodules and libraries in
cmdstandoes not handle FreeBSD.
Thanks for checking this @andrjohns