[ncl-install] Build Intel fortran program linking to gfortran built ncarg lib

Reynolds, David C CTR (US) david.reynolds4.ctr at navy.mil
Fri May 3 15:27:52 MDT 2019


We have a legacy program built with the Intel fortran that uses the NCARG
library on a RH6 linus system. The legacy program is not going to be
rewritten.

The build that works uses the Intel 12 fortran compiler and a NCARG 6.1.2
library built from source with the Intel compiler. Only the not
OPenDAP-enabled NCARG library is needed, not the full NCL library.

When trying to build the program with the precompiled  NCL Version 6.5.0
binaries the program build returns many unsatisfied externals such as:

ifort -c  xiv_ob_inr_p.f
ifort -Bstatic -o ../bin/plotxy.exe arrows.o c_insty_ob.o c_insty_plt.o
c_pr_obs_p.o c_jvarty.o color.o colort.o colram.o cshade.o dpd_cpu.o equiv.o
fill.o flipk.o gbox.o ifill.o isolin.o leftjus.o ll_ij.o lnq2td.o
jvarty_fun.o maps.o maskland.o maxmin.o nblank.o nomask.o ob_get_type.o
p_lvl_find.o pl_innov.o prh2td.o plgrid.o plotlab.o plotob.o plotxy.o
q_cpu.o qprntn2.o readob.o rhdist.o rinnov.o rotang.o rsd_ina_p.o rsort.o
rstlen.o scale.o setup3.o setupg.o sfcplt.o shadad.o shadap.o shapre.o
stmlin.o stnplot.o uv2df1.o uvgrid1.o vectors.o wbarb.o wtitle.o
xiv_ob_rd_p.o xiv_ob_rd_s.o xiv_ob_ina_p.o xiv_ob_inr_p.o ../lib/libcoamps.a
-L/site/opt/ncarg/ncl-6.5.0/lib -lncarg -lncarg_gks -lncarg_c 
/site/opt/ncarg/ncl-6.5.0/lib/libncarg.a(cpcldm.o): In function `cpcldm_':
cpcldm.f:(.text+0x55f): undefined reference to `_gfortran_concat_string'
cpcldm.f:(.text+0x58f): undefined reference to `_gfortran_concat_string'
cpcldm.f:(.text+0x5b9): undefined reference to `_gfortran_concat_string'
cpcldm.f:(.text+0x5e9): undefined reference to `_gfortran_concat_string'
cpcldm.f:(.text+0x613): undefined reference to `_gfortran_concat_string'
/site/opt/ncarg/ncl-6.5.0/lib/libncarg.a(cpcldm.o):cpcldm.f:(.text+0x643):
more undefined references to `_gfortran_concat_string' follow
/site/opt/ncarg/ncl-6.5.0/lib/libncarg.a(cpcldm.o): In function `cpcldm_':
cpcldm.f:(.text+0x2129): undefined reference to `_gfortran_string_len_trim'
/site/opt/ncarg/ncl-6.5.0/lib/libncarg.a(cpcldr.o): In function `cpcldr_':
cpcldr.f:(.text+0x472): undefined reference to `_gfortran_concat_string'
cpcldr.f:(.text+0x498): undefined reference to `_gfortran_concat_string'
cpcldr.f:(.text+0x4be): undefined reference to `_gfortran_concat_string'
cpcldr.f:(.text+0x4e4): undefined reference to `_gfortran_concat_string'
cpcldr.f:(.text+0x50a): undefined reference to `_gfortran_concat_string'
/site/opt/ncarg/ncl-6.5.0/lib/libncarg.a(cpcldr.o):cpcldr.f:(.text+0x530):
more undefined references to `_gfortran_concat_string' follow
The question is "is there an easy fix to this?"; such as a library
specification
in the makefile for the progran or will I need to build the NCARG library
from 
source using our default Intel compilers?
 
Any suggestions are welcomed.
 
 
-- 
-- Dave
 
-----------------------------
Dave Reynolds
HPC Software Engineer
DeVine Consulting
FNMOC / US Navy
david.reynolds4.ctr at navy.mil <mailto:david.reynolds4.ctr at navy.mil> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20190503/924d0f12/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5391 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20190503/924d0f12/attachment.p7s>


More information about the ncl-install mailing list