<div dir="ltr"><div class="gmail_default" style="font-size:small">What does the following report:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">locate libgomp</div><div class="gmail_default" style="font-size:small">gcc --version</div><div class="gmail_default" style="font-size:small">which gcc</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It's possible that you have multiple versions of gcc installed, but that when you run NCL, it's not finding the correct one.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 10, 2015 at 11:05 AM, Walter Hannah <span dir="ltr"><<a href="mailto:whannah@rsmas.miami.edu" target="_blank">whannah@rsmas.miami.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I'm trying to contour a scalar field with NCL. Previous emails about
this problem (<a href="http://mailman.ucar.edu/pipermail/ncl-talk/2014-October/001165.html" target="_blank">see
here</a>) 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.<br>
<br>
Here's a simple script I use to re-create the problem:<br>
<blockquote><small><tt>load
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</tt><tt><br>
</tt><tt>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</tt><tt><br>
</tt><tt>load
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</tt><tt><br>
</tt><tt>begin</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> fig_type = "x11"</tt><tt><br>
</tt><tt> fig_file = "test.sf"</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt>;====================================================================================================</tt><tt><br>
</tt><tt>; make up some random data</tt><tt><br>
</tt><tt>;====================================================================================================</tt><tt><br>
</tt><tt><br>
</tt><tt> lat = (/-10,-10,-10, 0, 0, 0, 10, 10, 10/)</tt><tt><br>
</tt><tt> lon = (/ 50, 60, 70, 50, 60, 70, 50, 60, 70/)</tt><tt><br>
</tt><tt><br>
</tt><tt> lat@units = "degrees north"</tt><tt><br>
</tt><tt> lon@units = "degrees east"</tt><tt><br>
</tt><tt><br>
</tt><tt> data = fspan(0,100,dimsizes(lat))</tt><tt><br>
</tt><tt><br>
</tt><tt>;====================================================================================================</tt><tt><br>
</tt><tt>; Create plot</tt><tt><br>
</tt><tt>;====================================================================================================</tt><tt><br>
</tt><tt> wks = gsn_open_wks(fig_type,fig_file)</tt><tt><br>
</tt><tt> plot = new(1,graphic)</tt><tt><br>
</tt><tt><br>
</tt><tt> res = True</tt><tt><br>
</tt><tt> res@cnFillOn = True</tt><tt><br>
</tt><tt> res@cnLinesOn = False</tt><tt><br>
</tt><tt> res@sfYArray = lat</tt><tt><br>
</tt><tt> res@sfXArray = lon</tt><tt><br>
</tt><tt><br>
</tt><tt> res@mpMinLatF = -40.</tt><tt><br>
</tt><tt> res@mpMaxLatF = 40.</tt><tt><br>
</tt><tt> res@mpMinLonF = 40.</tt><tt><br>
</tt><tt> res@mpMaxLonF = 110.</tt><tt><br>
</tt><tt><br>
</tt><tt> plot(0) = gsn_csm_contour_map(wks,data,res)</tt><tt><br>
</tt><tt>;====================================================================================================</tt><tt><br>
</tt><tt>;====================================================================================================</tt><tt><br>
</tt><tt>end</tt></small><br>
</blockquote>
If I run that script, I get this error:<br>
<blockquote><tt>dyld: lazy symbol binding failed: Symbol not found:
_GOMP_parallel</tt><tt><br>
</tt><tt> Referenced from: /Users/whannah/NCL/bin/ncl</tt><tt><br>
</tt><tt> Expected in: /usr/local/lib/libgomp.1.dylib</tt><tt><br>
</tt><tt><br>
</tt><tt>dyld: Symbol not found: _GOMP_parallel</tt><tt><br>
</tt><tt> Referenced from: /Users/whannah/NCL/bin/ncl</tt><tt><br>
</tt><tt> Expected in: /usr/local/lib/libgomp.1.dylib</tt><tt><br>
</tt><tt><br>
</tt><tt>Trace/BPT trap: 5</tt><br>
</blockquote>
Another post about this online mentions the use of <i>DYLD_LIBRARY_PATH</i>,
but I don't have this set.<br>
<br>
Any ideas on how to diagnose the problem here?<br>
<br>
Thanks,<br>
Walter<br>
</div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>