Data type in print compilation error with GCC/11.1.0
When compiling with:
Currently Loaded Modulefiles:
1) gnu_comp/11.1.0 2) openmpi/4.1.1 3) fftw/3.3.9epyc 4) gsl/2.5 5) hdf5/1.12.0 6) ucx/1.10.1
The following compilation error is produced:
In file included from ././chemistry/none/chemistry.h:34,
from ./chemistry.h:35,
from ./lightcone/lightcone_particle_io.h:31,
from lightcone/lightcone.h:28,
from engine.h:40,
from engine.c:52:
engine.c: In function 'engine_rebuild':
./error.h:74:21: error: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'long long int' [-Werror=format=]
74 | fprintf(stderr, "%s %s:%s():%i: " s "\n", clocks_get_timesincestart(), \
| ^~~~~~~~~~~~~~~~~
engine.c:1358:7: note: in expansion of macro 'error'
1358 | error("Total particles in multipoles inconsistent with engine "
| ^~~~~
./error.h:74:21: error: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'long long int' [-Werror=format=]
74 | fprintf(stderr, "%s %s:%s():%i: " s "\n", clocks_get_timesincestart(), \
| ^~~~~~~~~~~~~~~~~
engine.c:1358:7: note: in expansion of macro 'error'
1358 | error("Total particles in multipoles inconsistent with engine "
| ^~~~~