[ncl-talk] WRAPIT error when trying the simple test

Dennis Shea shea at ucar.edu
Mon Jun 5 09:02:25 MDT 2017


What version of NCL are you using?

%> ncl -V

======================================
I get a similar error on my MAC with 6.3.0

================  ex.f ===================
C NCLFORTSTART
      SUBROUTINE EX (II,XX)
      INTEGER II
      REAL XX
C NCLEND
      II = II + 5
      XX = XX - 12.345
      RETURN
      END
========================================
%> WRAPIT ex.f

WRAPIT Version: 120209
In file included from /Users/shea/devel/include/ncarg/hlu/hlu.h:49:0,
                 from WRAPIT.c:9:
WRAPIT.c: In function ‘EX_W’:
WRAPIT.c:47:10: warning: implicit declaration of function ‘ex_’
[-Wimplicit-function-declaration]
  NGCALLF(ex,EX)(II,XX);
          ^
/Users/shea/devel/include/ncarg/c.h:31:29: note: in definition of macro
‘NGCALLF’
 #define NGCALLF(reg,caps)   reg##_
                             ^~~
COMPILING ex.f
LINKING
END WRAPIT

=======================

However, the created .so file does work.

========================
%> ncl ex.ncl

(0)     before i = 5
(0)     before x = 1.3
(0)     after i = 10
(0)     after x = -11.045

===========================================

NCL 6.4.0 does not seem to have the issue.

%> ncl -V
6.4.0

.%> WRAPIT ex.f

WRAPIT Version: 120209
COMPILING ex.f
LINKING
END WRAPIT

%> ncl ex.ncl

 Copyright (C) 1995-2017 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.4.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.

(0)    before i = 5
(0)    before x = 1.3
(0)    after i = 10
(0)    after x = -11.045


On Sun, Jun 4, 2017 at 11:27 PM, wangna at mail.iap.ac.cn <
wangna at mail.iap.ac.cn> wrote:

> Dear all,
>
> I am trying to troubleshoot WRAPIT using the simple test provided by
> https://www.ncl.ucar.edu/Document/Tools/WRAPIT.shtml.
> The following error occurred when I run “ WRAPIT ex.f":
>
>
> WRAPIT Version: 120209
> In file included from /public/software/meteoapps/ncl/6.4.0/
> include/ncarg/hlu/hlu.h:28:0,
>                  from WRAPIT.c:9:
> /public/software/compiler/intel/composer_xe_2015.2.164/
> compiler/include/limits.h:36:54: error: missing binary
> operator before token "("
>      defined(__has_include_next) && __has_include_next(<limits.h>)
>                                                       ^
> COMPILING ex.f
> LINKING
> gcc: error: WRAPIT.o: No such file or directory
> rm: cannot remove ?.RAPIT.o?. No such file or directory
> END WRAPIT
>
> And here's my system information
> Linux admin 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:
> 10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>
> Does anyone know how to fix it?
>
> Thanks
> Wang Na
>
>
> ------------------------------
> WANG Na
> Institute of Atmospheric Physics
> Chinese Academy of Sciences
> Beijing 100029, China
> * <wangna at mail.iap.ac.cn>*wangna at mail.iap.ac.cn
>
>
> _______________________________________________
> 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/20170605/6dde70bc/attachment.html 


More information about the ncl-talk mailing list