Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD support #922

Closed
wants to merge 2 commits into from
Closed

FreeBSD support #922

wants to merge 2 commits into from

Conversation

tenomoto
Copy link

@tenomoto tenomoto commented Feb 25, 2024

Submission Checklist

  • Run unit tests
  • 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 return gmake on FreeBSD.
  • replace hard coded make to make_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:

@jgabry
Copy link
Member

jgabry commented Feb 25, 2024

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.

@jgabry
Copy link
Member

jgabry commented Feb 25, 2024

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-commenter
Copy link

codecov-commenter commented Feb 26, 2024

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).

❗ 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 ⚠️
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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrjohns
Copy link
Collaborator

@tenomoto Is there a reason to require GNU make on FreeBSD? MacOS uses BSD make with no issues

@andrjohns
Copy link
Collaborator

@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

@jgabry
Copy link
Member

jgabry commented Feb 26, 2024

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.

Thanks for checking this @andrjohns

@andrjohns andrjohns closed this Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants