[ncl-install] Error compiling ncl 5.1.1
Mateus Teixeira
mateus.teixeira at gmail.com
Tue Mar 16 23:22:50 MDT 2010
Dear NCL users,
I could run this example without the *-lgfortran* in the compilation line.
It has worked with the compiled NCL and with pre-compiled NCL binaries, even
the gcc and gfortran versions being different from that used to generate the
pre-compiled NCL binaries.
Best regards
Mateus
2010/3/17 Mateus Teixeira <mateus.teixeira at gmail.com>
> Adding more information:
>
> Even with the error previously mentioned, ncl command was compiled, what
> let me little confused about the meaning of this error. I've executed some
> basic example NCL scripts and they've worked.
>
> When I've tried to compile HLU example xy01f, I get the following error:
> *
> [mateus at localhost Download]$ ng4ex xy01f
>
> NCAR Graphics High Level Utility Fortran Example <xy01f>
>
> Copying xy01f.f
> Copying xy01.res
>
> Compiling and linking...
> gfortran -fPIC -fno-second-underscore -fno-range-check -O -o xy01f xy01f.f
> -L/usr/local/ncargraphics/lib -L/usr/lib -L/usr/lib/hdf -L/usr/local/lib
> -L/usr/local/netcdf-4.1/lib -I/usr/local/ncargraphics/include -I/usr/include
> -I/usr/include/hdf -I/usr/include/libpng12 -I/usr/local/include
> -I/usr/include/jasper -I/usr/local/netcdf-4.1/include -lhlu -lncarg
> -lncarg_gks -lncarg_c -lX11 -lXext -lpng -lz -lgfortran -lm
> /usr/lib/gcc/i686-redhat-linux/4.4.3/../../../crt1.o: In function `_start':
> (.text+0x18): undefined reference to `main'
> collect2: ld returned 1 exit status
> Executing <xy01f>...
>
> ./xy01f: Command not found.
>
> Finished executing <xy01f>...*
>
> Again, I couldn't understand this error since the NCL was compiled with gcc
> and gfortran compilers available in the system. Their version are 4.4.3.
>
> Can anyone figure this problem out?
>
> Best regards,
>
> Mateus
>
> 2010/3/17 Mateus Teixeira <mateus.teixeira at gmail.com>
>
> Dear NCL users,
>>
>> I've got the following error during the compilation of NCL 5.1.1:
>>
>> *Making install in ./ni/src/lib/nio
>> make[5]: Entrando no diretório
>> `/usr/local/src/ncl_ncarg-5.1.1/ni/src/lib/nio'
>> gcc -ansi -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O
>> -I../../../.././include -I/usr/include -I/usr/include/hdf
>> -I/usr/include/libpng1
>> 2 -I/usr/local/include -I/usr/include/jasper
>> -I/usr/local/netcdf-4.1/include -DLinux -DMAJOR=2 -DBuildGRIB2
>> -DNIO_LIB_ONLY -DSYSV -D_POSI
>> X_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c -o
>> NclTypedouble.o NclTypedouble.c
>> NclTypedouble.c:24:27: error: NclTypedouble.h: Arquivo ou diretório não
>> encontrado
>> NclTypedouble.c:48:28: error: NclTypelogical.h: Arquivo ou diretório não
>> encontrado
>> NclTypedouble.c:49:26: error: NclTypefloat.h: Arquivo ou diretório não
>> encontrado
>> In file included from cmpf.h:26,
>> from NclTypedouble.c:52:
>> niohlu.h:28:18: error: nioc.h: Arquivo ou diretório não encontrado
>> NclTypedouble.c:86: error: expected declaration specifiers or ‘...’ before
>> ‘NclScalar’
>> NclTypedouble.c:86: error: expected declaration specifiers or ‘...’ before
>> ‘NclScalar’
>> NclTypedouble.c:86: error: expected declaration specifiers or ‘...’ before
>> ‘NclTypeClass’
>>
>> ....
>>
>> NclTypedouble.c: At top level:
>> NclTypedouble.c:2285: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>> ‘__attribute__’ before ‘Ncl_Type_double_divide_type’
>> NclTypedouble.c:2295: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>> ‘__attribute__’ before ‘nclTypedoubleClassRec’
>> NclTypedouble.c:2371: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>> ‘__attribute__’ before ‘nclTypedoubleClass’
>> NclTypedouble.c:2373: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>> ‘__attribute__’ before ‘_NclTypedoubleCreate’
>> make[5]: ** [NclTypedouble.o] Erro 1
>> make[5]: Saindo do diretório
>> `/usr/local/src/ncl_ncarg-5.1.1/ni/src/lib/nio'
>> make[4]: ** [install] Erro 2
>> make[4]: Saindo do diretório `/usr/local/src/ncl_ncarg-5.1.1/ni/src/lib'
>> *
>>
>> what says that NclTypedouble.h, NclTypelogical.h, NclTypefloat.h, and
>> niohlu.h can't be found.
>>
>> I couldn't find the source of this error. I found these files in
>>
>> ./ni/src/lib/nio/niohlu.h
>> ./ni/src/lib/nio/NclTypedouble.c
>>
>> and
>>
>> ./ni/src/ncl/NclTypefloat.h
>> ./ni/src/ncl/NclTypelogical.h
>>
>> but in ./ni/src/lib/nio/ there are
>>
>> ./ni/src/lib/nio/NclTypelogical.c.specific
>> ./ni/src/lib/nio/NclTypefloat.c.specific
>>
>>
>> This error looks strange since these files are from NCL itself.
>>
>>
>> --
>> Mateus da Silva Teixeira
>> Meteorologista
>> Instituto de Pesquisas Meteorológicas - IPMet
>> Universidade Estadual Paulista - UNESP
>> Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360
>> Bauru - SP - Brasil
>> Fone: +55 14 3103-6030 / fax: 3203-3649
>>
>> Registered Linux User #466740 (http://counter.li.org/)
>>
>
>
>
> --
> Mateus da Silva Teixeira
> Meteorologista
> Instituto de Pesquisas Meteorológicas - IPMet
> Universidade Estadual Paulista - UNESP
> Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360
> Bauru - SP - Brasil
> Fone: +55 14 3103-6030 / fax: 3203-3649
>
> Registered Linux User #466740 (http://counter.li.org/)
>
--
Mateus da Silva Teixeira
Meteorologista
Instituto de Pesquisas Meteorológicas - IPMet
Universidade Estadual Paulista - UNESP
Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360
Bauru - SP - Brasil
Fone: +55 14 3103-6030 / fax: 3203-3649
Registered Linux User #466740 (http://counter.li.org/)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20100317/76979ae2/attachment.html
More information about the ncl-install
mailing list