Compilation Error in Cardinal Make Step: HYPRE Incompatible Pointer Type #1187
Replies: 2 comments
-
|
Wayne, I get the same errors on my desktop using Ubuntu 25.04 and gcc-14. If I compile on my notebook using Linux Mint (gcc-13), it will successfully compile and generate a cardinal-opt executable. I suspect that gcc-14 has clamped down on deviations from the ansi standard, and the hypre code needs to be updated. Regards, |
Beta Was this translation helpful? Give feedback.
-
|
Wayne Go to $HOME/cardinal/contrib/nekRS/3rd_party/hypre/src, and edit the CMakeCache.txt file, line 186 to this: set(HYPRE_WITH_EXTRA_CFLAGS "-Wno-error=incompatible-pointer-types" CACHE STRING "Define extra CC compile flags") Go to the directory cmbuild (still in src) and type cmake .. These last two steps may not be necessary, but I did then anyway. I was able to successfully build cardinal-opt using gcc-14. Note that we are only disabling the incompatible pointers error for the hypre build and no where else in cardinal. I got this idea from https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html -Wno-incompatible-pointer-types (C and Objective-C only) I hope it works for your system as well. -Bruce |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I'm encountering a compilation error while building Cardinal (without MOOSE's conda environment) after successfully building PETSc and libMesh. The build fails during make with the following incompatible pointer type errors like:
build_log.txt
Could this be a logic issue within the HYPRE code itself, or a problem of compiler version incompatibility?
Details:
System: [Ubuntu 25.04]
Compiler: [gcc 14.2.0]
Searched hypre’s GitHub issues for similar errors (none found).
Checked Cardinal’s discussion forum for related reports (no matches).
Beta Was this translation helpful? Give feedback.
All reactions