[lammps-users] compilance LAMMPS w/h MEAM lib problem

Dear all,

I want to compile LAMMPS with MEAM library.
But I don’t know how to sole those errors.
Here is a part of my errors

initpar.c:(.text+0xe97): undefined reference to __hpf_init_consts' ../../lib/meam/libmeam.a(meam_setup_done.o): In function alloyparams_’:
meam_setup_done.F:(.text+0x3e7): undefined reference to ftn_str_copy' ../../lib/meam/libmeam.a(meam_setup_done.o): In function compute_pair_meam_’:
meam_setup_done.F:(.text+0xfe8): undefined reference to __mth_i_dpowi' meam_setup_done.F:(.text+0x1032): undefined reference to __mth_i_dpowi’
…/…/lib/meam/libmeam.a(meam_setup_done.o): In function phi_meam_': meam_setup_done.F:(.text+0x12ba): undefined reference to ftn_strcmp’
meam_setup_done.F:(.text+0x143e): undefined reference to ftn_strcmp' meam_setup_done.F:(.text+0x147a): undefined reference to ftn_str_copy’
meam_setup_done.F:(.text+0x1495): undefined reference to ftn_strcmp' meam_setup_done.F:(.text+0x18ec): undefined reference to __fmth_i_dlog’
meam_setup_done.F:(.text+0x1946): undefined reference to __fmth_i_dlog' meam_setup_done.F:(.text+0x19dd): undefined reference to ftn_strcmp’
meam_setup_done.F:(.text+0x1a19): undefined reference to ftn_str_copy' meam_setup_done.F:(.text+0x1a34): undefined reference to ftn_strcmp’
…/…/lib/meam/libmeam.a(meam_setup_done.o): In function get_shpfcn_': meam_setup_done.F:(.text+0x1b49): undefined reference to ftn_strcmp’
meam_setup_done.F:(.text+0x1b64): undefined reference to ftn_strcmp' meam_setup_done.F:(.text+0x1b7f): undefined reference to ftn_strcmp’
meam_setup_done.F:(.text+0x1bbe): undefined reference to ftn_strcmp' ../../lib/meam/libmeam.a(meam_setup_done.o):meam_setup_done.F:(.text+0x1c03): more undefined references to ftn_strcmp’ follow
…/…/lib/meam/libmeam.a(meam_setup_done.o): In function get_zij2_': meam_setup_done.F:(.text+0x20f2): undefined reference to __mth_i_dpowi’
…/…/lib/meam/libmeam.a(meam_setup_done.o): In function get_densref_': meam_setup_done.F:(.text+0x21d6): undefined reference to __fmth_i_dexp’
meam_setup_done.F:(.text+0x220f): undefined reference to __fmth_i_dexp' meam_setup_done.F:(.text+0x2248): undefined reference to __fmth_i_dexp’
meam_setup_done.F:(.text+0x2281): undefined reference to __fmth_i_dexp' meam_setup_done.F:(.text+0x22b8): undefined reference to fmth_i_dexp’
…/…/lib/meam/libmeam.a(meam_setup_done.o):meam_setup_done.F:(.text+0x22f0): more undefined references to __fmth_i_dexp' follow ../../lib/meam/libmeam.a(meam_setup_done.o): In function get_densref
’:
meam_setup_done.F:(.text+0x239e): undefined reference to ftn_str_copy' meam_setup_done.F:(.text+0x2406): undefined reference to ftn_strcmp’
meam_setup_done.F:(.text+0x244f): undefined reference to ftn_strcmp' meam_setup_done.F:(.text+0x2498): undefined reference to ftn_strcmp’
meam_setup_done.F:(.text+0x24e1): undefined reference to ftn_strcmp' meam_setup_done.F:(.text+0x2567): undefined reference to ftn_strcmp’
…/…/lib/meam/libmeam.a(meam_setup_done.o):meam_setup_done.F:(.text+0x25ea): more undefined references to ftn_strcmp' follow ../../lib/meam/libmeam.a(meam_setup_done.o): In function get_densref
’:
meam_setup_done.F:(.text+0x2849): undefined reference to __fmth_i_dexp' meam_setup_done.F:(.text+0x287e): undefined reference to __fmth_i_dexp’
…/…/lib/meam/libmeam.a(meam_setup_done.o): In function zbl_': meam_setup_done.F:(.text+0x2910): undefined reference to __fmth_i_rpowr’
meam_setup_done.F:(.text+0x292b): undefined reference to __fmth_i_rpowr' meam_setup_done.F:(.text+0x2982): undefined reference to __fmth_i_dexp’
…/…/lib/meam/libmeam.a(meam_setup_done.o): In function erose_': meam_setup_done.F:(.text+0x2a51): undefined reference to __fmth_i_dexp’
…/…/lib/meam/libmeam.a(meam_setup_done.o): In function interpolate_meam_': meam_setup_done.F:(.text+0x2b30): undefined reference to __c_mcopy8’
…/…/lib/meam/libmeam.a(meam_setup_global.o): In function meam_setup_global_': meam_setup_global.F:(.text+0x23c): undefined reference to ftn_strcmp’
meam_setup_global.F:(.text+0x27d): undefined reference to ftn_strcmp' meam_setup_global.F:(.text+0x2c6): undefined reference to ftn_strcmp’
meam_setup_global.F:(.text+0x2fa): undefined reference to ftn_strcmp' meam_setup_global.F:(.text+0x32c): undefined reference to ftn_strcmp’
…/…/lib/meam/libmeam.a(meam_dens_init.o): In function calc_rho1_': meam_dens_init.F:(.text+0x9c3): undefined reference to __fmth_i_dexp’
meam_dens_init.F:(.text+0xa00): undefined reference to __fmth_i_dexp' meam_dens_init.F:(.text+0xa3d): undefined reference to __fmth_i_dexp’
meam_dens_init.F:(.text+0xa7a): undefined reference to __fmth_i_dexp' meam_dens_init.F:(.text+0xab6): undefined reference to _fmth_i_dexp’
…/…/lib/meam/libmeam.a(meam_dens_init.o):meam_dens_init.F:(.text+0xaf5): more undefined references to __fmth_i_dexp' follow ../../lib/meam/libmeam.a(meam_dens_final.o): In function meam_dens_final
’:
meam_dens_final.F:(.text+0x5d5): undefined reference to __fmth_i_dlog' meam_dens_final.F:(.text+0x60b): undefined reference to _fmth_i_dlog’
meam_dens_final.F:(.text+0x638): undefined reference to __fmth_i_dlog' ../../lib/meam/libmeam.a(meam_dens_final.o): In function g_gam
’:
meam_dens_final.F:(.text+0x735): undefined reference to __fmth_i_dpowd' meam_dens_final.F:(.text+0x792): undefined reference to _fmth_i_dexp’
meam_dens_final.F:(.text+0x7b6): undefined reference to __fmth_i_dexp' ../../lib/meam/libmeam.a(meam_dens_final.o): In function dg_gam
’:
meam_dens_final.F:(.text+0x85b): undefined reference to __fmth_i_dpowd' meam_dens_final.F:(.text+0x902): undefined reference to _fmth_i_dexp’
meam_dens_final.F:(.text+0x93e): undefined reference to __fmth_i_dexp' ../../lib/meam/libmeam.a(meam_force.o): In function meam_force
’:
meam_force.F:(.text+0x492): undefined reference to __fmth_i_dexp' meam_force.F:(.text+0x4fa): undefined reference to __fmth_i_dexp’
meam_force.F:(.text+0x55b): undefined reference to __fmth_i_dexp' ../../lib/meam/libmeam.a(meam_force.o):meam_force.F:(.text+0x5bc): more undefined references to __fmth_i_dexp’ follow
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(error.o): In function __hpfio_error': error.c:(.text+0x1eb): undefined reference to __pgio_stderr’
error.c:(.text+0x234): undefined reference to __pgio_stderr' error.c:(.text+0x276): undefined reference to __pgio_stderr’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(error.o): In function __hpfio_eoferr': error.c:(.text+0x3e0): undefined reference to __pgio_stderr’
error.c:(.text+0x485): undefined reference to __pgio_stderr' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(error.o):error.c:(.text+0x52b): more undefined references to __pgio_stderr’ follow
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(error.o): In function hpfio_init': error.c:(.text+0x7da): undefined reference to __pgio_stdin’
error.c:(.text+0x866): undefined reference to __pgio_stdout' error.c:(.text+0x8f2): undefined reference to __pgio_stdin’
error.c:(.text+0x97e): undefined reference to __pgio_stdout' error.c:(.text+0xa0a): undefined reference to __pgio_stderr’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(ldwrite.o): In function write_item': ldwrite.c:(.text+0x690): undefined reference to __pgio_fwrite’
ldwrite.c:(.text+0x6db): undefined reference to __pgio_fwrite' ldwrite.c:(.text+0x72e): undefined reference to __pgio_fwrite’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(ldwrite.o): In function write_record': ldwrite.c:(.text+0x78e): undefined reference to __pgio_fwrite’
ldwrite.c:(.text+0x834): undefined reference to __pgio_fwrite' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(ldwrite.o): In function write_item’:
ldwrite.c:(.text+0x6ad): undefined reference to __pgio_errno' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(ldwrite.o): In function write_record’:
ldwrite.c:(.text+0x7e8): undefined reference to __pgio_errno' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(utils.o): In function _hpfio_rwinit’:
utils.c:(.text+0xde): undefined reference to pghpf_0_' utils.c:(.text+0xeb): undefined reference to pghpf_0

utils.c:(.text+0x279): undefined reference to __pgio_errno' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(utils.o): In function __hpfio_zeropad’:
utils.c:(.text+0x4cb): undefined reference to __pgio_fwrite' utils.c:(.text+0x4fc): undefined reference to __pgio_fwrite’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(utils.o): In function __hpfio_swap_bytes': utils.c:(.text+0x5b6): undefined reference to __hpf_shifts’
utils.c:(.text+0x650): undefined reference to __hpf_shifts' utils.c:(.text+0x673): undefined reference to __hpf_shifts’
utils.c:(.text+0x67b): undefined reference to __hpf_shifts' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(utils.o): In function __hpfio_trunc’:
utils.c:(.text+0x6b2): undefined reference to __pgio_getfd' utils.c:(.text+0x6f2): undefined reference to __pgio_errno’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(utils.o): In function __hpfio_zeropad': utils.c:(.text+0x4dc): undefined reference to __pgio_errno’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function allhdr': allo.c:(.text+0xc): undefined reference to _mp_p’
allo.c:(.text+0xae): undefined reference to _mp_v' allo.c:(.text+0xc4): undefined reference to __pgi_abort’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function __hpf_ptr_aligned': allo.c:(.text+0x106): undefined reference to hpf_shifts’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function __hpf_ptr_offset': allo.c:(.text+0x142): undefined reference to pghpf_0

allo.c:(.text+0x14b): undefined reference to pghpf_0_' allo.c:(.text+0x15d): undefined reference to pghpf_0

allo.c:(.text+0x166): undefined reference to pghpf_0_' allo.c:(.text+0x191): undefined reference to hpf_shifts’
allo.c:(.text+0x1bc): undefined reference to pghpf_0_' allo.c:(.text+0x1c5): undefined reference to pghpf_0

/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function pghpf_ptr_offset': allo.c:(.text+0x208): undefined reference to pghpf_0

allo.c:(.text+0x211): undefined reference to pghpf_0_' allo.c:(.text+0x223): undefined reference to __hpf_shifts’
allo.c:(.text+0x235): undefined reference to pghpf_0_' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function hpf_alloc’:
allo.c:(.text+0x2a3): undefined reference to pghpf_0_' allo.c:(.text+0x2ac): undefined reference to pghpf_0

allo.c:(.text+0x2c2): undefined reference to pghpf_0_' allo.c:(.text+0x2cd): undefined reference to pghpf_0

/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o):allo.c:(.text+0x2e4): more undefined references to pghpf_0_' follow /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function __hpf_alloc’:
allo.c:(.text+0x32d): undefined reference to _mp_p' allo.c:(.text+0x384): undefined reference to _mp_v’
allo.c:(.text+0x3db): undefined reference to __hpf_shifts' allo.c:(.text+0x417): undefined reference to _mp_p’
allo.c:(.text+0x463): undefined reference to _mp_v' allo.c:(.text+0x4d8): undefined reference to mp_bcs_stdio’
allo.c:(.text+0x4f1): undefined reference to _mp_ecs_stdio' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function hpf_kalloc’:
allo.c:(.text+0x5f7): undefined reference to pghpf_0_' allo.c:(.text+0x600): undefined reference to pghpf_0

allo.c:(.text+0x611): undefined reference to pghpf_0_' allo.c:(.text+0x61a): undefined reference to pghpf_0

allo.c:(.text+0x62b): undefined reference to pghpf_0_' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o):allo.c:(.text+0x634): more undefined references to pghpf_0
’ follow
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function __hpf_kalloc': allo.c:(.text+0x681): undefined reference to _mp_p’
allo.c:(.text+0x699): undefined reference to _mp_v' allo.c:(.text+0x6eb): undefined reference to __hpf_shifts’
allo.c:(.text+0x711): undefined reference to _mp_p' allo.c:(.text+0x754): undefined reference to _mp_v’
allo.c:(.text+0x7bf): undefined reference to _mp_bcs_stdio' allo.c:(.text+0x7d9): undefined reference to _mp_ecs_stdio’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function __hpf_allocated': allo.c:(.text+0x82b): undefined reference to _mp_p’
allo.c:(.text+0x86d): undefined reference to _mp_v' allo.c:(.text+0x87d): undefined reference to _mp_v’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function ftn_allocated': allo.c:(.text+0x8b1): undefined reference to __hpf_true_log’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function pgf90_allocated': allo.c:(.text+0x8d1): undefined reference to hpf_true_log’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function pgf90_kallocated': allo.c:(.text+0x8f2): undefined reference to hpf_true_log’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function pgf90_alloc': allo.c:(.text+0xa1a): undefined reference to pghpf_0

allo.c:(.text+0xa23): undefined reference to pghpf_0_' allo.c:(.text+0xa35): undefined reference to mp_p’
allo.c:(.text+0xa9b): undefined reference to pghpf_0_' allo.c:(.text+0xaa8): undefined reference to pghpf_0

allo.c:(.text+0xac7): undefined reference to _mp_p' allo.c:(.text+0xadc): undefined reference to mp_v’
allo.c:(.text+0xb2b): undefined reference to _mp_v' allo.c:(.text+0xb35): undefined reference to pghpf_0

/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function pgf90_kalloc': allo.c:(.text+0xbec): undefined reference to pghpf_0

allo.c:(.text+0xbf5): undefined reference to pghpf_0_' allo.c:(.text+0xc07): undefined reference to mp_p’
allo.c:(.text+0xc6e): undefined reference to pghpf_0_' allo.c:(.text+0xc7b): undefined reference to pghpf_0

allo.c:(.text+0xc9e): undefined reference to _mp_p' allo.c:(.text+0xcb3): undefined reference to mp_v’
allo.c:(.text+0xcff): undefined reference to _mp_v' allo.c:(.text+0xd09): undefined reference to pghpf_0

/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function __hpf_dealloc': allo.c:(.text+0xf47): undefined reference to pghpf_0

allo.c:(.text+0xf50): undefined reference to pghpf_0_' allo.c:(.text+0xf60): undefined reference to pghpf_0

allo.c:(.text+0xf69): undefined reference to pghpf_0_' allo.c:(.text+0xf79): undefined reference to _mp_p’
allo.c:(.text+0xfc9): undefined reference to _mp_v' allo.c:(.text+0xfe6): undefined reference to _mp_bcs_stdio’
allo.c:(.text+0xfff): undefined reference to _mp_ecs_stdio' allo.c:(.text+0x1029): undefined reference to _mp_v’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function pgf90_dealloc': allo.c:(.text+0x10a8): undefined reference to mp_p’
allo.c:(.text+0x10bd): undefined reference to _mp_v' allo.c:(.text+0x10d0): undefined reference to pghpf_0

allo.c:(.text+0x10d9): undefined reference to pghpf_0_' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function pgf90_alloc’:
allo.c:(.text+0xa80): undefined reference to _mp_v' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function pgf90_kalloc’:
allo.c:(.text+0xc53): undefined reference to _mp_v' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo.o): In function pgf90_dealloc’:
allo.c:(.text+0x1121): undefined reference to _mp_v' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(malloc.o): In function xmalloc’:
malloc.c:(.text+0x30c): undefined reference to __hpf_sbrk' malloc.c:(.text+0x322): undefined reference to __hpf_sbrk’
malloc.c:(.text+0x33e): undefined reference to __hpf_sbrk' malloc.c:(.text+0x45c): undefined reference to __hpf_sbrk’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(rw.o): In function __hpf_rrecvl': rw.c:(.text+0x54): undefined reference to __hpf_erecv’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(rw.o): In function __hpf_rsendl': rw.c:(.text+0xb4): undefined reference to __hpf_esend’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(rw.o): In function __hpf_rrecv': rw.c:(.text+0xc7): undefined reference to __hpf_size_of’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(rw.o): In function __hpf_rsend': rw.c:(.text+0xd7): undefined reference to __hpf_size_of’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(rw.o): In function __hpf_rbcstl': rw.c:(.text+0x174): undefined reference to __hpf_erecv’
rw.c:(.text+0x1ac): undefined reference to __hpf_esend' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(rw.o): In function __hpf_rbcst’:
rw.c:(.text+0x1c7): undefined reference to __hpf_size_of' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(version.o): In function __hpf_print_version’:
version.c:(.text+0x5): undefined reference to __pgio_stderr' version.c:(.text+0x3f): undefined reference to __pgio_stderr’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function allhdr': allo_i8.c:(.text+0xc): undefined reference to _mp_p’
allo_i8.c:(.text+0xae): undefined reference to _mp_v' allo_i8.c:(.text+0xc4): undefined reference to __pgi_abort’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function __hpf_ptr_aligned_i8': allo_i8.c:(.text+0x102): undefined reference to hpf_shifts’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function __hpf_ptr_offset_i8': allo_i8.c:(.text+0x142): undefined reference to pghpf_0

allo_i8.c:(.text+0x14b): undefined reference to pghpf_0_' allo_i8.c:(.text+0x15d): undefined reference to pghpf_0

allo_i8.c:(.text+0x166): undefined reference to pghpf_0_' allo_i8.c:(.text+0x190): undefined reference to hpf_shifts’
allo_i8.c:(.text+0x1bb): undefined reference to pghpf_0_' allo_i8.c:(.text+0x1c4): undefined reference to pghpf_0

/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function pghpf_ptr_offset_i8': allo_i8.c:(.text+0x208): undefined reference to pghpf_0

allo_i8.c:(.text+0x211): undefined reference to pghpf_0_' allo_i8.c:(.text+0x223): undefined reference to __hpf_shifts’
allo_i8.c:(.text+0x235): undefined reference to pghpf_0_' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function hpf_alloc_i8’:
allo_i8.c:(.text+0x2a3): undefined reference to pghpf_0_' allo_i8.c:(.text+0x2ac): undefined reference to pghpf_0

allo_i8.c:(.text+0x2c2): undefined reference to pghpf_0_' allo_i8.c:(.text+0x2cd): undefined reference to pghpf_0

/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o):allo_i8.c:(.text+0x2e4): more undefined references to pghpf_0_' follow /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function __hpf_alloc_i8’:
allo_i8.c:(.text+0x33e): undefined reference to _mp_p' allo_i8.c:(.text+0x397): undefined reference to _mp_v’
allo_i8.c:(.text+0x3eb): undefined reference to __hpf_shifts' allo_i8.c:(.text+0x426): undefined reference to _mp_p’
allo_i8.c:(.text+0x472): undefined reference to _mp_v' allo_i8.c:(.text+0x4e2): undefined reference to mp_bcs_stdio’
allo_i8.c:(.text+0x4fd): undefined reference to _mp_ecs_stdio' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function hpf_kalloc_i8’:
allo_i8.c:(.text+0x5f8): undefined reference to pghpf_0_' allo_i8.c:(.text+0x601): undefined reference to pghpf_0

allo_i8.c:(.text+0x612): undefined reference to pghpf_0_' allo_i8.c:(.text+0x61b): undefined reference to pghpf_0

allo_i8.c:(.text+0x62c): undefined reference to pghpf_0_' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o):allo_i8.c:(.text+0x635): more undefined references to pghpf_0
’ follow
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function __hpf_kalloc_i8': allo_i8.c:(.text+0x682): undefined reference to _mp_p’
allo_i8.c:(.text+0x69a): undefined reference to _mp_v' allo_i8.c:(.text+0x6ee): undefined reference to __hpf_shifts’
allo_i8.c:(.text+0x714): undefined reference to _mp_p' allo_i8.c:(.text+0x757): undefined reference to _mp_v’
allo_i8.c:(.text+0x7bc): undefined reference to _mp_bcs_stdio' allo_i8.c:(.text+0x7d6): undefined reference to _mp_ecs_stdio’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function __hpf_allocated_i8': allo_i8.c:(.text+0x82b): undefined reference to _mp_p’
allo_i8.c:(.text+0x86d): undefined reference to _mp_v' allo_i8.c:(.text+0x87d): undefined reference to _mp_v’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function ftn_allocated_i8': allo_i8.c:(.text+0x8b1): undefined reference to __hpf_true_log’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function pgf90_allocated_i8': allo_i8.c:(.text+0x8d1): undefined reference to hpf_true_log’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function pgf90_kallocated_i8': allo_i8.c:(.text+0x8f2): undefined reference to hpf_true_log’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function pgf90_alloc_i8': allo_i8.c:(.text+0xa1b): undefined reference to pghpf_0

allo_i8.c:(.text+0xa24): undefined reference to pghpf_0_' allo_i8.c:(.text+0xa36): undefined reference to mp_p’
allo_i8.c:(.text+0xa9a): undefined reference to pghpf_0_' allo_i8.c:(.text+0xaa7): undefined reference to pghpf_0

allo_i8.c:(.text+0xac7): undefined reference to _mp_p' allo_i8.c:(.text+0xadc): undefined reference to mp_v’
allo_i8.c:(.text+0xb28): undefined reference to _mp_v' allo_i8.c:(.text+0xb32): undefined reference to pghpf_0

/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function pgf90_kalloc_i8': allo_i8.c:(.text+0xbed): undefined reference to pghpf_0

allo_i8.c:(.text+0xbf6): undefined reference to pghpf_0_' allo_i8.c:(.text+0xc08): undefined reference to mp_p’
allo_i8.c:(.text+0xc6c): undefined reference to pghpf_0_' allo_i8.c:(.text+0xc79): undefined reference to pghpf_0

allo_i8.c:(.text+0xc99): undefined reference to _mp_p' allo_i8.c:(.text+0xcae): undefined reference to mp_v’
allo_i8.c:(.text+0xcfa): undefined reference to _mp_v' allo_i8.c:(.text+0xd04): undefined reference to pghpf_0

/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function __hpf_dealloc_i8': allo_i8.c:(.text+0xf97): undefined reference to pghpf_0

allo_i8.c:(.text+0xfa0): undefined reference to pghpf_0_' allo_i8.c:(.text+0xfb0): undefined reference to pghpf_0

allo_i8.c:(.text+0xfb9): undefined reference to pghpf_0_' allo_i8.c:(.text+0xfc9): undefined reference to _mp_p’
allo_i8.c:(.text+0x1019): undefined reference to _mp_v' allo_i8.c:(.text+0x1036): undefined reference to _mp_bcs_stdio’
allo_i8.c:(.text+0x104f): undefined reference to _mp_ecs_stdio' allo_i8.c:(.text+0x1079): undefined reference to _mp_v’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function pgf90_dealloc_i8': allo_i8.c:(.text+0x10f8): undefined reference to mp_p’
allo_i8.c:(.text+0x110d): undefined reference to _mp_v' allo_i8.c:(.text+0x1120): undefined reference to pghpf_0

allo_i8.c:(.text+0x1129): undefined reference to pghpf_0_' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function pgf90_alloc_i8’:
allo_i8.c:(.text+0xa7f): undefined reference to _mp_v' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function pgf90_kalloc_i8’:
allo_i8.c:(.text+0xc51): undefined reference to _mp_v' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(allo_i8.o): In function pgf90_dealloc_i8’:
allo_i8.c:(.text+0x1171): undefined reference to _mp_v' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(async.o): In function asy_wait’:
async.c:(.text+0x3e): undefined reference to __pgio_errno' async.c:(.text+0x7a): undefined reference to __pgio_set_errno’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(async.o): In function Fio_asy_open': async.c:(.text+0x1ef): undefined reference to __pgio_getfd’
async.c:(.text+0x22f): undefined reference to __pgio_set_errno' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(close.o): In function __hpfio_close’:
close.c:(.text+0x1b1): undefined reference to __pgio_errno' close.c:(.text+0x1f0): undefined reference to pgio_ferror’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(close.o): In function pgf90io_close': close.c:(.text+0x24e): undefined reference to pghpf_0c

/opt/pgi/linux86-64/7.1/lib/libpgf90.a(close.o): In function pgcrf90io_close': close.c:(.text+0x29b): undefined reference to pghpf_0c

/opt/pgi/linux86-64/7.1/lib/libpgf90.a(close.o): In function __hpfio_cleanup': close.c:(.text+0x2b9): undefined reference to __hpf_barrier’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(close.o): In function __hpfio_close': close.c:(.text+0x20b): undefined reference to __pgio_errno’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(fmtconv.o): In function __hpfio_default_convert': fmtconv.c:(.text+0x212): undefined reference to _hpfio_cnfg
fmtconv.c:(.text+0x274): undefined reference to __hpfio_cnfg_' fmtconv.c:(.text+0x27e): undefined reference to _hpfio_cnfg
fmtconv.c:(.text+0x29e): undefined reference to __hpfio_cnfg_' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(fpcvt.o): In function ufptod’:
fpcvt.c:(.text+0xbb1): undefined reference to __pgio_set_errno' fpcvt.c:(.text+0xbd4): undefined reference to __pgio_set_errno’
fpcvt.c:(.text+0xbfb): undefined reference to __pgio_set_errno' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(open.o): In function __hpfio_open’:
open.c:(.text+0x2ee): undefined reference to __pgio_ispipe' open.c:(.text+0x3bc): undefined reference to pgio_errno’
open.c:(.text+0x587): undefined reference to __hpfio_cnfg_' open.c:(.text+0x5a5): undefined reference to hpfio_scratch_name’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(open.o): In function pgf90io_open': open.c:(.text+0xe4c): undefined reference to pghpf_0c

open.c:(.text+0xe6a): undefined reference to pghpf_0c_' open.c:(.text+0xe87): undefined reference to pghpf_0c

open.c:(.text+0xea5): undefined reference to pghpf_0c_' open.c:(.text+0xec3): undefined reference to pghpf_0c

/opt/pgi/linux86-64/7.1/lib/libpgf90.a(open.o):open.c:(.text+0xedc): more undefined references to pghpf_0c_' follow /opt/pgi/linux86-64/7.1/lib/libpgf90.a(open.o): In function pgf90io_open_cvt’:
open.c:(.text+0x1159): undefined reference to __fio_eq_str' open.c:(.text+0x117b): undefined reference to fio_eq_str’
open.c:(.text+0x119d): undefined reference to __fio_eq_str' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(open.o): In function pgf90io_open_share’:
open.c:(.text+0x11d1): undefined reference to __fio_eq_str' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(open.o): In function pgcrf90io_open’:
open.c:(.text+0x129d): undefined reference to pghpf_0c_' open.c:(.text+0x12b6): undefined reference to pghpf_0c

open.c:(.text+0x12ce): undefined reference to pghpf_0c_' open.c:(.text+0x12e7): undefined reference to pghpf_0c

open.c:(.text+0x12fd): undefined reference to pghpf_0c_' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(open.o):open.c:(.text+0x1316): more undefined references to pghpf_0c
’ follow
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(open.o): In function pgcrf90io_open_cvt': open.c:(.text+0x14dc): undefined reference to __fio_eq_str’
open.c:(.text+0x150d): undefined reference to __fio_eq_str' open.c:(.text+0x152f): undefined reference to __fio_eq_str’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(open.o): In function pgcrf90io_open_share': open.c:(.text+0x1571): undefined reference to _fio_eq_str’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(open.o): In function pgf90io_open_async': open.c:(.text+0x15a9): undefined reference to pghpf_0c

open.c:(.text+0x1608): undefined reference to __pgio_errno' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_init’:
entry.c:(.text+0x4a): undefined reference to __hpf_stat_init' entry.c:(.text+0x57): undefined reference to _hpf_prof_init’
entry.c:(.text+0x64): undefined reference to __hpf_trac_init' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function pghpf_function_entry’:
entry.c:(.text+0xb7): undefined reference to pghpf_lineno_' entry.c:(.text+0xfb): undefined reference to pghpf_lineno

entry.c:(.text+0x120): undefined reference to __hpf_stat_function_entry' entry.c:(.text+0x13f): undefined reference to __hpf_prof_function_entry’
entry.c:(.text+0x15e): undefined reference to __hpf_trac_function_entry' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function pghpf_function_exit’:
entry.c:(.text+0x1d6): undefined reference to pghpf_lineno_' entry.c:(.text+0x1db): undefined reference to __hpf_stat_function_exit’
entry.c:(.text+0x1e1): undefined reference to pghpf_lineno_' entry.c:(.text+0x1e6): undefined reference to __hpf_prof_function_exit’
entry.c:(.text+0x1ec): undefined reference to pghpf_lineno_' entry.c:(.text+0x1f1): undefined reference to __hpf_trac_function_exit’
entry.c:(.text+0x20c): undefined reference to pghpf_lineno_' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function pghpf_line_entry’:
entry.c:(.text+0x226): undefined reference to pghpf_lineno_' entry.c:(.text+0x22b): undefined reference to __hpf_stat_line_entry’
entry.c:(.text+0x231): undefined reference to pghpf_lineno_' entry.c:(.text+0x236): undefined reference to __hpf_prof_line_entry’
entry.c:(.text+0x23c): undefined reference to pghpf_lineno_' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_traceback’:
entry.c:(.text+0x27b): undefined reference to pghpf_lineno_' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_tracecall’:
entry.c:(.text+0x4e0): undefined reference to pghpf_lineno_' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_recv’:
entry.c:(.text+0x646): undefined reference to __hpf_prof_recv' entry.c:(.text+0x64d): undefined reference to __hpf_stat_recv’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_recv_done': entry.c:(.text+0x698): undefined reference to __hpf_prof_recv_done’
entry.c:(.text+0x6a1): undefined reference to __hpf_stat_recv_done' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_send’:
entry.c:(.text+0x70e): undefined reference to __hpf_prof_send' entry.c:(.text+0x715): undefined reference to __hpf_stat_send’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_send_done': entry.c:(.text+0x752): undefined reference to __hpf_prof_send_done’
entry.c:(.text+0x75b): undefined reference to __hpf_stat_send_done' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_copy’:
entry.c:(.text+0x7a1): undefined reference to __hpf_prof_copy' entry.c:(.text+0x7a8): undefined reference to __hpf_stat_copy’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_copy_done': entry.c:(.text+0x7e9): undefined reference to __hpf_prof_copy_done’
entry.c:(.text+0x7f2): undefined reference to __hpf_stat_copy_done' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_arecv’:
entry.c:(.text+0x877): undefined reference to __hpf_prof_arecv' entry.c:(.text+0x881): undefined reference to __hpf_stat_arecv’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_arecv_done': entry.c:(.text+0x8c5): undefined reference to __hpf_prof_arecv_done’
entry.c:(.text+0x8ce): undefined reference to __hpf_stat_arecv_done' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_asend’:
entry.c:(.text+0x953): undefined reference to __hpf_prof_asend' entry.c:(.text+0x95a): undefined reference to __hpf_stat_asend’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_asend_done': entry.c:(.text+0x994): undefined reference to __hpf_prof_asend_done’
entry.c:(.text+0x99d): undefined reference to __hpf_stat_asend_done' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_await’:
entry.c:(.text+0x9e8): undefined reference to __hpf_prof_await' entry.c:(.text+0x9f1): undefined reference to __hpf_stat_await’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_await_done': entry.c:(.text+0xa32): undefined reference to __hpf_prof_await_done’
entry.c:(.text+0xa3b): undefined reference to __hpf_stat_await_done' /opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_term’:
entry.c:(.text+0xa61): undefined reference to __hpf_stat_term' entry.c:(.text+0xa68): undefined reference to __hpf_prof_term’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function pghpf_line_entry': entry.c:(.text+0x245): undefined reference to __hpf_trac_line_entry’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_recv': entry.c:(.text+0x636): undefined reference to __hpf_trac_recv’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_recv_done': entry.c:(.text+0x68f): undefined reference to __hpf_trac_recv_done’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_send': entry.c:(.text+0x704): undefined reference to __hpf_trac_send’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_send_done': entry.c:(.text+0x749): undefined reference to __hpf_trac_send_done’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_copy': entry.c:(.text+0x799): undefined reference to __hpf_trac_copy’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_copy_done': entry.c:(.text+0x7e2): undefined reference to __hpf_trac_copy_done’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_arecv': entry.c:(.text+0x86a): undefined reference to __hpf_trac_arecv’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_arecv_done': entry.c:(.text+0x8b9): undefined reference to __hpf_trac_recv_done’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_asend': entry.c:(.text+0x946): undefined reference to __hpf_trac_asend’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_asend_done': entry.c:(.text+0x98b): undefined reference to __hpf_trac_asend_done’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_await': entry.c:(.text+0x9df): undefined reference to __hpf_trac_await’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_await_done': entry.c:(.text+0xa29): undefined reference to __hpf_trac_await_done’
/opt/pgi/linux86-64/7.1/lib/libpgf90.a(entry.o): In function __hpf_entry_term': entry.c:(.text+0xa73): undefined reference to __hpf_trac_term’
collect2: ld returned 1 exit status
make[1]: *** […/lmp_nano] error 1
make: *** [nano] error 2

Here is my Makefile.

nano = Test compiler, MPICH, FFTW, MEAM lib

SHELL = /bin/sh
#.IGNORE:

System-specific settings

CC = mpiCC
CCFLAGS = -g -O -l…/…/lib/meam -DFFT_FFTW -DMPICH_IGNORE_CXX_SEEK
DEPFLAGS = -M
LINK = mpiCC
LINKFLAGS = -g -O -L/usr/mpi/pgi/mvapich-1.0.0/lib
-L…/…/lib/meam
-L~/fftw-3.2alpha3/libbench2
-L/opt/pgi/linux86-64/7.1/bin/pgf90
-L/opt/pgi/linux86-64/7.1/lib
USRLIB = -lfftw -lmpich -lmeam -lpgf90

-lpgf902 -lpgf90rtl -lpgftnrtl

SYSLIB = -lpthread
ARCHIVE = ar
ARFLAGS = -rc
SIZE = size

I think I have to link something to solve those errors but I have no idea what they are.
Please help me.
Thank you.

Regards,
HeeSung Choi

Dear all,

I want to compile LAMMPS with MEAM library.
But I don't know how to sole those errors.
Here is a part of my errors

i already told you, those originate from compiling
libmeam (obviously) with gpf90, so you'll have to
link with the proper runtime libraries. which those
are only the PGI documentation (or PGI support) can
tell you.

p.s.: please don't post endless lines of repeatitive
error messages needlessly to the list.

CC = mpiCC
CCFLAGS = -g -O -l../../lib/meam -DFFT_FFTW -DMPICH_IGNORE_CXX_SEEK
DEPFLAGS = -M
LINK = mpiCC
LINKFLAGS = -g -O -L/usr/mpi/pgi/mvapich-1.0.0/lib \
                -L../../lib/meam \
                -L~/fftw-3.2alpha3/libbench2 \
                -L/opt/pgi/linux86-64/7.1/bin/pgf90 \

this is nonsense

                -L/opt/pgi/linux86-64/7.1/lib
USRLIB = -lfftw -lmpich -lmeam -lpgf90
# -lpgf902 -lpgf90rtl -lpgftnrtl

so why did comment out linking to those??

check out which libraries _are_ in the compiler directory
and which ones refer to the fortran compiler. there should
be a section somewhere explaining how to link pgf90 compiled
code to pgCC or gcc compiled code.

cheers,
   axel.