[Met_help] Error in Bulding PB2NC
John Halley Gotway
johnhg at rap.ucar.edu
Mon Jan 12 11:06:50 MST 2009
Hello,
The Intel ifort/icc compilers are not ones that we officially support for MET yet. So I'm very glad to hear that you've been mostly successful using them! I believe I do have access to a machine
with the Intel compilers. So I'll try building MET over there and see if I can figure out what's going on.
I'll be in touch when I've made some progress.
Thanks,
John Halley Gotway
johnhg at ucar.edu
mmkader wrote:
> Dear Sir,
> I am compiling METV1.1 using Intel FORTRAN compiler V10.1 on 32bit machine. all modules were built and run successfully including GSL, F2c. One only module (PB2NC) were not built due to missing links with buflib library. The following show how i built the bufrlib
>
> icc -c -O2 -DUNDERSCORE *.c
> ifort -c -O2 -assume no2underscore *.f
> ar crv buflib.a *.o
>
> Part of the error in linking PB2NC with buflib is shown:
>
>
>
>
> icc -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o dumppb.o \
> -Bstatic -DMET_BASE=\"/home/mat/WRF_MODEL/POSTPROCESS/METv1.1\" \
> -I../../lib -I/home/mat/LIBRARIES/NETCDF-intel/include
> -I/home/mat/LIBRARIES/GSL-1.9-intel/include -I/home/mat/LIBRARIES/BUFLIB-intel
> \
> -L../../lib -L/home/mat/LIBRARIES/NETCDF-intel/lib
> -L/home/mat/LIBRARIES/GSL-1.9-intel/lib -L/home/mat/LIBRARIES/BUFLIB-intel \
> -lvx_met_util -lvx_analysis_util -lvx_wrfdata -lvx_met_util \
> -lvx_contable -lvx_grib_classes \
> -lvx_econfig -lvx_gsl_prob -lgsl \
> -lvx_plot_util -lvx_render -lvx_pxm -lvx_color -lvx_ps -lvx_afm \
> -lvx_data_grids -lvx_gnomon -lvx_nav -lvx_cal -lvx_util -lvx_math -lm
> \
> -lnetcdf_c++ -lnetcdf \
> -lbufr -lf2c -lrt -lpthread
> openpb.o: In function `openpb_':
> openpb.f:(.text+0x57): undefined reference to `for_open'
> dumppb.o: In function `dumppb_':
> dumppb.f:(.text+0x145): undefined reference to `for_concat'
> dumppb.f:(.text+0x196): undefined reference to `for_open'
> dumppb.f:(.text+0x236): undefined reference to `for_open'
> dumppb.f:(.text+0x40a): undefined reference to `for_write_seq_fmt'
> dumppb.f:(.text+0x4cd): undefined reference to `for_write_seq_fmt'
> dumppb.f:(.text+0x50a): undefined reference to `for_write_seq_fmt'
> dumppb.f:(.text+0x53f): undefined reference to `for_write_seq_fmt_xmit'
> dumppb.f:(.text+0x574): undefined reference to `for_write_seq_fmt_xmit'
> dumppb.f:(.text+0x5a9): undefined reference to `for_write_seq_fmt_xmit'
> dumppb.f:(.text+0x5de): undefined reference to `for_write_seq_fmt_xmit'
> dumppb.f:(.text+0x613): undefined reference to `for_write_seq_fmt_xmit'
> dumppb.o:dumppb.f:(.text+0x648): more undefined references to
> `for_write_seq_fmt_xmit' follow
> dumppb.o: In function `dumppb_':
> dumppb.f:(.text+0x6af): undefined reference to `for_write_seq_fmt'
> dumppb.f:(.text+0x774): undefined reference to `for_write_int_fmt'
> dumppb.f:(.text+0x7b5): undefined reference to `for_write_int_fmt_xmit'
> dumppb.f:(.text+0x80b): undefined reference to `for_cpstr'
> dumppb.f:(.text+0x8d8): undefined reference to `for_close'
> dumppb.f:(.text+0x92a): undefined reference to `for_write_seq_fmt'
> dumppb.f:(.text+0x949): undefined reference to `for_stop_core'
> dumppb.o: In function `readpbdump_':
> dumppb.f:(.text+0x9ba): undefined reference to `for_cpystr'
> dumppb.f:(.text+0xb07): undefined reference to `for_cpstr'
>
>
>
>
>
> Could you please help me to find the error?
> Thank you very much for your support
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Met_help mailing list
> Met_help at mailman.ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/met_help
More information about the Met_help
mailing list