[Met_help] [rt.rap.ucar.edu #52014] History for MET Toolkit Make Error undefined reference to `oom(void)'
John Halley Gotway via RT
met_help at ucar.edu
Thu Jan 5 09:37:22 MST 2012
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
Hi,
I ran into this error message, and I suspect I am missing some include
files or libraries. I'm using pgi compilers. See the makefile in the
attachment. Thanks.-
pgCC -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o
dumppb.o \
-Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
-I../../lib -I/share/apps/netcdf362_gcc_pgf/include
-I/share/apps/gsl/include -I/share/apps/burflib
-I/share/apps/pgi/linux86-64/11.10/include \
-L../../lib -L/share/apps/netcdf362_gcc_pgf/lib -lgslcblas
-L/share/apps/gsl/lib -L/share/apps/burflib
-L/share/apps/pgi/linux86-64/11.10/lib \
-lbufr -lvx_pb_util \
-lvx_contable -lvx_met_util -lvx_analysis_util \
-lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
-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 \
-L/share/apps/pgi/linux86-64/11.10/lib -lpgftnrtl -lrt
-lpthread
pb2nc.cc:
pb2nc.o: In function `main':
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:261: undefined
reference to `oom(void)'
pb2nc.o: In function `initialize()':
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
reference to `StringArray::clear(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
reference to `StringArray::clear(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
reference to `StringArray::clear(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
reference to `NumArray::clear(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
reference to `NumArray::clear(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
reference to `NumArray::clear(void)'
pb2nc.o: In function `process_command_line(int, char **)':
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
reference to `StringArray::add(char const *)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
reference to `ConcatString::operator=(char const *)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
reference to `ConcatString::operator=(char const *)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:346: undefined
reference to `StringArray::add(char const *)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:350: undefined
reference to `timestring_to_unix(char const *)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:354: undefined
reference to `timestring_to_unix(char const *)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:365: undefined
reference to `ConcatString::operator=(char const *)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:382: undefined
reference to `operator<<(std::basic_ostream<char,std::char_traits<char>>
&, ConcatString const &)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:385: undefined
reference to `pb2nc_Conf::read(char const *)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
reference to `unix_to_yyyymmdd_hhmmss__FLPc'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
reference to `unix_to_yyyymmdd_hhmmss__FLPc'
pb2nc.o: In function `process_config()':
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
reference to `pb2nc_Conf::version(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
reference to `pb2nc_Conf::version(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
reference to `Result::sval( const(void))'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
reference to `Result::sval( const(void))'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
reference to `pb2nc_Conf::version(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
reference to `Result::sval( const(void))'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
reference to `Result::__dt(void)'
pb2nc.o:/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: more
undefined references to `Result::__dt(void)' follow
pb2nc.o: In function `process_config()':
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
reference to `pb2nc_Conf::beg_ds(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
reference to `pb2nc_Conf::end_ds(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
reference to `Result::ival( const(void))'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
reference to `Result::ival( const(void))'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
reference to `Result::__dt(void)'
Bright Yang
Vaisala
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #52014] MET Toolkit Make Error undefined reference to `oom(void)'
From: John Halley Gotway
Time: Tue Dec 13 16:09:13 2011
Bright,
Hmmm, this is a new linker error I've never seen before.
Thanks for sending your Makefile. Diffing it with the pgi Makefile
template that's distributed with MET, I see the following differences:
(1) In the CXX_LIBS line, you've added "-L/share/apps/pgi/linux86-
64/11.10/lib". Is your pgCC compiler unable to find it's standard
libraries?
(2) In the GSL_LIBS line, you've added "-lgslcblas". What led you to
doing that?
(3) In the F2C_INCS and F2C_LIBS lines, you've added "-
I/share/apps/pgi/linux86-64/11.10/include" and "-
L/share/apps/pgi/linux86-64/11.10/lib". Why was that necessary?
So it looks like the linker is having problems building the PB2NC
tool. One thing to try first it to just disable the compilation of
PB2NC and make sure the rest of MET builds fine. Just set:
DISABLE_PB2NC = 1
And then try rebuilding. If the rest of MET builds fine, you can
reset that back to 0, and we can try to figure out this problem.
I'm wondering what version of the pgi compilers you're using. Can you
please run the following two commands to figure out the versions?
pgCC --version
pgf77 --version
Thanks,
John Halley Gotway
met_help at ucar.edu
On 12/13/2011 03:41 PM, bright.yang at vaisala.com via RT wrote:
>
> Tue Dec 13 15:41:26 2011: Request 52014 was acted upon.
> Transaction: Ticket created by bright.yang at vaisala.com
> Queue: met_help
> Subject: MET Toolkit Make Error undefined reference to
`oom(void)'
> Owner: Nobody
> Requestors: bright.yang at vaisala.com
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>
>
> Hi,
>
>
>
> I ran into this error message, and I suspect I am missing some
include
> files or libraries. I'm using pgi compilers. See the makefile in the
> attachment. Thanks.-
>
> pgCC -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o
> dumppb.o \
>
> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>
> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
> -I/share/apps/gsl/include -I/share/apps/burflib
> -I/share/apps/pgi/linux86-64/11.10/include \
>
> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib -lgslcblas
> -L/share/apps/gsl/lib -L/share/apps/burflib
> -L/share/apps/pgi/linux86-64/11.10/lib \
>
> -lbufr -lvx_pb_util \
>
> -lvx_contable -lvx_met_util -lvx_analysis_util \
>
> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
> -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 \
>
> -L/share/apps/pgi/linux86-64/11.10/lib -lpgftnrtl -lrt
> -lpthread
>
> pb2nc.cc:
>
> pb2nc.o: In function `main':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:261: undefined
> reference to `oom(void)'
>
> pb2nc.o: In function `initialize()':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `StringArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `StringArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `StringArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `NumArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `NumArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `NumArray::clear(void)'
>
> pb2nc.o: In function `process_command_line(int, char **)':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
> reference to `StringArray::add(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
> reference to `ConcatString::operator=(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
> reference to `ConcatString::operator=(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:346: undefined
> reference to `StringArray::add(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:350: undefined
> reference to `timestring_to_unix(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:354: undefined
> reference to `timestring_to_unix(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:365: undefined
> reference to `ConcatString::operator=(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:382: undefined
> reference to
`operator<<(std::basic_ostream<char,std::char_traits<char>>
> &, ConcatString const &)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:385: undefined
> reference to `pb2nc_Conf::read(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>
> pb2nc.o: In function `process_config()':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `pb2nc_Conf::version(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `pb2nc_Conf::version(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `Result::sval( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `Result::sval( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `pb2nc_Conf::version(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::sval( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> pb2nc.o:/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: more
> undefined references to `Result::__dt(void)' follow
>
> pb2nc.o: In function `process_config()':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `pb2nc_Conf::beg_ds(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `pb2nc_Conf::end_ds(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `Result::ival( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `Result::ival( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
> reference to `Result::__dt(void)'
>
>
>
> Bright Yang
>
> Vaisala
>
>
>
------------------------------------------------
Subject: MET Toolkit Make Error undefined reference to `oom(void)'
From: bright.yang at vaisala.com
Time: Tue Dec 13 16:21:41 2011
Hi John,
I removed those extra include and lib path. See the new Makefile
attached. Here is the output of
# pgCC --version
pgCC 11.10-0 64-bit target on x86-64 Linux -tp istanbul
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
[root at prodcluster01 METv3.0.1]# pgf77 --version
pgf77 11.10-0 64-bit target on x86-64 Linux -tp istanbul
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
I make the following 2 flags to be 1
DISABLE_PB2NC = 1
DISABLE_ASCII2NC = 1
But the rest of cc files all needs those missing functions
pgCC -o point_stat point_stat.cc point_stat_Conf.o
point_stat_conf_info.o \
-Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
-I../../lib -I/share/apps/netcdf362_gcc_pgf/include
-I/share/apps/gsl/include \
-L../../lib -L/share/apps/netcdf362_gcc_pgf/lib
-L/share/apps/gsl/lib \
-lvx_contable -lvx_met_util -lvx_analysis_util \
-lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
-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 \
point_stat.cc:
point_stat.o: In function `main':
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:130:
undefined reference to `oom(void)'
point_stat.o: In function `process_command_line(int, char **)':
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
undefined reference to `operator<<(ConcatString &, char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
undefined reference to `operator<<(ConcatString &, char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
undefined reference to `ConcatString::operator=(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
undefined reference to `ConcatString::operator=(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
undefined reference to `StringArray::add(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
undefined reference to `ConcatString::operator=(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
undefined reference to `get_file_type(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:179:
undefined reference to `StringArray::add(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:185:
undefined reference to `ConcatString::operator=(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:190:
undefined reference to `timestring_to_unix(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:194:
undefined reference to `timestring_to_sec(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:197:
undefined reference to `timestring_to_unix(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:202:
undefined reference to `timestring_to_unix(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:208:
undefined reference to `ConcatString::operator=(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
undefined reference to `Result::sval( const(void))'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
undefined reference to `StatHdrColumns::set_model(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
undefined reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
undefined reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
undefined reference to `Result::sval( const(void))'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
undefined reference to `Result::sval( const(void))'
Bright Yang
Vaisala
-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Tuesday, December 13, 2011 4:09 PM
To: Yang Bright BRYA
Subject: Re: [rt.rap.ucar.edu #52014] MET Toolkit Make Error undefined
reference to `oom(void)'
Bright,
Hmmm, this is a new linker error I've never seen before.
Thanks for sending your Makefile. Diffing it with the pgi Makefile
template that's distributed with MET, I see the following differences:
(1) In the CXX_LIBS line, you've added
"-L/share/apps/pgi/linux86-64/11.10/lib". Is your pgCC compiler
unable
to find it's standard libraries?
(2) In the GSL_LIBS line, you've added "-lgslcblas". What led you to
doing that?
(3) In the F2C_INCS and F2C_LIBS lines, you've added
"-I/share/apps/pgi/linux86-64/11.10/include" and
"-L/share/apps/pgi/linux86-64/11.10/lib". Why was that necessary?
So it looks like the linker is having problems building the PB2NC
tool.
One thing to try first it to just disable the compilation of PB2NC and
make sure the rest of MET builds fine. Just set:
DISABLE_PB2NC = 1
And then try rebuilding. If the rest of MET builds fine, you can
reset
that back to 0, and we can try to figure out this problem.
I'm wondering what version of the pgi compilers you're using. Can you
please run the following two commands to figure out the versions?
pgCC --version
pgf77 --version
Thanks,
John Halley Gotway
met_help at ucar.edu
On 12/13/2011 03:41 PM, bright.yang at vaisala.com via RT wrote:
>
> Tue Dec 13 15:41:26 2011: Request 52014 was acted upon.
> Transaction: Ticket created by bright.yang at vaisala.com
> Queue: met_help
> Subject: MET Toolkit Make Error undefined reference to
`oom(void)'
> Owner: Nobody
> Requestors: bright.yang at vaisala.com
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014
>
>
>
> Hi,
>
>
>
> I ran into this error message, and I suspect I am missing some
include
> files or libraries. I'm using pgi compilers. See the makefile in the
> attachment. Thanks.-
>
> pgCC -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o
> dumppb.o \
>
> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>
> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
> -I/share/apps/gsl/include -I/share/apps/burflib
> -I/share/apps/pgi/linux86-64/11.10/include \
>
> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib -lgslcblas
> -L/share/apps/gsl/lib -L/share/apps/burflib
> -L/share/apps/pgi/linux86-64/11.10/lib \
>
> -lbufr -lvx_pb_util \
>
> -lvx_contable -lvx_met_util -lvx_analysis_util \
>
> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
> -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 \
>
> -L/share/apps/pgi/linux86-64/11.10/lib -lpgftnrtl -lrt
> -lpthread
>
> pb2nc.cc:
>
> pb2nc.o: In function `main':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:261: undefined
> reference to `oom(void)'
>
> pb2nc.o: In function `initialize()':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `StringArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `StringArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `StringArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `NumArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `NumArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `NumArray::clear(void)'
>
> pb2nc.o: In function `process_command_line(int, char **)':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
> reference to `StringArray::add(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
> reference to `ConcatString::operator=(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
> reference to `ConcatString::operator=(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:346: undefined
> reference to `StringArray::add(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:350: undefined
> reference to `timestring_to_unix(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:354: undefined
> reference to `timestring_to_unix(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:365: undefined
> reference to `ConcatString::operator=(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:382: undefined
> reference to
`operator<<(std::basic_ostream<char,std::char_traits<char>>
> &, ConcatString const &)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:385: undefined
> reference to `pb2nc_Conf::read(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>
> pb2nc.o: In function `process_config()':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `pb2nc_Conf::version(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `pb2nc_Conf::version(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `Result::sval( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `Result::sval( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `pb2nc_Conf::version(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::sval( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> pb2nc.o:/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: more
> undefined references to `Result::__dt(void)' follow
>
> pb2nc.o: In function `process_config()':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `pb2nc_Conf::beg_ds(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `pb2nc_Conf::end_ds(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `Result::ival( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `Result::ival( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
> reference to `Result::__dt(void)'
>
>
>
> Bright Yang
>
> Vaisala
>
>
>
------------------------------------------------
Subject: MET Toolkit Make Error undefined reference to `oom(void)'
From: bright.yang at vaisala.com
Time: Thu Dec 15 09:35:01 2011
Any new findings from my last attached makefile? Thanks.
Bright Yang
Vaisala, Boulder
U.S. Export Restrictions & Disclaimer: Export of any technical
information contained in this email and/or its attachments is subject
to
the export control laws and regulations of the U.S. Government and may
require a valid license or written approval prior to export.
-----Original Message-----
From: Yang Bright BRYA
Sent: Tuesday, December 13, 2011 4:20 PM
To: 'met_help at ucar.edu'
Subject: RE: [rt.rap.ucar.edu #52014] MET Toolkit Make Error undefined
reference to `oom(void)'
Hi John,
I removed those extra include and lib path. See the new Makefile
attached. Here is the output of
# pgCC --version
pgCC 11.10-0 64-bit target on x86-64 Linux -tp istanbul
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
[root at prodcluster01 METv3.0.1]# pgf77 --version
pgf77 11.10-0 64-bit target on x86-64 Linux -tp istanbul
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
I make the following 2 flags to be 1
DISABLE_PB2NC = 1
DISABLE_ASCII2NC = 1
But the rest of cc files all needs those missing functions
pgCC -o point_stat point_stat.cc point_stat_Conf.o
point_stat_conf_info.o \
-Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
-I../../lib -I/share/apps/netcdf362_gcc_pgf/include
-I/share/apps/gsl/include \
-L../../lib -L/share/apps/netcdf362_gcc_pgf/lib
-L/share/apps/gsl/lib \
-lvx_contable -lvx_met_util -lvx_analysis_util \
-lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
-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 \
point_stat.cc:
point_stat.o: In function `main':
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:130:
undefined reference to `oom(void)'
point_stat.o: In function `process_command_line(int, char **)':
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
undefined reference to `operator<<(ConcatString &, char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
undefined reference to `operator<<(ConcatString &, char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
undefined reference to `ConcatString::operator=(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
undefined reference to `ConcatString::operator=(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
undefined reference to `StringArray::add(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
undefined reference to `ConcatString::operator=(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
undefined reference to `get_file_type(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:179:
undefined reference to `StringArray::add(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:185:
undefined reference to `ConcatString::operator=(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:190:
undefined reference to `timestring_to_unix(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:194:
undefined reference to `timestring_to_sec(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:197:
undefined reference to `timestring_to_unix(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:202:
undefined reference to `timestring_to_unix(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:208:
undefined reference to `ConcatString::operator=(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
undefined reference to `Result::sval( const(void))'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
undefined reference to `StatHdrColumns::set_model(char const *)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
undefined reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
undefined reference to `Result::__dt(void)'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
undefined reference to `Result::sval( const(void))'
/home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
undefined reference to `Result::sval( const(void))'
Bright Yang
Vaisala
-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Tuesday, December 13, 2011 4:09 PM
To: Yang Bright BRYA
Subject: Re: [rt.rap.ucar.edu #52014] MET Toolkit Make Error undefined
reference to `oom(void)'
Bright,
Hmmm, this is a new linker error I've never seen before.
Thanks for sending your Makefile. Diffing it with the pgi Makefile
template that's distributed with MET, I see the following differences:
(1) In the CXX_LIBS line, you've added
"-L/share/apps/pgi/linux86-64/11.10/lib". Is your pgCC compiler
unable
to find it's standard libraries?
(2) In the GSL_LIBS line, you've added "-lgslcblas". What led you to
doing that?
(3) In the F2C_INCS and F2C_LIBS lines, you've added
"-I/share/apps/pgi/linux86-64/11.10/include" and
"-L/share/apps/pgi/linux86-64/11.10/lib". Why was that necessary?
So it looks like the linker is having problems building the PB2NC
tool.
One thing to try first it to just disable the compilation of PB2NC and
make sure the rest of MET builds fine. Just set:
DISABLE_PB2NC = 1
And then try rebuilding. If the rest of MET builds fine, you can
reset
that back to 0, and we can try to figure out this problem.
I'm wondering what version of the pgi compilers you're using. Can you
please run the following two commands to figure out the versions?
pgCC --version
pgf77 --version
Thanks,
John Halley Gotway
met_help at ucar.edu
On 12/13/2011 03:41 PM, bright.yang at vaisala.com via RT wrote:
>
> Tue Dec 13 15:41:26 2011: Request 52014 was acted upon.
> Transaction: Ticket created by bright.yang at vaisala.com
> Queue: met_help
> Subject: MET Toolkit Make Error undefined reference to
`oom(void)'
> Owner: Nobody
> Requestors: bright.yang at vaisala.com
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014
>
>
>
> Hi,
>
>
>
> I ran into this error message, and I suspect I am missing some
include
> files or libraries. I'm using pgi compilers. See the makefile in the
> attachment. Thanks.-
>
> pgCC -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o
> dumppb.o \
>
> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>
> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
> -I/share/apps/gsl/include -I/share/apps/burflib
> -I/share/apps/pgi/linux86-64/11.10/include \
>
> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib -lgslcblas
> -L/share/apps/gsl/lib -L/share/apps/burflib
> -L/share/apps/pgi/linux86-64/11.10/lib \
>
> -lbufr -lvx_pb_util \
>
> -lvx_contable -lvx_met_util -lvx_analysis_util \
>
> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
> -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 \
>
> -L/share/apps/pgi/linux86-64/11.10/lib -lpgftnrtl -lrt
> -lpthread
>
> pb2nc.cc:
>
> pb2nc.o: In function `main':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:261: undefined
> reference to `oom(void)'
>
> pb2nc.o: In function `initialize()':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `StringArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `StringArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `StringArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `NumArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `NumArray::clear(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
> reference to `NumArray::clear(void)'
>
> pb2nc.o: In function `process_command_line(int, char **)':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
> reference to `StringArray::add(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
> reference to `ConcatString::operator=(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
> reference to `ConcatString::operator=(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:346: undefined
> reference to `StringArray::add(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:350: undefined
> reference to `timestring_to_unix(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:354: undefined
> reference to `timestring_to_unix(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:365: undefined
> reference to `ConcatString::operator=(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:382: undefined
> reference to
`operator<<(std::basic_ostream<char,std::char_traits<char>>
> &, ConcatString const &)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:385: undefined
> reference to `pb2nc_Conf::read(char const *)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>
> pb2nc.o: In function `process_config()':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `pb2nc_Conf::version(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `pb2nc_Conf::version(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `Result::sval( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `Result::sval( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `pb2nc_Conf::version(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::sval( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
> reference to `Result::__dt(void)'
>
> pb2nc.o:/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: more
> undefined references to `Result::__dt(void)' follow
>
> pb2nc.o: In function `process_config()':
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `pb2nc_Conf::beg_ds(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `pb2nc_Conf::end_ds(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `Result::ival( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `Result::ival( const(void))'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
> reference to `Result::__dt(void)'
>
> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
> reference to `Result::__dt(void)'
>
>
>
> Bright Yang
>
> Vaisala
>
>
>
------------------------------------------------
Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error undefined reference to `oom(void)'
From: John Halley Gotway
Time: Thu Dec 15 10:35:31 2011
Bright,
Sorry for the delay in getting back with you.
I tried building MET with the latest version of the PGI compilers I
have available on my system:
pgCC 11.7-0 64-bit target on x86-64 Linux -tp nehalem
So I'm running 11.7-0 while you're using 11.10-0. But with 11.7-0,
I'm able to compile and build METv3.0.1 without any problems.
The linker error messages you sent me indicate that when trying to
compile Point-Stat, the linker can't find the definition of a bunch of
functions that are defined in the MET libraries. So this
isn't a problem linking to external libraries - this is a problem
linking to internal MET libraries! This is the first time we've
fielded a question of this nature.
Can you please do the following:
cd METv3.0.1
make clean
make >& make_met.log
find > find.log
And then send me both those files "make_met.log" and "find.log".
Thanks,
John
On 12/15/2011 09:35 AM, bright.yang at vaisala.com via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>
>
> Any new findings from my last attached makefile? Thanks.
> Bright Yang
>
> Vaisala, Boulder
>
>
>
>
> U.S. Export Restrictions & Disclaimer: Export of any technical
> information contained in this email and/or its attachments is
subject to
> the export control laws and regulations of the U.S. Government and
may
> require a valid license or written approval prior to export.
>
>
> -----Original Message-----
> From: Yang Bright BRYA
> Sent: Tuesday, December 13, 2011 4:20 PM
> To: 'met_help at ucar.edu'
> Subject: RE: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined
> reference to `oom(void)'
>
> Hi John,
>
> I removed those extra include and lib path. See the new Makefile
> attached. Here is the output of
> # pgCC --version
>
> pgCC 11.10-0 64-bit target on x86-64 Linux -tp istanbul
> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
> Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
> [root at prodcluster01 METv3.0.1]# pgf77 --version
>
> pgf77 11.10-0 64-bit target on x86-64 Linux -tp istanbul
> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
> Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
>
> I make the following 2 flags to be 1
> DISABLE_PB2NC = 1
> DISABLE_ASCII2NC = 1
> But the rest of cc files all needs those missing functions
> pgCC -o point_stat point_stat.cc point_stat_Conf.o
> point_stat_conf_info.o \
> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
> -I/share/apps/gsl/include \
> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib
> -L/share/apps/gsl/lib \
> -lvx_contable -lvx_met_util -lvx_analysis_util \
> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
> -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 \
>
> point_stat.cc:
> point_stat.o: In function `main':
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:130:
> undefined reference to `oom(void)'
> point_stat.o: In function `process_command_line(int, char **)':
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
> undefined reference to `operator<<(ConcatString &, char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
> undefined reference to `operator<<(ConcatString &, char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `StringArray::add(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `get_file_type(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:179:
> undefined reference to `StringArray::add(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:185:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:190:
> undefined reference to `timestring_to_unix(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:194:
> undefined reference to `timestring_to_sec(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:197:
> undefined reference to `timestring_to_unix(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:202:
> undefined reference to `timestring_to_unix(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:208:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
> undefined reference to `Result::sval( const(void))'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
> undefined reference to `StatHdrColumns::set_model(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
> undefined reference to `Result::__dt(void)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
> undefined reference to `Result::__dt(void)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
> undefined reference to `Result::sval( const(void))'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
> undefined reference to `Result::sval( const(void))'
> Bright Yang
>
> Vaisala
>
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Tuesday, December 13, 2011 4:09 PM
> To: Yang Bright BRYA
> Subject: Re: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined
> reference to `oom(void)'
>
> Bright,
>
> Hmmm, this is a new linker error I've never seen before.
>
> Thanks for sending your Makefile. Diffing it with the pgi Makefile
> template that's distributed with MET, I see the following
differences:
>
> (1) In the CXX_LIBS line, you've added
> "-L/share/apps/pgi/linux86-64/11.10/lib". Is your pgCC compiler
unable
> to find it's standard libraries?
> (2) In the GSL_LIBS line, you've added "-lgslcblas". What led you
to
> doing that?
> (3) In the F2C_INCS and F2C_LIBS lines, you've added
> "-I/share/apps/pgi/linux86-64/11.10/include" and
> "-L/share/apps/pgi/linux86-64/11.10/lib". Why was that necessary?
>
> So it looks like the linker is having problems building the PB2NC
tool.
> One thing to try first it to just disable the compilation of PB2NC
and
> make sure the rest of MET builds fine. Just set:
> DISABLE_PB2NC = 1
> And then try rebuilding. If the rest of MET builds fine, you can
reset
> that back to 0, and we can try to figure out this problem.
>
> I'm wondering what version of the pgi compilers you're using. Can
you
> please run the following two commands to figure out the versions?
> pgCC --version
> pgf77 --version
>
> Thanks,
> John Halley Gotway
> met_help at ucar.edu
>
> On 12/13/2011 03:41 PM, bright.yang at vaisala.com via RT wrote:
>>
>> Tue Dec 13 15:41:26 2011: Request 52014 was acted upon.
>> Transaction: Ticket created by bright.yang at vaisala.com
>> Queue: met_help
>> Subject: MET Toolkit Make Error undefined reference to
> `oom(void)'
>> Owner: Nobody
>> Requestors: bright.yang at vaisala.com
>> Status: new
>> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014
>>
>>
>>
>> Hi,
>>
>>
>>
>> I ran into this error message, and I suspect I am missing some
> include
>> files or libraries. I'm using pgi compilers. See the makefile in
the
>> attachment. Thanks.-
>>
>> pgCC -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o
>> dumppb.o \
>>
>> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>>
>> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
>> -I/share/apps/gsl/include -I/share/apps/burflib
>> -I/share/apps/pgi/linux86-64/11.10/include \
>>
>> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib -lgslcblas
>> -L/share/apps/gsl/lib -L/share/apps/burflib
>> -L/share/apps/pgi/linux86-64/11.10/lib \
>>
>> -lbufr -lvx_pb_util \
>>
>> -lvx_contable -lvx_met_util -lvx_analysis_util \
>>
>> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
>> -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 \
>>
>> -L/share/apps/pgi/linux86-64/11.10/lib -lpgftnrtl -lrt
>> -lpthread
>>
>> pb2nc.cc:
>>
>> pb2nc.o: In function `main':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:261: undefined
>> reference to `oom(void)'
>>
>> pb2nc.o: In function `initialize()':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `StringArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `StringArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `StringArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `NumArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `NumArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `NumArray::clear(void)'
>>
>> pb2nc.o: In function `process_command_line(int, char **)':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>> reference to `StringArray::add(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>> reference to `ConcatString::operator=(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>> reference to `ConcatString::operator=(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:346: undefined
>> reference to `StringArray::add(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:350: undefined
>> reference to `timestring_to_unix(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:354: undefined
>> reference to `timestring_to_unix(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:365: undefined
>> reference to `ConcatString::operator=(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:382: undefined
>> reference to
> `operator<<(std::basic_ostream<char,std::char_traits<char>>
>> &, ConcatString const &)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:385: undefined
>> reference to `pb2nc_Conf::read(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>
>> pb2nc.o: In function `process_config()':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `pb2nc_Conf::version(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `pb2nc_Conf::version(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `Result::sval( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `Result::sval( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `pb2nc_Conf::version(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::sval( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> pb2nc.o:/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: more
>> undefined references to `Result::__dt(void)' follow
>>
>> pb2nc.o: In function `process_config()':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `pb2nc_Conf::beg_ds(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `pb2nc_Conf::end_ds(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `Result::ival( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `Result::ival( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>> reference to `Result::__dt(void)'
>>
>>
>>
>> Bright Yang
>>
>> Vaisala
>>
>>
>>
>
------------------------------------------------
Subject: MET Toolkit Make Error undefined reference to `oom(void)'
From: bright.yang at vaisala.com
Time: Thu Dec 15 11:31:31 2011
Please find those 2 logs attached. Thanks.
Bright Yang
-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Thursday, December 15, 2011 10:36 AM
To: Yang Bright BRYA
Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined reference to `oom(void)'
Bright,
Sorry for the delay in getting back with you.
I tried building MET with the latest version of the PGI compilers I
have
available on my system:
pgCC 11.7-0 64-bit target on x86-64 Linux -tp nehalem
So I'm running 11.7-0 while you're using 11.10-0. But with 11.7-0,
I'm
able to compile and build METv3.0.1 without any problems.
The linker error messages you sent me indicate that when trying to
compile Point-Stat, the linker can't find the definition of a bunch of
functions that are defined in the MET libraries. So this
isn't a problem linking to external libraries - this is a problem
linking to internal MET libraries! This is the first time we've
fielded
a question of this nature.
Can you please do the following:
cd METv3.0.1
make clean
make >& make_met.log
find > find.log
And then send me both those files "make_met.log" and "find.log".
Thanks,
John
On 12/15/2011 09:35 AM, bright.yang at vaisala.com via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>
>
> Any new findings from my last attached makefile? Thanks.
> Bright Yang
>
> Vaisala, Boulder
>
>
>
>
> U.S. Export Restrictions & Disclaimer: Export of any technical
> information contained in this email and/or its attachments is
subject
to
> the export control laws and regulations of the U.S. Government and
may
> require a valid license or written approval prior to export.
>
>
> -----Original Message-----
> From: Yang Bright BRYA
> Sent: Tuesday, December 13, 2011 4:20 PM
> To: 'met_help at ucar.edu'
> Subject: RE: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined
> reference to `oom(void)'
>
> Hi John,
>
> I removed those extra include and lib path. See the new Makefile
> attached. Here is the output of
> # pgCC --version
>
> pgCC 11.10-0 64-bit target on x86-64 Linux -tp istanbul
> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
> Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
> [root at prodcluster01 METv3.0.1]# pgf77 --version
>
> pgf77 11.10-0 64-bit target on x86-64 Linux -tp istanbul
> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
> Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
>
> I make the following 2 flags to be 1
> DISABLE_PB2NC = 1
> DISABLE_ASCII2NC = 1
> But the rest of cc files all needs those missing functions
> pgCC -o point_stat point_stat.cc point_stat_Conf.o
> point_stat_conf_info.o \
> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
> -I/share/apps/gsl/include \
> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib
> -L/share/apps/gsl/lib \
> -lvx_contable -lvx_met_util -lvx_analysis_util \
> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
> -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 \
>
> point_stat.cc:
> point_stat.o: In function `main':
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:130:
> undefined reference to `oom(void)'
> point_stat.o: In function `process_command_line(int, char **)':
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
> undefined reference to `operator<<(ConcatString &, char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
> undefined reference to `operator<<(ConcatString &, char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `StringArray::add(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `get_file_type(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:179:
> undefined reference to `StringArray::add(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:185:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:190:
> undefined reference to `timestring_to_unix(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:194:
> undefined reference to `timestring_to_sec(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:197:
> undefined reference to `timestring_to_unix(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:202:
> undefined reference to `timestring_to_unix(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:208:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
> undefined reference to `Result::sval( const(void))'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
> undefined reference to `StatHdrColumns::set_model(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
> undefined reference to `Result::__dt(void)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
> undefined reference to `Result::__dt(void)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
> undefined reference to `Result::sval( const(void))'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
> undefined reference to `Result::sval( const(void))'
> Bright Yang
>
> Vaisala
>
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Tuesday, December 13, 2011 4:09 PM
> To: Yang Bright BRYA
> Subject: Re: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined
> reference to `oom(void)'
>
> Bright,
>
> Hmmm, this is a new linker error I've never seen before.
>
> Thanks for sending your Makefile. Diffing it with the pgi Makefile
> template that's distributed with MET, I see the following
differences:
>
> (1) In the CXX_LIBS line, you've added
> "-L/share/apps/pgi/linux86-64/11.10/lib". Is your pgCC compiler
unable
> to find it's standard libraries?
> (2) In the GSL_LIBS line, you've added "-lgslcblas". What led you
to
> doing that?
> (3) In the F2C_INCS and F2C_LIBS lines, you've added
> "-I/share/apps/pgi/linux86-64/11.10/include" and
> "-L/share/apps/pgi/linux86-64/11.10/lib". Why was that necessary?
>
> So it looks like the linker is having problems building the PB2NC
tool.
> One thing to try first it to just disable the compilation of PB2NC
and
> make sure the rest of MET builds fine. Just set:
> DISABLE_PB2NC = 1
> And then try rebuilding. If the rest of MET builds fine, you can
reset
> that back to 0, and we can try to figure out this problem.
>
> I'm wondering what version of the pgi compilers you're using. Can
you
> please run the following two commands to figure out the versions?
> pgCC --version
> pgf77 --version
>
> Thanks,
> John Halley Gotway
> met_help at ucar.edu
>
> On 12/13/2011 03:41 PM, bright.yang at vaisala.com via RT wrote:
>>
>> Tue Dec 13 15:41:26 2011: Request 52014 was acted upon.
>> Transaction: Ticket created by bright.yang at vaisala.com
>> Queue: met_help
>> Subject: MET Toolkit Make Error undefined reference to
> `oom(void)'
>> Owner: Nobody
>> Requestors: bright.yang at vaisala.com
>> Status: new
>> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014
>>
>>
>>
>> Hi,
>>
>>
>>
>> I ran into this error message, and I suspect I am missing some
> include
>> files or libraries. I'm using pgi compilers. See the makefile in
the
>> attachment. Thanks.-
>>
>> pgCC -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o
>> dumppb.o \
>>
>> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>>
>> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
>> -I/share/apps/gsl/include -I/share/apps/burflib
>> -I/share/apps/pgi/linux86-64/11.10/include \
>>
>> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib -lgslcblas
>> -L/share/apps/gsl/lib -L/share/apps/burflib
>> -L/share/apps/pgi/linux86-64/11.10/lib \
>>
>> -lbufr -lvx_pb_util \
>>
>> -lvx_contable -lvx_met_util -lvx_analysis_util \
>>
>> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
>> -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 \
>>
>> -L/share/apps/pgi/linux86-64/11.10/lib -lpgftnrtl -lrt
>> -lpthread
>>
>> pb2nc.cc:
>>
>> pb2nc.o: In function `main':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:261: undefined
>> reference to `oom(void)'
>>
>> pb2nc.o: In function `initialize()':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `StringArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `StringArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `StringArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `NumArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `NumArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `NumArray::clear(void)'
>>
>> pb2nc.o: In function `process_command_line(int, char **)':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>> reference to `StringArray::add(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>> reference to `ConcatString::operator=(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>> reference to `ConcatString::operator=(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:346: undefined
>> reference to `StringArray::add(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:350: undefined
>> reference to `timestring_to_unix(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:354: undefined
>> reference to `timestring_to_unix(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:365: undefined
>> reference to `ConcatString::operator=(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:382: undefined
>> reference to
> `operator<<(std::basic_ostream<char,std::char_traits<char>>
>> &, ConcatString const &)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:385: undefined
>> reference to `pb2nc_Conf::read(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>
>> pb2nc.o: In function `process_config()':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `pb2nc_Conf::version(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `pb2nc_Conf::version(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `Result::sval( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `Result::sval( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `pb2nc_Conf::version(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::sval( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> pb2nc.o:/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: more
>> undefined references to `Result::__dt(void)' follow
>>
>> pb2nc.o: In function `process_config()':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `pb2nc_Conf::beg_ds(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `pb2nc_Conf::end_ds(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `Result::ival( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `Result::ival( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>> reference to `Result::__dt(void)'
>>
>>
>>
>> Bright Yang
>>
>> Vaisala
>>
>>
>>
>
------------------------------------------------
Subject: RE: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error undefined reference to `oom(void)'
From: bright.yang at vaisala.com
Time: Thu Dec 15 11:34:06 2011
John - Please also be aware we are using netcdf 3.6.2.
-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Thursday, December 15, 2011 10:36 AM
To: Yang Bright BRYA
Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined reference to `oom(void)'
Bright,
Sorry for the delay in getting back with you.
I tried building MET with the latest version of the PGI compilers I
have
available on my system:
pgCC 11.7-0 64-bit target on x86-64 Linux -tp nehalem
So I'm running 11.7-0 while you're using 11.10-0. But with 11.7-0,
I'm
able to compile and build METv3.0.1 without any problems.
The linker error messages you sent me indicate that when trying to
compile Point-Stat, the linker can't find the definition of a bunch of
functions that are defined in the MET libraries. So this
isn't a problem linking to external libraries - this is a problem
linking to internal MET libraries! This is the first time we've
fielded
a question of this nature.
Can you please do the following:
cd METv3.0.1
make clean
make >& make_met.log
find > find.log
And then send me both those files "make_met.log" and "find.log".
Thanks,
John
On 12/15/2011 09:35 AM, bright.yang at vaisala.com via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>
>
> Any new findings from my last attached makefile? Thanks.
> Bright Yang
>
> Vaisala, Boulder
>
>
>
>
> U.S. Export Restrictions & Disclaimer: Export of any technical
> information contained in this email and/or its attachments is
subject
to
> the export control laws and regulations of the U.S. Government and
may
> require a valid license or written approval prior to export.
>
>
> -----Original Message-----
> From: Yang Bright BRYA
> Sent: Tuesday, December 13, 2011 4:20 PM
> To: 'met_help at ucar.edu'
> Subject: RE: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined
> reference to `oom(void)'
>
> Hi John,
>
> I removed those extra include and lib path. See the new Makefile
> attached. Here is the output of
> # pgCC --version
>
> pgCC 11.10-0 64-bit target on x86-64 Linux -tp istanbul
> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
> Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
> [root at prodcluster01 METv3.0.1]# pgf77 --version
>
> pgf77 11.10-0 64-bit target on x86-64 Linux -tp istanbul
> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
> Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
>
> I make the following 2 flags to be 1
> DISABLE_PB2NC = 1
> DISABLE_ASCII2NC = 1
> But the rest of cc files all needs those missing functions
> pgCC -o point_stat point_stat.cc point_stat_Conf.o
> point_stat_conf_info.o \
> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
> -I/share/apps/gsl/include \
> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib
> -L/share/apps/gsl/lib \
> -lvx_contable -lvx_met_util -lvx_analysis_util \
> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
> -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 \
>
> point_stat.cc:
> point_stat.o: In function `main':
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:130:
> undefined reference to `oom(void)'
> point_stat.o: In function `process_command_line(int, char **)':
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
> undefined reference to `operator<<(ConcatString &, char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
> undefined reference to `operator<<(ConcatString &, char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `StringArray::add(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
> undefined reference to `get_file_type(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:179:
> undefined reference to `StringArray::add(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:185:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:190:
> undefined reference to `timestring_to_unix(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:194:
> undefined reference to `timestring_to_sec(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:197:
> undefined reference to `timestring_to_unix(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:202:
> undefined reference to `timestring_to_unix(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:208:
> undefined reference to `ConcatString::operator=(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
> undefined reference to `Result::sval( const(void))'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
> undefined reference to `StatHdrColumns::set_model(char const *)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
> undefined reference to `Result::__dt(void)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
> undefined reference to `Result::__dt(void)'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
> undefined reference to `Result::sval( const(void))'
> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
> undefined reference to `Result::sval( const(void))'
> Bright Yang
>
> Vaisala
>
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Tuesday, December 13, 2011 4:09 PM
> To: Yang Bright BRYA
> Subject: Re: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined
> reference to `oom(void)'
>
> Bright,
>
> Hmmm, this is a new linker error I've never seen before.
>
> Thanks for sending your Makefile. Diffing it with the pgi Makefile
> template that's distributed with MET, I see the following
differences:
>
> (1) In the CXX_LIBS line, you've added
> "-L/share/apps/pgi/linux86-64/11.10/lib". Is your pgCC compiler
unable
> to find it's standard libraries?
> (2) In the GSL_LIBS line, you've added "-lgslcblas". What led you
to
> doing that?
> (3) In the F2C_INCS and F2C_LIBS lines, you've added
> "-I/share/apps/pgi/linux86-64/11.10/include" and
> "-L/share/apps/pgi/linux86-64/11.10/lib". Why was that necessary?
>
> So it looks like the linker is having problems building the PB2NC
tool.
> One thing to try first it to just disable the compilation of PB2NC
and
> make sure the rest of MET builds fine. Just set:
> DISABLE_PB2NC = 1
> And then try rebuilding. If the rest of MET builds fine, you can
reset
> that back to 0, and we can try to figure out this problem.
>
> I'm wondering what version of the pgi compilers you're using. Can
you
> please run the following two commands to figure out the versions?
> pgCC --version
> pgf77 --version
>
> Thanks,
> John Halley Gotway
> met_help at ucar.edu
>
> On 12/13/2011 03:41 PM, bright.yang at vaisala.com via RT wrote:
>>
>> Tue Dec 13 15:41:26 2011: Request 52014 was acted upon.
>> Transaction: Ticket created by bright.yang at vaisala.com
>> Queue: met_help
>> Subject: MET Toolkit Make Error undefined reference to
> `oom(void)'
>> Owner: Nobody
>> Requestors: bright.yang at vaisala.com
>> Status: new
>> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014
>>
>>
>>
>> Hi,
>>
>>
>>
>> I ran into this error message, and I suspect I am missing some
> include
>> files or libraries. I'm using pgi compilers. See the makefile in
the
>> attachment. Thanks.-
>>
>> pgCC -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o
>> dumppb.o \
>>
>> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>>
>> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
>> -I/share/apps/gsl/include -I/share/apps/burflib
>> -I/share/apps/pgi/linux86-64/11.10/include \
>>
>> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib -lgslcblas
>> -L/share/apps/gsl/lib -L/share/apps/burflib
>> -L/share/apps/pgi/linux86-64/11.10/lib \
>>
>> -lbufr -lvx_pb_util \
>>
>> -lvx_contable -lvx_met_util -lvx_analysis_util \
>>
>> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
>> -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 \
>>
>> -L/share/apps/pgi/linux86-64/11.10/lib -lpgftnrtl -lrt
>> -lpthread
>>
>> pb2nc.cc:
>>
>> pb2nc.o: In function `main':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:261: undefined
>> reference to `oom(void)'
>>
>> pb2nc.o: In function `initialize()':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `StringArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `StringArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `StringArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `NumArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `NumArray::clear(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>> reference to `NumArray::clear(void)'
>>
>> pb2nc.o: In function `process_command_line(int, char **)':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>> reference to `StringArray::add(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>> reference to `ConcatString::operator=(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>> reference to `ConcatString::operator=(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:346: undefined
>> reference to `StringArray::add(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:350: undefined
>> reference to `timestring_to_unix(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:354: undefined
>> reference to `timestring_to_unix(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:365: undefined
>> reference to `ConcatString::operator=(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:382: undefined
>> reference to
> `operator<<(std::basic_ostream<char,std::char_traits<char>>
>> &, ConcatString const &)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:385: undefined
>> reference to `pb2nc_Conf::read(char const *)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>
>> pb2nc.o: In function `process_config()':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `pb2nc_Conf::version(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `pb2nc_Conf::version(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `Result::sval( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `Result::sval( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `pb2nc_Conf::version(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::sval( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>> reference to `Result::__dt(void)'
>>
>> pb2nc.o:/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: more
>> undefined references to `Result::__dt(void)' follow
>>
>> pb2nc.o: In function `process_config()':
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `pb2nc_Conf::beg_ds(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `pb2nc_Conf::end_ds(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `Result::ival( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `Result::ival( const(void))'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>> reference to `Result::__dt(void)'
>>
>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>> reference to `Result::__dt(void)'
>>
>>
>>
>> Bright Yang
>>
>> Vaisala
>>
>>
>>
>
------------------------------------------------
Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error undefined reference to `oom(void)'
From: John Halley Gotway
Time: Thu Dec 15 12:05:38 2011
Bright,
In the "make_met.log" file you sent, the error has changed. The build
is now exiting with problems related to NetCDF. It's possible that
there will still be internal linking errors, but the current
problem is with NetCDF. In the log file you sent, I see that you're
linking to the following version of NetCDF:
/share/apps/netcdf362_gcc_pgf
Version 3.6.2 of NetCDF is fine. That isn't the problem. But based
on the path, it looks like that version of NetCDF was built using the
GNU gcc compiler and the PGI fortran compiler.
If you want to build MET using the PGI compilers, you'll need to link
to a version of NetCDF that's built with the same compilers. If you
don't already have such a build of NetCDF on your system, I'd
suggest downloading and compiling a local copy of NetCDF using the PGI
compilers. This really isn't difficult and should only take 5 minutes
or so. Just follow the directions on this page:
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compilation/req_libs.php
So the following commands should do it (assuming you're using the c-
shell):
setenv CC pgcc
setenv CXX pgCC
setenv FC ''
setenv F90 ''
./configure --prefix=/netcdf/install/path (I typically just say
--prefix=`pwd` to install it in the current directory)
make
make install
That'll compile the C and C++ NetCDF interface and skip the fortran
ones, which MET doesn't use.
Once that's done, edit your top-level MET Makefile to point
"NETCDF_BASE" to wherever you've installed this version of NetCDF.
Now try rebuilding. If you get another error, please do the same
thing I requested last time:
make clean
make >& make_met.log
find > find.log
And send me those files.
Thanks,
John
On 12/15/2011 11:34 AM, bright.yang at vaisala.com via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>
>
>
> John - Please also be aware we are using netcdf 3.6.2.
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Thursday, December 15, 2011 10:36 AM
> To: Yang Bright BRYA
> Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
> undefined reference to `oom(void)'
>
> Bright,
>
> Sorry for the delay in getting back with you.
>
> I tried building MET with the latest version of the PGI compilers I
have
> available on my system:
> pgCC 11.7-0 64-bit target on x86-64 Linux -tp nehalem
>
> So I'm running 11.7-0 while you're using 11.10-0. But with 11.7-0,
I'm
> able to compile and build METv3.0.1 without any problems.
>
> The linker error messages you sent me indicate that when trying to
> compile Point-Stat, the linker can't find the definition of a bunch
of
> functions that are defined in the MET libraries. So this
> isn't a problem linking to external libraries - this is a problem
> linking to internal MET libraries! This is the first time we've
fielded
> a question of this nature.
>
> Can you please do the following:
> cd METv3.0.1
> make clean
> make >& make_met.log
> find > find.log
>
> And then send me both those files "make_met.log" and "find.log".
>
> Thanks,
> John
>
>
> On 12/15/2011 09:35 AM, bright.yang at vaisala.com via RT wrote:
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>>
>>
>> Any new findings from my last attached makefile? Thanks.
>> Bright Yang
>>
>> Vaisala, Boulder
>>
>>
>>
>>
>> U.S. Export Restrictions & Disclaimer: Export of any technical
>> information contained in this email and/or its attachments is
subject
> to
>> the export control laws and regulations of the U.S. Government and
may
>> require a valid license or written approval prior to export.
>>
>>
>> -----Original Message-----
>> From: Yang Bright BRYA
>> Sent: Tuesday, December 13, 2011 4:20 PM
>> To: 'met_help at ucar.edu'
>> Subject: RE: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined
>> reference to `oom(void)'
>>
>> Hi John,
>>
>> I removed those extra include and lib path. See the new Makefile
>> attached. Here is the output of
>> # pgCC --version
>>
>> pgCC 11.10-0 64-bit target on x86-64 Linux -tp istanbul
>> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
>> Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
>> [root at prodcluster01 METv3.0.1]# pgf77 --version
>>
>> pgf77 11.10-0 64-bit target on x86-64 Linux -tp istanbul
>> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
>> Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
>>
>> I make the following 2 flags to be 1
>> DISABLE_PB2NC = 1
>> DISABLE_ASCII2NC = 1
>> But the rest of cc files all needs those missing functions
>> pgCC -o point_stat point_stat.cc point_stat_Conf.o
>> point_stat_conf_info.o \
>> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
>> -I/share/apps/gsl/include \
>> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib
>> -L/share/apps/gsl/lib \
>> -lvx_contable -lvx_met_util -lvx_analysis_util \
>> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
>> -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 \
>>
>> point_stat.cc:
>> point_stat.o: In function `main':
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:130:
>> undefined reference to `oom(void)'
>> point_stat.o: In function `process_command_line(int, char **)':
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
>> undefined reference to `operator<<(ConcatString &, char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
>> undefined reference to `operator<<(ConcatString &, char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>> undefined reference to `ConcatString::operator=(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>> undefined reference to `ConcatString::operator=(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>> undefined reference to `StringArray::add(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>> undefined reference to `ConcatString::operator=(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>> undefined reference to `get_file_type(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:179:
>> undefined reference to `StringArray::add(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:185:
>> undefined reference to `ConcatString::operator=(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:190:
>> undefined reference to `timestring_to_unix(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:194:
>> undefined reference to `timestring_to_sec(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:197:
>> undefined reference to `timestring_to_unix(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:202:
>> undefined reference to `timestring_to_unix(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:208:
>> undefined reference to `ConcatString::operator=(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
>> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
>> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>> undefined reference to `Result::sval( const(void))'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>> undefined reference to `StatHdrColumns::set_model(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>> undefined reference to `Result::__dt(void)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>> undefined reference to `Result::__dt(void)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
>> undefined reference to `Result::sval( const(void))'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
>> undefined reference to `Result::sval( const(void))'
>> Bright Yang
>>
>> Vaisala
>>
>>
>> -----Original Message-----
>> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
>> Sent: Tuesday, December 13, 2011 4:09 PM
>> To: Yang Bright BRYA
>> Subject: Re: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined
>> reference to `oom(void)'
>>
>> Bright,
>>
>> Hmmm, this is a new linker error I've never seen before.
>>
>> Thanks for sending your Makefile. Diffing it with the pgi Makefile
>> template that's distributed with MET, I see the following
differences:
>>
>> (1) In the CXX_LIBS line, you've added
>> "-L/share/apps/pgi/linux86-64/11.10/lib". Is your pgCC compiler
> unable
>> to find it's standard libraries?
>> (2) In the GSL_LIBS line, you've added "-lgslcblas". What led you
to
>> doing that?
>> (3) In the F2C_INCS and F2C_LIBS lines, you've added
>> "-I/share/apps/pgi/linux86-64/11.10/include" and
>> "-L/share/apps/pgi/linux86-64/11.10/lib". Why was that necessary?
>>
>> So it looks like the linker is having problems building the PB2NC
> tool.
>> One thing to try first it to just disable the compilation of PB2NC
and
>> make sure the rest of MET builds fine. Just set:
>> DISABLE_PB2NC = 1
>> And then try rebuilding. If the rest of MET builds fine, you can
> reset
>> that back to 0, and we can try to figure out this problem.
>>
>> I'm wondering what version of the pgi compilers you're using. Can
you
>> please run the following two commands to figure out the versions?
>> pgCC --version
>> pgf77 --version
>>
>> Thanks,
>> John Halley Gotway
>> met_help at ucar.edu
>>
>> On 12/13/2011 03:41 PM, bright.yang at vaisala.com via RT wrote:
>>>
>>> Tue Dec 13 15:41:26 2011: Request 52014 was acted upon.
>>> Transaction: Ticket created by bright.yang at vaisala.com
>>> Queue: met_help
>>> Subject: MET Toolkit Make Error undefined reference to
>> `oom(void)'
>>> Owner: Nobody
>>> Requestors: bright.yang at vaisala.com
>>> Status: new
>>> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014
>>>
>>>
>>>
>>> Hi,
>>>
>>>
>>>
>>> I ran into this error message, and I suspect I am missing some
>> include
>>> files or libraries. I'm using pgi compilers. See the makefile in
the
>>> attachment. Thanks.-
>>>
>>> pgCC -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o
>>> dumppb.o \
>>>
>>> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>>>
>>> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
>>> -I/share/apps/gsl/include -I/share/apps/burflib
>>> -I/share/apps/pgi/linux86-64/11.10/include \
>>>
>>> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib -lgslcblas
>>> -L/share/apps/gsl/lib -L/share/apps/burflib
>>> -L/share/apps/pgi/linux86-64/11.10/lib \
>>>
>>> -lbufr -lvx_pb_util \
>>>
>>> -lvx_contable -lvx_met_util -lvx_analysis_util \
>>>
>>> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
>>> -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 \
>>>
>>> -L/share/apps/pgi/linux86-64/11.10/lib -lpgftnrtl -lrt
>>> -lpthread
>>>
>>> pb2nc.cc:
>>>
>>> pb2nc.o: In function `main':
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:261: undefined
>>> reference to `oom(void)'
>>>
>>> pb2nc.o: In function `initialize()':
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>> reference to `StringArray::clear(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>> reference to `StringArray::clear(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>> reference to `StringArray::clear(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>> reference to `NumArray::clear(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>> reference to `NumArray::clear(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>> reference to `NumArray::clear(void)'
>>>
>>> pb2nc.o: In function `process_command_line(int, char **)':
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>> reference to `StringArray::add(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>> reference to `ConcatString::operator=(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>> reference to `ConcatString::operator=(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:346: undefined
>>> reference to `StringArray::add(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:350: undefined
>>> reference to `timestring_to_unix(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:354: undefined
>>> reference to `timestring_to_unix(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:365: undefined
>>> reference to `ConcatString::operator=(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:382: undefined
>>> reference to
>> `operator<<(std::basic_ostream<char,std::char_traits<char>>
>>> &, ConcatString const &)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:385: undefined
>>> reference to `pb2nc_Conf::read(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>>
>>> pb2nc.o: In function `process_config()':
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>> reference to `pb2nc_Conf::version(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>> reference to `pb2nc_Conf::version(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>> reference to `Result::sval( const(void))'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>> reference to `Result::sval( const(void))'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `pb2nc_Conf::version(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `Result::sval( const(void))'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> pb2nc.o:/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426:
more
>>> undefined references to `Result::__dt(void)' follow
>>>
>>> pb2nc.o: In function `process_config()':
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>> reference to `pb2nc_Conf::beg_ds(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>> reference to `pb2nc_Conf::end_ds(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>> reference to `Result::ival( const(void))'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>> reference to `Result::ival( const(void))'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>> reference to `Result::__dt(void)'
>>>
>>>
>>>
>>> Bright Yang
>>>
>>> Vaisala
>>>
>>>
>>>
>>
>
------------------------------------------------
Subject: MET Toolkit Make Error undefined reference to `oom(void)'
From: bright.yang at vaisala.com
Time: Thu Dec 15 13:40:54 2011
Please find new log files attached. Thanks.
Bright
-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Thursday, December 15, 2011 12:06 PM
To: Yang Bright BRYA
Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined reference to `oom(void)'
Bright,
In the "make_met.log" file you sent, the error has changed. The build
is now exiting with problems related to NetCDF. It's possible that
there will still be internal linking errors, but the current
problem is with NetCDF. In the log file you sent, I see that you're
linking to the following version of NetCDF:
/share/apps/netcdf362_gcc_pgf
Version 3.6.2 of NetCDF is fine. That isn't the problem. But based
on
the path, it looks like that version of NetCDF was built using the GNU
gcc compiler and the PGI fortran compiler.
If you want to build MET using the PGI compilers, you'll need to link
to
a version of NetCDF that's built with the same compilers. If you
don't
already have such a build of NetCDF on your system, I'd
suggest downloading and compiling a local copy of NetCDF using the PGI
compilers. This really isn't difficult and should only take 5 minutes
or so. Just follow the directions on this page:
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compil
ation/req_libs.php
So the following commands should do it (assuming you're using the
c-shell):
setenv CC pgcc
setenv CXX pgCC
setenv FC ''
setenv F90 ''
./configure --prefix=/netcdf/install/path (I typically just say
--prefix=`pwd` to install it in the current directory)
make
make install
That'll compile the C and C++ NetCDF interface and skip the fortran
ones, which MET doesn't use.
Once that's done, edit your top-level MET Makefile to point
"NETCDF_BASE" to wherever you've installed this version of NetCDF.
Now try rebuilding. If you get another error, please do the same
thing
I requested last time:
make clean
make >& make_met.log
find > find.log
And send me those files.
Thanks,
John
On 12/15/2011 11:34 AM, bright.yang at vaisala.com via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>
>
>
> John - Please also be aware we are using netcdf 3.6.2.
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Thursday, December 15, 2011 10:36 AM
> To: Yang Bright BRYA
> Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
> undefined reference to `oom(void)'
>
> Bright,
>
> Sorry for the delay in getting back with you.
>
> I tried building MET with the latest version of the PGI compilers I
have
> available on my system:
> pgCC 11.7-0 64-bit target on x86-64 Linux -tp nehalem
>
> So I'm running 11.7-0 while you're using 11.10-0. But with 11.7-0,
I'm
> able to compile and build METv3.0.1 without any problems.
>
> The linker error messages you sent me indicate that when trying to
> compile Point-Stat, the linker can't find the definition of a bunch
of
> functions that are defined in the MET libraries. So this
> isn't a problem linking to external libraries - this is a problem
> linking to internal MET libraries! This is the first time we've
fielded
> a question of this nature.
>
> Can you please do the following:
> cd METv3.0.1
> make clean
> make >& make_met.log
> find > find.log
>
> And then send me both those files "make_met.log" and "find.log".
>
> Thanks,
> John
>
>
> On 12/15/2011 09:35 AM, bright.yang at vaisala.com via RT wrote:
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>>
>>
>> Any new findings from my last attached makefile? Thanks.
>> Bright Yang
>>
>> Vaisala, Boulder
>>
>>
>>
>>
>> U.S. Export Restrictions & Disclaimer: Export of any technical
>> information contained in this email and/or its attachments is
subject
> to
>> the export control laws and regulations of the U.S. Government and
may
>> require a valid license or written approval prior to export.
>>
>>
>> -----Original Message-----
>> From: Yang Bright BRYA
>> Sent: Tuesday, December 13, 2011 4:20 PM
>> To: 'met_help at ucar.edu'
>> Subject: RE: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined
>> reference to `oom(void)'
>>
>> Hi John,
>>
>> I removed those extra include and lib path. See the new Makefile
>> attached. Here is the output of
>> # pgCC --version
>>
>> pgCC 11.10-0 64-bit target on x86-64 Linux -tp istanbul
>> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
>> Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
>> [root at prodcluster01 METv3.0.1]# pgf77 --version
>>
>> pgf77 11.10-0 64-bit target on x86-64 Linux -tp istanbul
>> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
>> Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
>>
>> I make the following 2 flags to be 1
>> DISABLE_PB2NC = 1
>> DISABLE_ASCII2NC = 1
>> But the rest of cc files all needs those missing functions
>> pgCC -o point_stat point_stat.cc point_stat_Conf.o
>> point_stat_conf_info.o \
>> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
>> -I/share/apps/gsl/include \
>> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib
>> -L/share/apps/gsl/lib \
>> -lvx_contable -lvx_met_util -lvx_analysis_util \
>> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
>> -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 \
>>
>> point_stat.cc:
>> point_stat.o: In function `main':
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:130:
>> undefined reference to `oom(void)'
>> point_stat.o: In function `process_command_line(int, char **)':
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
>> undefined reference to `operator<<(ConcatString &, char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
>> undefined reference to `operator<<(ConcatString &, char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>> undefined reference to `ConcatString::operator=(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>> undefined reference to `ConcatString::operator=(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>> undefined reference to `StringArray::add(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>> undefined reference to `ConcatString::operator=(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>> undefined reference to `get_file_type(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:179:
>> undefined reference to `StringArray::add(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:185:
>> undefined reference to `ConcatString::operator=(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:190:
>> undefined reference to `timestring_to_unix(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:194:
>> undefined reference to `timestring_to_sec(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:197:
>> undefined reference to `timestring_to_unix(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:202:
>> undefined reference to `timestring_to_unix(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:208:
>> undefined reference to `ConcatString::operator=(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
>> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
>> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>> undefined reference to `Result::sval( const(void))'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>> undefined reference to `StatHdrColumns::set_model(char const *)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>> undefined reference to `Result::__dt(void)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>> undefined reference to `Result::__dt(void)'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
>> undefined reference to `Result::sval( const(void))'
>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
>> undefined reference to `Result::sval( const(void))'
>> Bright Yang
>>
>> Vaisala
>>
>>
>> -----Original Message-----
>> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
>> Sent: Tuesday, December 13, 2011 4:09 PM
>> To: Yang Bright BRYA
>> Subject: Re: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined
>> reference to `oom(void)'
>>
>> Bright,
>>
>> Hmmm, this is a new linker error I've never seen before.
>>
>> Thanks for sending your Makefile. Diffing it with the pgi Makefile
>> template that's distributed with MET, I see the following
differences:
>>
>> (1) In the CXX_LIBS line, you've added
>> "-L/share/apps/pgi/linux86-64/11.10/lib". Is your pgCC compiler
> unable
>> to find it's standard libraries?
>> (2) In the GSL_LIBS line, you've added "-lgslcblas". What led you
to
>> doing that?
>> (3) In the F2C_INCS and F2C_LIBS lines, you've added
>> "-I/share/apps/pgi/linux86-64/11.10/include" and
>> "-L/share/apps/pgi/linux86-64/11.10/lib". Why was that necessary?
>>
>> So it looks like the linker is having problems building the PB2NC
> tool.
>> One thing to try first it to just disable the compilation of PB2NC
and
>> make sure the rest of MET builds fine. Just set:
>> DISABLE_PB2NC = 1
>> And then try rebuilding. If the rest of MET builds fine, you can
> reset
>> that back to 0, and we can try to figure out this problem.
>>
>> I'm wondering what version of the pgi compilers you're using. Can
you
>> please run the following two commands to figure out the versions?
>> pgCC --version
>> pgf77 --version
>>
>> Thanks,
>> John Halley Gotway
>> met_help at ucar.edu
>>
>> On 12/13/2011 03:41 PM, bright.yang at vaisala.com via RT wrote:
>>>
>>> Tue Dec 13 15:41:26 2011: Request 52014 was acted upon.
>>> Transaction: Ticket created by bright.yang at vaisala.com
>>> Queue: met_help
>>> Subject: MET Toolkit Make Error undefined reference to
>> `oom(void)'
>>> Owner: Nobody
>>> Requestors: bright.yang at vaisala.com
>>> Status: new
>>> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014
>>>
>>>
>>>
>>> Hi,
>>>
>>>
>>>
>>> I ran into this error message, and I suspect I am missing some
>> include
>>> files or libraries. I'm using pgi compilers. See the makefile in
the
>>> attachment. Thanks.-
>>>
>>> pgCC -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o
>>> dumppb.o \
>>>
>>> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>>>
>>> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
>>> -I/share/apps/gsl/include -I/share/apps/burflib
>>> -I/share/apps/pgi/linux86-64/11.10/include \
>>>
>>> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib -lgslcblas
>>> -L/share/apps/gsl/lib -L/share/apps/burflib
>>> -L/share/apps/pgi/linux86-64/11.10/lib \
>>>
>>> -lbufr -lvx_pb_util \
>>>
>>> -lvx_contable -lvx_met_util -lvx_analysis_util \
>>>
>>> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
>>> -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 \
>>>
>>> -L/share/apps/pgi/linux86-64/11.10/lib -lpgftnrtl -lrt
>>> -lpthread
>>>
>>> pb2nc.cc:
>>>
>>> pb2nc.o: In function `main':
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:261: undefined
>>> reference to `oom(void)'
>>>
>>> pb2nc.o: In function `initialize()':
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>> reference to `StringArray::clear(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>> reference to `StringArray::clear(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>> reference to `StringArray::clear(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>> reference to `NumArray::clear(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>> reference to `NumArray::clear(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>> reference to `NumArray::clear(void)'
>>>
>>> pb2nc.o: In function `process_command_line(int, char **)':
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>> reference to `StringArray::add(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>> reference to `ConcatString::operator=(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>> reference to `ConcatString::operator=(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:346: undefined
>>> reference to `StringArray::add(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:350: undefined
>>> reference to `timestring_to_unix(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:354: undefined
>>> reference to `timestring_to_unix(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:365: undefined
>>> reference to `ConcatString::operator=(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:382: undefined
>>> reference to
>> `operator<<(std::basic_ostream<char,std::char_traits<char>>
>>> &, ConcatString const &)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:385: undefined
>>> reference to `pb2nc_Conf::read(char const *)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>>
>>> pb2nc.o: In function `process_config()':
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>> reference to `pb2nc_Conf::version(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>> reference to `pb2nc_Conf::version(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>> reference to `Result::sval( const(void))'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>> reference to `Result::sval( const(void))'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `pb2nc_Conf::version(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `Result::sval( const(void))'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> pb2nc.o:/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426:
more
>>> undefined references to `Result::__dt(void)' follow
>>>
>>> pb2nc.o: In function `process_config()':
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>> reference to `pb2nc_Conf::beg_ds(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>> reference to `pb2nc_Conf::end_ds(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>> reference to `Result::ival( const(void))'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>> reference to `Result::ival( const(void))'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>> reference to `Result::__dt(void)'
>>>
>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>> reference to `Result::__dt(void)'
>>>
>>>
>>>
>>> Bright Yang
>>>
>>> Vaisala
>>>
>>>
>>>
>>
>
------------------------------------------------
Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error undefined reference to `oom(void)'
From: John Halley Gotway
Time: Fri Dec 16 10:46:31 2011
Bright,
Looks like you're having continued problems with NetCDF. Looking the
output of the build you sent, I see that you've told MET to compile
against the build of NetCDF in:
/share/apps/netcdf362-pgcc
In particular, MET needs to link against the "netcdf" and "netcdf_c++"
library archive files. Let's look in your NetCDF build to see if the
expected files exist. Please execute the following commands:
ls /share/apps/netcdf362-pgcc/lib/libnetcdf.a
/share/apps/netcdf362-pgcc/lib/libnetcdf_c++.a
My guess is that the second file "libnetcdf_c++.a" does not exist,
meaning that the C++ interface for NetCDF was not successfully
compiled. If that's the case, please rebuild NetCDF using the
commands I suggested. Please note that CXX is set to pcCC, with a
capital CC. pgcc (lowercase) is the PGI C-compiler, while pgCC
(capital) is the PGI-C++ compiler. CXX needs to be set to the pgCC
C++ compiler.
setenv CC pgcc
setenv CXX pgCC
setenv FC ''
setenv F90 ''
./configure --prefix=/netcdf/install/path (I typically just say
--prefix=`pwd` to install it in the current directory)
make
make install
If that libnetcdf_c++.a file wasn't there, rebuild NetCDF, make sure
it's there, and then rebuild MET.
If that libnetcdf_c++.a file was there, run the following command to
list the contents of that file and send me the output:
nm /share/apps/netcdf362-pgcc/lib/libnetcdf_c++.a >
nm_netcdf_c++.log
We'll get this figured out eventually!
Thanks,
John
On 12/15/2011 01:40 PM, bright.yang at vaisala.com via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>
> Please find new log files attached. Thanks.
> Bright
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Thursday, December 15, 2011 12:06 PM
> To: Yang Bright BRYA
> Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
> undefined reference to `oom(void)'
>
> Bright,
>
> In the "make_met.log" file you sent, the error has changed. The
build
> is now exiting with problems related to NetCDF. It's possible that
> there will still be internal linking errors, but the current
> problem is with NetCDF. In the log file you sent, I see that you're
> linking to the following version of NetCDF:
> /share/apps/netcdf362_gcc_pgf
>
> Version 3.6.2 of NetCDF is fine. That isn't the problem. But based
on
> the path, it looks like that version of NetCDF was built using the
GNU
> gcc compiler and the PGI fortran compiler.
>
> If you want to build MET using the PGI compilers, you'll need to
link to
> a version of NetCDF that's built with the same compilers. If you
don't
> already have such a build of NetCDF on your system, I'd
> suggest downloading and compiling a local copy of NetCDF using the
PGI
> compilers. This really isn't difficult and should only take 5
minutes
> or so. Just follow the directions on this page:
>
>
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compil
> ation/req_libs.php
>
> So the following commands should do it (assuming you're using the
> c-shell):
> setenv CC pgcc
> setenv CXX pgCC
> setenv FC ''
> setenv F90 ''
> ./configure --prefix=/netcdf/install/path (I typically just say
> --prefix=`pwd` to install it in the current directory)
> make
> make install
>
> That'll compile the C and C++ NetCDF interface and skip the fortran
> ones, which MET doesn't use.
>
> Once that's done, edit your top-level MET Makefile to point
> "NETCDF_BASE" to wherever you've installed this version of NetCDF.
>
> Now try rebuilding. If you get another error, please do the same
thing
> I requested last time:
> make clean
> make >& make_met.log
> find > find.log
> And send me those files.
>
> Thanks,
> John
>
> On 12/15/2011 11:34 AM, bright.yang at vaisala.com via RT wrote:
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>>
>>
>>
>> John - Please also be aware we are using netcdf 3.6.2.
>> -----Original Message-----
>> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
>> Sent: Thursday, December 15, 2011 10:36 AM
>> To: Yang Bright BRYA
>> Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
>> undefined reference to `oom(void)'
>>
>> Bright,
>>
>> Sorry for the delay in getting back with you.
>>
>> I tried building MET with the latest version of the PGI compilers I
> have
>> available on my system:
>> pgCC 11.7-0 64-bit target on x86-64 Linux -tp nehalem
>>
>> So I'm running 11.7-0 while you're using 11.10-0. But with 11.7-0,
> I'm
>> able to compile and build METv3.0.1 without any problems.
>>
>> The linker error messages you sent me indicate that when trying to
>> compile Point-Stat, the linker can't find the definition of a bunch
of
>> functions that are defined in the MET libraries. So this
>> isn't a problem linking to external libraries - this is a problem
>> linking to internal MET libraries! This is the first time we've
> fielded
>> a question of this nature.
>>
>> Can you please do the following:
>> cd METv3.0.1
>> make clean
>> make >& make_met.log
>> find > find.log
>>
>> And then send me both those files "make_met.log" and "find.log".
>>
>> Thanks,
>> John
>>
>>
>> On 12/15/2011 09:35 AM, bright.yang at vaisala.com via RT wrote:
>>>
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>>>
>>>
>>> Any new findings from my last attached makefile? Thanks.
>>> Bright Yang
>>>
>>> Vaisala, Boulder
>>>
>>>
>>>
>>>
>>> U.S. Export Restrictions & Disclaimer: Export of any technical
>>> information contained in this email and/or its attachments is
subject
>> to
>>> the export control laws and regulations of the U.S. Government and
> may
>>> require a valid license or written approval prior to export.
>>>
>>>
>>> -----Original Message-----
>>> From: Yang Bright BRYA
>>> Sent: Tuesday, December 13, 2011 4:20 PM
>>> To: 'met_help at ucar.edu'
>>> Subject: RE: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
> undefined
>>> reference to `oom(void)'
>>>
>>> Hi John,
>>>
>>> I removed those extra include and lib path. See the new Makefile
>>> attached. Here is the output of
>>> # pgCC --version
>>>
>>> pgCC 11.10-0 64-bit target on x86-64 Linux -tp istanbul
>>> Copyright 1989-2000, The Portland Group, Inc. All Rights
Reserved.
>>> Copyright 2000-2011, STMicroelectronics, Inc. All Rights
Reserved.
>>> [root at prodcluster01 METv3.0.1]# pgf77 --version
>>>
>>> pgf77 11.10-0 64-bit target on x86-64 Linux -tp istanbul
>>> Copyright 1989-2000, The Portland Group, Inc. All Rights
Reserved.
>>> Copyright 2000-2011, STMicroelectronics, Inc. All Rights
Reserved.
>>>
>>> I make the following 2 flags to be 1
>>> DISABLE_PB2NC = 1
>>> DISABLE_ASCII2NC = 1
>>> But the rest of cc files all needs those missing functions
>>> pgCC -o point_stat point_stat.cc point_stat_Conf.o
>>> point_stat_conf_info.o \
>>> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>>> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
>>> -I/share/apps/gsl/include \
>>> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib
>>> -L/share/apps/gsl/lib \
>>> -lvx_contable -lvx_met_util -lvx_analysis_util \
>>> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
>>> -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 \
>>>
>>> point_stat.cc:
>>> point_stat.o: In function `main':
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:130:
>>> undefined reference to `oom(void)'
>>> point_stat.o: In function `process_command_line(int, char **)':
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
>>> undefined reference to `operator<<(ConcatString &, char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
>>> undefined reference to `operator<<(ConcatString &, char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>> undefined reference to `ConcatString::operator=(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>> undefined reference to `ConcatString::operator=(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>> undefined reference to `StringArray::add(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>> undefined reference to `ConcatString::operator=(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>> undefined reference to `get_file_type(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:179:
>>> undefined reference to `StringArray::add(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:185:
>>> undefined reference to `ConcatString::operator=(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:190:
>>> undefined reference to `timestring_to_unix(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:194:
>>> undefined reference to `timestring_to_sec(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:197:
>>> undefined reference to `timestring_to_unix(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:202:
>>> undefined reference to `timestring_to_unix(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:208:
>>> undefined reference to `ConcatString::operator=(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
>>> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
>>> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>>> undefined reference to `Result::sval( const(void))'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>>> undefined reference to `StatHdrColumns::set_model(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>>> undefined reference to `Result::__dt(void)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>>> undefined reference to `Result::__dt(void)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
>>> undefined reference to `Result::sval( const(void))'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
>>> undefined reference to `Result::sval( const(void))'
>>> Bright Yang
>>>
>>> Vaisala
>>>
>>>
>>> -----Original Message-----
>>> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
>>> Sent: Tuesday, December 13, 2011 4:09 PM
>>> To: Yang Bright BRYA
>>> Subject: Re: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
> undefined
>>> reference to `oom(void)'
>>>
>>> Bright,
>>>
>>> Hmmm, this is a new linker error I've never seen before.
>>>
>>> Thanks for sending your Makefile. Diffing it with the pgi
Makefile
>>> template that's distributed with MET, I see the following
> differences:
>>>
>>> (1) In the CXX_LIBS line, you've added
>>> "-L/share/apps/pgi/linux86-64/11.10/lib". Is your pgCC compiler
>> unable
>>> to find it's standard libraries?
>>> (2) In the GSL_LIBS line, you've added "-lgslcblas". What led you
to
>>> doing that?
>>> (3) In the F2C_INCS and F2C_LIBS lines, you've added
>>> "-I/share/apps/pgi/linux86-64/11.10/include" and
>>> "-L/share/apps/pgi/linux86-64/11.10/lib". Why was that necessary?
>>>
>>> So it looks like the linker is having problems building the PB2NC
>> tool.
>>> One thing to try first it to just disable the compilation of PB2NC
> and
>>> make sure the rest of MET builds fine. Just set:
>>> DISABLE_PB2NC = 1
>>> And then try rebuilding. If the rest of MET builds fine, you can
>> reset
>>> that back to 0, and we can try to figure out this problem.
>>>
>>> I'm wondering what version of the pgi compilers you're using. Can
> you
>>> please run the following two commands to figure out the versions?
>>> pgCC --version
>>> pgf77 --version
>>>
>>> Thanks,
>>> John Halley Gotway
>>> met_help at ucar.edu
>>>
>>> On 12/13/2011 03:41 PM, bright.yang at vaisala.com via RT wrote:
>>>>
>>>> Tue Dec 13 15:41:26 2011: Request 52014 was acted upon.
>>>> Transaction: Ticket created by bright.yang at vaisala.com
>>>> Queue: met_help
>>>> Subject: MET Toolkit Make Error undefined reference to
>>> `oom(void)'
>>>> Owner: Nobody
>>>> Requestors: bright.yang at vaisala.com
>>>> Status: new
>>>> Ticket <URL:
> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014
>>>>
>>>>
>>>>
>>>> Hi,
>>>>
>>>>
>>>>
>>>> I ran into this error message, and I suspect I am missing some
>>> include
>>>> files or libraries. I'm using pgi compilers. See the makefile in
the
>>>> attachment. Thanks.-
>>>>
>>>> pgCC -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o
>>>> dumppb.o \
>>>>
>>>> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>>>>
>>>> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
>>>> -I/share/apps/gsl/include -I/share/apps/burflib
>>>> -I/share/apps/pgi/linux86-64/11.10/include \
>>>>
>>>> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib
-lgslcblas
>>>> -L/share/apps/gsl/lib -L/share/apps/burflib
>>>> -L/share/apps/pgi/linux86-64/11.10/lib \
>>>>
>>>> -lbufr -lvx_pb_util \
>>>>
>>>> -lvx_contable -lvx_met_util -lvx_analysis_util \
>>>>
>>>> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
>>>> -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 \
>>>>
>>>> -L/share/apps/pgi/linux86-64/11.10/lib -lpgftnrtl -lrt
>>>> -lpthread
>>>>
>>>> pb2nc.cc:
>>>>
>>>> pb2nc.o: In function `main':
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:261: undefined
>>>> reference to `oom(void)'
>>>>
>>>> pb2nc.o: In function `initialize()':
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>> reference to `StringArray::clear(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>> reference to `StringArray::clear(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>> reference to `StringArray::clear(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>> reference to `NumArray::clear(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>> reference to `NumArray::clear(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>> reference to `NumArray::clear(void)'
>>>>
>>>> pb2nc.o: In function `process_command_line(int, char **)':
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>>> reference to `StringArray::add(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>>> reference to `ConcatString::operator=(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>>> reference to `ConcatString::operator=(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:346: undefined
>>>> reference to `StringArray::add(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:350: undefined
>>>> reference to `timestring_to_unix(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:354: undefined
>>>> reference to `timestring_to_unix(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:365: undefined
>>>> reference to `ConcatString::operator=(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:382: undefined
>>>> reference to
>>> `operator<<(std::basic_ostream<char,std::char_traits<char>>
>>>> &, ConcatString const &)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:385: undefined
>>>> reference to `pb2nc_Conf::read(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>>>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>>>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>>>
>>>> pb2nc.o: In function `process_config()':
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>> reference to `pb2nc_Conf::version(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>> reference to `pb2nc_Conf::version(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>> reference to `Result::sval( const(void))'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>> reference to `Result::sval( const(void))'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `pb2nc_Conf::version(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `Result::sval( const(void))'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> pb2nc.o:/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426:
more
>>>> undefined references to `Result::__dt(void)' follow
>>>>
>>>> pb2nc.o: In function `process_config()':
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>> reference to `pb2nc_Conf::beg_ds(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>> reference to `pb2nc_Conf::end_ds(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>> reference to `Result::ival( const(void))'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>> reference to `Result::ival( const(void))'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>>
>>>>
>>>> Bright Yang
>>>>
>>>> Vaisala
>>>>
>>>>
>>>>
>>>
>>
>
------------------------------------------------
Subject: RE: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error undefined reference to `oom(void)'
From: bright.yang at vaisala.com
Time: Fri Dec 16 13:48:59 2011
John, both files were there ans showing built yesterday -
[root at prodcluster01 ~]# ls /share/apps/netcdf362-pgcc/lib/libnetcdf.a
/share/apps/netcdf362-pgcc/lib/libnetcdf_c++.a -al
-rw-r--r-- 1 root root 3184488 Dec 15 20:05
/share/apps/netcdf362-pgcc/lib/libnetcdf.a
-rw-r--r-- 1 root root 859292 Dec 15 20:05
/share/apps/netcdf362-pgcc/lib/libnetcdf_c++.a
Bright
-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Friday, December 16, 2011 10:47 AM
To: Yang Bright BRYA
Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
undefined reference to `oom(void)'
Bright,
Looks like you're having continued problems with NetCDF. Looking the
output of the build you sent, I see that you've told MET to compile
against the build of NetCDF in:
/share/apps/netcdf362-pgcc
In particular, MET needs to link against the "netcdf" and "netcdf_c++"
library archive files. Let's look in your NetCDF build to see if the
expected files exist. Please execute the following commands:
ls /share/apps/netcdf362-pgcc/lib/libnetcdf.a
/share/apps/netcdf362-pgcc/lib/libnetcdf_c++.a
My guess is that the second file "libnetcdf_c++.a" does not exist,
meaning that the C++ interface for NetCDF was not successfully
compiled.
If that's the case, please rebuild NetCDF using the
commands I suggested. Please note that CXX is set to pcCC, with a
capital CC. pgcc (lowercase) is the PGI C-compiler, while pgCC
(capital) is the PGI-C++ compiler. CXX needs to be set to the pgCC
C++ compiler.
setenv CC pgcc
setenv CXX pgCC
setenv FC ''
setenv F90 ''
./configure --prefix=/netcdf/install/path (I typically just say
--prefix=`pwd` to install it in the current directory)
make
make install
If that libnetcdf_c++.a file wasn't there, rebuild NetCDF, make sure
it's there, and then rebuild MET.
If that libnetcdf_c++.a file was there, run the following command to
list the contents of that file and send me the output:
nm /share/apps/netcdf362-pgcc/lib/libnetcdf_c++.a >
nm_netcdf_c++.log
We'll get this figured out eventually!
Thanks,
John
On 12/15/2011 01:40 PM, bright.yang at vaisala.com via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>
> Please find new log files attached. Thanks.
> Bright
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Thursday, December 15, 2011 12:06 PM
> To: Yang Bright BRYA
> Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
> undefined reference to `oom(void)'
>
> Bright,
>
> In the "make_met.log" file you sent, the error has changed. The
build
> is now exiting with problems related to NetCDF. It's possible that
> there will still be internal linking errors, but the current
> problem is with NetCDF. In the log file you sent, I see that you're
> linking to the following version of NetCDF:
> /share/apps/netcdf362_gcc_pgf
>
> Version 3.6.2 of NetCDF is fine. That isn't the problem. But based
on
> the path, it looks like that version of NetCDF was built using the
GNU
> gcc compiler and the PGI fortran compiler.
>
> If you want to build MET using the PGI compilers, you'll need to
link
to
> a version of NetCDF that's built with the same compilers. If you
don't
> already have such a build of NetCDF on your system, I'd
> suggest downloading and compiling a local copy of NetCDF using the
PGI
> compilers. This really isn't difficult and should only take 5
minutes
> or so. Just follow the directions on this page:
>
>
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compil
> ation/req_libs.php
>
> So the following commands should do it (assuming you're using the
> c-shell):
> setenv CC pgcc
> setenv CXX pgCC
> setenv FC ''
> setenv F90 ''
> ./configure --prefix=/netcdf/install/path (I typically just say
> --prefix=`pwd` to install it in the current directory)
> make
> make install
>
> That'll compile the C and C++ NetCDF interface and skip the fortran
> ones, which MET doesn't use.
>
> Once that's done, edit your top-level MET Makefile to point
> "NETCDF_BASE" to wherever you've installed this version of NetCDF.
>
> Now try rebuilding. If you get another error, please do the same
thing
> I requested last time:
> make clean
> make >& make_met.log
> find > find.log
> And send me those files.
>
> Thanks,
> John
>
> On 12/15/2011 11:34 AM, bright.yang at vaisala.com via RT wrote:
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>>
>>
>>
>> John - Please also be aware we are using netcdf 3.6.2.
>> -----Original Message-----
>> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
>> Sent: Thursday, December 15, 2011 10:36 AM
>> To: Yang Bright BRYA
>> Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
>> undefined reference to `oom(void)'
>>
>> Bright,
>>
>> Sorry for the delay in getting back with you.
>>
>> I tried building MET with the latest version of the PGI compilers I
> have
>> available on my system:
>> pgCC 11.7-0 64-bit target on x86-64 Linux -tp nehalem
>>
>> So I'm running 11.7-0 while you're using 11.10-0. But with 11.7-0,
> I'm
>> able to compile and build METv3.0.1 without any problems.
>>
>> The linker error messages you sent me indicate that when trying to
>> compile Point-Stat, the linker can't find the definition of a bunch
of
>> functions that are defined in the MET libraries. So this
>> isn't a problem linking to external libraries - this is a problem
>> linking to internal MET libraries! This is the first time we've
> fielded
>> a question of this nature.
>>
>> Can you please do the following:
>> cd METv3.0.1
>> make clean
>> make >& make_met.log
>> find > find.log
>>
>> And then send me both those files "make_met.log" and "find.log".
>>
>> Thanks,
>> John
>>
>>
>> On 12/15/2011 09:35 AM, bright.yang at vaisala.com via RT wrote:
>>>
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>>>
>>>
>>> Any new findings from my last attached makefile? Thanks.
>>> Bright Yang
>>>
>>> Vaisala, Boulder
>>>
>>>
>>>
>>>
>>> U.S. Export Restrictions & Disclaimer: Export of any technical
>>> information contained in this email and/or its attachments is
subject
>> to
>>> the export control laws and regulations of the U.S. Government and
> may
>>> require a valid license or written approval prior to export.
>>>
>>>
>>> -----Original Message-----
>>> From: Yang Bright BRYA
>>> Sent: Tuesday, December 13, 2011 4:20 PM
>>> To: 'met_help at ucar.edu'
>>> Subject: RE: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
> undefined
>>> reference to `oom(void)'
>>>
>>> Hi John,
>>>
>>> I removed those extra include and lib path. See the new Makefile
>>> attached. Here is the output of
>>> # pgCC --version
>>>
>>> pgCC 11.10-0 64-bit target on x86-64 Linux -tp istanbul
>>> Copyright 1989-2000, The Portland Group, Inc. All Rights
Reserved.
>>> Copyright 2000-2011, STMicroelectronics, Inc. All Rights
Reserved.
>>> [root at prodcluster01 METv3.0.1]# pgf77 --version
>>>
>>> pgf77 11.10-0 64-bit target on x86-64 Linux -tp istanbul
>>> Copyright 1989-2000, The Portland Group, Inc. All Rights
Reserved.
>>> Copyright 2000-2011, STMicroelectronics, Inc. All Rights
Reserved.
>>>
>>> I make the following 2 flags to be 1
>>> DISABLE_PB2NC = 1
>>> DISABLE_ASCII2NC = 1
>>> But the rest of cc files all needs those missing functions
>>> pgCC -o point_stat point_stat.cc point_stat_Conf.o
>>> point_stat_conf_info.o \
>>> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>>> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
>>> -I/share/apps/gsl/include \
>>> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib
>>> -L/share/apps/gsl/lib \
>>> -lvx_contable -lvx_met_util -lvx_analysis_util \
>>> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
>>> -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 \
>>>
>>> point_stat.cc:
>>> point_stat.o: In function `main':
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:130:
>>> undefined reference to `oom(void)'
>>> point_stat.o: In function `process_command_line(int, char **)':
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
>>> undefined reference to `operator<<(ConcatString &, char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
>>> undefined reference to `operator<<(ConcatString &, char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>> undefined reference to `ConcatString::operator=(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>> undefined reference to `ConcatString::operator=(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>> undefined reference to `StringArray::add(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>> undefined reference to `ConcatString::operator=(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>> undefined reference to `get_file_type(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:179:
>>> undefined reference to `StringArray::add(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:185:
>>> undefined reference to `ConcatString::operator=(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:190:
>>> undefined reference to `timestring_to_unix(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:194:
>>> undefined reference to `timestring_to_sec(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:197:
>>> undefined reference to `timestring_to_unix(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:202:
>>> undefined reference to `timestring_to_unix(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:208:
>>> undefined reference to `ConcatString::operator=(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
>>> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
>>> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>>> undefined reference to `Result::sval( const(void))'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>>> undefined reference to `StatHdrColumns::set_model(char const *)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>>> undefined reference to `Result::__dt(void)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>>> undefined reference to `Result::__dt(void)'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
>>> undefined reference to `Result::sval( const(void))'
>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
>>> undefined reference to `Result::sval( const(void))'
>>> Bright Yang
>>>
>>> Vaisala
>>>
>>>
>>> -----Original Message-----
>>> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
>>> Sent: Tuesday, December 13, 2011 4:09 PM
>>> To: Yang Bright BRYA
>>> Subject: Re: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
> undefined
>>> reference to `oom(void)'
>>>
>>> Bright,
>>>
>>> Hmmm, this is a new linker error I've never seen before.
>>>
>>> Thanks for sending your Makefile. Diffing it with the pgi
Makefile
>>> template that's distributed with MET, I see the following
> differences:
>>>
>>> (1) In the CXX_LIBS line, you've added
>>> "-L/share/apps/pgi/linux86-64/11.10/lib". Is your pgCC compiler
>> unable
>>> to find it's standard libraries?
>>> (2) In the GSL_LIBS line, you've added "-lgslcblas". What led you
to
>>> doing that?
>>> (3) In the F2C_INCS and F2C_LIBS lines, you've added
>>> "-I/share/apps/pgi/linux86-64/11.10/include" and
>>> "-L/share/apps/pgi/linux86-64/11.10/lib". Why was that necessary?
>>>
>>> So it looks like the linker is having problems building the PB2NC
>> tool.
>>> One thing to try first it to just disable the compilation of PB2NC
> and
>>> make sure the rest of MET builds fine. Just set:
>>> DISABLE_PB2NC = 1
>>> And then try rebuilding. If the rest of MET builds fine, you can
>> reset
>>> that back to 0, and we can try to figure out this problem.
>>>
>>> I'm wondering what version of the pgi compilers you're using. Can
> you
>>> please run the following two commands to figure out the versions?
>>> pgCC --version
>>> pgf77 --version
>>>
>>> Thanks,
>>> John Halley Gotway
>>> met_help at ucar.edu
>>>
>>> On 12/13/2011 03:41 PM, bright.yang at vaisala.com via RT wrote:
>>>>
>>>> Tue Dec 13 15:41:26 2011: Request 52014 was acted upon.
>>>> Transaction: Ticket created by bright.yang at vaisala.com
>>>> Queue: met_help
>>>> Subject: MET Toolkit Make Error undefined reference to
>>> `oom(void)'
>>>> Owner: Nobody
>>>> Requestors: bright.yang at vaisala.com
>>>> Status: new
>>>> Ticket <URL:
> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014
>>>>
>>>>
>>>>
>>>> Hi,
>>>>
>>>>
>>>>
>>>> I ran into this error message, and I suspect I am missing some
>>> include
>>>> files or libraries. I'm using pgi compilers. See the makefile in
the
>>>> attachment. Thanks.-
>>>>
>>>> pgCC -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o
>>>> dumppb.o \
>>>>
>>>> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>>>>
>>>> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
>>>> -I/share/apps/gsl/include -I/share/apps/burflib
>>>> -I/share/apps/pgi/linux86-64/11.10/include \
>>>>
>>>> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib
-lgslcblas
>>>> -L/share/apps/gsl/lib -L/share/apps/burflib
>>>> -L/share/apps/pgi/linux86-64/11.10/lib \
>>>>
>>>> -lbufr -lvx_pb_util \
>>>>
>>>> -lvx_contable -lvx_met_util -lvx_analysis_util \
>>>>
>>>> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
>>>> -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 \
>>>>
>>>> -L/share/apps/pgi/linux86-64/11.10/lib -lpgftnrtl -lrt
>>>> -lpthread
>>>>
>>>> pb2nc.cc:
>>>>
>>>> pb2nc.o: In function `main':
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:261: undefined
>>>> reference to `oom(void)'
>>>>
>>>> pb2nc.o: In function `initialize()':
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>> reference to `StringArray::clear(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>> reference to `StringArray::clear(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>> reference to `StringArray::clear(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>> reference to `NumArray::clear(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>> reference to `NumArray::clear(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>> reference to `NumArray::clear(void)'
>>>>
>>>> pb2nc.o: In function `process_command_line(int, char **)':
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>>> reference to `StringArray::add(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>>> reference to `ConcatString::operator=(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>>> reference to `ConcatString::operator=(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:346: undefined
>>>> reference to `StringArray::add(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:350: undefined
>>>> reference to `timestring_to_unix(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:354: undefined
>>>> reference to `timestring_to_unix(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:365: undefined
>>>> reference to `ConcatString::operator=(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:382: undefined
>>>> reference to
>>> `operator<<(std::basic_ostream<char,std::char_traits<char>>
>>>> &, ConcatString const &)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:385: undefined
>>>> reference to `pb2nc_Conf::read(char const *)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>>>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>>>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>>>
>>>> pb2nc.o: In function `process_config()':
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>> reference to `pb2nc_Conf::version(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>> reference to `pb2nc_Conf::version(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>> reference to `Result::sval( const(void))'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>> reference to `Result::sval( const(void))'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `pb2nc_Conf::version(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `Result::sval( const(void))'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> pb2nc.o:/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426:
more
>>>> undefined references to `Result::__dt(void)' follow
>>>>
>>>> pb2nc.o: In function `process_config()':
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>> reference to `pb2nc_Conf::beg_ds(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>> reference to `pb2nc_Conf::end_ds(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>> reference to `Result::ival( const(void))'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>> reference to `Result::ival( const(void))'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>>> reference to `Result::__dt(void)'
>>>>
>>>>
>>>>
>>>> Bright Yang
>>>>
>>>> Vaisala
>>>>
>>>>
>>>>
>>>
>>
>
------------------------------------------------
Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error undefined reference to `oom(void)'
From: John Halley Gotway
Time: Fri Dec 16 16:09:46 2011
Bright,
Wow, this is an unexpected mess. I've spent part of the day trying to
get various versions of NetCDF (3.6.2, 3.6.3, and 4.1.1) to compile
using PGI versions 10.9 or 11.7. In all cases, I'm getting
linker errors preventing the NetCDF library itself to compile. We
have compiled and used NetCDF in the past using earlier version of the
PGI compilers, so I really have no idea what's going on here.
To get you going, one option would be to switch from using the PGI
compilers to the GNU compilers. That would probably be the quickest
way to get you up and running while trying to sort out what's
going on with PGI.
John
On 12/16/2011 01:48 PM, bright.yang at vaisala.com via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>
> John, both files were there ans showing built yesterday -
> [root at prodcluster01 ~]# ls /share/apps/netcdf362-
pgcc/lib/libnetcdf.a
> /share/apps/netcdf362-pgcc/lib/libnetcdf_c++.a -al
> -rw-r--r-- 1 root root 3184488 Dec 15 20:05
> /share/apps/netcdf362-pgcc/lib/libnetcdf.a
> -rw-r--r-- 1 root root 859292 Dec 15 20:05
> /share/apps/netcdf362-pgcc/lib/libnetcdf_c++.a
>
> Bright
>
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Friday, December 16, 2011 10:47 AM
> To: Yang Bright BRYA
> Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
> undefined reference to `oom(void)'
>
> Bright,
>
> Looks like you're having continued problems with NetCDF. Looking
the
> output of the build you sent, I see that you've told MET to compile
> against the build of NetCDF in:
> /share/apps/netcdf362-pgcc
>
> In particular, MET needs to link against the "netcdf" and
"netcdf_c++"
> library archive files. Let's look in your NetCDF build to see if
the
> expected files exist. Please execute the following commands:
> ls /share/apps/netcdf362-pgcc/lib/libnetcdf.a
> /share/apps/netcdf362-pgcc/lib/libnetcdf_c++.a
>
> My guess is that the second file "libnetcdf_c++.a" does not exist,
> meaning that the C++ interface for NetCDF was not successfully
compiled.
> If that's the case, please rebuild NetCDF using the
> commands I suggested. Please note that CXX is set to pcCC, with a
> capital CC. pgcc (lowercase) is the PGI C-compiler, while pgCC
> (capital) is the PGI-C++ compiler. CXX needs to be set to the pgCC
> C++ compiler.
>
> setenv CC pgcc
> setenv CXX pgCC
> setenv FC ''
> setenv F90 ''
> ./configure --prefix=/netcdf/install/path (I typically just say
> --prefix=`pwd` to install it in the current directory)
> make
> make install
>
> If that libnetcdf_c++.a file wasn't there, rebuild NetCDF, make sure
> it's there, and then rebuild MET.
>
> If that libnetcdf_c++.a file was there, run the following command to
> list the contents of that file and send me the output:
> nm /share/apps/netcdf362-pgcc/lib/libnetcdf_c++.a >
nm_netcdf_c++.log
>
> We'll get this figured out eventually!
>
> Thanks,
> John
>
> On 12/15/2011 01:40 PM, bright.yang at vaisala.com via RT wrote:
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>>
>> Please find new log files attached. Thanks.
>> Bright
>>
>> -----Original Message-----
>> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
>> Sent: Thursday, December 15, 2011 12:06 PM
>> To: Yang Bright BRYA
>> Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
>> undefined reference to `oom(void)'
>>
>> Bright,
>>
>> In the "make_met.log" file you sent, the error has changed. The
build
>> is now exiting with problems related to NetCDF. It's possible that
>> there will still be internal linking errors, but the current
>> problem is with NetCDF. In the log file you sent, I see that
you're
>> linking to the following version of NetCDF:
>> /share/apps/netcdf362_gcc_pgf
>>
>> Version 3.6.2 of NetCDF is fine. That isn't the problem. But
based
> on
>> the path, it looks like that version of NetCDF was built using the
GNU
>> gcc compiler and the PGI fortran compiler.
>>
>> If you want to build MET using the PGI compilers, you'll need to
link
> to
>> a version of NetCDF that's built with the same compilers. If you
> don't
>> already have such a build of NetCDF on your system, I'd
>> suggest downloading and compiling a local copy of NetCDF using the
PGI
>> compilers. This really isn't difficult and should only take 5
minutes
>> or so. Just follow the directions on this page:
>>
>>
>
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compil
>> ation/req_libs.php
>>
>> So the following commands should do it (assuming you're using the
>> c-shell):
>> setenv CC pgcc
>> setenv CXX pgCC
>> setenv FC ''
>> setenv F90 ''
>> ./configure --prefix=/netcdf/install/path (I typically just say
>> --prefix=`pwd` to install it in the current directory)
>> make
>> make install
>>
>> That'll compile the C and C++ NetCDF interface and skip the fortran
>> ones, which MET doesn't use.
>>
>> Once that's done, edit your top-level MET Makefile to point
>> "NETCDF_BASE" to wherever you've installed this version of NetCDF.
>>
>> Now try rebuilding. If you get another error, please do the same
> thing
>> I requested last time:
>> make clean
>> make >& make_met.log
>> find > find.log
>> And send me those files.
>>
>> Thanks,
>> John
>>
>> On 12/15/2011 11:34 AM, bright.yang at vaisala.com via RT wrote:
>>>
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>>>
>>>
>>>
>>> John - Please also be aware we are using netcdf 3.6.2.
>>> -----Original Message-----
>>> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
>>> Sent: Thursday, December 15, 2011 10:36 AM
>>> To: Yang Bright BRYA
>>> Subject: Re: FW: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
>>> undefined reference to `oom(void)'
>>>
>>> Bright,
>>>
>>> Sorry for the delay in getting back with you.
>>>
>>> I tried building MET with the latest version of the PGI compilers
I
>> have
>>> available on my system:
>>> pgCC 11.7-0 64-bit target on x86-64 Linux -tp nehalem
>>>
>>> So I'm running 11.7-0 while you're using 11.10-0. But with 11.7-
0,
>> I'm
>>> able to compile and build METv3.0.1 without any problems.
>>>
>>> The linker error messages you sent me indicate that when trying to
>>> compile Point-Stat, the linker can't find the definition of a
bunch
> of
>>> functions that are defined in the MET libraries. So this
>>> isn't a problem linking to external libraries - this is a problem
>>> linking to internal MET libraries! This is the first time we've
>> fielded
>>> a question of this nature.
>>>
>>> Can you please do the following:
>>> cd METv3.0.1
>>> make clean
>>> make >& make_met.log
>>> find > find.log
>>>
>>> And then send me both those files "make_met.log" and "find.log".
>>>
>>> Thanks,
>>> John
>>>
>>>
>>> On 12/15/2011 09:35 AM, bright.yang at vaisala.com via RT wrote:
>>>>
>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014 >
>>>>
>>>>
>>>> Any new findings from my last attached makefile? Thanks.
>>>> Bright Yang
>>>>
>>>> Vaisala, Boulder
>>>>
>>>>
>>>>
>>>>
>>>> U.S. Export Restrictions & Disclaimer: Export of any technical
>>>> information contained in this email and/or its attachments is
> subject
>>> to
>>>> the export control laws and regulations of the U.S. Government
and
>> may
>>>> require a valid license or written approval prior to export.
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Yang Bright BRYA
>>>> Sent: Tuesday, December 13, 2011 4:20 PM
>>>> To: 'met_help at ucar.edu'
>>>> Subject: RE: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
>> undefined
>>>> reference to `oom(void)'
>>>>
>>>> Hi John,
>>>>
>>>> I removed those extra include and lib path. See the new
Makefile
>>>> attached. Here is the output of
>>>> # pgCC --version
>>>>
>>>> pgCC 11.10-0 64-bit target on x86-64 Linux -tp istanbul
>>>> Copyright 1989-2000, The Portland Group, Inc. All Rights
Reserved.
>>>> Copyright 2000-2011, STMicroelectronics, Inc. All Rights
Reserved.
>>>> [root at prodcluster01 METv3.0.1]# pgf77 --version
>>>>
>>>> pgf77 11.10-0 64-bit target on x86-64 Linux -tp istanbul
>>>> Copyright 1989-2000, The Portland Group, Inc. All Rights
Reserved.
>>>> Copyright 2000-2011, STMicroelectronics, Inc. All Rights
Reserved.
>>>>
>>>> I make the following 2 flags to be 1
>>>> DISABLE_PB2NC = 1
>>>> DISABLE_ASCII2NC = 1
>>>> But the rest of cc files all needs those missing functions
>>>> pgCC -o point_stat point_stat.cc point_stat_Conf.o
>>>> point_stat_conf_info.o \
>>>> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>>>> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
>>>> -I/share/apps/gsl/include \
>>>> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib
>>>> -L/share/apps/gsl/lib \
>>>> -lvx_contable -lvx_met_util -lvx_analysis_util \
>>>> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
>>>> -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 \
>>>>
>>>> point_stat.cc:
>>>> point_stat.o: In function `main':
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:130:
>>>> undefined reference to `oom(void)'
>>>> point_stat.o: In function `process_command_line(int, char **)':
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
>>>> undefined reference to `operator<<(ConcatString &, char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:159:
>>>> undefined reference to `operator<<(ConcatString &, char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>>> undefined reference to `ConcatString::operator=(char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>>> undefined reference to `ConcatString::operator=(char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>>> undefined reference to `StringArray::add(char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>>> undefined reference to `ConcatString::operator=(char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:166:
>>>> undefined reference to `get_file_type(char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:179:
>>>> undefined reference to `StringArray::add(char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:185:
>>>> undefined reference to `ConcatString::operator=(char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:190:
>>>> undefined reference to `timestring_to_unix(char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:194:
>>>> undefined reference to `timestring_to_sec(char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:197:
>>>> undefined reference to `timestring_to_unix(char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:202:
>>>> undefined reference to `timestring_to_unix(char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:208:
>>>> undefined reference to `ConcatString::operator=(char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
>>>> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:228:
>>>> undefined reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>>>> undefined reference to `Result::sval( const(void))'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>>>> undefined reference to `StatHdrColumns::set_model(char const *)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>>>> undefined reference to `Result::__dt(void)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:242:
>>>> undefined reference to `Result::__dt(void)'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
>>>> undefined reference to `Result::sval( const(void))'
>>>> /home/wrf/download/METv3.0.1/src/point_stat/./point_stat.cc:246:
>>>> undefined reference to `Result::sval( const(void))'
>>>> Bright Yang
>>>>
>>>> Vaisala
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
>>>> Sent: Tuesday, December 13, 2011 4:09 PM
>>>> To: Yang Bright BRYA
>>>> Subject: Re: [rt.rap.ucar.edu #52014] MET Toolkit Make Error
>> undefined
>>>> reference to `oom(void)'
>>>>
>>>> Bright,
>>>>
>>>> Hmmm, this is a new linker error I've never seen before.
>>>>
>>>> Thanks for sending your Makefile. Diffing it with the pgi
Makefile
>>>> template that's distributed with MET, I see the following
>> differences:
>>>>
>>>> (1) In the CXX_LIBS line, you've added
>>>> "-L/share/apps/pgi/linux86-64/11.10/lib". Is your pgCC compiler
>>> unable
>>>> to find it's standard libraries?
>>>> (2) In the GSL_LIBS line, you've added "-lgslcblas". What led
you
> to
>>>> doing that?
>>>> (3) In the F2C_INCS and F2C_LIBS lines, you've added
>>>> "-I/share/apps/pgi/linux86-64/11.10/include" and
>>>> "-L/share/apps/pgi/linux86-64/11.10/lib". Why was that
necessary?
>>>>
>>>> So it looks like the linker is having problems building the PB2NC
>>> tool.
>>>> One thing to try first it to just disable the compilation of
PB2NC
>> and
>>>> make sure the rest of MET builds fine. Just set:
>>>> DISABLE_PB2NC = 1
>>>> And then try rebuilding. If the rest of MET builds fine, you can
>>> reset
>>>> that back to 0, and we can try to figure out this problem.
>>>>
>>>> I'm wondering what version of the pgi compilers you're using.
Can
>> you
>>>> please run the following two commands to figure out the versions?
>>>> pgCC --version
>>>> pgf77 --version
>>>>
>>>> Thanks,
>>>> John Halley Gotway
>>>> met_help at ucar.edu
>>>>
>>>> On 12/13/2011 03:41 PM, bright.yang at vaisala.com via RT wrote:
>>>>>
>>>>> Tue Dec 13 15:41:26 2011: Request 52014 was acted upon.
>>>>> Transaction: Ticket created by bright.yang at vaisala.com
>>>>> Queue: met_help
>>>>> Subject: MET Toolkit Make Error undefined reference to
>>>> `oom(void)'
>>>>> Owner: Nobody
>>>>> Requestors: bright.yang at vaisala.com
>>>>> Status: new
>>>>> Ticket <URL:
>> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=52014
>>>>>
>>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>>
>>>>>
>>>>> I ran into this error message, and I suspect I am missing some
>>>> include
>>>>> files or libraries. I'm using pgi compilers. See the makefile in
> the
>>>>> attachment. Thanks.-
>>>>>
>>>>> pgCC -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o
>>>>> dumppb.o \
>>>>>
>>>>> -Bstatic -DMET_BASE=\"/home/wrf/download/METv3.0.1\" \
>>>>>
>>>>> -I../../lib -I/share/apps/netcdf362_gcc_pgf/include
>>>>> -I/share/apps/gsl/include -I/share/apps/burflib
>>>>> -I/share/apps/pgi/linux86-64/11.10/include \
>>>>>
>>>>> -L../../lib -L/share/apps/netcdf362_gcc_pgf/lib
-lgslcblas
>>>>> -L/share/apps/gsl/lib -L/share/apps/burflib
>>>>> -L/share/apps/pgi/linux86-64/11.10/lib \
>>>>>
>>>>> -lbufr -lvx_pb_util \
>>>>>
>>>>> -lvx_contable -lvx_met_util -lvx_analysis_util \
>>>>>
>>>>> -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
>>>>> -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 \
>>>>>
>>>>> -L/share/apps/pgi/linux86-64/11.10/lib -lpgftnrtl -lrt
>>>>> -lpthread
>>>>>
>>>>> pb2nc.cc:
>>>>>
>>>>> pb2nc.o: In function `main':
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:261: undefined
>>>>> reference to `oom(void)'
>>>>>
>>>>> pb2nc.o: In function `initialize()':
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>>> reference to `StringArray::clear(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>>> reference to `StringArray::clear(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>>> reference to `StringArray::clear(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>>> reference to `NumArray::clear(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>>> reference to `NumArray::clear(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:303: undefined
>>>>> reference to `NumArray::clear(void)'
>>>>>
>>>>> pb2nc.o: In function `process_command_line(int, char **)':
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>>>> reference to `StringArray::add(char const *)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>>>> reference to `ConcatString::operator=(char const *)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:330: undefined
>>>>> reference to `ConcatString::operator=(char const *)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:346: undefined
>>>>> reference to `StringArray::add(char const *)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:350: undefined
>>>>> reference to `timestring_to_unix(char const *)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:354: undefined
>>>>> reference to `timestring_to_unix(char const *)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:365: undefined
>>>>> reference to `ConcatString::operator=(char const *)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:382: undefined
>>>>> reference to
>>>> `operator<<(std::basic_ostream<char,std::char_traits<char>>
>>>>> &, ConcatString const &)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:385: undefined
>>>>> reference to `pb2nc_Conf::read(char const *)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>>>>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:394: undefined
>>>>> reference to `unix_to_yyyymmdd_hhmmss__FLPc'
>>>>>
>>>>> pb2nc.o: In function `process_config()':
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>>> reference to `pb2nc_Conf::version(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>>> reference to `pb2nc_Conf::version(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>>> reference to `Result::sval( const(void))'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>>> reference to `Result::sval( const(void))'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>>> reference to `Result::__dt(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:423: undefined
>>>>> reference to `Result::__dt(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>>> reference to `pb2nc_Conf::version(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>>> reference to `Result::sval( const(void))'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>>> reference to `Result::__dt(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>>> reference to `Result::__dt(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>>> reference to `Result::__dt(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>>> reference to `Result::__dt(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426: undefined
>>>>> reference to `Result::__dt(void)'
>>>>>
>>>>> pb2nc.o:/home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:426:
more
>>>>> undefined references to `Result::__dt(void)' follow
>>>>>
>>>>> pb2nc.o: In function `process_config()':
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>>> reference to `pb2nc_Conf::beg_ds(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>>> reference to `pb2nc_Conf::end_ds(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>>> reference to `Result::ival( const(void))'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>>> reference to `Result::ival( const(void))'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>>> reference to `Result::__dt(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:448: undefined
>>>>> reference to `Result::__dt(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>>>> reference to `Result::__dt(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>>>> reference to `Result::__dt(void)'
>>>>>
>>>>> /home/wrf/download/METv3.0.1/src/pb2nc/./pb2nc.cc:449: undefined
>>>>> reference to `Result::__dt(void)'
>>>>>
>>>>>
>>>>>
>>>>> Bright Yang
>>>>>
>>>>> Vaisala
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>
------------------------------------------------
More information about the Met_help
mailing list