eas4dc/EAR

About build error (storage size of 'hostlist' isn't known)

Opened this issue · 1 comments

I tried to build EAR-4.3.1 on Rocky 9.4, Ubuntu 20.04.6.
I ran the following commands based on the documentation

autoreconf -i
./configure --prefix=/opt/ear CC=mpicc MPICC=mpicc MPI_VERSION=ompi 
make

However, the build failed with the following error message.
Is there any way to fix this issue?

====================================
= Compiling slurm_plugin
====================================
make[2]: Entering directory '/home/user/EAR-4.3.1/src/slurm_plugin'
/usr/lib64/openmpi/bin/mpicc  -fPIC  -I/home/user/EAR-4.3.1/src -DSEC_KEY=10001 -DREPORT_TIMESTAMP=1 -DSYNC_SET_RPC=1 -DUSE_CNTD=0 -DMIX_RPC=1 -DERUN -o erun erun.c erun_sim.c erun_lock.c erun_signals.c slurm_plugin.c slurm_plugin_environment.c slurm_plugin_options.c slurm_plugin_rcom_eard.c slurm_plugin_rcom_eargmd.c slurm_plugin_rcom_shared.c slurm_plugin_serialization.c /home/user/EAR-4.3.1/src/daemon/remote_api/eard_rapi.o /home/user/EAR-4.3.1/src/daemon/remote_api/eard_rapi_internals.o /home/user/EAR-4.3.1/src/daemon/shared_configuration.o /home/user/EAR-4.3.1/src/global_manager/eargm_rapi.o /home/user/EAR-4.3.1/src/common/libcommon.a  -lm
/usr/lib64/openmpi/bin/mpicc  -fPIC  -I/home/user/EAR-4.3.1/src -DSEC_KEY=10001 -DREPORT_TIMESTAMP=1 -DSYNC_SET_RPC=1 -DUSE_CNTD=0 -DMIX_RPC=1 -shared -o earplug.so slurm_plugin.c slurm_plugin_environment.c slurm_plugin_options.c slurm_plugin_rcom_eard.c slurm_plugin_rcom_eargmd.c slurm_plugin_rcom_shared.c slurm_plugin_serialization.c /home/user/EAR-4.3.1/src/daemon/remote_api/eard_rapi.o /home/user/EAR-4.3.1/src/daemon/remote_api/eard_rapi_internals.o /home/user/EAR-4.3.1/src/daemon/shared_configuration.o /home/user/EAR-4.3.1/src/global_manager/eargm_rapi.o /home/user/EAR-4.3.1/src/common/libcommon.a  -lm
slurm_plugin_serialization.c: In function ‘plug_deserialize_remote’:
slurm_plugin_serialization.c:524:20: error: storage size of ‘hostlist’ isn’t known
  524 |         hostlist_t hostlist;
      |                    ^~~~~~~~
make[2]: *** [Makefile:52: earplug.so] Error 1
make[2]: Leaving directory '/home/user/EAR-4.3.1/src/slurm_plugin'
make[1]: *** [Makefile:59: all.components] Error 2
make[1]: Leaving directory '/home/user/EAR-4.3.1/src'
make: *** [Makefile:81: all] Error 2

Hello @mr-shoji .
We've just released a new version of EAR (v5.0).
It is strange you encountered problems while compiling the last version.
Anyway, if you still want to work with EAR, I recommend you to update to the latest version.
I'll enable Issue notifications to be aware if you (and other users) have any problem.

PS: In etc/examples you can find a set of scripts we usually use to compile EAR in our systems.

Regards,
Oriol