[ncl-talk] Failure with current Macports version of NCL 6.4.0

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Fri Jul 20 18:07:57 MDT 2018


All,

This minimal test fails with the current Macports NCL version.  It seems to
work fine with a local NCL 6.4.0 built from source, or with 6.4.0 on our
Linux system.  We suspect a Macports build problem or library problem.

This should just print "99" if it is working correctly.  This fails for all
four possible setfileoption format values.

procedure test3 ()
begin
  setfileoption ("nc", "Format", "Classic")
  x = 99
  print (x+"")
end

begin
  test3 ()
end

mac56:/home/dallured/ncl 106> /opt/local/bin/ncl test3.ncl
 NCAR Command Language Version 6.4.0

fatal:Variable (x) is undefined
fatal:["Execute.c":8640]:Execute: Error occurred at or near line 5 in file
test3.ncl
fatal:["Execute.c":8640]:Execute: Error occurred at or near line 9 in file
test3.ncl

Macports version info (trimmed):

mac56:/home/dallured/ncl 108> port info ncarg
Warning: port definitions are more than two weeks old, consider updating
them by running 'port selfupdate'.
ncarg @6.4.0_9 (science)
Variants:             accelerate, g95, gcc44, gcc45, gcc46, gcc47, gcc48,
gcc49, gcc5, gcc6, [+]gcc7
Build Dependencies:   hdf5, triangle, flex, gcc7
Library Dependencies: cairo, proj, gdal, udunits2, vis5d, hdfeos, hdfeos5,
wgrib2, curl, libpng, libxml2, gsl,
                      xorg-libXaw, libgcc
Runtime Dependencies: esmf, rangs-gshhs-ncarg
Platforms:            darwin

System info:

mac56:/home/dallured/ncl 111> uname -a
Darwin mac56.psd.ad 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21
22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64

mac56:/home/dallured/ncl 112> ldd /opt/local/bin/ncl
/opt/local/bin/ncl:
  /opt/local/lib/libnetcdf.11.dylib (compatibility version 11.0.0, current
version 11.4.0)
  /opt/local/lib/hdfeos5/lib/libhe5_hdfeos.0.dylib (compatibility version
1.0.0, current version 1.0.0)
  /opt/local/lib/hdfeos5/lib/libGctp.0.dylib (compatibility version 1.0.0,
current version 1.0.0)
  /opt/local/lib/libhdfeos.0.dylib (compatibility version 1.0.0, current
version 1.0.0)
  /opt/local/lib/libmfhdf.0.dylib (compatibility version 1.0.0, current
version 1.0.0)
  /opt/local/lib/libdf.0.dylib (compatibility version 1.0.0, current
version 1.0.0)
  /opt/local/lib/libgdal.20.dylib (compatibility version 25.0.0, current
version 25.0.0)
  /opt/local/lib/proj5/lib/libproj.13.dylib (compatibility version 15.0.0,
current version 15.0.0)
  /opt/local/lib/libjpeg.9.dylib (compatibility version 13.0.0, current
version 13.0.0)
  /opt/local/lib/libudunits2.dylib (compatibility version 0.0.0, current
version 0.0.0)
  /opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0, current
version 8.7.0)
  /opt/local/lib/libv5d.2.dylib (compatibility version 3.0.0, current
version 3.0.0)
  /opt/local/lib/libjasper.4.dylib (compatibility version 4.0.0, current
version 5.0.0)
  /opt/local/lib/libpng16.16.dylib (compatibility version 51.0.0, current
version 51.0.0)
  /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version
1.2.11)
  /opt/local/lib/libcairo.2.dylib (compatibility version 11403.0.0, current
version 11403.12.0)
  /opt/local/lib/libXrender.1.dylib (compatibility version 5.0.0, current
version 5.0.0)
  /opt/local/lib/libfontconfig.1.dylib (compatibility version 13.0.0,
current version 13.1.0)
  /opt/local/lib/libpixman-1.0.dylib (compatibility version 35.0.0, current
version 35.0.0)
  /opt/local/lib/libfreetype.6.dylib (compatibility version 22.0.0, current
version 22.0.0)
  /opt/local/lib/libiconv.2.dylib (compatibility version 9.0.0, current
version 9.0.0)
  /opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current
version 1.0.6)
  /opt/local/lib/libgsl.23.dylib (compatibility version 24.0.0, current
version 24.0.0)
  /opt/local/lib/libgslcblas.0.dylib (compatibility version 1.0.0, current
version 1.0.0)
  /opt/local/lib/libXpm.4.dylib (compatibility version 16.0.0, current
version 16.0.0)
  /opt/local/lib/libX11.6.dylib (compatibility version 10.0.0, current
version 10.0.0)
  /opt/local/lib/libXext.6.dylib (compatibility version 11.0.0, current
version 11.0.0)
  /opt/local/lib/libgcc/libgfortran.4.dylib (compatibility version 5.0.0,
current version 5.0.0)
  /opt/local/lib/libgcc/libgomp.1.dylib (compatibility version 2.0.0,
current version 2.0.0)
  /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1252.50.4)

Does anyone have any insights?  Thanks for your help.

--Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180720/c2e74878/attachment.html>


More information about the ncl-talk mailing list