A master's student (Giulia Conti, in cc) is having problems compiling the Einstein Toolkit (ET_2023_11) on her Mac. There are problems compiling the ReflectionSymmetry thorn (see below). Has anyone else encountered a similar problem? 

She followed the instructions in the tutorial for new users regarding the packages that needed to be installed on Macs. Also other mac users here are having the same problem.

Thanks,
Bruno

Il giorno ven 24 mag 2024 alle ore 09:35 Giulia Conti <g.conti25@campus.unimib.it> ha scritto:

COMPILING CactusNumerical/ReflectionSymmetry/src/register.c

/Users/giulia/coding/ET_2023_11_s/Cactus/configs/sim/build/ReflectionSymmetry/register.c: In function 'ReflectionSymmetry_Register':

/Users/giulia/coding/ET_2023_11_s/Cactus/configs/sim/build/ReflectionSymmetry/register.c:68:22: error: passing argument 3 of 'SymmetryRegisterGridInterpolator' from incompatible pointer type [-Wincompatible-pointer-types]

   68 |     (cctkGH, handle, ReflectionSymmetry_Interpolate);

      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      |                      |

      |                      CCTK_INT4 (*)(const void * const restrict,  const CCTK_INT4,  const CCTK_INT4,  const CCTK_INT4,  const CCTK_INT4,  const CCTK_INT4,  const CCTK_INT4,  const void * const restrict*, const CCTK_INT4,  const CCTK_INT4 *, const CCTK_INT4,  const CCTK_INT4 *, void * const restrict*, const CCTK_INT4) {aka int (*)(const void * const restrict,  const int,  const int,  const int,  const int,  const int,  const int,  const void * const restrict*, const int,  const int *, const int,  const int *, void * const restrict*, const int)}

In file included from /Users/giulia/coding/ET_2023_11_s/Cactus/configs/sim/bindings/include/ReflectionSymmetry/cctk_Functions.h:23,

                 from /Users/giulia/coding/ET_2023_11_s/Cactus/src/include/cctk_core.h:174,

                 from /Users/giulia/coding/ET_2023_11_s/Cactus/configs/sim/bindings/include/ReflectionSymmetry/cctk.h:5,

                 from /Users/giulia/coding/ET_2023_11_s/Cactus/configs/sim/build/ReflectionSymmetry/register.c:1:

/Users/giulia/coding/ET_2023_11_s/Cactus/configs/sim/bindings/include/ReflectionSymmetry_Prototypes.h:56:19: note: expected 'CCTK_INT4 (* const)(const void * const,  const CCTK_INT4,  const CCTK_INT4,  const CCTK_INT4,  const CCTK_INT4,  const CCTK_INT4,  const CCTK_INT4,  const void * const*, const CCTK_INT4,  const CCTK_INT4 *, const CCTK_INT4,  const CCTK_INT4 *, void * const*, const CCTK_INT4' {aka 'int (* const)(const void * const,  const int,  const int,  const int,  const int,  const int,  const int,  const void * const*, const int,  const int *, const int,  const int *, void * const*, const int)'} but argument is of type 'CCTK_INT4 (*)(const void * const restrict,  const CCTK_INT4,  const CCTK_INT4,  const CCTK_INT4,  const CCTK_INT4,  const CCTK_INT4,  const CCTK_INT4,  const void * const restrict*, const CCTK_INT4,  const CCTK_INT4 *, const CCTK_INT4,  const CCTK_INT4 *, void * const restrict*, const CCTK_INT4)' {aka 'int (*)(const void * const restrict,  const int,  const int,  const int,  const int,  const int,  const int,  const void * const restrict*, const int,  const int *, const int,  const int *, void * const restrict*, const int)'}

   56 |  CCTK_INT (*const symmetry_interpolate)(const CCTK_POINTER_TO_CONST cctkGH ,

make[3]: *** [register.c.o] Error 1

make[2]: *** [make.checked] Error 2

make[1]: *** [/Users/giulia/coding/ET_2023_11_s/Cactus/configs/sim/lib/libthorn_ReflectionSymmetry.a] Error 2

make[1]: *** Waiting for unfinished jobs....

Creating /Users/giulia/coding/ET_2023_11_s/Cactus/configs/sim/lib/libthorn_LocalReduce.a

make: *** [sim] Error 2



--

Prof. Bruno Giacomazzo
Department of Physics
University of Milano-Bicocca
Piazza della Scienza 3
20126 Milano
Italy

email: bruno.giacomazzo@unimib.it
phone: (+39) 02 6448 2321

web: http://www.brunogiacomazzo.org

---------------------------------------------------------------------
There are only 10 types of people in the world:
Those who understand binary, and those who don't
----------------------------------------------------------------------