-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
Fix build with gcc13 #3255
Fix build with gcc13 #3255
Conversation
@serban-nicusor-toptal any idea why this wouldn't have been caught by the bleeding-edge pipeline? |
Oh, something else probably includes |
Hey, I'm not sure. Just ran a fresh build, making sure everything is built with the latest, and checked versions afterward, looks fine there. |
I'm using
|
Oh, wait... I just realized that the python script is downloading from Let me rerun the tests manually. |
In any case, here is the error when I use the python script:
|
This is probably a different question/issue, but what is the right way of compiling CmdStan and run all tests (including stan and stan_math) with the binaries that were generated when compiling CmdStan (and not precompiled ones from Github). I think the issue is that the Makefile in (stan/make/tests) does not try to use the binaries in the parent folder (cmdstan/bin). |
It looks like this is also an issue with
|
@serban-nicusor-toptal how hard would it be to add the Stan unit tests to our bleeding-edge-compilers pipeline? So it would be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Should be fairly simple I hope, will give it a try this weekend. |
Submission Checklist
./runTests.py src/test/unit
make cpplint
Summary
With GCC 13, some C++ Standard Library headers have been changed to no longer include other headers that were being used internally by the library (see, e.g. this). This has affected many other projects.
I noticed this when trying to run the tests with:
python runTests.py -j$(nproc) src/test
The fix is simple,
<cstdint>
has to be included manually.Intended Effect
Fix build with g++13
How to Verify
Run the tests
Side Effects
None?
Documentation
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):
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: