compilation aborted for ../pair_eam_opt.cpp (code 2)

Dear lammps users,

I am trying to compile lammps on HPC. I need manybody and opt packages installed. However, when I try to compile it, it aborted.

I would appreciate any comments.

Regards,
Leila

mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/bond_zero.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_rebo.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/npair_full_multi.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/lattice.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_msd_chunk.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/nstencil_half_multi_2d_newton_tri.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/write_dump.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_nvt_sllod.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_rdf.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_ave_histo.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_tmd.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/input.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_lj96_cut.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/npair_full_bin_atomonly.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/nbin.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/npair_half_bin_atomonly_newton.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/neigh_list.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/region_plane.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_centro_atom.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/improper.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/random_mars.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_buck_coul_cut.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/force.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/ntopo_bond_partial.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_wall_region.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/min_fire.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/imbalance.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/atom_vec_body.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/memory.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_lj_expand.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_ave_correlate.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_temp_sphere.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_wall.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/library.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_nve.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/npair_skip_respa.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/nstencil_half_ghost_bin_2d_newtoff.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_gyration_chunk.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/npair_half_size_bin_newton.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_lj_gromacs_coul_gromacs.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_deprecated.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_spring_self.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_hybrid.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_group.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_angle.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_shear_history.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/atom_vec_line.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_pressure.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/dump.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_gw_zbl.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_pe_atom.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_wall_lj1043.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_beck.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_zbl.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/displace_atoms.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/npair_skip_size_off2on.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/min_hftn.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_pair_local.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_zero.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_heat_flux.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_temp_region.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_qeq_comb.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/imbalance_var.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/dihedral_hybrid.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_coul_dsf.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/npair_full_nsq_ghost.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_box_relax.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/nstencil_half_bin_2d_newton.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/read_restart.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_store.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_group_group.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_msd.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/dump_custom.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/nstencil_half_ghost_bin_3d_newtoff.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/verlet.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/reader_native.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_spring.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/universe.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_born_coul_wolf.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/reader.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_dipole_chunk.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_dpd.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/thermo.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_torque_chunk.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/improper_zero.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_contact_atom.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_nh.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_morse.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/region_intersect.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/region_block.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_langevin.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_gw.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_angmom_chunk.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/npair_halffull_newtoff.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/angle_hybrid.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/npair_full_bin.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/nstencil_half_bin_2d_newton_tri.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_tersoff_mod.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/fix_planeforce.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/neigh_request.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_slice.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/npair_half_bin_newtoff.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/main.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/ntopo_angle_template.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/compute_reduce.cpp
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c …/pair_eam_opt.cpp
…/pair_eam_opt.cpp(79): error: expected a “;”
double* _noalias coeff;
^

…/pair_eam_opt.cpp(91): error: “restrict” has already been declared in the current scope
double** _noalias x = atom->x;
^

…/pair_eam_opt.cpp(91): error: expected a “;”
double** _noalias x = atom->x;
^

…/pair_eam_opt.cpp(92): error: “restrict” has already been declared in the current scope
double** _noalias f = atom->f;
^

…/pair_eam_opt.cpp(92): error: expected a “;”
double** _noalias f = atom->f;
^

…/pair_eam_opt.cpp(93): error: “restrict” has already been declared in the current scope
int* _noalias type = atom->type;
^

…/pair_eam_opt.cpp(93): error: expected a “;”
int* _noalias type = atom->type;
^

…/pair_eam_opt.cpp(96): error: “restrict” has already been declared in the current scope
vec3_t* _noalias xx = (vec3_t*)x[0];
^

…/pair_eam_opt.cpp(96): error: expected a “;”
vec3_t* _noalias xx = (vec3_t*)x[0];
^

…/pair_eam_opt.cpp(97): error: “restrict” has already been declared in the current scope
vec3_t* _noalias ff = (vec3_t*)f[0];
^

…/pair_eam_opt.cpp(97): error: expected a “;”
vec3_t* _noalias ff = (vec3_t*)f[0];
^

…/pair_eam_opt.cpp(105): error: “restrict” has already been declared in the current scope
int* _noalias ilist = list->ilist;
^

…/pair_eam_opt.cpp(105): error: expected a “;”
int* _noalias ilist = list->ilist;
^

…/pair_eam_opt.cpp(106): error: “restrict” has already been declared in the current scope
int** _noalias firstneigh = list->firstneigh;
^

…/pair_eam_opt.cpp(106): error: expected a “;”
int** _noalias firstneigh = list->firstneigh;
^

…/pair_eam_opt.cpp(107): error: “restrict” has already been declared in the current scope
int* _noalias numneigh = list->numneigh;
^

…/pair_eam_opt.cpp(107): error: expected a “;”
int* _noalias numneigh = list->numneigh;
^

…/pair_eam_opt.cpp(112): error: “restrict” has already been declared in the current scope
fast_alpha_t* _noalias fast_alpha =
^

…/pair_eam_opt.cpp(112): error: expected a “;”
fast_alpha_t* _noalias fast_alpha =
^

…/pair_eam_opt.cpp(115): error: expected a “;”
fast_alpha_t* _noalias tab = &fast_alpha[i*ntypes*nr+j*nr];
^

…/pair_eam_opt.cpp(118): error: identifier “tab” is undefined
tab[m].rhor0i = rhor_spline[type2rhor[i+1][j+1]][m][6];
^

…/pair_eam_opt.cpp(126): error: identifier “tab” is undefined
tab[m].rhor0j = rhor_spline[type2rhor[j+1][i+1]][m][6];
^

…/pair_eam_opt.cpp(133): error: “restrict” has already been declared in the current scope
fast_alpha_t* _noalias tabeight = fast_alpha;
^

…/pair_eam_opt.cpp(133): error: expected a “;”
fast_alpha_t* _noalias tabeight = fast_alpha;
^

…/pair_eam_opt.cpp(135): error: “restrict” has already been declared in the current scope
fast_gamma_t* _noalias fast_gamma =
^

…/pair_eam_opt.cpp(135): error: expected a “;”
fast_gamma_t* _noalias fast_gamma =
^

…/pair_eam_opt.cpp(138): error: expected a “;”
fast_gamma_t* _noalias tab = &fast_gamma[i*ntypes*nr+j*nr];
^

…/pair_eam_opt.cpp(141): error: identifier “tab” is undefined
tab[m].rhor4i = rhor_spline[type2rhor[i+1][j+1]][m][2];
^

…/pair_eam_opt.cpp(148): error: identifier “tab” is undefined
tab[m].rhor4j = rhor_spline[type2rhor[j+1][i+1]][m][2];
^

…/pair_eam_opt.cpp(156): error: identifier “tab” is undefined
tab[m].z2r0 = z2r_spline[type2z2r[i+1][j+1]][m][6];
^

…/pair_eam_opt.cpp(166): error: “restrict” has already been declared in the current scope
fast_gamma_t* _noalias tabss = fast_gamma;
^

…/pair_eam_opt.cpp(166): error: expected a “;”
fast_gamma_t* _noalias tabss = fast_gamma;
^

…/pair_eam_opt.cpp(181): error: identifier “ilist” is undefined
i = ilist[ii];
^

…/pair_eam_opt.cpp(182): error: identifier “xx” is undefined
double xtmp = xx[i].x;
^

…/pair_eam_opt.cpp(185): error: identifier “type” is undefined
itype = type[i] - 1;
^

…/pair_eam_opt.cpp(186): error: expected a “;”
int* _noalias jlist = firstneigh[i];
^

…/pair_eam_opt.cpp(187): error: identifier “numneigh” is undefined
jnum = numneigh[i];
^

…/pair_eam_opt.cpp(190): error: “restrict” has already been declared in the current scope
fast_alpha_t* _noalias tabeighti = &tabeight[itypentypesnr];
^

…/pair_eam_opt.cpp(190): error: expected a “;”
fast_alpha_t* _noalias tabeighti = &tabeight[itypentypesnr];
^

…/pair_eam_opt.cpp(193): error: identifier “jlist” is undefined
j = jlist[jj];
^

…/pair_eam_opt.cpp(208): error: identifier “tabeighti” is undefined
fast_alpha_t& a = tabeighti[jtype*nr+m];
^

…/pair_eam_opt.cpp(214): error: identifier “tabeighti” is undefined
fast_alpha_t& a = tabeighti[jtype*nr+nr1];
^

…/pair_eam_opt.cpp(235): error: identifier “ilist” is undefined
i = ilist[ii];
^

…/pair_eam_opt.cpp(240): error: identifier “type” is undefined
coeff = frho_spline[type2frho[type[i]]][m];
^

…/pair_eam_opt.cpp(240): error #547: nonstandard form for taking the address of a member function
coeff = frho_spline[type2frho[type[i]]][m];
^

…/pair_eam_opt.cpp(240): error: expression must be a modifiable lvalue
coeff = frho_spline[type2frho[type[i]]][m];
^

…/pair_eam_opt.cpp(241): error #547: nonstandard form for taking the address of a member function
fp[i] = (coeff[0]*p + coeff[1])*p + coeff[2];
^

…/pair_eam_opt.cpp(241): error: expression must have pointer-to-object type
fp[i] = (coeff[0]*p + coeff[1])*p + coeff[2];
^

…/pair_eam_opt.cpp(241): error #547: nonstandard form for taking the address of a member function
fp[i] = (coeff[0]*p + coeff[1])*p + coeff[2];
^

…/pair_eam_opt.cpp(241): error: expression must have pointer-to-object type
fp[i] = (coeff[0]*p + coeff[1])*p + coeff[2];
^

…/pair_eam_opt.cpp(241): error #547: nonstandard form for taking the address of a member function
fp[i] = (coeff[0]*p + coeff[1])*p + coeff[2];
^

…/pair_eam_opt.cpp(241): error: expression must have pointer-to-object type
fp[i] = (coeff[0]*p + coeff[1])*p + coeff[2];
^

…/pair_eam_opt.cpp(243): error #547: nonstandard form for taking the address of a member function
double phi = ((coeff[3]*p + coeff[4])*p + coeff[5])*p + coeff[6];
^

…/pair_eam_opt.cpp(243): error: expression must have pointer-to-object type
double phi = ((coeff[3]*p + coeff[4])*p + coeff[5])*p + coeff[6];
^

…/pair_eam_opt.cpp(243): error #547: nonstandard form for taking the address of a member function
double phi = ((coeff[3]*p + coeff[4])*p + coeff[5])*p + coeff[6];
^

…/pair_eam_opt.cpp(243): error: expression must have pointer-to-object type
double phi = ((coeff[3]*p + coeff[4])*p + coeff[5])*p + coeff[6];
^

…/pair_eam_opt.cpp(243): error #547: nonstandard form for taking the address of a member function
double phi = ((coeff[3]*p + coeff[4])*p + coeff[5])*p + coeff[6];
^

…/pair_eam_opt.cpp(243): error: expression must have pointer-to-object type
double phi = ((coeff[3]*p + coeff[4])*p + coeff[5])*p + coeff[6];
^

…/pair_eam_opt.cpp(243): error #547: nonstandard form for taking the address of a member function
double phi = ((coeff[3]*p + coeff[4])*p + coeff[5])*p + coeff[6];
^

…/pair_eam_opt.cpp(243): error: expression must have pointer-to-object type
double phi = ((coeff[3]*p + coeff[4])*p + coeff[5])*p + coeff[6];
^

…/pair_eam_opt.cpp(259): error: identifier “ilist” is undefined
i = ilist[ii];
^

…/pair_eam_opt.cpp(260): error: identifier “xx” is undefined
double xtmp = xx[i].x;
^

…/pair_eam_opt.cpp(263): error: identifier “type” is undefined
int itype1 = type[i] - 1;
^

…/pair_eam_opt.cpp(264): error: expected a “;”
int* _noalias jlist = firstneigh[i];
^

…/pair_eam_opt.cpp(265): error: identifier “numneigh” is undefined
jnum = numneigh[i];
^

…/pair_eam_opt.cpp(271): error: “restrict” has already been declared in the current scope
fast_gamma_t* _noalias tabssi = &tabss[itype1ntypesnr];
^

…/pair_eam_opt.cpp(271): error: expected a “;”
fast_gamma_t* _noalias tabssi = &tabss[itype1ntypesnr];
^

…/pair_eam_opt.cpp(272): error: “restrict” has already been declared in the current scope
double* _noalias scale_i = scale[itype1+1]+1;
^

…/pair_eam_opt.cpp(272): error: expected a “;”
double* _noalias scale_i = scale[itype1+1]+1;
^

…/pair_eam_opt.cpp(275): error: identifier “jlist” is undefined
j = jlist[jj];
^

…/pair_eam_opt.cpp(292): error: identifier “tabssi” is undefined
fast_gamma_t& a = tabssi[jtype*nr+m];
^

…/pair_eam_opt.cpp(300): error: identifier “tabssi” is undefined
fast_gamma_t& a = tabssi[jtype*nr+nr1];
^

…/pair_eam_opt.cpp(322): error: identifier “scale_i” is undefined
double fpair = -scale_i[jtype]psiprecip;
^

…/pair_eam_opt.cpp(328): error: identifier “ff” is undefined
ff[j].x -= delx*fpair;
^

…/pair_eam_opt.cpp(340): error: identifier “ff” is undefined
ff[i].x += tmpfx;
^

…/pair_eam_opt.cpp(345): error: identifier “fast_alpha” is undefined
free(fast_alpha); fast_alpha = 0;
^

…/pair_eam_opt.cpp(346): error: identifier “fast_gamma” is undefined
free(fast_gamma); fast_gamma = 0;
^

compilation aborted for …/pair_eam_opt.cpp (code 2)
make[1]: *** [pair_eam_opt.o] Error 2
make[1]: Leaving directory `/gpfs_common/share02/spatala/Leila_lammps/lammps/lammps-stable_11Aug2017/src/Obj_mpi’
make: *** [mpi] Error 2

I could compile it. Since I had intel compiler, for opt package I had to ass “-restrict” to makefile.mpi.

Thanks
Leila

I could compile it. Since I had intel compiler, for opt package I had to
ass "-restrict" to makefile.mpi.

​kudos for figuring it out on your own *and* telling people about it. this
should have earned you some good karma.
if only more people asking questions on this list would show this kind of
initiative...

axel.​