CCTM compiling error

Hello all.

I am building the modules for CMAQ modeling system and while the libraries(stenex,pario,build) and other modules(ICON, BCON, MCIP) went pretty well, I’m having some difficulties with CCTM.

The following error is shown and I’m not quite sure which part in my build script went wrong. Would it be some issues with my mpi library?

mpcomm_init.o: In function mpcomm_init_': mpcomm_init.F:(.text+0x25): undefined reference to mpi_init_’
mpcomm_init.F:(.text+0x38): undefined reference to mpi_wtime_' mpcomm_init.F:(.text+0x55): undefined reference to mpi_comm_size_’
mpcomm_init.F:(.text+0x75): undefined reference to mpi_comm_rank_' par_term.o: In function par_term_’:
par_term.F:(.text+0x1e): undefined reference to mpi_wtime_' par_term.F:(.text+0x93): undefined reference to mpi_comm_rank_’
par_term.F:(.text+0x3a8): undefined reference to mpi_finalize_' setup_logdev.o: In function setup_logdev_’:
setup_logdev.F:(.text+0x1f): undefined reference to mpi_comm_rank_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_data_recv_module.o): In function se_data_recv_module_mp_se_1d_data_recv_’:
se_data_recv_module.f:(.text+0x20e): undefined reference to mpi_recv_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_data_recv_module.o): In function se_data_recv_module_mp_se_2d_data_recv_’:
se_data_recv_module.f:(.text+0x6b3): undefined reference to mpi_recv_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_data_recv_module.o): In function se_data_recv_module_mp_se_2de_data_recv_’:
se_data_recv_module.f:(.text+0xd3c): undefined reference to mpi_recv_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_data_recv_module.o): In function se_data_recv_module_mp_se_3d_data_recv_’:
se_data_recv_module.f:(.text+0x13f4): undefined reference to mpi_recv_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_data_recv_module.o): In function se_data_recv_module_mp_se_3de_data_recv_’:
se_data_recv_module.f:(.text+0x19bd): undefined reference to mpi_recv_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_data_recv_module.o):se_data_recv_module.f:(.text+0x21d3): more undefined references to mpi_recv_’ follow
/home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_data_send_module.o): In function se_data_send_module_mp_se_1d_data_send_': se_data_send_module.f:(.text+0x424): undefined reference to mpi_send_’
/home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_data_send_module.o): In function se_data_send_module_mp_se_2d_data_send_': se_data_send_module.f:(.text+0x9f7): undefined reference to mpi_send_’
/home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_data_send_module.o): In function se_data_send_module_mp_se_2de_data_send_': se_data_send_module.f:(.text+0x10f8): undefined reference to mpi_send_’
/home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_data_send_module.o): In function se_data_send_module_mp_se_3d_data_send_': se_data_send_module.f:(.text+0x193c): undefined reference to mpi_send_’
/home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_data_send_module.o): In function se_data_send_module_mp_se_3de_data_send_': se_data_send_module.f:(.text+0x2143): undefined reference to mpi_send_’
/home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_data_send_module.o):se_data_send_module.f:(.text+0x2952): more undefined references to mpi_send_' follow /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_global_max_module.o): In function se_global_max_module_mp_se_global_imax_’:
se_global_max_module.f:(.text+0x3a): undefined reference to mpi_reduce_' se_global_max_module.f:(.text+0x63): undefined reference to mpi_bcast_’
/home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_global_max_module.o): In function se_global_max_module_mp_se_global_rmax_': se_global_max_module.f:(.text+0x9a): undefined reference to mpi_reduce_’
se_global_max_module.f:(.text+0xc3): undefined reference to mpi_bcast_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_init_module.o): In function se_init_module_mp_se_init_’:
se_init_module.F:(.text+0x7da): undefined reference to mpi_comm_dup_' se_init_module.F:(.text+0x7fd): undefined reference to mpi_comm_dup_’
se_init_module.F:(.text+0x1356): undefined reference to mpi_comm_group_' se_init_module.F:(.text+0x15af): undefined reference to mpi_group_incl_’
se_init_module.F:(.text+0x15d1): undefined reference to mpi_group_excl_' se_init_module.F:(.text+0x15ec): undefined reference to mpi_comm_create_’
se_init_module.F:(.text+0x1607): undefined reference to mpi_comm_create_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_internal_util_module.o): In function se_internal_util_module_mp_se_generate_map_’:
se_internal_util_module.f:(.text+0xe7): undefined reference to mpi_gather_' se_internal_util_module.f:(.text+0x120): undefined reference to mpi_bcast_’
/home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_util_module.o): In function se_util_module_mp_se_barrier_': se_util_module.f:(.text+0x101): undefined reference to mpi_comm_dup_’
se_util_module.f:(.text+0x111): undefined reference to mpi_barrier_' se_util_module.f:(.text+0x121): undefined reference to mpi_comm_free_’
/home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_util_module.o): In function se_util_module_mp_se_global_min_data_': se_util_module.f:(.text+0x32e): undefined reference to mpi_reduce_’
se_util_module.f:(.text+0x35f): undefined reference to mpi_bcast_' se_util_module.f:(.text+0x4d0): undefined reference to mpi_bcast_’
/home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_util_module.o): In function se_util_module_mp_se_isum_chk_': se_util_module.f:(.text+0x7c8): undefined reference to mpi_reduce_’
se_util_module.f:(.text+0x8d2): undefined reference to mpi_bcast_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_util_module.o): In function se_util_module_mp_se_rsum_chk_’:
se_util_module.f:(.text+0x928): undefined reference to mpi_reduce_' se_util_module.f:(.text+0xa27): undefined reference to mpi_bcast_’
/home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_util_module.o): In function se_util_module_mp_se_my_region_': se_util_module.f:(.text+0xb25): undefined reference to mpi_reduce_’
se_util_module.f:(.text+0xb63): undefined reference to mpi_bcast_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_util_module.o): In function se_util_module_mp_se_global_logical_’:
se_util_module.f:(.text+0xc06): undefined reference to mpi_reduce_' se_util_module.f:(.text+0xc79): undefined reference to mpi_reduce_’
se_util_module.f:(.text+0xca2): undefined reference to mpi_bcast_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_util_module.o): In function se_util_module_mp_se_in_syn_’:
se_util_module.f:(.text+0x5010): undefined reference to mpi_bcast_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(se_util_module.o): In function se_util_module_mp_se_collect_’:
se_util_module.f:(.text+0x528c): undefined reference to mpi_recv_' se_util_module.f:(.text+0x5320): undefined reference to mpi_send_’
/home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(swap_sandia.o): In function swap_sandia_mp_swap_init_snl_': swap_sandia.f:(.text+0x29): undefined reference to mpi_comm_rank_’
swap_sandia.f:(.text+0x3f): undefined reference to mpi_comm_size_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(swap_sandia_routines.o): In function swap1d_’:
swap_sandia_routines.f:(.text+0x1aa): undefined reference to mpi_irecv_' swap_sandia_routines.f:(.text+0x320): undefined reference to mpi_send_’
swap_sandia_routines.f:(.text+0x3e9): undefined reference to mpi_wait_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(swap_sandia_routines.o): In function swap2d_’:
swap_sandia_routines.f:(.text+0x87b): undefined reference to mpi_irecv_' swap_sandia_routines.f:(.text+0xac6): undefined reference to mpi_send_’
swap_sandia_routines.f:(.text+0xb90): undefined reference to mpi_wait_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(swap_sandia_routines.o): In function swap3d_’:
swap_sandia_routines.f:(.text+0x1108): undefined reference to mpi_irecv_' swap_sandia_routines.f:(.text+0x13fd): undefined reference to mpi_send_’
swap_sandia_routines.f:(.text+0x14dd): undefined reference to mpi_wait_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/se_snl/libse_snl.a(swap_sandia_routines.o): In function swap4d_’:
swap_sandia_routines.f:(.text+0x1992): undefined reference to mpi_irecv_' swap_sandia_routines.f:(.text+0x19e6): undefined reference to mpi_send_’
swap_sandia_routines.f:(.text+0x1a11): undefined reference to mpi_wait_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/pario/libpario.a(pm3exit.o): In function pm3exit_’:
pm3exit.f:(.text+0x523): undefined reference to mpi_abort_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/pario/libpario.a(pshut3.o): In function pshut3_’:
pshut3.f:(.text+0x3a7): undefined reference to mpi_bcast_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/pario/libpario.a(ptrwrite3.o): In function ptrwrite3_’:
ptrwrite3.f:(.text+0x393): undefined reference to mpi_bcast_' ptrwrite3.f:(.text+0x4a6): undefined reference to mpi_bcast_’
ptrwrite3.f:(.text+0x4cf): undefined reference to mpi_bcast_' ptrwrite3.f:(.text+0x729): undefined reference to mpi_bcast_’
/home/cyb/CMAQ-5.0.2/lib/x86_64/intel/pario/libpario.a(ptrwrite3.o):ptrwrite3.f:(.text+0x1467): more undefined references to mpi_bcast_' follow /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/pario/libpario.a(pwrgrdd.o): In function pwrgrdd_’:
pwrgrdd.f:(.text+0x893): undefined reference to mpi_recv_' pwrgrdd.f:(.text+0x984): undefined reference to mpi_recv_’
pwrgrdd.f:(.text+0xd0b): undefined reference to mpi_send_' pwrgrdd.f:(.text+0xd45): undefined reference to mpi_send_’
pwrgrdd.f:(.text+0xd80): undefined reference to mpi_allreduce_' /home/cyb/CMAQ-5.0.2/lib/x86_64/intel/pario/libpario.a(pwrite3.o): In function pwrite3_’:
pwrite3.f:(.text+0x37b): undefined reference to mpi_bcast_' pwrite3.f:(.text+0x491): undefined reference to mpi_bcast_’
pwrite3.f:(.text+0x4ba): undefined reference to mpi_bcast_' pwrite3.f:(.text+0x6fd): undefined reference to mpi_bcast_’
pwrite3.f:(.text+0x96f): undefined reference to `mpi_bcast_’
make: *** [CCTM_cybtest_2020_27km_Linux3_x86_64intel] Error 1
ERROR while running make command

@YoonB those errors appears to be related to your MPI library, is it installed on your system?