[ncl-talk] sub: Wrapit error...

Dennis Shea shea at ucar.edu
Sun Mar 12 08:02:40 MDT 2017


Well, I think you would have to send the fortran code: newcffi_singlegrid.f

Also, the output from the following.

%> ncl -V
%> gxx--version
%> uname -a

=====
Further, based on a previous email, where you wrote "new to NCL", I suggest
that you invest looking at NCL tutorial at:
   http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/

Yes, it will take some time BUT you will learn NCL.

Good luck

On Sat, Mar 11, 2017 at 7:21 PM, dale zuri <dalezuri at gmail.com> wrote:

> Hi,
> WRAPIT didn't give any error. But, when I run ncl code, I get below
> printed warning. And also printed the WRAPIT -d output.
>
> Please, help me to fix this bug?
> Thank you,
> Dale
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> warning:An error occurred loading the external file
> ./newcffi_singlegrid.so, file not loaded
> dlopen(./newcffi_singlegrid.so, 2): Symbol not found: _hin_
>   Referenced from: ./newcffi_singlegrid.so
>   Expected in: flat namespace
>  in ./newcffi_singlegrid.so
> warning:error at line 9 in file canadafire_FWItestZeikcomp.ncl
>
> fatal:syntax error: line 43 in file canadafire_FWItestZeikcomp.ncl before
> or near :
> EX:
> --^
>
> fatal:error in statement
> fatal:Syntax Error in block, block not executed
>
> Output of WRAPIT -d
> COMPILING newcffi_singlegrid.f
> gfortran -m64 -fPIC -v -c -fno-second-underscore newcffi_singlegrid.f
> Using built-in specs.
> COLLECT_GCC=gfortran
> Target: x86_64-apple-darwin15.6.0
> Configured with: ../gcc-6.2.0/configure --enable-languages=c++,fortran
> --with-gmp=/usr/local
> Thread model: posix
> gcc version 6.2.0 (GCC)
> COLLECT_GCC_OPTIONS='-m64' '-fPIC' '-v' '-c' '-fno-second-underscore'
> '-mmacosx-version-min=10.12.3' '-mtune=core2'
>  /usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/6.2.0/f951
> newcffi_singlegrid.f -ffixed-form -fPIC -quiet -dumpbase
> newcffi_singlegrid.f -m64 -mmacosx-version-min=10.12.3 -mtune=core2
> -auxbase newcffi_singlegrid -version -fPIC -fno-second-underscore
> -fintrinsic-modules-path /usr/local/lib/gcc/x86_64-
> apple-darwin15.6.0/6.2.0/finclude -o /var/folders/60/
> qx8g2gvj169741yy29b3h0hm0000gn/T//ccLtfHN9.s
> GNU Fortran (GCC) version 6.2.0 (x86_64-apple-darwin15.6.0)
>     compiled by GNU C version 6.2.0, GMP version 6.0.0, MPFR version
> 3.1.2-p10, MPC version 1.0.2, isl version none
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> GNU Fortran2008 (GCC) version 6.2.0 (x86_64-apple-darwin15.6.0)
>     compiled by GNU C version 6.2.0, GMP version 6.0.0, MPFR version
> 3.1.2-p10, MPC version 1.0.2, isl version none
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> COLLECT_GCC_OPTIONS='-m64' '-fPIC' '-v' '-c' '-fno-second-underscore'
> '-mmacosx-version-min=10.12.3' '-mtune=core2'
>  as -arch x86_64 -force_cpusubtype_ALL -o newcffi_singlegrid.o
> /var/folders/60/qx8g2gvj169741yy29b3h0hm0000gn/T//ccLtfHN9.s
> COMPILER_PATH=/usr/local/libexec/gcc/x86_64-apple-
> darwin15.6.0/6.2.0/:/usr/local/libexec/gcc/x86_64-
> apple-darwin15.6.0/6.2.0/:/usr/local/libexec/gcc/x86_64-
> apple-darwin15.6.0/:/usr/local/lib/gcc/x86_64-apple-
> darwin15.6.0/6.2.0/:/usr/local/lib/gcc/x86_64-apple-darwin15.6.0/
> LIBRARY_PATH=/usr/local/lib/gcc/x86_64-apple-darwin15.6.0/
> 6.2.0/:/usr/local/lib/gcc/x86_64-apple-darwin15.6.0/6.2.0/../../../
> COLLECT_GCC_OPTIONS='-m64' '-fPIC' '-v' '-c' '-fno-second-underscore'
> '-mmacosx-version-min=10.12.3' '-mtune=core2'
> SHARED OBJECT NAME (SharedObj): newcffi_singlegrid.so
> LINKER SUFFIX (ld_suffix): WRAPIT.o newcffi_singlegrid.o -o
> newcffi_singlegrid.so
>
> LINKING
> gcc -m64 -bundle -flat_namespace -undefined suppress WRAPIT.o
> newcffi_singlegrid.o -o newcffi_singlegrid.so -lgfortran
> END WRAPIT
>
>
> Thank you
>
>
>
>
> _______________________________________________
> 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/20170312/73544d01/attachment.html 


More information about the ncl-talk mailing list