[ncl-install] Undefined reference to ggkwdr_ after building 6.2.1 for the PGI compilers
Mary Haley
haley at ucar.edu
Tue Dec 2 16:23:45 MST 2014
What's likely happening here is that the GKS library didn't get built
fully, and this can happen if it can't find the required cairo or png
libraries.
Can you send me the make-output file from your build? I can usually tell
right away if the GKS library didn't get built.
--Mary
On Tue, Dec 2, 2014 at 1:02 PM, Mr. Darwin G. Adams (Contractor) <
adamsdg.ctr at afrl.hpc.mil> wrote:
> 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
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20141202/61270c9b/attachment-0001.html
More information about the ncl-install
mailing list