[ncl-install] Don't Compiled out 'ncl' exe file from build NCL and NCAR Graphics from source code

Mary Haley haley at ucar.edu
Fri Sep 22 12:44:09 MDT 2017


In the future, please start a new email thread when you have a new
question. Also, NCL usage questions should be posted to ncl-talk at ucar.edu.
All follow-up questions should be posted back to the list as well.

Could you try WRAPIT on a small test program, so we can see if that works?

Go to:

http://www.ncl.ucar.edu/Document/Tools/WRAPIT.shtml#Example_2

and download the ex02.f and ex02.ncl files.

Then, try executing:

WRAPIT -in -d ex02.f

Let us know what happens.

Thanks,

--Mary


On Fri, Sep 22, 2017 at 5:38 AM, 王忍之 <rzwang at nuist.edu.cn> wrote:

> Thank you ,Mary.
> I has sccessed of build NCL. It have '${NCARG_ROOT}/bin/ncl'  exist. And
> It can plot examples.
> My environment variable NCARG_ROOT=/nuist/u/home/dawn/ncl.
>
> When I use 'WRAPIT' compile external shared library. I used this comand to
>  compile.
> ' WRAPIT -in ver03.stub ver03.f90 '
>
> And run .ncl script call it. The errror is following:
> warning:An error occurred loading the external file ./ver03.so, file not
> loaded
> ./ver03.so: undefined symbol: NclGetArgValue
>
> I run 'WRAPIT -in -d ver03.stub ver03.f90 ', the output is:
> ............................................
> WRAPIT Version: 120209
> /nuist/p/public/app/intel/intel2016/compilers_and_libraries_
> 2016.1.150/linux/bin/intel64/ifort
> OPERATING SYSTEM: Linux
> nbits = 64
> FORTRAN COMPILER (f90c): ifort
> FORTRAN COMPILER OPTIONS (fopts):  -fPIC -c -CB -V
> cc -fPIC -c -I/nuist/u/home/dawn/ncl/include WRAPIT.c
> COMPILING ver03.f90
> ifort -fPIC -c -CB -V ver03.f90
> Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R)
> 64, Version 16.0.1.150 Build 20151021
> Copyright (C) 1985-2015 Intel Corporation.  All rights reserved.
>
>  Intel(R) Fortran 16.0-1585
> SHARED OBJECT NAME (SharedObj): ver03.so
> LINKER SUFFIX (ld_suffix): WRAPIT.o ver03.o -o ver03.so
>
> LINKING
> ifort -shared WRAPIT.o ver03.o -o ver03.so
> END WRAPIT
> .............................................
>  And I tried add library PATH.
> ' WRAPIT -in -L ${NCARG_ROOT}/lib -l ncl -l hlu -l ncarg -l ncarg_c -l
> ncarg_gks -l nfp -l ngmath  ver03.stub ver03.f90'
> And it's output is :
> warning:An error occurred loading the external file ./ver03.so, file not
> loaded
> ./ver03.so: undefined symbol: drelhum_
>
> I'm confused, Why it is . It don't know how to do. Waiting for your reply!
>
> Dawn Wang
>
>
> -----原始邮件-----
> *发件人:*"Mary Haley" <haley at ucar.edu>
> *发送时间:*2017-09-21 23:45:03 (星期四)
> *收件人:* "王忍之" <rzwang at nuist.edu.cn>
> *抄送:* "ncl-install at ucar.edu" <ncl-install at ucar.edu>
> *主题:* Re: [ncl-install] Don't Compiled out 'ncl' exe file from build NCL
> and NCAR Graphics from source code
>
>
> Dear Renzhi Wang,
>
> Did you type "make Everything" from the top level NCL source code tree,
> and save the output to a file? If so, can you email the file to
> ncl-install at ucar.edu? Also, please email the $NCARG/config/Site.local
> file.
>
> My guess is that the make system is trying to build support for handling
> HDF-EOS files, but it can't find the required HDF-EOS include files.
>
> --Mary
>
>
> On Wed, Sep 20, 2017 at 7:33 AM, 王忍之 <rzwang at nuist.edu.cn> wrote:
>
>> Hello:
>>   I compile NCL6.4.0 use Intel(16.0.1) Compiler in Redhat 6.2 OS. I
>> compiled another directory until enter ${NCARG}/ni/src/ncl directory. Run
>> 'make' command,have this problem:
>> ``````````````
>>   ar: creating libncl.a
>>   ar: NclHDFEOS.o: No such file or directory
>>   make: *** [libncl.a] Error 1
>> ```````````
>>  And,I add something in Makefile, like:
>>  Line 818:
>>    $(CC) -c -o scanapi.o $(API_DEFS) $(CFLAGS)  $<
>>  Line 823:
>>     $(CC) -c -o parseapi.o $(API_DEFS) $(CFLAGS)   $<
>>  Line 981:
>>     $(CC) -c -o NclHDF.o $(HDFDEFINES) $(HDF4_NETCDF) $(CFLAGS) NclHDF.c
>> $<
>>  Line 988:
>>     $(CC) -c -o NclHDFEOS.o $(HDFDEFINES) $(HDF4_NETCDF) $(CFLAGS)
>>  NclHDFEOS.c $<
>>  then,compile again ,no error, But have many warnings!!!
>>
>> icc: warning #10145: no action performed for file 'Ncl.o'
>> icc: warning #10145: no action performed for file 'io.o'
>> icc: warning #10145: no action performed for file 'NclHLUObj.o'
>> icc: warning #10145: no action performed for file 'NclApi.o'
>> icc: warning #10145: no action performed for file 'guiFuncs.o'
>> icc: warning #10145: no action performed for file 'NclDriver.o'
>> .........etc.
>> Finally,this directory no 'ncl' file be produced. I tried many times but
>> failed.
>> Can you help me hou to do? thank you.
>>
>>
>>
>>        Sincerely ,  Renzhi Wang
>>
>> _______________________________________________
>> ncl-install mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170922/cd1f17c6/attachment.html>


More information about the ncl-install mailing list