[ncl-talk] Troubleshooting WRAPIT

Dennis Shea shea at ucar.edu
Mon Jun 17 09:24:10 MDT 2019


f you do a

%> *which* WRAPIT

you will see that it is a 'csh' script

%> less /path-to-WRAPIT/WRAPIT

you will see that the 1st line is

*#!/bin/csh -f*

A person sent the following offline. Although *ncl_filedump *is mentioned,
the same issue applies to *WRAPIT*

---
Hi,

I might add that we have been getting recent reports of* ncl_filedump*
SEGV-ing on Ubuntu systems. We don't have access at the moment to such a
system to verify and track down the problem. However, as I recall, the
issue is related to the C-shell (csh) on those systems (ncl_filedump is
actually a C-shell script that ultimately calls into NCL to do the work).
If your system is indeed Ubuntu, a work-around seems to be to use the
tahoe-shell instead (tcsh).  That can be done by editing ncl_filedump,
r*eplacing
the first line:*

*    #!/bin/csh -f*


*with *

*   #!/bin/tcsh -f*

----
This 'fix' also works for *ncl_convert2nc* and *ncl_filedump*

On Thu, Jun 13, 2019 at 7:39 AM Dennis Shea <shea at ucar.edu> wrote:

> This does work one two systems and not on the third.
> Looks like a library is missing:  libmpc.so.2
>
> The following is for people that know about installation issues.
> I have attached the two codes used by WRAPIT.
>
> What version of NCL are you using?
> Also, the output from
>
> %> uname -a
> %> gcc --version
> %> ncl -V
>
> ----
> *The following is successful*
> *%>* uname -a
> Linux logan.cgd.ucar.edu 3.10.0-957.12.1.el7.x86_64 #1 SMP Mon Apr 29
> 14:59:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
>
> *%>* gcc --version
> gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
>
> *%>* ncl -V
> 6.5.0
>
> *WRAPIT* cal_fr.stub cal_fr.f90
>
> WRAPIT Version: 120209
> COMPILING cal_fr.f90
> LINKING
> END WRAPIT
> ---
> *%>* uname -a
> Linux cheyenne4 3.12.62-60.64.8-default #1 SMP Tue Oct 18 12:21:38 UTC
> 2016 (42e0a66) x86_64 x86_64 x86_64 GNU/Linux
>
> %> gcc --version
> gcc (SUSE Linux) 4.8.5
>
> %> ncl -V
> *6.6.2*
>
> %> *WRAPIT* cal_fr.stub cal_fr.f90
>
> WRAPIT Version: 120209
> COMPILING cal_fr.f90
> LINKING
> END WRAPIT
> -
> ---
> *The following fails.*
>
> *%>  *uname -a
> Darwin sherkin 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27
> PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
>
> *%>* gcc --version
> gcc (GCC) 6.2.0
>
> %> *WRAPIT* cal_fr.stub cal_fr.f90
>
> WRAPIT Version: 120209
>
> *WRAPIT.c:4:19: fatal error: stdio.h: No such file or directory #include
> <stdio.h>*
>                    ^
> compilation terminated.
> COMPILING cal_fr.f90
> LINKING
> gcc: error: WRAPIT.o: No such file or directory
> rm: WRAPIT.o: No such file or directory
> END WRAPIT
>
> On Wed, Jun 12, 2019 at 9:47 PM flyeh <flyeh at gate.sinica.edu.tw> wrote:
>
>> Hello,
>>
>> I am trying to do a WRAPIT on the attached code, but it fails with :
>>
>> WRAPIT Version: 120209
>> /data1/opt/gcc-4.8.5/libexec/gcc/x86_64-unknown-linux-gnu/4.8.5/cc1:
>> error while loading shared libraries: libmpc.so.2: cannot open shared
>> object file: No such file or directory COMPILING cal_fr.f90
>> /data1/opt/gcc-4.8.5/libexec/gcc/x86_64-unknown-linux-gnu/4.8.5/f951:
>> error while loading shared libraries: libmpc.so.2: cannot open shared
>> object file: No such file or directory LINKING
>> gcc: error: WRAPIT.o: No such file or directory
>> gcc: error: cal_fr.o: No such file or directory
>> rm: cannot remove `WRAPIT.o': No such file or directory
>> rm: cannot remove `cal_fr.o': No such file or directory
>> END WRAPIT
>>
>> Does anyone know how to fix it?
>>
>>
>> Tanks in advance,
>>
>> Regards,
>>
>> Ariel
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> 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/20190617/ec7d4ef5/attachment.html>


More information about the ncl-talk mailing list