-
Notifications
You must be signed in to change notification settings - Fork 115
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
Drop COIN_HAS_NTY from public header CbcModel.hpp #593
Conversation
COIN_HAS_NTY is only defined during compilation of Cbc but is used in public header CbcModel.hpp We also have to unconditionnaly include CbcSymmetry.hpp in case nauty is disabled Hiding attributes to 3rd party code can lead to crashes from alignment issues Fixes 1e6e301 Closes coin-or#591
Hmm, looks like It looks to me like the fix that's already in |
This made me realize that although nauty is being installed on the build machine in Github Actions, it is not being detected and linked properly, so we are not actually testing with nauty. Realistically, we should be doing tests both with and without nauty to catch exactly this kind of thing. |
So not only does one needs to provide configure with |
Which makes me wonder how you are installing nauty @jschueller? |
And actually also how did you get Cbc to detect nauty, @jjhforrest? |
So do you want me to revert 1e6e301 or ? nauty is detected via --with-nauty-incdir / --with-nauty-lib in archlinux: |
I don't think it's necessary to revert it wholesale, it's just that some of what you did revert in the commit was not actually introduced in 1e6e301. Specifically, |
But if CbcSymmetry.hpp is not included the attributes types wont be resolved right ? |
Since it was working before without the |
Just including I was wrong about the missing |
@jschueller If you could test this locally before I merge, that would be great. |
OK, now building with nauty on Linux. |
it works on my end locally too |
…, eliminate zapRootSymmetry(), since it is not defined or used.
There was one remaining use of |
great! thanks a lot |
COIN_HAS_NTY is only defined during compilation of Cbc but is used in public header CbcModel.hpp
Hiding attributes to 3rd party code can lead to crashes from alignment issues
We also have to unconditionnaly include CbcSymmetry.hpp in case nauty is disabled
Fixes 1e6e301
Closes #591
cc @tkralphs @jjhforrest @svigerske