Error when installing GULP-5.2 in parallel

Hi! I’m trying to compile gulp-5.2 with openmpi-4.1.1 and scalapack-2.1.0. I set mkgulp with:

echo ‘SLIBS= -L/home/xpwu_bs_1/software/scalapack-2.1.0 -lscalapack’ >> makefile

where I installed the scalapack. Then I run ./mkgulp -m, to find

scalapack      -o gulp
m_simplex.o: In function `__m_simplex_MOD_start':
m_simplex.F90:(.text+0x16b): undefined reference to `dcopy_'
m_simplex.o: In function `__m_simplex_MOD_setstp':
m_simplex.F90:(.text+0x319): undefined reference to `dscal_'
m_simplex.F90:(.text+0x40c): undefined reference to `dasum_'
m_simplex.F90:(.text+0x422): undefined reference to `dasum_'
m_simplex.o: In function `__m_simplex_MOD_calcc':
m_simplex.F90:(.text+0xed7): undefined reference to `dcopy_'
m_simplex.F90:(.text+0xf18): undefined reference to `daxpy_'
m_simplex.F90:(.text+0xf6a): undefined reference to `dscal_'
m_simplex.o: In function `__m_simplex_MOD_simplx':
m_simplex.F90:(.text+0x18f7): undefined reference to `dcopy_'
m_simplex.F90:(.text+0x1a46): undefined reference to `dcopy_'
m_simplex.F90:(.text+0x1a76): undefined reference to `dcopy_'
m_simplex.F90:(.text+0x1aa4): undefined reference to `_gfortran_os_error_at'
m_simplex.o: In function `__m_simplex_MOD_subplx':
m_simplex.F90:(.text+0x1fa2): undefined reference to `dcopy_'
m_simplex.F90:(.text+0x1fd0): undefined reference to `dcopy_'
m_simplex.F90:(.text+0x22f7): undefined reference to `dcopy_'
m_simplex.F90:(.text+0x2681): undefined reference to `dcopy_'
m_simplex.F90:(.text+0x26b3): undefined reference to `dcopy_'
m_simplex.F90:(.text+0x2c4e): undefined reference to `_gfortran_os_error_at'
m_simplex.F90:(.text+0x2c73): undefined reference to `_gfortran_os_error_at'
m_simplex.F90:(.text+0x2c9d): undefined reference to `_gfortran_os_error_at'
m_conjgr.o: In function `__m_conjgr_MOD_conjgr':
m_conjgr.F90:(.text+0x26a): undefined reference to `ddot_'
m_conjgr.F90:(.text+0x2e3): undefined reference to `ddot_'
m_conjgr.F90:(.text+0x493): undefined reference to `ddot_'
m_conjgr.F90:(.text+0x4b4): undefined reference to `ddot_'
m_conjgr.F90:(.text+0x569): undefined reference to `ddot_'
m_conjgr.o:m_conjgr.F90:(.text+0x612): more undefined references to `ddot_' follow
m_pdf.o: In function `__m_pdf_MOD_pdfsetup':
m_pdf.F90:(.text+0x7a4b): undefined reference to `_gfortran_os_error_at'
bcgsolve.o: In function `sparseadiagprecon_':
bcgsolve.F90:(.text+0x1a4): undefined reference to `_gfortran_os_error_at'
bcgsolve.o: In function `sparseaxv_':
bcgsolve.F90:(.text+0x2ff): undefined reference to `ddot_'
bcgsolve.F90:(.text+0x485): undefined reference to `_gfortran_os_error_at'
bcgsolve.o: In function `bcgsolve_':
bcgsolve.F90:(.text+0x6c4): undefined reference to `ddot_'
bcgsolve.F90:(.text+0x7c8): undefined reference to `ddot_'
bcgsolve.F90:(.text+0x8df): undefined reference to `ddot_'
bcgsolve.F90:(.text+0x949): undefined reference to `daxpy_'
bcgsolve.F90:(.text+0x98d): undefined reference to `daxpy_'
bcgsolve.F90:(.text+0x9c0): undefined reference to `daxpy_'
bcgsolve.F90:(.text+0x9fe): undefined reference to `ddot_'
bcgsolve.F90:(.text+0xbdb): undefined reference to `_gfortran_os_error_at'
bcgsolve.F90:(.text+0xbf4): undefined reference to `_gfortran_os_error_at'
bcgsolve.F90:(.text+0xc0d): undefined reference to `_gfortran_os_error_at'
bcgsolve.F90:(.text+0xc26): undefined reference to `_gfortran_os_error_at'
bcgsolve.F90:(.text+0xc3f): undefined reference to `_gfortran_os_error_at'
bcgsolve.o:bcgsolve.F90:(.text+0xc58): more undefined references to `_gfortran_os_error_at' follow
deffreq.o: In function `deffreq_':
deffreq.F90:(.text+0x1b99): undefined reference to `dsyev_'
deffreq.F90:(.text+0x361b): undefined reference to `dsyev_'
dbcgsolve.o: In function `denseaxv_':
dbcgsolve.F90:(.text+0x52a): undefined reference to `ddot_'
dbcgsolve.F90:(.text+0x58e): undefined reference to `ddot_'
dbcgsolve.F90:(.text+0x6a2): undefined reference to `ddot_'
dbcgsolve.F90:(.text+0x742): undefined reference to `ddot_'
dbcgsolve.o: In function `dbcgsolve_':
dbcgsolve.F90:(.text+0x987): undefined reference to `ddot_'
dbcgsolve.o:dbcgsolve.F90:(.text+0xa88): more undefined references to `ddot_' follow
dbcgsolve.o: In function `dbcgsolve_':
dbcgsolve.F90:(.text+0xc0d): undefined reference to `daxpy_'
dbcgsolve.F90:(.text+0xc4e): undefined reference to `daxpy_'
dbcgsolve.F90:(.text+0xc7e): undefined reference to `daxpy_'
dbcgsolve.F90:(.text+0xcbc): undefined reference to `ddot_'
dcharges.o: In function `dcharges_':
dcharges.F90:(.text+0x366b): undefined reference to `ilaenv_'
dcharges.F90:(.text+0x36f6): undefined reference to `dgetrf_'
dcharges.F90:(.text+0x5803): undefined reference to `dgetrf_'
dcharges.F90:(.text+0x5ca0): undefined reference to `dgetri_'
dcharges.F90:(.text+0x5cd4): undefined reference to `dgetri_'
diagdyn.o: In function `diagdyn_':
diagdyn.F90:(.text+0x43c): undefined reference to `ilaenv_'
diagdyn.F90:(.text+0x4ab): undefined reference to `zheev_'
diagdyn.F90:(.text+0x78c): undefined reference to `zheev_'
dlamch.o: In function `dlamch_':
dlamch.F90:(.text+0x139a): undefined reference to `lsame_'
dlamch.F90:(.text+0x13cb): undefined reference to `lsame_'
dlamch.F90:(.text+0x13fc): undefined reference to `lsame_'
dlamch.F90:(.text+0x142d): undefined reference to `lsame_'
dlamch.F90:(.text+0x145e): undefined reference to `lsame_'
dlamch.o:dlamch.F90:(.text+0x148f): more undefined references to `lsame_' follow
eckart.o: In function `eckart_':
eckart.F90:(.text+0x4de): undefined reference to `dsyev_'
eckart.F90:(.text+0x15d9): undefined reference to `dgemm_'
eckart.F90:(.text+0x162a): undefined reference to `dgemm_'
eckart.F90:(.text+0x1663): undefined reference to `dgemm_'
eckart.F90:(.text+0x1776): undefined reference to `dsyev_'
eem.o: In function `eem_':
eem.F90:(.text+0x27a5): undefined reference to `ilaenv_'
eem.F90:(.text+0x2832): undefined reference to `dgetrf_'
eem.F90:(.text+0x49cc): undefined reference to `dgetri_'
eem.F90:(.text+0x4a19): undefined reference to `dgetrf_'
eem.F90:(.text+0x52a5): undefined reference to `dgetri_'
fitfunct.o: In function `fitfunct_':
fitfunct.F90:(.text+0x2f6): undefined reference to `dsptrf_'
fitfunct.F90:(.text+0x475): undefined reference to `dsptri_'
fitfunct.F90:(.text+0x5f4): undefined reference to `dsptri_'
fenergy0.o: In function `fenergy0_':
fenergy0.F90:(.text+0x113d): undefined reference to `dsyev_'
fitbfgs.o: In function `fitbfgs_':
fitbfgs.F90:(.text+0x20e): undefined reference to `ddot_'
fitbfgs.F90:(.text+0x5c5): undefined reference to `ddot_'
fitbfgs.F90:(.text+0x604): undefined reference to `ddot_'
fitbfgs.F90:(.text+0x7d2): undefined reference to `ddot_'
fitbfgs.F90:(.text+0x815): undefined reference to `ddot_'
fitbfgs.o:fitbfgs.F90:(.text+0x1521): more undefined references to `ddot_' follow
getshellmatrices.o: In function `getshellmatrices_':
getshellmatrices.F90:(.text+0x171): undefined reference to `dsptrf_'
getshellmatrices.F90:(.text+0x384): undefined reference to `dsptrf_'
getshellmatrices.F90:(.text+0x3b5): undefined reference to `dsptri_'
harmonicrelax.o: In function `harmonicrelax_':
harmonicrelax.F90:(.text+0x470): undefined reference to `ddot_'
harmonicrelax.F90:(.text+0x678): undefined reference to `dsptrf_'
harmonicrelax.F90:(.text+0x744): undefined reference to `dsptri_'
harmonicrelax.F90:(.text+0x79a): undefined reference to `dspmv_'
harmonicrelax.F90:(.text+0x7bb): undefined reference to `ddot_'
harmonicrelax.F90:(.text+0x924): undefined reference to `dgetrf_'
harmonicrelax.F90:(.text+0xc26): undefined reference to `dgemv_'
harmonicrelax.F90:(.text+0xd3e): undefined reference to `ilaenv_'
harmonicrelax.F90:(.text+0xe0b): undefined reference to `dgetri_'
latpot.o: In function `latpot_':
latpot.F90:(.text+0x1f6c): undefined reference to `dsyev_'
lmbfgs.o: In function `lmbfgssub_':
lmbfgs.F90:(.text+0x7da): undefined reference to `ddot_'
lmbfgs.F90:(.text+0x7f7): undefined reference to `ddot_'
lmbfgs.F90:(.text+0x9c0): undefined reference to `ddot_'
lmbfgs.F90:(.text+0xa1b): undefined reference to `daxpy_'
lmbfgs.F90:(.text+0xb23): undefined reference to `ddot_'
lmbfgs.F90:(.text+0xb75): undefined reference to `daxpy_'
lmbfgs.F90:(.text+0xd21): undefined reference to `ddot_'
lmbfgs.F90:(.text+0xc6e): undefined reference to `dcopy_'
linpack.o: In function `dsidi_':
linpack.F90:(.text+0x25a): undefined reference to `dcopy_'
linpack.F90:(.text+0x2da): undefined reference to `ddot_'
linpack.F90:(.text+0x31d): undefined reference to `daxpy_'
linpack.F90:(.text+0x370): undefined reference to `ddot_'
linpack.F90:(.text+0x3bb): undefined reference to `ddot_'
linpack.F90:(.text+0x3e6): undefined reference to `dcopy_'
linpack.F90:(.text+0x459): undefined reference to `ddot_'
linpack.F90:(.text+0x49c): undefined reference to `daxpy_'
linpack.F90:(.text+0x4e9): undefined reference to `ddot_'
linpack.F90:(.text+0x55a): undefined reference to `dswap_'
linpack.F90:(.text+0x63a): undefined reference to `dcopy_'
linpack.F90:(.text+0x6a9): undefined reference to `ddot_'
linpack.F90:(.text+0x6ec): undefined reference to `daxpy_'
linpack.F90:(.text+0x739): undefined reference to `ddot_'
linpack.o: In function `dsifa_':
linpack.F90:(.text+0xa10): undefined reference to `idamax_'
linpack.F90:(.text+0xb28): undefined reference to `daxpy_'
linpack.F90:(.text+0xcc3): undefined reference to `idamax_'
linpack.F90:(.text+0xd9d): undefined reference to `dswap_'
linpack.F90:(.text+0x1011): undefined reference to `daxpy_'
linpack.F90:(.text+0x1055): undefined reference to `daxpy_'
linpack.F90:(.text+0x1113): undefined reference to `dswap_'
linpack.o: In function `zhidi_':
linpack.F90:(.text+0x1580): undefined reference to `zcopy_'
linpack.F90:(.text+0x15fa): undefined reference to `zdotc_'
linpack.F90:(.text+0x164c): undefined reference to `zaxpy_'
linpack.F90:(.text+0x16b5): undefined reference to `zdotc_'
linpack.F90:(.text+0x1718): undefined reference to `zdotc_'
linpack.F90:(.text+0x1751): undefined reference to `zcopy_'
linpack.F90:(.text+0x17c9): undefined reference to `zdotc_'
linpack.F90:(.text+0x181b): undefined reference to `zaxpy_'
linpack.F90:(.text+0x1869): undefined reference to `zdotc_'
linpack.F90:(.text+0x1906): undefined reference to `zswap_'
linpack.F90:(.text+0x1a48): undefined reference to `zcopy_'
linpack.F90:(.text+0x1ab0): undefined reference to `zdotc_'
linpack.F90:(.text+0x1b02): undefined reference to `zaxpy_'
linpack.F90:(.text+0x1b50): undefined reference to `zdotc_'
linpack.o: In function `zhifa_':
linpack.F90:(.text+0x1f07): undefined reference to `izamax_'
linpack.F90:(.text+0x2070): undefined reference to `zaxpy_'
linpack.F90:(.text+0x2225): undefined reference to `izamax_'
linpack.F90:(.text+0x2400): undefined reference to `zswap_'
linpack.F90:(.text+0x2998): undefined reference to `zaxpy_'
linpack.F90:(.text+0x29f8): undefined reference to `zaxpy_'
linpack.F90:(.text+0x2cbd): undefined reference to `zswap_'
linpack.o: In function `dgefa_':
linpack.F90:(.text+0x3005): undefined reference to `idamax_'
linpack.F90:(.text+0x309e): undefined reference to `dscal_'
linpack.F90:(.text+0x3138): undefined reference to `daxpy_'
linpack.F90:(.text+0x3206): undefined reference to `daxpy_'
linpack.o: In function `dgesl_':
linpack.F90:(.text+0x330e): undefined reference to `daxpy_'
linpack.F90:(.text+0x3361): undefined reference to `daxpy_'
linpack.F90:(.text+0x3410): undefined reference to `daxpy_'
linpack.F90:(.text+0x349b): undefined reference to `ddot_'
linpack.F90:(.text+0x3565): undefined reference to `ddot_'
linpack.o: In function `dgedi_':
linpack.F90:(.text+0x36e8): undefined reference to `dscal_'
linpack.F90:(.text+0x376d): undefined reference to `daxpy_'
linpack.F90:(.text+0x38d5): undefined reference to `daxpy_'
linpack.F90:(.text+0x3931): undefined reference to `dswap_'
matinv.o: In function `cmatrix_inversion_library_':
matinv.F90:(.text+0x2c9): undefined reference to `zsptrf_'
matinv.F90:(.text+0x604): undefined reference to `zsptri_'
matinv.F90:(.text+0x7e6): undefined reference to `zsptrf_'
matinv.F90:(.text+0x81d): undefined reference to `zsptri_'
matinv.o: In function `matrix_inversion_library_':
matinv.F90:(.text+0xb50): undefined reference to `dsptrf_'
matinv.F90:(.text+0xe77): undefined reference to `dsptri_'
matinv.F90:(.text+0x1038): undefined reference to `dsptrf_'
matinv.F90:(.text+0x1069): undefined reference to `dsptri_'
mdfunct.o: In function `mdfunct_':
mdfunct.F90:(.text+0x11f0): undefined reference to `dgemv_'
mdfunct.F90:(.text+0x244a): undefined reference to `dgemv_'
minimise.o: In function `minimise_':
minimise.F90:(.text+0x5ef): undefined reference to `ddot_'
minimise.F90:(.text+0xe19): undefined reference to `ddot_'
minimise.F90:(.text+0xe38): undefined reference to `ddot_'
minimise.F90:(.text+0x1178): undefined reference to `ddot_'
minimise.F90:(.text+0x12ee): undefined reference to `dcopy_'
minimise.F90:(.text+0x130e): undefined reference to `dcopy_'
minimise.F90:(.text+0x1797): undefined reference to `ddot_'
minimise.F90:(.text+0x183a): undefined reference to `ddot_'
minimise.F90:(.text+0x1a3d): undefined reference to `ddot_'
minimise.F90:(.text+0x1a69): undefined reference to `ddot_'
minimise.F90:(.text+0x1c4c): undefined reference to `ddot_'
minimise.o:minimise.F90:(.text+0x1c6b): more undefined references to `ddot_' follow
minimise.o: In function `minimise_':
minimise.F90:(.text+0x242f): undefined reference to `daxpy_'
minimise.F90:(.text+0x24d5): undefined reference to `ddot_'
minimise.F90:(.text+0x28ae): undefined reference to `ddot_'
minimise.F90:(.text+0x2e44): undefined reference to `ddot_'
minimise.F90:(.text+0x303a): undefined reference to `dcopy_'
minimise.F90:(.text+0x305a): undefined reference to `dcopy_'
minimise.F90:(.text+0x3585): undefined reference to `ddot_'
minimise.F90:(.text+0x4bc2): undefined reference to `dcopy_'
minimise.F90:(.text+0x4be2): undefined reference to `dcopy_'
nrhess.o: In function `nrhess_':
nrhess.F90:(.text+0xfc6): undefined reference to `dgetrf_'
nrhess.F90:(.text+0x1048): undefined reference to `dsptri_'
nrhess.F90:(.text+0x131e): undefined reference to `dsptrf_'
nrhess.F90:(.text+0x1976): undefined reference to `ilaenv_'
nrhess.F90:(.text+0x19d9): undefined reference to `dgetri_'
nrhess.F90:(.text+0x2076): undefined reference to `dsptri_'
nrhess.F90:(.text+0x2357): undefined reference to `dgetri_'
nrhessn.o: In function `nrhessn_':
nrhessn.F90:(.text+0x10ac): undefined reference to `dgetrf_'
nrhessn.F90:(.text+0x112c): undefined reference to `dsptri_'
nrhessn.F90:(.text+0x125b): undefined reference to `dsptrf_'
nrhessn.F90:(.text+0x1905): undefined reference to `ilaenv_'
nrhessn.F90:(.text+0x1964): undefined reference to `dgetri_'
nrhessn.F90:(.text+0x2026): undefined reference to `dsptri_'
nrhessn.F90:(.text+0x2291): undefined reference to `dgetri_'
nrstep.o: In function `nrstep_':
nrstep.F90:(.text+0x55): undefined reference to `dspmv_'
nrstep.F90:(.text+0x9f): undefined reference to `dgemv_'
olinmin.o: In function `olinmin_':
olinmin.F90:(.text+0x2fc): undefined reference to `daxpy_'
olinmin.F90:(.text+0x3fd): undefined reference to `daxpy_'
olinmin.F90:(.text+0x809): undefined reference to `daxpy_'
outinertia.o: In function `outinertia_':
outinertia.F90:(.text+0x90d): undefined reference to `dsyev_'
......
......
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pzunm2l.o): In function `pzunm2l_':
pzunm2l.f:(.text+0xf5): undefined reference to `lsame_'
pzunm2l.f:(.text+0x115): undefined reference to `lsame_'
pzunm2l.f:(.text+0x50d): undefined reference to `lsame_'
pzunm2l.f:(.text+0x5b4): undefined reference to `lsame_'
pzunm2l.f:(.text+0xce5): undefined reference to `zscal_'
pzunm2l.f:(.text+0xe27): undefined reference to `zscal_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pzunm2r.o): In function `pzunm2r_':
pzunm2r.f:(.text+0xf5): undefined reference to `lsame_'
pzunm2r.f:(.text+0x114): undefined reference to `lsame_'
pzunm2r.f:(.text+0x505): undefined reference to `lsame_'
pzunm2r.f:(.text+0x5a4): undefined reference to `lsame_'
pzunm2r.f:(.text+0xd1d): undefined reference to `zscal_'
pzunm2r.f:(.text+0xe6a): undefined reference to `zscal_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbztran.o): In function `pbztr2bt_':
pbztran.f:(.text+0x59): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbztran.o): In function `pbztr2af_':
pbztran.f:(.text+0x352): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbztran.o): In function `pbztr2at_':
pbztran.f:(.text+0x615): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbztran.o): In function `pbztran_':
pbztran.f:(.text+0x97d): undefined reference to `lsame_'
pbztran.f:(.text+0x996): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbzmatadd.o):pbzmatadd.f:(.text+0xcc): more undefined references to `lsame_' follow
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbzmatadd.o): In function `pbzmatadd_':
pbzmatadd.f:(.text+0x1146): undefined reference to `zcopy_'
pbzmatadd.f:(.text+0x1708): undefined reference to `lsame_'
pbzmatadd.f:(.text+0x1749): undefined reference to `zscal_'
pbzmatadd.f:(.text+0x1901): undefined reference to `lsame_'
pbzmatadd.f:(.text+0x1953): undefined reference to `zaxpy_'
pbzmatadd.f:(.text+0x1d97): undefined reference to `zscal_'
pbzmatadd.f:(.text+0x1ecd): undefined reference to `zcopy_'
pbzmatadd.f:(.text+0x1ef8): undefined reference to `zaxpy_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbztrsrt.o): In function `pbztrsrt_':
pbztrsrt.f:(.text+0x61): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbztrget.o): In function `pbztrget_':
pbztrget.f:(.text+0x56): undefined reference to `lsame_'
pbztrget.f:(.text+0x2ab): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pdlarfb.o): In function `pdlarfb_':
pdlarfb.f:(.text+0xab): undefined reference to `lsame_'
pdlarfb.f:(.text+0xd4): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pdlarfb.o):pdlarfb.f:(.text+0x468): more undefined references to `lsame_' follow
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pdlarfb.o): In function `pdlarfb_':
pdlarfb.f:(.text+0x6be): undefined reference to `dgemm_'
pdlarfb.f:(.text+0x7dc): undefined reference to `dtrmm_'
pdlarfb.f:(.text+0x84e): undefined reference to `dgemm_'
pdlarfb.f:(.text+0x871): undefined reference to `lsame_'
pdlarfb.f:(.text+0xa76): undefined reference to `dlaset_'
pdlarfb.f:(.text+0xb44): undefined reference to `dgemm_'
pdlarfb.f:(.text+0xe2b): undefined reference to `dgemm_'
pdlarfb.f:(.text+0xf44): undefined reference to `dtrmm_'
pdlarfb.f:(.text+0xfb9): undefined reference to `dgemm_'
pdlarfb.f:(.text+0x11b5): undefined reference to `dlaset_'
pdlarfb.f:(.text+0x13e0): undefined reference to `dlaset_'
pdlarfb.f:(.text+0x141f): undefined reference to `dlaset_'
pdlarfb.f:(.text+0x153a): undefined reference to `dgemm_'
pdlarfb.f:(.text+0x17c6): undefined reference to `dlaset_'
pdlarfb.f:(.text+0x1802): undefined reference to `dlaset_'
pdlarfb.f:(.text+0x18c8): undefined reference to `dlaset_'
pdlarfb.f:(.text+0x191d): undefined reference to `dlaset_'
pdlarfb.f:(.text+0x1ae0): undefined reference to `dlaset_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pdlarfb.o):pdlarfb.f:(.text+0x1b2a): more undefined references to `dlaset_' follow
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pdlarfb.o): In function `pdlarfb_':
pdlarfb.f:(.text+0x1b88): undefined reference to `dtrmm_'
pdlarfb.f:(.text+0x1c0f): undefined reference to `dtrmm_'
pdlarfb.f:(.text+0x1da0): undefined reference to `dlaset_'
pdlarfb.f:(.text+0x208b): undefined reference to `dlaset_'
pdlarfb.f:(.text+0x234a): undefined reference to `dlaset_'
pdlarfb.f:(.text+0x238d): undefined reference to `dlaset_'
pdlarfb.f:(.text+0x25f1): undefined reference to `dlaset_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pdlarfb.o):pdlarfb.f:(.text+0x262f): more undefined references to `dlaset_' follow
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pdlarft.o): In function `pdlarft_':
pdlarft.f:(.text+0x7d): undefined reference to `lsame_'
pdlarft.f:(.text+0xf3): undefined reference to `lsame_'
pdlarft.f:(.text+0x11c): undefined reference to `lsame_'
pdlarft.f:(.text+0x310): undefined reference to `dgemv_'
pdlarft.f:(.text+0x4ab): undefined reference to `dcopy_'
pdlarft.f:(.text+0x4df): undefined reference to `dtrmv_'
pdlarft.f:(.text+0x714): undefined reference to `dgemv_'
pdlarft.f:(.text+0x8ab): undefined reference to `dcopy_'
pdlarft.f:(.text+0x8df): undefined reference to `dtrmv_'
pdlarft.f:(.text+0xadb): undefined reference to `dgemv_'
pdlarft.f:(.text+0xccb): undefined reference to `dcopy_'
pdlarft.f:(.text+0xd16): undefined reference to `dtrmv_'
pdlarft.f:(.text+0xeed): undefined reference to `dgemv_'
pdlarft.f:(.text+0x10cb): undefined reference to `dcopy_'
pdlarft.f:(.text+0x1116): undefined reference to `dtrmv_'
pdlarft.f:(.text+0x1190): undefined reference to `dlaset_'
pdlarft.f:(.text+0x11c7): undefined reference to `dlaset_'
pdlarft.f:(.text+0x1234): undefined reference to `dlaset_'
pdlarft.f:(.text+0x1279): undefined reference to `dlaset_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pdorm2l.o): In function `pdorm2l_':
pdorm2l.f:(.text+0xf5): undefined reference to `lsame_'
pdorm2l.f:(.text+0x113): undefined reference to `lsame_'
pdorm2l.f:(.text+0x501): undefined reference to `lsame_'
pdorm2l.f:(.text+0x5b7): undefined reference to `lsame_'
pdorm2l.f:(.text+0xc38): undefined reference to `dscal_'
pdorm2l.f:(.text+0xd79): undefined reference to `dscal_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pdorm2r.o): In function `pdorm2r_':
pdorm2r.f:(.text+0xf5): undefined reference to `lsame_'
pdorm2r.f:(.text+0x114): undefined reference to `lsame_'
pdorm2r.f:(.text+0x4f4): undefined reference to `lsame_'
pdorm2r.f:(.text+0x594): undefined reference to `lsame_'
pdorm2r.f:(.text+0xc27): undefined reference to `dscal_'
pdorm2r.f:(.text+0xd66): undefined reference to `dscal_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pzlarf.o): In function `pzlarf_':
pzlarf.f:(.text+0x347): undefined reference to `lsame_'
pzlarf.f:(.text+0x4f0): undefined reference to `zgemv_'
pzlarf.f:(.text+0x6e8): undefined reference to `zgemv_'
pzlarf.f:(.text+0x80b): undefined reference to `zgerc_'
pzlarf.f:(.text+0x9d0): undefined reference to `zgemv_'
pzlarf.f:(.text+0xa8d): undefined reference to `zgerc_'
pzlarf.f:(.text+0xec9): undefined reference to `zgemv_'
pzlarf.f:(.text+0xf9e): undefined reference to `zcopy_'
pzlarf.f:(.text+0x1072): undefined reference to `zcopy_'
pzlarf.f:(.text+0x1267): undefined reference to `zlaset_'
pzlarf.f:(.text+0x13c0): undefined reference to `zcopy_'
pzlarf.f:(.text+0x1507): undefined reference to `zgemv_'
pzlarf.f:(.text+0x16ed): undefined reference to `zgemv_'
pzlarf.f:(.text+0x1928): undefined reference to `zgemv_'
pzlarf.f:(.text+0x1a12): undefined reference to `zlaset_'
pzlarf.f:(.text+0x1b2b): undefined reference to `zgemv_'
pzlarf.f:(.text+0x1c71): undefined reference to `zlaset_'
pzlarf.f:(.text+0x1cc7): undefined reference to `zcopy_'
pzlarf.f:(.text+0x1e46): undefined reference to `zlaset_'
pzlarf.f:(.text+0x1eac): undefined reference to `zlaset_'
pzlarf.f:(.text+0x1f10): undefined reference to `zlaset_'
pzlarf.f:(.text+0x1f7d): undefined reference to `zlaset_'
pzlarf.f:(.text+0x1fd5): undefined reference to `zlaset_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pzlarfc.o): In function `pzlarfc_':
pzlarfc.f:(.text+0x347): undefined reference to `lsame_'
pzlarfc.f:(.text+0x4fd): undefined reference to `zgemv_'
pzlarfc.f:(.text+0x759): undefined reference to `zgemv_'
pzlarfc.f:(.text+0x83b): undefined reference to `zgerc_'
pzlarfc.f:(.text+0x9e2): undefined reference to `zgemv_'
pzlarfc.f:(.text+0xc68): undefined reference to `zgemv_'
pzlarfc.f:(.text+0xf0d): undefined reference to `zgemv_'
pzlarfc.f:(.text+0xfe6): undefined reference to `zcopy_'
pzlarfc.f:(.text+0x121b): undefined reference to `zgemv_'
pzlarfc.f:(.text+0x1332): undefined reference to `zcopy_'
pzlarfc.f:(.text+0x1560): undefined reference to `zgemv_'
pzlarfc.f:(.text+0x18cd): undefined reference to `zgemv_'
pzlarfc.f:(.text+0x1ae6): undefined reference to `zlaset_'
pzlarfc.f:(.text+0x1b5a): undefined reference to `zlaset_'
pzlarfc.f:(.text+0x1bcb): undefined reference to `zcopy_'
pzlarfc.f:(.text+0x1cb2): undefined reference to `zlaset_'
pzlarfc.f:(.text+0x1d1d): undefined reference to `zlaset_'
pzlarfc.f:(.text+0x1d88): undefined reference to `zcopy_'
pzlarfc.f:(.text+0x1e94): undefined reference to `zlaset_'
pzlarfc.f:(.text+0x1efe): undefined reference to `zlaset_'
pzlarfc.f:(.text+0x1f72): undefined reference to `zlaset_'
pzlarfc.f:(.text+0x1fea): undefined reference to `zlaset_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbdtran.o): In function `pbdtr2bt_':
pbdtran.f:(.text+0x59): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbdtran.o): In function `pbdtr2af_':
pbdtran.f:(.text+0x342): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbdtran.o): In function `pbdtr2at_':
pbdtran.f:(.text+0x605): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbdtran.o): In function `pbdtran_':
pbdtran.f:(.text+0x97d): undefined reference to `lsame_'
pbdtran.f:(.text+0x996): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbdmatadd.o):pbdmatadd.f:(.text+0xae): more undefined references to `lsame_' follow
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbdmatadd.o): In function `pbdmatadd_':
pbdmatadd.f:(.text+0x151b): undefined reference to `dcopy_'
pbdmatadd.f:(.text+0x1836): undefined reference to `lsame_'
pbdmatadd.f:(.text+0x1878): undefined reference to `dscal_'
pbdmatadd.f:(.text+0x19b6): undefined reference to `lsame_'
pbdmatadd.f:(.text+0x1a15): undefined reference to `daxpy_'
pbdmatadd.f:(.text+0x1d1d): undefined reference to `dscal_'
pbdmatadd.f:(.text+0x1d50): undefined reference to `daxpy_'
pbdmatadd.f:(.text+0x1e44): undefined reference to `dcopy_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbdtrsrt.o): In function `pbdtrsrt_':
pbdtrsrt.f:(.text+0x66): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbdtrget.o): In function `pbdtrget_':
pbdtrget.f:(.text+0x56): undefined reference to `lsame_'
pbdtrget.f:(.text+0x2ab): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbztrnv.o): In function `pbztrnv_':
pbztrnv.f:(.text+0x559): undefined reference to `lsame_'
pbztrnv.f:(.text+0x573): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbzvecadd.o):pbzvecadd.f:(.text+0xbc): more undefined references to `lsame_' follow
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbzvecadd.o): In function `pbzvecadd_':
pbzvecadd.f:(.text+0x73b): undefined reference to `zscal_'
pbzvecadd.f:(.text+0xd1d): undefined reference to `zcopy_'
pbzvecadd.f:(.text+0xf8b): undefined reference to `zaxpy_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbztrst1.o): In function `pbztrst1_':
pbztrst1.f:(.text+0x67): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pdlarf.o): In function `pdlarf_':
pdlarf.f:(.text+0x34a): undefined reference to `lsame_'
pdlarf.f:(.text+0x4b8): undefined reference to `dgemv_'
pdlarf.f:(.text+0x577): undefined reference to `dger_'
pdlarf.f:(.text+0x746): undefined reference to `dgemv_'
pdlarf.f:(.text+0xaef): undefined reference to `dcopy_'
pdlarf.f:(.text+0xc0f): undefined reference to `dgemv_'
pdlarf.f:(.text+0xd11): undefined reference to `dger_'
pdlarf.f:(.text+0xd57): undefined reference to `dcopy_'
pdlarf.f:(.text+0xe33): undefined reference to `dcopy_'
pdlarf.f:(.text+0xf2e): undefined reference to `dgemv_'
pdlarf.f:(.text+0x1162): undefined reference to `dlaset_'
pdlarf.f:(.text+0x1355): undefined reference to `dgemv_'
pdlarf.f:(.text+0x1559): undefined reference to `dgemv_'
pdlarf.f:(.text+0x163a): undefined reference to `dlaset_'
pdlarf.f:(.text+0x1725): undefined reference to `dgemv_'
pdlarf.f:(.text+0x1844): undefined reference to `dlaset_'
pdlarf.f:(.text+0x188e): undefined reference to `dcopy_'
pdlarf.f:(.text+0x196f): undefined reference to `dlaset_'
pdlarf.f:(.text+0x19ce): undefined reference to `dlaset_'
pdlarf.f:(.text+0x1a2e): undefined reference to `dlaset_'
pdlarf.f:(.text+0x1a98): undefined reference to `dlaset_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbdtrnv.o): In function `pbdtrnv_':
pbdtrnv.f:(.text+0x529): undefined reference to `lsame_'
pbdtrnv.f:(.text+0x543): undefined reference to `lsame_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbdvecadd.o): In function `pbdvecadd_':
pbdvecadd.f:(.text+0x1d5): undefined reference to `lsame_'
pbdvecadd.f:(.text+0x2b6): undefined reference to `lsame_'
pbdvecadd.f:(.text+0x63e): undefined reference to `lsame_'
pbdvecadd.f:(.text+0x58e): undefined reference to `dcopy_'
pbdvecadd.f:(.text+0x5b3): undefined reference to `dscal_'
pbdvecadd.f:(.text+0x706): undefined reference to `daxpy_'
/home/xpwu_bs_1/software/scalapack-2.1.0/libscalapack.a(pbdtrst1.o): In function `pbdtrst1_':
pbdtrst1.f:(.text+0x67): undefined reference to `lsame_'
collect2: error: ld returned 1 exit status
make: *** [gulp] Error 1
mv: cannot stat `gulp': No such file or directory

Sincerely I didn’t get in help page that how I can set scalapack correctly, I’m now confused whether I haven’t set scalapack path correctly, or there’s something wrong with the scalapack. Is there something to fix it?

Scalapack looks to be fine, but you are missing the BLAS library which is where the subroutine names that are undefined are coming from. If you add something like “-lblas” to your link line this will fix it (assuming you have BLAS installed).

Thank you so much for giving me the idea, I tried to add my BLAS, LAPACK, and BLACS path to SLIB like this:

           echo 'SLIBS= -L/home/xpwu_bs_1/software/scalapack-2.1.0 -lscalapack -L/home/xpwu_bs_1/software/BLAS-3.10.0 -lblas -L/home/xpwu_bs_1/software/lapack-3.10.0 -llapack -L/home/xpwu_bs_1/software/BLACS/LIB -lblacs ' >> makefile

It did reply with less error but still with

m_simplex.o: In function `__m_simplex_MOD_simplx':
m_simplex.F90:(.text+0x1aa4): undefined reference to `_gfortran_os_error_at'
m_simplex.o: In function `__m_simplex_MOD_subplx':
m_simplex.F90:(.text+0x2c4e): undefined reference to `_gfortran_os_error_at'
m_simplex.F90:(.text+0x2c73): undefined reference to `_gfortran_os_error_at'
m_simplex.F90:(.text+0x2c9d): undefined reference to `_gfortran_os_error_at'
m_pdf.o: In function `__m_pdf_MOD_pdfsetup':
m_pdf.F90:(.text+0x7a4b): undefined reference to `_gfortran_os_error_at'
bcgsolve.o:bcgsolve.F90:(.text+0x1a4): more undefined references to `_gfortran_os_error_at' follow
/home/xpwu_bs_1/software/lapack-3.10.0/liblapack.a(dlarfg.o): In function `dlarfg_':
dlarfg.f:(.text+0x37): undefined reference to `dnrm2_'
dlarfg.f:(.text+0x215): undefined reference to `dnrm2_'
/home/xpwu_bs_1/software/lapack-3.10.0/liblapack.a(dsptrd.o): In function `dsptrd_':
dsptrd.f:(.text+0x2cf): undefined reference to `dspr2_'
dsptrd.f:(.text+0x4d4): undefined reference to `dspr2_'
/home/xpwu_bs_1/software/lapack-3.10.0/liblapack.a(dsptrf.o): In function `dsptrf_':
dsptrf.f:(.text+0x21c): undefined reference to `dspr_'
dsptrf.f:(.text+0xa6e): undefined reference to `dspr_'
/home/xpwu_bs_1/software/lapack-3.10.0/liblapack.a(zlarfg.o): In function `zlarfg_':
zlarfg.f:(.text+0x36): undefined reference to `dznrm2_'
zlarfg.f:(.text+0x2cd): undefined reference to `dznrm2_'
/home/xpwu_bs_1/software/lapack-3.10.0/liblapack.a(zlaed8.o): In function `zlaed8_':
zlaed8.f:(.text+0xa0a): undefined reference to `zdrot_'
/home/xpwu_bs_1/software/lapack-3.10.0/liblapack.a(dlaed2.o): In function `dlaed2_':
dlaed2.f:(.text+0xcdb): undefined reference to `drot_'
/home/xpwu_bs_1/software/lapack-3.10.0/liblapack.a(dlaed3.o): In function `dlaed3_':
dlaed3.f:(.text+0x64b): undefined reference to `dnrm2_'
/home/xpwu_bs_1/software/lapack-3.10.0/liblapack.a(dlaed8.o): In function `dlaed8_':
dlaed8.f:(.text+0xc98): undefined reference to `drot_'
/home/xpwu_bs_1/software/lapack-3.10.0/liblapack.a(dlaed9.o): In function `dlaed9_':
dlaed9.f:(.text+0x489): undefined reference to `dnrm2_'
/home/xpwu_bs_1/software/lapack-3.10.0/liblapack.a(dlaeda.o): In function `dlaeda_':
dlaeda.f:(.text+0x2d1): undefined reference to `drot_'
dlaeda.f:(.text+0x35b): undefined reference to `drot_'
collect2: error: ld returned 1 exit status
make: *** [gulp] Error 1

Is there still something I haven’t installed?

All the missing routines are part of the LAPACK/BLAS packages & so I don’t know why they aren’t being linked. Whether your system isn’t recursively checking for routines or there is some incompatibility between library versions on your machine. I’m afraid this is something specific to your environment and not related to GULP, so it’s hard to help. Sorry.

Thank you so much for helping and I come back with good news that I ‘accidentally’ solved this problem recently. I found after I recompiled LAPACK, BLAS, and SCALAPACK with shared library, GULP can be compiled in parallel with no error and it worked fine. So I think shared library may matter. Thanks again!

Glad you’ve resolved this. Some platforms do only support dynamic libraries, but it’s always best to use an optimised version for your machine if one is made available, rather than compiling yourself from source.