-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
Build ITK Python Packages with gcc-toolset-12
toolset fails
#3785
Comments
I tried running castxml on a simple |
gcc-toolset-12
toolset fails
Hi @bradking , thanks for taking a look. @thewtex pointed out in InsightSoftwareConsortium/ITKPythonPackage#236 (comment) that this is likely due to our recent update from |
Consolidating discussion from ITKPythonPackage here:
Hi @thewtex, good call, I had not connected those dots. I am able to recreate the error in an ITKSplitComponents development branch bumped for InsightSoftwareConsortium/ITKPythonPackage#237. The error occurs for an https://github.com/tbirdso/ITKSplitComponents/actions/runs/3625465984/jobs/6113545703
Can do.
It now seems that this issue is not limited to aarch64 wheels, but also impacts at least My understanding of the impact is as follows:
|
We can continue to build with and against |
Excellent, thanks for the dockcross patch @thewtex. I will update module workflows accordingly. EDIT: I have confirmed that the updated container still includes the fix for dockcross/dockcross#746 . 👍 |
@thewtex For future reference, is the gcc version on the system sufficient to tell what gcc toolset will be used for building in a given manylinux container? Or is there a better way to determine this? I see the following in respective containers:
I am wondering if it would be reasonable to add a check in ITK module build workflows in the future to verify that the gcc toolset matches that used in generating tarballs, i.e. that v5.3.0 packages are built with gcc 11, v5.3.1 and onward with gcc 12, etc |
Did I spend hours barking up the wrong tree? See google/tensorstore#69. |
@dzenanz If I understand correctly the errors you've discussed in google/tensorstore#69 occur in non-ITK dependencies prior to building the ITK module wheels. Under the current plan we will revert to gcc 11 for v5.3.0 wheels and upgrade to gcc 12 for v5.3.1 wheels, meaning that there is a bit more time for those dependencies to reach a resolution for gcc 12. Even if not immediate, there will still be a need for those fixes in the long term and it certainly doesn't sound like time wasted. |
I just tried zarrCI with GCC-11 PythonPackage, and the compile error is the same, which means it is unrelated to this issue. |
Addressed via the Docker image used for remote module builds in the ITKPythonPackage repository. |
Summary
We are in the process of updating ITK build scripts in ITKPythonPackage to accommodate targeting ARM architectures. Module builds currently fail on the first CastXML generation step. With that said, I am not 100% certain whether the issue lies in CastXML.
Expected behavior
XML files are generated without error, wrapping succeeds
Observed behavior
Build output available at https://github.com/tbirdso/ITKSplitComponents/actions/runs/3604194121/jobs/6073281299
Platform Information
manylinux_2_28_aarch64
image running on an Ubuntu 20.04 Github Actions runner with aarch64 emulation.Manylinux image: https://quay.io/repository/pypa/manylinux_2_24_aarch64?tab=info , tag=2022-11-28-5d13db4
Emulation tools: https://hub.docker.com/r/tonistiigi/binfmt
Able to reproduce on local Ubuntu 20.04 instance with aarch64 emulation +
manylinux_2_28_aarch64
image.Not yet attempted on native ARM machine.
Versions
CastXML 0.4.8
SWIG 4.0.2
ITK v5.3.0
Other Notes
ITK_WRAP_PYTHON:BOOL=OFF
andBUILD_TESTING:BOOL=ON
.xpost from CastXML/CastXML#228
The text was updated successfully, but these errors were encountered: