[ncl-talk] libgomp issue

Walter Hannah whannah at rsmas.miami.edu
Tue Feb 10 11:05:12 MST 2015


Hi,

I'm trying to contour a scalar field with NCL. Previous emails about 
this problem (see here 
<http://mailman.ucar.edu/pipermail/ncl-talk/2014-October/001165.html>) 
seem to be related to the version of GCC. However, my version of GCC 
(4.8.1) is compatible with my version of NCL (6.2.1). So I think this is 
a different problem.

Here's a simple script I use to re-create the problem:

    load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
    load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
    load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
    begin

         fig_type = "x11"
         fig_file = "test.sf"

    ;====================================================================================================
    ; make up some random data
    ;====================================================================================================

         lat = (/-10,-10,-10,  0,  0,  0, 10, 10, 10/)
         lon = (/ 50, 60, 70, 50, 60, 70, 50, 60, 70/)

         lat at units = "degrees north"
         lon at units = "degrees east"

         data = fspan(0,100,dimsizes(lat))

    ;====================================================================================================
    ; Create plot
    ;====================================================================================================
         wks = gsn_open_wks(fig_type,fig_file)
         plot = new(1,graphic)

             res = True
             res at cnFillOn        = True
             res at cnLinesOn       = False
             res at sfYArray        = lat
             res at sfXArray        = lon

             res at mpMinLatF       = -40.
             res at mpMaxLatF       =  40.
             res at mpMinLonF       =  40.
             res at mpMaxLonF       = 110.

         plot(0) = gsn_csm_contour_map(wks,data,res)
    ;====================================================================================================
    ;====================================================================================================
    end

If I run that script, I get this error:

    dyld: lazy symbol binding failed: Symbol not found: _GOMP_parallel
       Referenced from: /Users/whannah/NCL/bin/ncl
       Expected in: /usr/local/lib/libgomp.1.dylib

    dyld: Symbol not found: _GOMP_parallel
       Referenced from: /Users/whannah/NCL/bin/ncl
       Expected in: /usr/local/lib/libgomp.1.dylib

    Trace/BPT trap: 5

Another post about this online mentions the use of /DYLD_LIBRARY_PATH/, 
but I don't have this set.

Any ideas on how to diagnose the problem here?

Thanks,
Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150210/7f6daa82/attachment.html 


More information about the ncl-talk mailing list