bahls@arsc_edu
New Member
We're attempting to compile build CESM 1_0_3 with the following create_newcase command:
RUN=COMPILE
CASENAME=TEST3
CASEDIR=$WORKDIR/$CASENAME
MACH=midnight
./create_newcase -case $CASEDIR
-mach $MACH
-res f05_t12 -compset G
-scratchroot $WORKDIR/CESM/temp
-din_loc_root_csmdata $WORKDIR/CESM/data
-max_tasks_per_node 16
For some reason we get an error message similar to the following during linking of ccsm.exe:
mpif90 -mcmodel=medium -o /wrkdir/bahls/TEST3/run/ccsm.exe ccsm_comp_mod.o ccsm_driver.o map_atmatm_mct.o map_atmice_mct.o map_atmlnd_mct.o map_atmocn_mct.o map_glcglc_mct.o map_iceice_mct.o map_iceocn_mct.o map_lndlnd_mct.o map_ocnocn_mct.o map_rofocn_mct.o map_rofrof_mct.o map_snoglc_mct.o map_snosno_mct.o mrg_x2a_mct.o mrg_x2g_mct.o mrg_x2i_mct.o mrg_x2l_mct.o mrg_x2o_mct.o mrg_x2s_mct.o seq_avdata_mod.o seq_diag_mct.o seq_domain_mct.o seq_flux_mct.o seq_frac_mct.o seq_hist_mod.o seq_rearr_mod.o seq_rest_mod.o -L/wrkdir/bahls/TEST3/lib -latm -llnd -lice -locn -lglc -L/wrkdir/bahls/TEST3/lib -lcsm_share -lmct -lmpeu -lpio -L/wrkdir10/bahls/netcdf/lib -lnetcdf -mcmodel=medium
/wrkdir10/bahls/netcdf/lib/libnetcdf.a(netcdf.o): In function `netcdf_nf90_put_att_one_onebyteint_':
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:97: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:97: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/wrkdir10/bahls/netcdf/lib/libnetcdf.a(netcdf.o): In function `netcdf_nf90_get_att_one_onebyteint_':
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:117: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:117: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/wrkdir10/bahls/netcdf/lib/libnetcdf.a(netcdf.o): In function `netcdf_nf90_put_att_one_twobyteint_':
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:137: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:137: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/wrkdir10/bahls/netcdf/lib/libnetcdf.a(netcdf.o): In function `netcdf_nf90_get_att_one_twobyteint_':
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:157: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:157: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/wrkdir10/bahls/netcdf/lib/libnetcdf.a(netcdf.o): In function `netcdf_nf90_put_att_one_fourbyteint_':
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:177: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:177: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/wrkdir10/bahls/netcdf/lib/libnetcdf.a(netcdf.o): In function `netcdf_nf90_get_att_one_fourbyteint_':
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:201: additional relocation overflows omitted from the output
We have been able to compile some resolutions by adding "-mcmodel=medium", however this particular resolution isn't working. We even attempted to recompile netcdf with -fpic, but it didn't make a difference.
Should -mcmodel=medium be required for CESM? It doesn't look like any of the other Macro files uses the mcmodel=medium flag and there don't appear to be references to it on this message board.
Let us know if you have any idea why -mcmodel=medium is required.
Thanks,
Don
RUN=COMPILE
CASENAME=TEST3
CASEDIR=$WORKDIR/$CASENAME
MACH=midnight
./create_newcase -case $CASEDIR
-mach $MACH
-res f05_t12 -compset G
-scratchroot $WORKDIR/CESM/temp
-din_loc_root_csmdata $WORKDIR/CESM/data
-max_tasks_per_node 16
For some reason we get an error message similar to the following during linking of ccsm.exe:
mpif90 -mcmodel=medium -o /wrkdir/bahls/TEST3/run/ccsm.exe ccsm_comp_mod.o ccsm_driver.o map_atmatm_mct.o map_atmice_mct.o map_atmlnd_mct.o map_atmocn_mct.o map_glcglc_mct.o map_iceice_mct.o map_iceocn_mct.o map_lndlnd_mct.o map_ocnocn_mct.o map_rofocn_mct.o map_rofrof_mct.o map_snoglc_mct.o map_snosno_mct.o mrg_x2a_mct.o mrg_x2g_mct.o mrg_x2i_mct.o mrg_x2l_mct.o mrg_x2o_mct.o mrg_x2s_mct.o seq_avdata_mod.o seq_diag_mct.o seq_domain_mct.o seq_flux_mct.o seq_frac_mct.o seq_hist_mod.o seq_rearr_mod.o seq_rest_mod.o -L/wrkdir/bahls/TEST3/lib -latm -llnd -lice -locn -lglc -L/wrkdir/bahls/TEST3/lib -lcsm_share -lmct -lmpeu -lpio -L/wrkdir10/bahls/netcdf/lib -lnetcdf -mcmodel=medium
/wrkdir10/bahls/netcdf/lib/libnetcdf.a(netcdf.o): In function `netcdf_nf90_put_att_one_onebyteint_':
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:97: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:97: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/wrkdir10/bahls/netcdf/lib/libnetcdf.a(netcdf.o): In function `netcdf_nf90_get_att_one_onebyteint_':
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:117: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:117: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/wrkdir10/bahls/netcdf/lib/libnetcdf.a(netcdf.o): In function `netcdf_nf90_put_att_one_twobyteint_':
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:137: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:137: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/wrkdir10/bahls/netcdf/lib/libnetcdf.a(netcdf.o): In function `netcdf_nf90_get_att_one_twobyteint_':
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:157: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:157: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/wrkdir10/bahls/netcdf/lib/libnetcdf.a(netcdf.o): In function `netcdf_nf90_put_att_one_fourbyteint_':
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:177: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:177: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/wrkdir10/bahls/netcdf/lib/libnetcdf.a(netcdf.o): In function `netcdf_nf90_get_att_one_fourbyteint_':
/import/wrkdir10/bahls/netcdf/wrk/netcdf-3.6.3/f90/./netcdf_attributes.f90:201: additional relocation overflows omitted from the output
We have been able to compile some resolutions by adding "-mcmodel=medium", however this particular resolution isn't working. We even attempted to recompile netcdf with -fpic, but it didn't make a difference.
Should -mcmodel=medium be required for CESM? It doesn't look like any of the other Macro files uses the mcmodel=medium flag and there don't appear to be references to it on this message board.
Let us know if you have any idea why -mcmodel=medium is required.
Thanks,
Don