-
Notifications
You must be signed in to change notification settings - Fork 22
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
SWIG 4.1.x, 4.2.x & 4.3x #956
Comments
Swig has had several more releases, including 4.2.1. Currently investigating if this is a cause of errors which do not occur in wheels built from 2024-01-12.
A local build using 4.2.0 errors during pyflamepgu compilation, as an assertion is encountered within swig. This appears to be related to 4.2.1 does appear to cause errors, so we need to either:
Given 4.2.0 is known to cause problems, we should probably explicitly block that one regardless? Or atleast add an cmake warning that it'll probably not work (incase someone is using 4.2.0 but with the above patch applied). |
Ok I had a very quick play with this. Changed
to
And it seems to have now generated the ID methods that weren't there before. Possibly related to this issue, but it doesn't appear any other methods have gone missing, though according to the reply it should warn us if things are being ignored. |
Have reported the issue to SWIG: swig/swig#3060 |
Swig 4.3.0 adds python 3.13 support, so we'll probably want to switch to that for CI atleast and make sure that 4.3.0 works as intended (it appears to, and fixes #1233). In which case I'm inclined for us to:
Currently, manylinux still contains swig 4.2.1, but it will likely be updated automatically by an every friday CI workflow at some point soon (whenever 4.3.0 makes it onto pypi, the latest version is I would have suggested we add a Swig CI workflow which checks different versions of swig behave as intended, but as we don't actaully run any tests in CI due to the absence of GPUs it wouldn't have actually spotted most of these issues, so not worth it. |
Swig 4.1 and 4.2 tasks now resolved. Swig 4.3 appears to work, but should be more thoroughly checked along with if it is required for python 3.13 support or not as part of #1236 |
@Robadob found that manylinux builds were failing, this appears to be due to a new swig release 4.1.0 8 days ago which has since been incorporated into the manylinux containers used for building (2 days ago).
Currently we require swig 4.0.2 or greater (due to required bugfixes), and 4.1.0 is the first release after this.
We should probably allow either, i.e. keep the current CMake Logic though we have a few potential options too:
Edit
More recently, swig 4.2.x has been released, which is again causing problems. See comments below.
The text was updated successfully, but these errors were encountered: