[ncl-install] Undefined symbols for architecture x86_64 on MacOS X Mojave

Jeffrey Tilley tilley.jeff at gmail.com
Tue Oct 1 21:47:35 MDT 2019


Hello:

Some time ago I downloaded NCL 6.3.0 on a MacBook Pro which is now running
OS X Mojave (10.14.6).  As a WRF user I have always used the RIP post
processor which utilizes NCAR Graphics and have been trying to build RIP.
I am running into a load/link error as follows:

Undefined symbols for architecture x86_64:

  "__gfortran_stop_numeric_f08", referenced from:

      _r1mach_ in libncarg_c.a(r1mach.o)

ld: symbol(s) not found for architecture x86_64

collect2: error: ld returned 1 exit status

make: [rip] Error 1 (ignored)

So the problem appears to be in the ncarg_c library.   All the other RIP
executables appear to build correctly.   My output from the requested
troubleshooting commands is as follows:

(base) Jeffreys-MacBook-Pro:lib jeffreytilley$ which ncl

/usr/local/ncl-6.3.0/bin/ncl

(base) Jeffreys-MacBook-Pro:lib jeffreytilley$ ncl -V

dyld: Library not loaded: /usr/local/lib/libgfortran.3.dylib

  Referenced from: /usr/local/ncl-6.3.0/bin/ncl

  Reason: image not found

Abort trap: 6

(base) Jeffreys-MacBook-Pro:lib jeffreytilley$ otool -L 'which ncl'

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump:
*error: *'which ncl': No such file or directory

(base) Jeffreys-MacBook-Pro:lib jeffreytilley$ env | grep NCARG

NCARG_ROOT=/usr/local/ncl-6.3.0

(base) Jeffreys-MacBook-Pro:lib jeffreytilley$ which gcc

/usr/bin/gcc

(base) Jeffreys-MacBook-Pro:lib jeffreytilley$ which gfortran

/usr/local/bin/gfortran

(base) Jeffreys-MacBook-Pro:lib jeffreytilley$ gfortran --version

GNU Fortran (GCC) 8.2.0

Copyright (C) 2018 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


(base) Jeffreys-MacBook-Pro:lib jeffreytilley$ gcc --version

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1

Apple clang version 11.0.0 (clang-1100.0.33.8)

Target: x86_64-apple-darwin18.7.0

Thread model: posix

InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I'm assuming that this gfortran version is incompatible with the 6.3 NCAR
graphics version but would like advice on whether there is an easy fix with
the NCL version I have or whether installing 6.6.2 is the quickest fix.

Thanks,
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20191001/6807f984/attachment.html>


More information about the ncl-install mailing list