[Met_help] problem compiling METv2

Joe Olson Joseph.B.Olson at noaa.gov
Wed Apr 8 10:25:18 MDT 2009


I'm compiling this on a Linux 64-bit cluster. I need PB2NC to compile,  
but its choking at:

usr/bin/g++ -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o  
readpb.o dumppb.o \
	-Wall -Wshadow -static   -DMET_BASE=\"/mnt/tg0/projects/wrfruc/olson/ 
METv2.0\" \
	-I../../lib -I/misc/whome/olson/netcdf-3.6.2/include -I/misc/whome/ 
olson/gsl-1.11/include -I/tg0/projects/wrfruc/olson/BUFRLIB -I/usr/lib/ 
gcc/x86_64-redhat-linux/3.4.6/include \
	-L../../lib -L/misc/whome/olson/netcdf-3.6.2/lib -L/misc/whome/olson/ 
gsl-1.11/lib -L/tg0/projects/wrfruc/olson/BUFRLIB -L/usr/lib/gcc/ 
x86_64-redhat-linux/3.4.6 \
	-lbufr -lvx_pb_util \
	-lvx_met_util -lvx_analysis_util -lvx_wrfdata -lvx_met_util \
	-lvx_contable -lvx_grib_classes \
	-lvx_econfig -lvx_gsl_prob -lgsl \
	-lvx_plot_util  -lvx_render -lvx_pxm -lvx_color -lvx_ps -lvx_afm \
	-lvx_data_grids -lvx_gnomon -lvx_nav -lvx_cal -lvx_util -lvx_math -lm \
	-lnetcdf_c++ -lnetcdf \
	-lg2c
../../lib/libvx_wrfdata.a(vx_wrfdata.o): In function `std::pow(double,  
int)':
vx_wrfdata.cc:(.text._ZSt3powdi[std::pow(double, int)]+0x19):  
undefined reference to `__powidf2'
collect2: ld returned 1 exit status
make[3]: *** [pb2nc] Error 1
make[2]: *** [all] Error 2
make[1]: *** [targets] Error 2
make: *** [all] Error 2


I've attached my compile log and here is my configuration of the  
Makefile (I should note that these libraries worked for METv1.1):

###############################################################################

# Path to GNU Make command
MAKE         = /usr/bin/make

# Architecture flags
ARCH_FLAGS   = # -DBLOCK4

# Path to the C++ Compiler
# C++ compiler flags
# Any additional required libraries
CXX          = /usr/bin/g++
CXX_FLAGS    = -Wall -Wshadow -static # -g -m32
CXX_LIBS     =

# Path to the Fortran Compiler
# Fortran compiler flags
# Any additional required libraries
FC           = /usr/bin/g77
FC_FLAGS     = -Wall -Wshadow -static -ff2c # -g -m32
FC_LIBS      = # -lgfortran

# Make print options
PRINT_OPTS   = --no-print-directory

# Top level directory for the NetCDF library
# NetCDF include directory specified as: -I/your/include/path
# NetCDF library directory specified as: -L/your/library/path
NETCDF_BASE  = /misc/whome/olson/netcdf-3.6.2
NETCDF_INCS  = -I$(NETCDF_BASE)/include
NETCDF_LIBS  = -L$(NETCDF_BASE)/lib

# Top level directory for BUFRLIB
# BUFRLIB include directory specified as: -I/your/include/path
# BUFRLIB library directory specified as: -L/your/library/path
BUFR_BASE    = /tg0/projects/wrfruc/olson/BUFRLIB
BUFR_INCS    = -I$(BUFR_BASE)
BUFR_LIBS    = -L$(BUFR_BASE)

# Top level directory for the GNU Scientific Library (GSL) if it's not
# installed in a standard location.
# GSL include directory specified as: -I/your/include/path
# GSL library directory specified as: -L/your/library/path
GSL_BASE     = /misc/whome/olson/gsl-1.11
GSL_INCS     = -I$(GSL_BASE)/include
GSL_LIBS     = -L$(GSL_BASE)/lib

# Top level directory for the F2C or G2C Library if it's not installed  
in a
# standard location.
# F2C include directory specified as: -I/your/include/path
# F2C library directory containing libf2c.a or libg2c.a and specified  
as:
# -L/your/library/path
# Name of the library to be used: -lf2c or -lg2c
F2C_BASE     =
F2C_INCS     = -I/usr/lib/gcc/x86_64-redhat-linux/3.4.6/include
F2C_LIBS     = -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6
F2C_LIBNAME  = -lg2c

# Optional flags to disable the compilation of MET tools
# Specify a non-zero value to disable the compilation of the tool
DISABLE_PCP_COMBINE   = 0
DISABLE_GEN_POLY_MASK = 0
DISABLE_MODE          = 0
DISABLE_GRID_STAT     = 0
DISABLE_PB2NC         = 0
DISABLE_ASCII2NC      = 0
DISABLE_POINT_STAT    = 0
DISABLE_WAVELET_STAT  = 0
DISABLE_STAT_ANALYSIS = 0
DISABLE_MODE_ANALYSIS = 0

###############################################################################

thanks in advance,
joe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make_met.log
Type: application/octet-stream
Size: 19331 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/met_help/attachments/20090408/469006c1/attachment.obj 
-------------- next part --------------



More information about the Met_help mailing list