[ncl-talk] libgomp issue

Walter Hannah whannah at rsmas.miami.edu
Wed Feb 11 07:33:59 MST 2015


Mary,

Thanks! This totally helped me find the problem.

I forgot to mention that I'm using a mac (10.9.5)

     > mdfind -name libgomp.1
    /usr/local/Cellar/gcc/4.8.2/lib/gcc/x86_64-apple-darwin13.1.0/4.8.2/libgomp.1.dylib
    /usr/local/Cellar/gcc/4.8.2/lib/gcc/x86_64-apple-darwin13.1.0/4.8.2/i386/libgomp.1.dylib
    /usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/libgomp.1.dylib
    /usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/i386/libgomp.1.dylib
    /usr/local/octave/3.8.0/lib/libgcc/libgomp.1.dylib
    /usr/local/lib/i386/libgomp.1.dylib

     > gcc --version
    gcc (GCC) 4.8.1

     > which gcc
    /usr/local/bin/gcc

I was able to use a symbolic link so that libgomp.1.dylib points to 
version associated with gcc 4.9, and this resolved the issue.

     > ln -s /usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/libgomp.1.dylib
    /usr/local/lib/libgomp.1.dylib

     > ls -l /usr/local/lib/libgomp.1.dylib
    /usr/local/lib/libgomp.1.dylib ->
    /usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/libgomp.1.dylib

Thanks,
Walter

On 2/10/15 6:49 PM, Mary Haley wrote:
> What does the following report:
>
> locate libgomp
> gcc --version
> which gcc
>
> It's possible that you have multiple versions of gcc installed, but 
> that when you run NCL, it's not finding the correct one.
>
> --Mary
>
>
>
> On Tue, Feb 10, 2015 at 11:05 AM, Walter Hannah 
> <whannah at rsmas.miami.edu <mailto:whannah at rsmas.miami.edu>> wrote:
>
>     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
>
>     _______________________________________________
>     ncl-talk mailing list
>     List instructions, subscriber options, unsubscribe:
>     http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150211/ed002392/attachment.html 


More information about the ncl-talk mailing list