cathryn_meyer@yale_edu
Member
I am trying to compile CAM3.0 (patched version) on a linux cluster, however the MPI library is not linking properly. When I attempt to compile the model, I get the following error messages (I get more than what I have pasted below, I cut most of them out to save space):
------------------------------------------------------------
: multiple definition of `MAIN_'
cam.o(.text+0x10): first defined here
/usr/bin/ld: Warning: size of symbol `MAIN_' changed from 5339 to 49 in
test_mpi.o
STATICEcosysDynMod.o(.text+0x3a62): In function
`staticecosysdynmod_readmonthlyvegetation_':
: undefined reference to `mpi_bcast_'
STATICEcosysDynMod.o(.text+0x3ac5): In function
`staticecosysdynmod_readmonthlyvegetation_':
: undefined reference to `mpi_bcast_'
STATICEcosysDynMod.o(.text+0x3b28): In function
`staticecosysdynmod_readmonthlyvegetation_':
: undefined reference to `mpi_bcast_'
surfFileMod.o(.text+0x3d00): In function `surffilemod_surfrd_':
: undefined reference to `mpi_bcast_'
surfFileMod.o(.text+0x3d35): In function `surffilemod_surfrd_':
: undefined reference to `mpi_bcast_'
surfFileMod.o(.text+0x3d6a): In function `surffilemod_surfrd_':
: undefined reference to `mpi_bcast_'
surfFileMod.o(.text+0x3da4): In function `surffilemod_surfrd_':
: undefined reference to `mpi_bcast_'
surfFileMod.o(.text+0x3dde): In function `surffilemod_surfrd_':
: undefined reference to `mpi_bcast_'
surfFileMod.o(.text+0x3e13): more undefined references to `mpi_bcast_'
follow
swap_comm.o(.text+0x35): In function `swap_comm_swap_comm_init_':
rrier_':
wrap_mpi.o(.text+0x1fd9): In function `mpiallgatherint_':
: undefined reference to `mpi_allgather_'
gmake: *** [/home/ccm33/cam] Error 2
---------------------------------------------------------------
Any thoughts?
Cathy
------------------------------------------------------------
: multiple definition of `MAIN_'
cam.o(.text+0x10): first defined here
/usr/bin/ld: Warning: size of symbol `MAIN_' changed from 5339 to 49 in
test_mpi.o
STATICEcosysDynMod.o(.text+0x3a62): In function
`staticecosysdynmod_readmonthlyvegetation_':
: undefined reference to `mpi_bcast_'
STATICEcosysDynMod.o(.text+0x3ac5): In function
`staticecosysdynmod_readmonthlyvegetation_':
: undefined reference to `mpi_bcast_'
STATICEcosysDynMod.o(.text+0x3b28): In function
`staticecosysdynmod_readmonthlyvegetation_':
: undefined reference to `mpi_bcast_'
surfFileMod.o(.text+0x3d00): In function `surffilemod_surfrd_':
: undefined reference to `mpi_bcast_'
surfFileMod.o(.text+0x3d35): In function `surffilemod_surfrd_':
: undefined reference to `mpi_bcast_'
surfFileMod.o(.text+0x3d6a): In function `surffilemod_surfrd_':
: undefined reference to `mpi_bcast_'
surfFileMod.o(.text+0x3da4): In function `surffilemod_surfrd_':
: undefined reference to `mpi_bcast_'
surfFileMod.o(.text+0x3dde): In function `surffilemod_surfrd_':
: undefined reference to `mpi_bcast_'
surfFileMod.o(.text+0x3e13): more undefined references to `mpi_bcast_'
follow
swap_comm.o(.text+0x35): In function `swap_comm_swap_comm_init_':
rrier_':
wrap_mpi.o(.text+0x1fd9): In function `mpiallgatherint_':
: undefined reference to `mpi_allgather_'
gmake: *** [/home/ccm33/cam] Error 2
---------------------------------------------------------------
Any thoughts?
Cathy