[ET Trac] #2794: TACC Stampede3-skx Compilation Failing [-Wincompatible-function-pointer-type]
Roland Haas
trac-noreply at einsteintoolkit.org
Wed May 1 15:10:57 CDT 2024
#2794: TACC Stampede3-skx Compilation Failing [-Wincompatible-function-pointer-type]
Reporter: vik at arizona.edu
Status: new
Milestone: ET_2023_05
Version: ET_2023_05
Type: bug
Priority: minor
Component: EinsteinToolkit thorn
Comment (by Roland Haas):
these seem to differ only in the `restrict` keyword used by \`ReflectionSymmetry\`. The interface specification of the aliased function
```
CCTK_INT FUNCTION \
SymmetryRegisterGridInterpolator \
(CCTK_POINTER IN cctkGH, \
CCTK_INT IN sym_handle, \
CCTK_INT CCTK_FPOINTER IN symmetry_interpolate \
(CCTK_POINTER_TO_CONST IN cctkGH, \
CCTK_INT IN N_dims, \
CCTK_INT IN local_interp_handle, \
CCTK_INT IN param_table_handle, \
CCTK_INT IN coord_system_handle, \
CCTK_INT IN N_interp_points, \
CCTK_INT IN interp_coords_type, \
CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \
CCTK_INT IN N_input_arrays, \
CCTK_INT ARRAY IN input_array_indices, \
CCTK_INT IN N_output_arrays, \
CCTK_INT ARRAY IN output_array_types, \
CCTK_POINTER ARRAY IN output_arrays, \
CCTK_INT IN faces))
```
has no `restrict` in it \(not sure if this can even be expressed in the CCL file\).
So the function prototypes differ, though if that difference is something that the compiler may care about \(since restrict is just a property of the function and does not affect externally visible behaviour\) may be a different question.
Since this is just a warning, it should not actually stop the compilation though.
It maybe good to include the full compilation output as described on [http://einsteintoolkit.org/support.html#general-guidelines-for-questions](http://einsteintoolkit.org/support.html#general-guidelines-for-questions)
If this warning is indeed what makes the compilation abort I’d add
```
-Wno-incompatible-function-pointer-types
```
to `CFLAGS` and `CXXFLAGS` of the option list \(cfg file\).
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2794/tacc-stampede3-skx-compilation-failing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20240501/0e522128/attachment.htm>
More information about the Trac
mailing list