[MITgcm-support] problem with compilation

jeff polton jpolton at ucsd.edu
Tue Nov 15 13:57:20 EST 2005


Hi,
Using the newest genmake2 and DEFINES='-DWORDLENGTH=4' does let me get 
further down the road to a running version of the MITgcm on an IBM SP. 
In fact I now have an executable file but it crashes rather quickly:

./mitgcmuv: Syntax error at line 1: `)' not expected.

I would have hoped this would not be too hard to work out it being in 
line 1 but the output from the make process looks ok. Has anyone seen 
anything like this before?

Thanks,
  Jeff Polton


I include files of gemake2 output (genmake2.txt), make depend output 
(makedepend.txt) and the option files (mstewart_MPI)
The output from the make command seems fine and finishes with the 
following (Is there a way to dump "make" output to file?):

% make

.....
<snip>
** tracers_correction_step   === End of Compilation 1 ===
1501-510  Compilation successful for file tracers_correction_step.f.
cat update_cg2d.F | ../../tools/set64bitConst.sh |  /lib/cpp -P 
-DWORDLENGTH=4 -DNML_TERMINATOR=" /" -DHAVE_SYSTEM -DHAVE_FDATE 
-DHAVE_ETIME  -I.  > update_cg2d.f
mpxlf95_r -c -qfixed=132 -bmaxdata:0x80000000 -O3 -qarch=pwr3 
-qtune=pwr3 -qcache=auto -qmaxmem=-1 -c update_cg2d.f
** update_cg2d   === End of Compilation 1 ===
1501-510  Compilation successful for file update_cg2d.f.
cat update_etah.F | ../../tools/set64bitConst.sh |  /lib/cpp -P 
-DWORDLENGTH=4 -DNML_TERMINATOR=" /" -DHAVE_SYSTEM -DHAVE_FDATE 
-DHAVE_ETIME  -I.  > update_etah.f
mpxlf95_r -c -qfixed=132 -bmaxdata:0x80000000 -O3 -qarch=pwr3 
-qtune=pwr3 -qcache=auto -qmaxmem=-1 -c update_etah.f
** update_etah   === End of Compilation 1 ===
1501-510  Compilation successful for file update_etah.f.
cat update_r_star.F | ../../tools/set64bitConst.sh |  /lib/cpp -P 
-DWORDLENGTH=4 -DNML_TERMINATOR=" /" -DHAVE_SYSTEM -DHAVE_FDATE 
-DHAVE_ETIME  -I.  > update_r_star.f
mpxlf95_r -c -qfixed=132 -bmaxdata:0x80000000 -O3 -qarch=pwr3 
-qtune=pwr3 -qcache=auto -qmaxmem=-1 -c update_r_star.f
** update_r_star   === End of Compilation 1 ===
1501-510  Compilation successful for file update_r_star.f.
cat update_surf_dr.F | ../../tools/set64bitConst.sh |  /lib/cpp -P 
-DWORDLENGTH=4 -DNML_TERMINATOR=" /" -DHAVE_SYSTEM -DHAVE_FDATE 
-DHAVE_ETIME  -I.  > update_surf_dr.f
mpxlf95_r -c -qfixed=132 -bmaxdata:0x80000000 -O3 -qarch=pwr3 
-qtune=pwr3 -qcache=auto -qmaxmem=-1 -c update_surf_dr.f
** update_surf_dr   === End of Compilation 1 ===
1501-510  Compilation successful for file update_surf_dr.f.
cat write_grid.F | ../../tools/set64bitConst.sh |  /lib/cpp -P 
-DWORDLENGTH=4 -DNML_TERMINATOR=" /" -DHAVE_SYSTEM -DHAVE_FDATE 
-DHAVE_ETIME  -I.  > write_grid.f
mpxlf95_r -c -qfixed=132 -bmaxdata:0x80000000 -O3 -qarch=pwr3 
-qtune=pwr3 -qcache=auto -qmaxmem=-1 -c write_grid.f
** write_grid   === End of Compilation 1 ===
1501-510  Compilation successful for file write_grid.f.
cat write_myfield.F | ../../tools/set64bitConst.sh |  /lib/cpp -P 
-DWORDLENGTH=4 -DNML_TERMINATOR=" /" -DHAVE_SYSTEM -DHAVE_FDATE 
-DHAVE_ETIME  -I.  > write_myfield.f
mpxlf95_r -c -qfixed=132 -bmaxdata:0x80000000 -O3 -qarch=pwr3 
-qtune=pwr3 -qcache=auto -qmaxmem=-1 -c write_myfield.f
** write_myfield   === End of Compilation 1 ===
1501-510  Compilation successful for file write_myfield.f.
cat write_state.F | ../../tools/set64bitConst.sh |  /lib/cpp -P 
-DWORDLENGTH=4 -DNML_TERMINATOR=" /" -DHAVE_SYSTEM -DHAVE_FDATE 
-DHAVE_ETIME  -I.  > write_state.f
mpxlf95_r -c -qfixed=132 -bmaxdata:0x80000000 -O3 -qarch=pwr3 
-qtune=pwr3 -qcache=auto -qmaxmem=-1 -c write_state.f
** write_state   === End of Compilation 1 ===
1501-510  Compilation successful for file write_state.f.
cc  -c ptwrapper.c
"ptwrapper.c", line 61.29: 1506-356 (W) Compilation unit is empty.
cc  -c tim.c
cc  -c timer_stats.c
Creating mitgcmuv ...
mpxlf95_r -L/usr/common/usg/netcdf/3.6.0/lib -lnetcdf -lnetcdf_c++ 
-I/usr/common/usg/netcdf/3.6.0/include  -o mitgcmuv -
qfixed=132 -bmaxdata:0x80000000 -O3 -qarch=pwr3 -qtune=pwr3 
-qcache=auto -qmaxmem=-1 timers.o chksum_tiled.o debug_call.
o debug_cs_corner_uv.o debug_enter.o debug_fld_stats_rl.o 
debug_fld_stats_rs.o debug_leave.o debug_msg.o debug_stats_rl.
o debug_stats_rs.o fill_in_corners_rl.o write_fullarray_rl.o 
diag_readparms.o diagnostics_fill_state.o diagnostics_init_
vals.o diagnostics_initialise.o diagnostics_setunits.o 
diagnostics_utils.o diagnostics_write.o diagout.o fill_diagnostic
s.o gad_advection.o gad_biharm_x.o gad_biharm_y.o gad_c2_adv_r.o 
gad_c2_adv_x.o gad_c2_adv_y.o gad_c2_impl_r.o gad_c4_ad
v_r.o gad_c4_adv_x.o gad_c4_adv_y.o gad_calc_rhs.o gad_del2.o 
gad_diff_r.o gad_diff_x.o gad_diff_y.o gad_dst3_adv_r.o ga
d_dst3_adv_x.o gad_dst3_adv_y.o gad_dst3fl_adv_r.o gad_dst3fl_adv_x.o 
gad_dst3fl_adv_y.o gad_fluxlimit_adv_r.o gad_fluxl
imit_adv_x.o gad_fluxlimit_adv_y.o gad_fluxlimit_impl_r.o gad_grad_x.o 
gad_grad_y.o gad_implicit_r.o gad_init.o gad_u3_a
dv_r.o gad_u3_adv_x.o gad_u3_adv_y.o gad_u3c4_impl_r.o mdsio.o 
mdsio_byteswapr4.o mdsio_byteswapr8.o mdsio_findunit.o md
sio_gl.o mdsio_gl_slice.o mdsio_read_rl_vec.o mdsio_read_rs_vec.o 
mdsio_readfield.o mdsio_readfield_loc.o mdsio_readtile
.o mdsio_readvector.o mdsio_reclen.o mdsio_seg4torl.o mdsio_seg4tors.o 
mdsio_seg8torl.o mdsio_seg8tors.o mdsio_slice.o m
dsio_slice_loc.o mdsio_write_rl_vec.o mdsio_write_rs_vec.o 
mdsio_writefield.o mdsio_writefield_loc.o mdsio_writelocal.o
mdsio_writemeta.o mdsio_writetile.o mdsio_writevector.o 
mdswritefield_new.o mom_calc_absvort3.o mom_calc_hdiv.o mom_calc
_hfacz.o mom_calc_ke.o mom_calc_relvort3.o mom_calc_strain.o 
mom_calc_tension.o mom_hdissip.o mom_u_bottomdrag.o mom_u_r
viscflux.o mom_u_sidedrag.o mom_v_bottomdrag.o mom_v_rviscflux.o 
mom_v_sidedrag.o mom_calc_rtrans.o mom_fluxform.o mom_u
_adv_uu.o mom_u_adv_vu.o mom_u_adv_wu.o mom_u_coriolis.o 
mom_u_coriolis_nh.o mom_u_del2u.o mom_u_metric_cylinder.o mom_u
_metric_nh.o mom_u_metric_sphere.o mom_u_xviscflux.o mom_u_yviscflux.o 
mom_v_adv_uv.o mom_v_adv_vv.o mom_v_adv_wv.o mom_
v_coriolis.o mom_v_del2v.o mom_v_metric_cylinder.o mom_v_metric_nh.o 
mom_v_metric_sphere.o mom_v_xviscflux.o mom_v_yvisc
flux.o mom_vecinv.o mom_vi_coriolis.o mom_vi_del2uv.o mom_vi_hdissip.o 
mom_vi_u_coriolis.o mom_vi_u_coriolis_c4.o mom_vi
_u_grad_ke.o mom_vi_u_vertshear.o mom_vi_v_coriolis.o 
mom_vi_v_coriolis_c4.o mom_vi_v_grad_ke.o mom_vi_v_vertshear.o mon
_advcfl.o mon_advcflw.o mon_advcflw2.o mon_init.o mon_ke.o mon_out.o 
mon_printstats_rl.o mon_printstats_rs.o mon_set_iou
nit.o mon_set_pref.o mon_solution.o mon_stats_latbnd_rl.o 
mon_stats_rl.o mon_stats_rs.o mon_surfcor.o mon_vort3.o mon_wr
itestats_rl.o monitor.o get_write_global_fld.o read_fld_xy_rl.o 
read_fld_xy_rs.o read_fld_xyz_rl.o read_fld_xyz_rs.o set
_write_global_fld.o write_fld_xy_rl.o write_fld_xy_rs.o 
write_fld_xyz_rl.o write_fld_xyz_rs.o write_local_rl.o write_loc
al_rs.o timeave_cumul_1k.o timeave_cumul_1k1t.o timeave_cumul_1t.o 
timeave_cumul_1vfc.o timeave_cumul_2v.o timeave_cumul
_2vfc.o timeave_cumul_dif_1t.o timeave_cumul_fc.o timeave_cumulate.o 
timeave_init_fixed.o timeave_norma_1k.o timeave_nor
ma_2v.o timeave_normaliz.o timeave_reset.o timeave_reset_1k.o 
timeave_statv_write.o timeave_statvars.o timeave_surf_flux
.o bar2.o barrier.o check_threads.o comm_stats.o dfile.o 
different_multiple.o eeboot.o eeboot_minimal.o eedata_example.o
  eedie.o eeintro_msg.o eeset_parms.o eewrite_eeenv.o exch_cycle_ebl.o 
exch_init.o exch_jam.o exch_r4.o exch_r4_cube.o ex
ch_r4_recv_get_x.o exch_r4_recv_get_y.o exch_r4_send_put_x.o 
exch_r4_send_put_y.o exch_r8.o exch_r8_cube.o exch_r8_recv_
get_x.o exch_r8_recv_get_y.o exch_r8_send_put_x.o exch_r8_send_put_y.o 
exch_rl.o exch_rl_cube.o exch_rl_recv_get_x.o exc
h_rl_recv_get_y.o exch_rl_send_put_x.o exch_rl_send_put_y.o exch_rs.o 
exch_rs_cube.o exch_rs_recv_get_x.o exch_rs_recv_g
et_y.o exch_rs_send_put_x.o exch_rs_send_put_y.o exch_uv_agrid_xy_r4.o 
exch_uv_agrid_xy_r8.o exch_uv_agrid_xy_rl.o exch_
uv_agrid_xy_rs.o exch_uv_agrid_xyz_r4.o exch_uv_agrid_xyz_r8.o 
exch_uv_agrid_xyz_rl.o exch_uv_agrid_xyz_rs.o exch_uv_r4_
cube.o exch_uv_r8_cube.o exch_uv_rl_cube.o exch_uv_rs_cube.o 
exch_uv_xy_r4.o exch_uv_xy_r8.o exch_uv_xy_rl.o exch_uv_xy_
rs.o exch_uv_xyz_r4.o exch_uv_xyz_r8.o exch_uv_xyz_rl.o 
exch_uv_xyz_rs.o exch_xy_r4.o exch_xy_r8.o exch_xy_rl.o exch_xy_
rs.o exch_xyz_r4.o exch_xyz_r8.o exch_xyz_rl.o exch_xyz_rs.o 
exch_z_r4_cube.o exch_z_r8_cube.o exch_z_rl_cube.o exch_z_r
s_cube.o exch_z_xy_r4.o exch_z_xy_r8.o exch_z_xy_rl.o exch_z_xy_rs.o 
exch_z_xyz_r4.o exch_z_xyz_r8.o exch_z_xyz_rl.o exc
h_z_xyz_rs.o fill_cs_corner_tr_rl.o fill_cs_corner_uv_rs.o 
fool_the_compiler.o gather_2d.o global_max.o global_sum.o gsu
m.o gsum_jam.o ini_communication_patterns.o ini_jam.o ini_procs.o 
ini_threading_environment.o main.o memsync.o nml_filte
r.o nml_set_terminator.o print.o scatter_2d.o utils.o 
adams_bashforth2.o askparam.o calc_3d_diffusivity.o calc_buoyancy.
o calc_common_factors.o calc_diffusivity.o calc_div_ghat.o 
calc_grad_phi_hyd.o calc_grad_phi_surf.o calc_gs.o calc_gt.o
calc_gw.o calc_ivdc.o calc_phi_hyd.o calc_r_star.o calc_surf_dr.o 
calc_viscosity.o cg2d.o cg3d.o checkpoint.o config_che
ck.o config_summary.o convect.o convective_adjustment.o 
convective_adjustment_ini.o convective_weights.o convectively_mi
xtracer.o correction_step.o cycle_tracer.o diags_phi_hyd.o 
diags_phi_rlow.o do_atmospheric_phys.o do_fields_blocking_exc
hanges.o do_gterm_blocking_exchanges.o do_oceanic_phys.o 
do_stagger_fields_exchanges.o do_statevars_diags.o do_the_model
_io.o dynamics.o external_fields_load.o external_forcing.o 
external_forcing_surf.o find_alpha.o find_rho.o forward_step.
o freesurf_rescale_g.o freeze.o freeze_surface.o getcon.o grad_sigma.o 
impldiff.o ini_cartesian_grid.o ini_cg2d.o ini_cg
3d.o ini_cori.o ini_curvilinear_grid.o ini_cylinder.o ini_depths.o 
ini_dynvars.o ini_eos.o ini_fields.o ini_forcing.o in
i_grid.o ini_gw.o ini_linear_phisurf.o ini_masks_etc.o ini_mixing.o 
ini_model_io.o ini_p_ground.o ini_parms.o ini_pnh.o
ini_pressure.o ini_psurf.o ini_salt.o ini_spherical_polar_grid.o 
ini_theta.o ini_vel.o ini_vertical_grid.o initialise_fi
xed.o initialise_varia.o integr_continuity.o integrate_for_w.o 
modeldata_example.o mom_u_implicit_r.o mom_v_implicit_r.o
  momentum_correction_step.o open_copy_data_file.o packages_boot.o 
packages_check.o packages_check_error.o packages_init_
fixed.o packages_init_variables.o packages_readparms.o 
packages_write_pickup.o plot_field.o port_rand.o pressure_for_eos
.o quasihydrostaticterms.o read_write.o read_write_rec.o set_defaults.o 
solve_for_pressure.o solve_pentadiagonal.o solve
_tridiagonal.o state_summary.o swfrac.o the_correction_step.o 
the_main_loop.o the_model_main.o thermodynamics.o timestep
.o timestep_tracer.o tracers_correction_step.o update_cg2d.o 
update_etah.o update_r_star.o update_surf_dr.o write_grid.o
  write_myfield.o write_state.o ptwrapper.o tim.o timer_stats.o  -lessl


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: makedepend.txt
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20051115/8ff424ff/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mstewart_MPI
Type: application/octet-stream
Size: 430 bytes
Desc: not available
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20051115/8ff424ff/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: genmake.txt
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20051115/8ff424ff/attachment-0001.txt>
-------------- next part --------------


On Nov 8, 2005, at 8:44 PM, Ed Hill wrote:

> On Tue, 2005-11-08 at 14:22 -0800, jeff polton wrote:
>> Ed,
>> Commenting out DEFINE='-DWORDLENGTH=4' does improve things.
>> Here's what happens now:
>> % ../../../tools/genmake2 -make=gmake -mods=../code
>> -of=../../../compile/code/mstewart
>
> Hi Jeff,
>
> Google-ing for the terms:
>
>   "command option" "contains an incorrect subargument"
>
> turned up at least part of your problem.  Some of the tests inside
> genmake2 unnecessarily passed the $DEFINES as command-line arguments to
> the Fortran compiler.  Most compilers can handle that syntax but
> apparently your IBM compiler can't.
>
> So I just checked in a fix to genmake2.  Could you please do the
> following:
>
>   1) get a copy of the *very* latest genmake2 from our CVS
>
>   2) uncomment (that is, make active like it originally was)
>      the DEFINES='-DWORDLENGTH=4' line within your optfile
>
>   3) re-run the entire build process from scratch:
>        genmake2 ...
>        make depend
>        make
>
> And if that produces more errors then please send them here and we'll
> keep working on it.  But I know that we've fixed at least one problem
> that you've encountered and thats encouraging.
>
> Ed
>
> -- 
> Edward H. Hill III, PhD
> office:  MIT Dept. of EAPS;  Rm 54-1424;  77 Massachusetts Ave.
>              Cambridge, MA 02139-4307
> emails:  eh3 at mit.edu                ed at eh3.com
> URLs:    http://web.mit.edu/eh3/    http://eh3.com/
> phone:   617-253-0098
> fax:     617-253-4464
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
>


More information about the MITgcm-support mailing list