[ncl-install] Undefined reference to ggkwdr_ after building 6.2.1 for the PGI compilers
Mr. Darwin G. Adams (Contractor)
adamsdg.ctr at afrl.hpc.mil
Tue Dec 2 13:02:41 MST 2014
I have built ncl_ncarg-6.2.1 for the PGI compilers on a Cray XC30 HPC
machine.
I also had to build szip/2.1, and undunits/2.2.17.
I am getting an unrecognized reference when I try to test the code.
adamsdg at armstrong06:/app/ncar/examples> ncargex cpex08
NCAR Graphics Fortran Example <cpex08>
Copying cpex08.f
Copying cpexcc.f
Compiling and linking...
pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -mp -O -o cpex08 cpexcc.f cpex08.f
-L/app/ncar/ncl_ncarg/6.2.1-pgi/lib -L/usr/lib64 -lncarg -lncarg_gks
-lncarg_c -lX11 -lxcb -lxcb-xlib -lXau -ldl -lcairo -lfontconfig
-lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lXrender -lbz2
cpexcc.f:
cpex08.f:
/app/ncar/ncl_ncarg/6.2.1-pgi/lib/libncarg_gks.a(gziqwk.o): In function
`gziqwk_':
/p/home/app/ncar/ncl_ncarg/6.2.1-pgi/src/ncl_ncarg-6.2.1/ncarg2d/src/libncarg_gks/awi/./gziqwk.f:40:
undefined reference to `ggkwdr_'
/app/ncar/ncl_ncarg/6.2.1-pgi/lib/libncarg_gks.a(gztowk.o): In function
`gztowk_':
/p/home/app/ncar/ncl_ncarg/6.2.1-pgi/src/ncl_ncarg-6.2.1/ncarg2d/src/libncarg_gks/awi/./gztowk.f:67:
undefined reference to `ggkwdr_'
/p/home/app/ncar/ncl_ncarg/6.2.1-pgi/src/ncl_ncarg-6.2.1/ncarg2d/src/libncarg_gks/awi/./gztowk.f:161:
undefined reference to `ggkwdr_'
/p/home/app/ncar/ncl_ncarg/6.2.1-pgi/src/ncl_ncarg-6.2.1/ncarg2d/src/libncarg_gks/awi/./gztowk.f:227:
undefined reference to `ggkwdr_'
The compile and link failed.
On the "How to build NCL and NCAR Graphics from source code" page.
http://www.ncl.ucar.edu/Download/build_from_src.shtml#Troubleshooting
Option #3
If you get the following errors when you try to compile a Fortran or C
NCAR Graphics program:
/usr/local/ncarg/lib/libncarg_gks.a(gziqwk.o): In function `gziqwk_':
gziqwk.f:(.text+0x187): undefined reference to `ggkwdr_'
/usr/local/ncarg/lib/libncarg_gks.a(gztowk.o): In function `gztowk_':
gztowk.f:(.text+0x295): undefined reference to `ggkwdr_'
gztowk.f:(.text+0x7d7): undefined reference to `ggkwdr_'
gztowk.f:(.text+0xc30): undefined reference to `ggkwdr_'
then try this:
cd $NCARG/ncarg2d/src/libncarg_gks
rm awi/ggkwdr_stub.o
make all install
Which I did and still get the exact same error.
DG
More information about the ncl-install
mailing list