[ncl-install] Error in running ncargf90

Mary Haley haley at ucar.edu
Tue Jan 23 21:34:37 MST 2018


You are running GNU version 7.1 which is incompatible with what the version
of NCL you have was built with.

We have been telling people not to install GNU 7.1 if possible, and revert
back to GNU 6.x.

In our MacOS download notes:

http://www.ncl.ucar.edu/Download/macosx.shtml#InstallCompilers

We provide the location of where you can install older compilers. It might
be worth a shot:

https://sourceforge.net/projects/hpc/files/hpc/gcc/

For the record, I have GNU 7.1.0 installed on my home Mac, and I'm able to
compile NCL with it, but this is a test version that is not ready for
public release yet.  If you want to give it a try, I can give you a beta
version.

--Mary


On Mon, Jan 22, 2018 at 5:55 PM, Yuanfu Xie <yuanfu_xie at yahoo.com> wrote:

> Hi, Mary,
>
> Following your instructions, I ran them with the following outputs. It
> seems some internal error. Let me know what I can try next.
>
> Thank you so much for your help.
>
> Yuanfu
>
> *xieyuanfudeiMac:~ xieyuanfu$ sw_vers -productVersion*
> *10.13.1*
> *xieyuanfudeiMac:~ xieyuanfu$ which gfortran*
> */usr/local/bin/gfortran*
> *xieyuanfudeiMac:~ xieyuanfu$ gfortran --version*
> *GNU Fortran (GCC) 7.1.0*
> *Copyright (C) 2017 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.*
>
> *xieyuanfudeiMac:~ xieyuanfu$ which gcc*
> */usr/local/bin/gcc*
> *xieyuanfudeiMac:~ xieyuanfu$ gcc --version*
> *gcc (GCC) 7.1.0*
> *Copyright (C) 2017 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.*
>
> *xieyuanfudeiMac:~ xieyuanfu$ ncargex agex07 -W x11 -n*
>
> *NCAR Graphics Fortran  Example <agex07>*
>
>
> *NOTE: This example is being run interactively and can only*
> *      be executed if you have X running and have your     *
> *      DISPLAY environment variable set properly.  It will *
> *      create an X11 window that you must click on with your*
> *      mouse to advance the frame(s).*
>
> *  Copying agex07.f*
>
> *xieyuanfudeiMac:~ xieyuanfu$ ncargf90 agex07.f -o agex07*
> *gfortran -fPIC -fno-range-check -m64 -Wall -fopenmp -O agex07.f -o agex07
> -L/usr/local/ncl_ncarg-6.4.0/lib -L/opt/X11/lib -lncarg -lncarg_gks
> -lncarg_c -lXpm -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype
> -lexpat -lpng -lz -lXrender -lbz2*
> *agex07.f:166:29:*
>
> *       SUBROUTINE AGUTOL (IAXS,FUNS,IDMA,VINP,VOTP)*
>                              *1*
> *Warning:** Unused dummy argument ‘**iaxs**’ at (1) [*
> *-Wunused-dummy-argument**]*
> *xieyuanfudeiMac:~ xieyuanfu$ ./agex07*
> *At line 48 of file grqst.f*
> *Internal Error: get_unit(): Bad internal unit KIND*
>
> *Error termination. Backtrace:*
> *#0  0x10ce3434c*
> *#1  0x10ce35055*
> *#2  0x10ce3550d*
> *#3  0x10cf78e6d*
> *#4  0x10cf7677f*
> *#5  0x10c91a523*
> *#6  0x10c9139ee*
> *#7  0x10c911901*
> *#8  0x10c903afd*
> *#9  0x10c9765ef*
> *xieyuanfudeiMac:~ xieyuanfu$ *
>
>
>
> On Tuesday, January 23, 2018 4:35 AM, Mary Haley <haley at ucar.edu> wrote:
>
>
> Can you type the following commands and send email all the output back to
> ncl-install at ucar.edu:
>
> sw_vers -productVersion
> which gfortran
> gfortran --version
> which gcc
> gcc --version
> ncargex agex07 -W x11 -n
> ncargf90 agex07.f -o agex07
> ./agex07
>
> Thanks,
>
> --Mary
>
> On Tue, Jan 16, 2018 at 10:46 PM, Yuanfu Xie <yuanfu_xie at yahoo.com> wrote:
>
> Mary and Ted,
>
> Thank you both for your help. After installing Xcode, it worked but it ran
> into segmentation fault problem (see my separate email).
>
> Yuanfu
>
>
> On Wednesday, January 17, 2018 1:21 AM, Mary Haley <haley at ucar.edu> wrote:
>
>
> Yuanfu,
>
> Idon't think this is an ncargf90 problem, but rather a gfortran problem.
> And I believe the issue is with your xcode being out-of-date with your
> gfortran.  This can happen if you've upgraded your system lately.
>
> If you google the "missing xcrun at: /Library/Developer/
> CommandLineTools/usr/bin/ xcrun" error message, you will see some
> suggestions that you need to fix the developer tools on your Mac by typing
> (from a UNIX terminal window):
>
> xcode-select --install
>
> https://stackoverflow.com/ questions/32893412/command-
> line-tools-not-working-os-x- el-capitan-macos-sierra-macos- high-sierra
> <https://stackoverflow.com/questions/32893412/command-line-tools-not-working-os-x-el-capitan-macos-sierra-macos-high-sierra>
>
> --Mary
>
>
>
>
> On Mon, Jan 15, 2018 at 5:49 PM, Yuanfu Xie via ncl-install <
> ncl-install at ucar.edu> wrote:
>
>
> Greetings.
>
> I am trying to compile a Fortran code using the command of ncargf90. It
> returned an error message (see the attached messages). I do not see any
> file named xcrun on my computer. Would you give me some help on how to
> resolve this issue? Thank you.
>
> Best regards,
>
> Yuanfu
>
> ncargf90 heun.f90
> gfortran -fPIC -fno-range-check -m64 -Wall -fopenmp -O heun.f90
> -L/Users/xieyuanfu/plotting/ ncl_ncarg-6.4.0-MacOS_10.12_ 64bit_gnu530/lib
> -L/opt/X11/lib -lncarg -lncarg_gks -lncarg_c -lXpm -lX11 -lXext -lcairo
> -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lXrender -lbz2
> xcrun: error: invalid active developer path (/Library/Developer/
> CommandLineTools), missing xcrun at: /Library/Developer/
> CommandLineTools/usr/bin/xcrun
>
> ______________________________ _________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/ mailman/listinfo/ncl-install
> <http://mailman.ucar.edu/mailman/listinfo/ncl-install>
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20180123/82a60cfd/attachment-0001.html>


More information about the ncl-install mailing list