-
Notifications
You must be signed in to change notification settings - Fork 16
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
fails to build with with GCC-15 #157
Comments
at first glance, this looks like an issue with using different compilers for dolfinx and dolfimx_mpc, on the nanobind/python interface level. I can’t download the logs on my phone, but is dolfinx built with same compiler, same nanobind version? |
Good question, that may well be the issue, not gcc-15 itself. I'll keep monitoring it. The versions in the reported log are: dolfinx 1:0.9.0-6+b2 was built against nanobind 2.4.0-1 and python3 3.13.1-3. So likely you're right, it's the mismatch between nanobind 2.4.0 and 2.5.0. |
The debian package dependency mechanism expects incompatibility only with the major version, not the minor version. Perhaps that needs to be tightened up, if the problem really is nanobind 2.4 vs 2.5. |
Nanobind is very strict with the versions: https://nanobind.readthedocs.io/en/latest/faq.html#how-can-i-avoid-conflicts-with-other-projects-using-nanobind
Allthough the ABI version is the same between 2.4 and 2.5 |
@drew-parsons is there anything I can do to guide you further? |
I guess the only thing to do at this point is check if dolfinx_mpc generally builds successfully with gcc-15. Is it easy to configure docker to use gcc-15? |
A debian bug at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1096535 reports that dolfinx_mpc fails to build (fails tests) with gcc-15:
Build log at http://qa-logs.debian.net/2025/02/16/amd64exp/dolfinx-mpc_0.9.0-2_unstable_gccexp.log.gz
There is a gcc-15 porting guide at http://gcc.gnu.org/gcc-15/porting_to.html
The report is for v0.9.0. I haven't tested independently, I don't know if it's fixed in 0.9.1.
sample error:
The text was updated successfully, but these errors were encountered: