[Met_help] [rt.rap.ucar.edu #42834] History for Compiling MET v3.0 on Bluefire IBM

RAL HelpDesk {for John Halley Gotway} met_help at ucar.edu
Thu Dec 16 11:31:50 MST 2010


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Hi, I'm running into problems compiling MET v3.0 on Bluefire.  When I 
compile MET, it successfully creates several libraries, but then fails 
when trying to build the first application, pcp_combine.

Here are the settings and flags I'm using in my Makefile (I already 
tried removing -DBLOCK4 from ARCH_FLAGS as the README suggested, but it 
had no impact, and I also tried using xlf for the FC):

==========
# Path to GNU Make command
MAKE         = /usr/local/bin/gmake

# Architecture flags
ARCH_FLAGS   = -DIBM -DBIGENDIAN -DBLOCK4

# Path to the C++ Compiler
# C++ compiler flags
# Any additional required libraries
CXX          = /usr/bin/xlC
CXX_FLAGS    = # -g -qfullpath
CXX_LIBS     =

# Path to the Fortran Compiler
# Fortran compiler flags
# Any dditional required libraries
# libraries
FC           = /usr/bin/xlf90
FC_FLAGS     = -qextname # -g -qfullpath
FC_LIBS      = -lxlf90

# Make print options
PRINT_OPTS   =

# 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  = /usr/local/netcdf
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    = /blhome/jaredlee/libs/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     = /blhome/jaredlee/libs/gsl/gsl-1.14
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
# NOTE: Typically required for the IBM xlf Fortran compiler
F2C_BASE     = /blhome/jaredlee/libs/f2c
F2C_INCS     = -I$(F2C_BASE)
F2C_LIBS     = -L$(F2C_BASE)
F2C_LIBNAME  = -lf2c

==========

Here is the relevant portion of my make log file:

==========

*** Making pcp_combine application ***

gmake[3]: Entering directory 
`/blhome/jaredlee/programs/MET_v3.0/src/pcp_combine'

/usr/bin/xlC -o pcp_combine pcp_combine.cc \
           -DMET_BASE=\"/blhome/jaredlee/programs/MET_v3.0\" \
         -I../../lib -I/usr/local/netcdf/include 
-I/blhome/jaredlee/libs/gsl/gsl-1.14/include \
         -L../../lib -L/usr/local/netcdf/lib 
-L/blhome/jaredlee/libs/gsl/gsl-1.14/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 \

ld: 0711-317 ERROR: Undefined symbol: .NcFile::get_var(const char*) const
ld: 0711-317 ERROR: Undefined symbol: 
.NcVar::set_cur(long,long,long,long,long)
ld: 0711-317 ERROR: Undefined symbol: 
.NcVar::get(int*,long,long,long,long,long) const
ld: 0711-317 ERROR: Undefined symbol: .NcVar::add_att(const char*,const 
char*)
ld: 0711-317 ERROR: Undefined symbol: .NcVar::add_att(const char*,long)
ld: 0711-317 ERROR: Undefined symbol: .NcVar::add_att(const char*,int)
ld: 0711-317 ERROR: Undefined symbol: .NcFile::add_var(const 
char*,NcType,const NcDim*,const NcDim*,const NcDim*,const NcDim*,const 
NcDim*)
ld: 0711-317 ERROR: Undefined symbol: .NcVar::put(const 
float*,long,long,long,long,long)
ld: 0711-317 ERROR: Undefined symbol: .NcFile::add_att(const char*,const 
char*)
ld: 0711-317 ERROR: Undefined symbol: .NcFile::get_dim(const char*) const
ld: 0711-317 ERROR: Undefined symbol: .NcDim::size() const
ld: 0711-317 ERROR: Undefined symbol: .NcFile::get_att(const char*) const
ld: 0711-317 ERROR: Undefined symbol: .NcFile::num_vars() const
ld: 0711-317 ERROR: Undefined symbol: .NcFile::get_var(int) const
ld: 0711-317 ERROR: Undefined symbol: .NcFile::~NcFile()
ld: 0711-317 ERROR: Undefined symbol: .NcFile::NcFile(const 
char*,NcFile::FileMode,unsigned long*,unsigned long,NcFile::FileFormat)
ld: 0711-317 ERROR: Undefined symbol: .NcVar::num_dims() const
ld: 0711-317 ERROR: Undefined symbol: .NcVar::set_cur(long*)
ld: 0711-317 ERROR: Undefined symbol: .NcVar::get(float*,const long*) const
ld: 0711-317 ERROR: Undefined symbol: .NcVar::get(double*,const long*) const
ld: 0711-317 ERROR: Undefined symbol: .NcDim::name() const
ld: 0711-317 ERROR: Undefined symbol: .NcVar::num_atts() const
ld: 0711-317 ERROR: Undefined symbol: .NcVar::get_att(int) const
ld: 0711-317 ERROR: Undefined symbol: .NcFile::is_valid() const
ld: 0711-317 ERROR: Undefined symbol: .NcFile::num_dims() const
ld: 0711-317 ERROR: Undefined symbol: .NcFile::get_dim(int) const
ld: 0711-317 ERROR: Undefined symbol: .NcVar::get_dim(int) const
ld: 0711-317 ERROR: Undefined symbol: .NcFile::num_atts() const
ld: 0711-317 ERROR: Undefined symbol: .NcFile::get_att(int) const
ld: 0711-317 ERROR: Undefined symbol: 
.NcVar::get(float*,long,long,long,long,long) const
ld: 0711-317 ERROR: Undefined symbol: 
.NcVar::get(double*,long,long,long,long,long) const
ld: 0711-317 ERROR: Undefined symbol: .NcFile::close()
ld: 0711-317 ERROR: Undefined symbol: .NcFile::add_dim(const char*,long)
ld: 0711-317 ERROR: Undefined symbol: .NcVar::add_att(const char*,float)
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more 
information.
gmake[3]: *** [pcp_combine] Error 8
gmake[3]: Leaving directory 
`/blhome/jaredlee/programs/MET_v3.0/src/pcp_combine'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory 
`/blhome/jaredlee/programs/MET_v3.0/src/pcp_combine'
gmake[1]: *** [targets] Error 2
gmake[1]: Leaving directory `/blhome/jaredlee/programs/MET_v3.0'
gmake: *** [all] Error 2

==========

Any ideas or suggestions for me?  Thanks.

Jared


----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: Re: [rt.rap.ucar.edu #42834] Compiling MET v3.0 on Bluefire IBM
From: John Halley Gotway
Time: Wed Dec 15 16:33:37 2010

Jared,

I went up to bluefire and copied your whole directory tree over to my
area.  When I tried compiling using your Makefile, I did get errors
but they are slightly different that what you're seeing.
Yours were for NetCDF and mine are for GSL.  See error messages listed
below.  Try recompiling to see if you get the same errors I'm getting.
I'd recommend the following steps as described on this
page:
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compilation/req_libs.php

(1) Rebuild GSL using the following commands:

      setenv CC /usr/bin/xlc
      ./configure --prefix=`pwd`
      make
      make install

(2) Rebuild BUFRLIB using the following commands:

      xlc -c -DUNDERSCORE *.c
      xlf -c -qextname *.f *.F
      ar crv libbufr.a *.o

(3) In your top-level MET Makefile, switch "xlf90" to "xlf".

Hopefully, once you make these changes, it'll compile fine.  And be
sure to use the "gmake" command to compile MET on bluefire.  Please
let me know how it goes.

Thanks,
John Halley Gotway

Here are the MET error messages I saw:

*** Making pcp_combine application ***

gmake[3]: Entering directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'

/usr/bin/xlC -o pcp_combine pcp_combine.cc \
          -DMET_BASE=\"/blhome/johnhg/MET/MET_releases/MET_v3.0_lee\"
\
        -I../../lib -I/usr/local/netcdf/include
-I/blhome/jaredlee/libs/gsl/gsl-1.14/include \
        -L../../lib -L/usr/local/netcdf/lib
-L/blhome/jaredlee/libs/gsl/gsl-1.14/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 \

ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_Pinv
ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_P
ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_fdist_P
ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_fdist_pdf
ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_P
ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_Pinv
ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_Pinv
ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_P
ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_gaussian_pdf
ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_P
ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_ugaussian_pdf
ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_Pinv
ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_env_setup
ld: 0711-317 ERROR: Undefined symbol: gsl_rng_default
ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_alloc
ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_sample
ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_choose
ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_shuffle
ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_free
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
gmake[3]: *** [pcp_combine] Error 8
gmake[3]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
gmake[1]: *** [targets] Error 2
gmake[1]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee'
gmake: *** [all] Error 2
be1005en% cd ../




On 12/15/2010 03:49 PM, RAL HelpDesk {for Jared Lee} wrote:
> had no impact, and I also tried using xlf for the FC):

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #42834] Compiling MET v3.0 on Bluefire IBM
From: Jared Lee
Time: Wed Dec 15 16:53:56 2010

Hi John,

Thanks for your reply.  I tried rebuilding GSL, BUFRLIB and MET as you
directed, but I got the exact same set of NetCDF errors that I got
before.  The one thing that I had previously forgotten to do when
building BUFRLIB was compile the two *.F files (I'd only compiled the
*.f files before).  So that's fixed now, but it didn't apparently have
an impact on my compilation of MET.

Jared


On 12/15/2010 4:33 PM, RAL HelpDesk {for John Halley Gotway} wrote:
> Jared,
>
> I went up to bluefire and copied your whole directory tree over to
my area.  When I tried compiling using your Makefile, I did get errors
but they are slightly different that what you're seeing.
> Yours were for NetCDF and mine are for GSL.  See error messages
listed below.  Try recompiling to see if you get the same errors I'm
getting.  I'd recommend the following steps as described on this
> page:
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compilation/req_libs.php
>
> (1) Rebuild GSL using the following commands:
>
>        setenv CC /usr/bin/xlc
>        ./configure --prefix=`pwd`
>        make
>        make install
>
> (2) Rebuild BUFRLIB using the following commands:
>
>        xlc -c -DUNDERSCORE *.c
>        xlf -c -qextname *.f *.F
>        ar crv libbufr.a *.o
>
> (3) In your top-level MET Makefile, switch "xlf90" to "xlf".
>
> Hopefully, once you make these changes, it'll compile fine.  And be
sure to use the "gmake" command to compile MET on bluefire.  Please
let me know how it goes.
>
> Thanks,
> John Halley Gotway
>
> Here are the MET error messages I saw:
>
> *** Making pcp_combine application ***
>
> gmake[3]: Entering directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>
> /usr/bin/xlC -o pcp_combine pcp_combine.cc \
>
-DMET_BASE=\"/blhome/johnhg/MET/MET_releases/MET_v3.0_lee\" \
>          -I../../lib -I/usr/local/netcdf/include
-I/blhome/jaredlee/libs/gsl/gsl-1.14/include \
>          -L../../lib -L/usr/local/netcdf/lib
-L/blhome/jaredlee/libs/gsl/gsl-1.14/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 \
>
> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_Pinv
> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_P
> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_fdist_P
> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_fdist_pdf
> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_P
> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_Pinv
> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_Pinv
> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_P
> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_gaussian_pdf
> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_P
> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_ugaussian_pdf
> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_Pinv
> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_env_setup
> ld: 0711-317 ERROR: Undefined symbol: gsl_rng_default
> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_alloc
> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_sample
> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_choose
> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_shuffle
> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_free
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
> gmake[3]: *** [pcp_combine] Error 8
> gmake[3]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
> gmake[2]: *** [all] Error 2
> gmake[2]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
> gmake[1]: *** [targets] Error 2
> gmake[1]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee'
> gmake: *** [all] Error 2
> be1005en% cd ../
>
>
>
>
> On 12/15/2010 03:49 PM, RAL HelpDesk {for Jared Lee} wrote:
>> had no impact, and I also tried using xlf for the FC):


------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #42834] Compiling MET v3.0 on Bluefire IBM
From: John Halley Gotway
Time: Thu Dec 16 08:49:11 2010

Jared,

This is puzzling.  I really have no idea why you'd continue to
experience problems with NetCDF.  I assume we're both using the same
version of the xlc, xlC, and xlf compilers.  If the versions of the
compilers used to build NetCDF and MET that could cause the type of
error message you're seeing.  Here's something to try... try linking
to version of NetCDF I have built locally in my home directory:
   NETCDF_BASE  =
/blhome/johnhg/MET/MET_releases/external_libs/netcdf/netcdf-3.6.3

I'm not sure if/why this would help.  When I compile against the one
there or the one in /usr/local/netcdf both work fine.

Please let me know if this helps.

Thanks,
John

On 12/15/2010 04:53 PM, RAL HelpDesk {for Jared Lee} wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834 >
>
> Hi John,
>
> Thanks for your reply.  I tried rebuilding GSL, BUFRLIB and MET as
you
> directed, but I got the exact same set of NetCDF errors that I got
> before.  The one thing that I had previously forgotten to do when
> building BUFRLIB was compile the two *.F files (I'd only compiled
the
> *.f files before).  So that's fixed now, but it didn't apparently
have
> an impact on my compilation of MET.
>
> Jared
>
>
> On 12/15/2010 4:33 PM, RAL HelpDesk {for John Halley Gotway} wrote:
>> Jared,
>>
>> I went up to bluefire and copied your whole directory tree over to
my area.  When I tried compiling using your Makefile, I did get errors
but they are slightly different that what you're seeing.
>> Yours were for NetCDF and mine are for GSL.  See error messages
listed below.  Try recompiling to see if you get the same errors I'm
getting.  I'd recommend the following steps as described on this
>> page:
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compilation/req_libs.php
>>
>> (1) Rebuild GSL using the following commands:
>>
>>        setenv CC /usr/bin/xlc
>>        ./configure --prefix=`pwd`
>>        make
>>        make install
>>
>> (2) Rebuild BUFRLIB using the following commands:
>>
>>        xlc -c -DUNDERSCORE *.c
>>        xlf -c -qextname *.f *.F
>>        ar crv libbufr.a *.o
>>
>> (3) In your top-level MET Makefile, switch "xlf90" to "xlf".
>>
>> Hopefully, once you make these changes, it'll compile fine.  And be
sure to use the "gmake" command to compile MET on bluefire.  Please
let me know how it goes.
>>
>> Thanks,
>> John Halley Gotway
>>
>> Here are the MET error messages I saw:
>>
>> *** Making pcp_combine application ***
>>
>> gmake[3]: Entering directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>
>> /usr/bin/xlC -o pcp_combine pcp_combine.cc \
>>
-DMET_BASE=\"/blhome/johnhg/MET/MET_releases/MET_v3.0_lee\" \
>>          -I../../lib -I/usr/local/netcdf/include
-I/blhome/jaredlee/libs/gsl/gsl-1.14/include \
>>          -L../../lib -L/usr/local/netcdf/lib
-L/blhome/jaredlee/libs/gsl/gsl-1.14/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 \
>>
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_Pinv
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_P
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_fdist_P
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_fdist_pdf
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_P
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_Pinv
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_Pinv
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_P
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_gaussian_pdf
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_P
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_ugaussian_pdf
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_Pinv
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_env_setup
>> ld: 0711-317 ERROR: Undefined symbol: gsl_rng_default
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_alloc
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_sample
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_choose
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_shuffle
>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_free
>> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
>> gmake[3]: *** [pcp_combine] Error 8
>> gmake[3]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>> gmake[2]: *** [all] Error 2
>> gmake[2]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>> gmake[1]: *** [targets] Error 2
>> gmake[1]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee'
>> gmake: *** [all] Error 2
>> be1005en% cd ../
>>
>>
>>
>>
>> On 12/15/2010 03:49 PM, RAL HelpDesk {for Jared Lee} wrote:
>>> had no impact, and I also tried using xlf for the FC):
>

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #42834] Compiling MET v3.0 on Bluefire IBM
From: Jared Lee
Time: Thu Dec 16 09:17:49 2010

Hi John,

When I tried to recompile MET by linking to your version of NetCDF,
here
are the errors I got:


*** Making vx_contable Library ***

gmake[3]: Entering directory
`/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable
'
/usr/bin/xlC vx_contable.cc   -c -I..
/usr/bin/xlC vx_contable_stats.cc   -c -I..
-I/blhome/jaredlee/libs/gsl/gsl-1.14
/include
-I/blhome/johng/MET/MET_releases/external_libs/netcdf/netcdf-3.6.3/include
"../vx_met_util/read_netcdf.h", line 16.10: 1540-0836 (S) The #include
file "netcdf.hh" is not found.
"../vx_met_util/write_netcdf.h", line 16.10: 1540-0836 (S) The
#include
file "netcdf.hh" is not found.
gmake[3]: *** [vx_contable_stats.o] Error 1
gmake[3]: Leaving directory
`/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable'
gmake[2]: *** [vx_contable_all] Error 2
gmake[2]: Leaving directory
`/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable'
gmake[1]: *** [libs] Error 2
gmake[1]: Leaving directory `/blhome/jaredlee/programs/MET_v3.0'
gmake: *** [all] Error 2


So this time it didn't even make it past the libraries.  Maybe somehow
I'm not using the same compiler versions??

Jared


On 12/16/2010 8:49 AM, RAL HelpDesk {for John Halley Gotway} wrote:
> Jared,
>
> This is puzzling.  I really have no idea why you'd continue to
experience problems with NetCDF.  I assume we're both using the same
version of the xlc, xlC, and xlf compilers.  If the versions of the
> compilers used to build NetCDF and MET that could cause the type of
error message you're seeing.  Here's something to try... try linking
to version of NetCDF I have built locally in my home directory:
>     NETCDF_BASE  =
/blhome/johnhg/MET/MET_releases/external_libs/netcdf/netcdf-3.6.3
>
> I'm not sure if/why this would help.  When I compile against the one
there or the one in /usr/local/netcdf both work fine.
>
> Please let me know if this helps.
>
> Thanks,
> John
>
> On 12/15/2010 04:53 PM, RAL HelpDesk {for Jared Lee} wrote:
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834>
>>
>> Hi John,
>>
>> Thanks for your reply.  I tried rebuilding GSL, BUFRLIB and MET as
you
>> directed, but I got the exact same set of NetCDF errors that I got
>> before.  The one thing that I had previously forgotten to do when
>> building BUFRLIB was compile the two *.F files (I'd only compiled
the
>> *.f files before).  So that's fixed now, but it didn't apparently
have
>> an impact on my compilation of MET.
>>
>> Jared
>>
>>
>> On 12/15/2010 4:33 PM, RAL HelpDesk {for John Halley Gotway} wrote:
>>> Jared,
>>>
>>> I went up to bluefire and copied your whole directory tree over to
my area.  When I tried compiling using your Makefile, I did get errors
but they are slightly different that what you're seeing.
>>> Yours were for NetCDF and mine are for GSL.  See error messages
listed below.  Try recompiling to see if you get the same errors I'm
getting.  I'd recommend the following steps as described on this
>>> page:
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compilation/req_libs.php
>>>
>>> (1) Rebuild GSL using the following commands:
>>>
>>>         setenv CC /usr/bin/xlc
>>>         ./configure --prefix=`pwd`
>>>         make
>>>         make install
>>>
>>> (2) Rebuild BUFRLIB using the following commands:
>>>
>>>         xlc -c -DUNDERSCORE *.c
>>>         xlf -c -qextname *.f *.F
>>>         ar crv libbufr.a *.o
>>>
>>> (3) In your top-level MET Makefile, switch "xlf90" to "xlf".
>>>
>>> Hopefully, once you make these changes, it'll compile fine.  And
be sure to use the "gmake" command to compile MET on bluefire.  Please
let me know how it goes.
>>>
>>> Thanks,
>>> John Halley Gotway
>>>
>>> Here are the MET error messages I saw:
>>>
>>> *** Making pcp_combine application ***
>>>
>>> gmake[3]: Entering directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>
>>> /usr/bin/xlC -o pcp_combine pcp_combine.cc \
>>>
-DMET_BASE=\"/blhome/johnhg/MET/MET_releases/MET_v3.0_lee\" \
>>>           -I../../lib -I/usr/local/netcdf/include
-I/blhome/jaredlee/libs/gsl/gsl-1.14/include \
>>>           -L../../lib -L/usr/local/netcdf/lib
-L/blhome/jaredlee/libs/gsl/gsl-1.14/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 \
>>>
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_Pinv
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_P
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_fdist_P
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_fdist_pdf
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_P
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_Pinv
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_Pinv
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_P
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_gaussian_pdf
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_P
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_ugaussian_pdf
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_Pinv
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_env_setup
>>> ld: 0711-317 ERROR: Undefined symbol: gsl_rng_default
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_alloc
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_sample
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_choose
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_shuffle
>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_free
>>> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
>>> gmake[3]: *** [pcp_combine] Error 8
>>> gmake[3]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>> gmake[2]: *** [all] Error 2
>>> gmake[2]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>> gmake[1]: *** [targets] Error 2
>>> gmake[1]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee'
>>> gmake: *** [all] Error 2
>>> be1005en% cd ../
>>>
>>>
>>>
>>>
>>> On 12/15/2010 03:49 PM, RAL HelpDesk {for Jared Lee} wrote:
>>>> had no impact, and I also tried using xlf for the FC):


------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #42834] Compiling MET v3.0 on Bluefire IBM
From: John Halley Gotway
Time: Thu Dec 16 09:20:00 2010

Jared,

You have a typo in your Makefile.  In the path for NetCDF, you put in
"johng" where it should be "johnhg".

John

On 12/16/2010 09:17 AM, RAL HelpDesk {for Jared Lee} wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834 >
>
> Hi John,
>
> When I tried to recompile MET by linking to your version of NetCDF,
here
> are the errors I got:
>
>
> *** Making vx_contable Library ***
>
> gmake[3]: Entering directory
> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable
> '
> /usr/bin/xlC vx_contable.cc   -c -I..
> /usr/bin/xlC vx_contable_stats.cc   -c -I..
> -I/blhome/jaredlee/libs/gsl/gsl-1.14
> /include
>
-I/blhome/johng/MET/MET_releases/external_libs/netcdf/netcdf-3.6.3/include
> "../vx_met_util/read_netcdf.h", line 16.10: 1540-0836 (S) The
#include
> file "netcdf.hh" is not found.
> "../vx_met_util/write_netcdf.h", line 16.10: 1540-0836 (S) The
#include
> file "netcdf.hh" is not found.
> gmake[3]: *** [vx_contable_stats.o] Error 1
> gmake[3]: Leaving directory
> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable'
> gmake[2]: *** [vx_contable_all] Error 2
> gmake[2]: Leaving directory
> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable'
> gmake[1]: *** [libs] Error 2
> gmake[1]: Leaving directory `/blhome/jaredlee/programs/MET_v3.0'
> gmake: *** [all] Error 2
>
>
> So this time it didn't even make it past the libraries.  Maybe
somehow
> I'm not using the same compiler versions??
>
> Jared
>
>
> On 12/16/2010 8:49 AM, RAL HelpDesk {for John Halley Gotway} wrote:
>> Jared,
>>
>> This is puzzling.  I really have no idea why you'd continue to
experience problems with NetCDF.  I assume we're both using the same
version of the xlc, xlC, and xlf compilers.  If the versions of the
>> compilers used to build NetCDF and MET that could cause the type of
error message you're seeing.  Here's something to try... try linking
to version of NetCDF I have built locally in my home directory:
>>     NETCDF_BASE  =
/blhome/johnhg/MET/MET_releases/external_libs/netcdf/netcdf-3.6.3
>>
>> I'm not sure if/why this would help.  When I compile against the
one there or the one in /usr/local/netcdf both work fine.
>>
>> Please let me know if this helps.
>>
>> Thanks,
>> John
>>
>> On 12/15/2010 04:53 PM, RAL HelpDesk {for Jared Lee} wrote:
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834>
>>>
>>> Hi John,
>>>
>>> Thanks for your reply.  I tried rebuilding GSL, BUFRLIB and MET as
you
>>> directed, but I got the exact same set of NetCDF errors that I got
>>> before.  The one thing that I had previously forgotten to do when
>>> building BUFRLIB was compile the two *.F files (I'd only compiled
the
>>> *.f files before).  So that's fixed now, but it didn't apparently
have
>>> an impact on my compilation of MET.
>>>
>>> Jared
>>>
>>>
>>> On 12/15/2010 4:33 PM, RAL HelpDesk {for John Halley Gotway}
wrote:
>>>> Jared,
>>>>
>>>> I went up to bluefire and copied your whole directory tree over
to my area.  When I tried compiling using your Makefile, I did get
errors but they are slightly different that what you're seeing.
>>>> Yours were for NetCDF and mine are for GSL.  See error messages
listed below.  Try recompiling to see if you get the same errors I'm
getting.  I'd recommend the following steps as described on this
>>>> page:
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compilation/req_libs.php
>>>>
>>>> (1) Rebuild GSL using the following commands:
>>>>
>>>>         setenv CC /usr/bin/xlc
>>>>         ./configure --prefix=`pwd`
>>>>         make
>>>>         make install
>>>>
>>>> (2) Rebuild BUFRLIB using the following commands:
>>>>
>>>>         xlc -c -DUNDERSCORE *.c
>>>>         xlf -c -qextname *.f *.F
>>>>         ar crv libbufr.a *.o
>>>>
>>>> (3) In your top-level MET Makefile, switch "xlf90" to "xlf".
>>>>
>>>> Hopefully, once you make these changes, it'll compile fine.  And
be sure to use the "gmake" command to compile MET on bluefire.  Please
let me know how it goes.
>>>>
>>>> Thanks,
>>>> John Halley Gotway
>>>>
>>>> Here are the MET error messages I saw:
>>>>
>>>> *** Making pcp_combine application ***
>>>>
>>>> gmake[3]: Entering directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>>
>>>> /usr/bin/xlC -o pcp_combine pcp_combine.cc \
>>>>
-DMET_BASE=\"/blhome/johnhg/MET/MET_releases/MET_v3.0_lee\" \
>>>>           -I../../lib -I/usr/local/netcdf/include
-I/blhome/jaredlee/libs/gsl/gsl-1.14/include \
>>>>           -L../../lib -L/usr/local/netcdf/lib
-L/blhome/jaredlee/libs/gsl/gsl-1.14/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 \
>>>>
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_Pinv
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_P
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_fdist_P
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_fdist_pdf
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_P
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_Pinv
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_Pinv
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_P
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_gaussian_pdf
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_P
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_ugaussian_pdf
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_Pinv
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_env_setup
>>>> ld: 0711-317 ERROR: Undefined symbol: gsl_rng_default
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_alloc
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_sample
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_choose
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_shuffle
>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_free
>>>> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
>>>> gmake[3]: *** [pcp_combine] Error 8
>>>> gmake[3]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>> gmake[2]: *** [all] Error 2
>>>> gmake[2]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>> gmake[1]: *** [targets] Error 2
>>>> gmake[1]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee'
>>>> gmake: *** [all] Error 2
>>>> be1005en% cd ../
>>>>
>>>>
>>>>
>>>>
>>>> On 12/15/2010 03:49 PM, RAL HelpDesk {for Jared Lee} wrote:
>>>>> had no impact, and I also tried using xlf for the FC):
>

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #42834] Compiling MET v3.0 on Bluefire IBM
From: Jared Lee
Time: Thu Dec 16 09:22:51 2010

John,

Sorry about that.  Now I'm getting all the same NetCDF errors as
before.

Jared

On 12/16/2010 9:20 AM, RAL HelpDesk {for John Halley Gotway} wrote:
> Jared,
>
> You have a typo in your Makefile.  In the path for NetCDF, you put
in "johng" where it should be "johnhg".
>
> John
>
> On 12/16/2010 09:17 AM, RAL HelpDesk {for Jared Lee} wrote:
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834>
>>
>> Hi John,
>>
>> When I tried to recompile MET by linking to your version of NetCDF,
here
>> are the errors I got:
>>
>>
>> *** Making vx_contable Library ***
>>
>> gmake[3]: Entering directory
>> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable
>> '
>> /usr/bin/xlC vx_contable.cc   -c -I..
>> /usr/bin/xlC vx_contable_stats.cc   -c -I..
>> -I/blhome/jaredlee/libs/gsl/gsl-1.14
>> /include
>>
-I/blhome/johng/MET/MET_releases/external_libs/netcdf/netcdf-3.6.3/include
>> "../vx_met_util/read_netcdf.h", line 16.10: 1540-0836 (S) The
#include
>> file "netcdf.hh" is not found.
>> "../vx_met_util/write_netcdf.h", line 16.10: 1540-0836 (S) The
#include
>> file "netcdf.hh" is not found.
>> gmake[3]: *** [vx_contable_stats.o] Error 1
>> gmake[3]: Leaving directory
>> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable'
>> gmake[2]: *** [vx_contable_all] Error 2
>> gmake[2]: Leaving directory
>> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable'
>> gmake[1]: *** [libs] Error 2
>> gmake[1]: Leaving directory `/blhome/jaredlee/programs/MET_v3.0'
>> gmake: *** [all] Error 2
>>
>>
>> So this time it didn't even make it past the libraries.  Maybe
somehow
>> I'm not using the same compiler versions??
>>
>> Jared
>>
>>
>> On 12/16/2010 8:49 AM, RAL HelpDesk {for John Halley Gotway} wrote:
>>> Jared,
>>>
>>> This is puzzling.  I really have no idea why you'd continue to
experience problems with NetCDF.  I assume we're both using the same
version of the xlc, xlC, and xlf compilers.  If the versions of the
>>> compilers used to build NetCDF and MET that could cause the type
of error message you're seeing.  Here's something to try... try
linking to version of NetCDF I have built locally in my home
directory:
>>>      NETCDF_BASE  =
/blhome/johnhg/MET/MET_releases/external_libs/netcdf/netcdf-3.6.3
>>>
>>> I'm not sure if/why this would help.  When I compile against the
one there or the one in /usr/local/netcdf both work fine.
>>>
>>> Please let me know if this helps.
>>>
>>> Thanks,
>>> John
>>>
>>> On 12/15/2010 04:53 PM, RAL HelpDesk {for Jared Lee} wrote:
>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834>
>>>>
>>>> Hi John,
>>>>
>>>> Thanks for your reply.  I tried rebuilding GSL, BUFRLIB and MET
as you
>>>> directed, but I got the exact same set of NetCDF errors that I
got
>>>> before.  The one thing that I had previously forgotten to do when
>>>> building BUFRLIB was compile the two *.F files (I'd only compiled
the
>>>> *.f files before).  So that's fixed now, but it didn't apparently
have
>>>> an impact on my compilation of MET.
>>>>
>>>> Jared
>>>>
>>>>
>>>> On 12/15/2010 4:33 PM, RAL HelpDesk {for John Halley Gotway}
wrote:
>>>>> Jared,
>>>>>
>>>>> I went up to bluefire and copied your whole directory tree over
to my area.  When I tried compiling using your Makefile, I did get
errors but they are slightly different that what you're seeing.
>>>>> Yours were for NetCDF and mine are for GSL.  See error messages
listed below.  Try recompiling to see if you get the same errors I'm
getting.  I'd recommend the following steps as described on this
>>>>> page:
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compilation/req_libs.php
>>>>>
>>>>> (1) Rebuild GSL using the following commands:
>>>>>
>>>>>          setenv CC /usr/bin/xlc
>>>>>          ./configure --prefix=`pwd`
>>>>>          make
>>>>>          make install
>>>>>
>>>>> (2) Rebuild BUFRLIB using the following commands:
>>>>>
>>>>>          xlc -c -DUNDERSCORE *.c
>>>>>          xlf -c -qextname *.f *.F
>>>>>          ar crv libbufr.a *.o
>>>>>
>>>>> (3) In your top-level MET Makefile, switch "xlf90" to "xlf".
>>>>>
>>>>> Hopefully, once you make these changes, it'll compile fine.  And
be sure to use the "gmake" command to compile MET on bluefire.  Please
let me know how it goes.
>>>>>
>>>>> Thanks,
>>>>> John Halley Gotway
>>>>>
>>>>> Here are the MET error messages I saw:
>>>>>
>>>>> *** Making pcp_combine application ***
>>>>>
>>>>> gmake[3]: Entering directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>>>
>>>>> /usr/bin/xlC -o pcp_combine pcp_combine.cc \
>>>>>
-DMET_BASE=\"/blhome/johnhg/MET/MET_releases/MET_v3.0_lee\" \
>>>>>            -I../../lib -I/usr/local/netcdf/include
-I/blhome/jaredlee/libs/gsl/gsl-1.14/include \
>>>>>            -L../../lib -L/usr/local/netcdf/lib
-L/blhome/jaredlee/libs/gsl/gsl-1.14/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 \
>>>>>
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_Pinv
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_P
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_fdist_P
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_fdist_pdf
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_P
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_Pinv
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_Pinv
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_P
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_gaussian_pdf
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_P
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_ugaussian_pdf
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_Pinv
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_env_setup
>>>>> ld: 0711-317 ERROR: Undefined symbol: gsl_rng_default
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_alloc
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_sample
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_choose
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_shuffle
>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_free
>>>>> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain
more information.
>>>>> gmake[3]: *** [pcp_combine] Error 8
>>>>> gmake[3]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>>> gmake[2]: *** [all] Error 2
>>>>> gmake[2]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>>> gmake[1]: *** [targets] Error 2
>>>>> gmake[1]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee'
>>>>> gmake: *** [all] Error 2
>>>>> be1005en% cd ../
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 12/15/2010 03:49 PM, RAL HelpDesk {for Jared Lee} wrote:
>>>>>> had no impact, and I also tried using xlf for the FC):


------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #42834] Compiling MET v3.0 on Bluefire IBM
From: John Halley Gotway
Time: Thu Dec 16 10:30:03 2010

Jared,

I copied over your build again and tried compiling.  Based on the
errors I saw, I suspect that there may be issues with the version of
the compiler.  Based on that, I'd suggest compiling NetCDF
yourself rather than using the system build.  Please perform the
following commands:

cd /blhome/jaredlee/libs
cp /blhome/johnhg/MET/MET_releases/external_libs/netcdf/netcdf-
3.6.3.tar .
tar -xvf netcdf-3.6.3.tar
cd netcdf-3.6.3
set CC = /usr/bin/xlc
set CXX = /usr/bin/xlC
set FC = ''
set F90 = ''
./configure --prefix=`pwd`
make
make install

And then edit your top-level MET Makefile to point to that version of
NetCDF and rebuild MET.

John


On 12/16/2010 09:22 AM, RAL HelpDesk {for Jared Lee} wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834 >
>
> John,
>
> Sorry about that.  Now I'm getting all the same NetCDF errors as
before.
>
> Jared
>
> On 12/16/2010 9:20 AM, RAL HelpDesk {for John Halley Gotway} wrote:
>> Jared,
>>
>> You have a typo in your Makefile.  In the path for NetCDF, you put
in "johng" where it should be "johnhg".
>>
>> John
>>
>> On 12/16/2010 09:17 AM, RAL HelpDesk {for Jared Lee} wrote:
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834>
>>>
>>> Hi John,
>>>
>>> When I tried to recompile MET by linking to your version of
NetCDF, here
>>> are the errors I got:
>>>
>>>
>>> *** Making vx_contable Library ***
>>>
>>> gmake[3]: Entering directory
>>> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable
>>> '
>>> /usr/bin/xlC vx_contable.cc   -c -I..
>>> /usr/bin/xlC vx_contable_stats.cc   -c -I..
>>> -I/blhome/jaredlee/libs/gsl/gsl-1.14
>>> /include
>>>
-I/blhome/johng/MET/MET_releases/external_libs/netcdf/netcdf-3.6.3/include
>>> "../vx_met_util/read_netcdf.h", line 16.10: 1540-0836 (S) The
#include
>>> file "netcdf.hh" is not found.
>>> "../vx_met_util/write_netcdf.h", line 16.10: 1540-0836 (S) The
#include
>>> file "netcdf.hh" is not found.
>>> gmake[3]: *** [vx_contable_stats.o] Error 1
>>> gmake[3]: Leaving directory
>>> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable'
>>> gmake[2]: *** [vx_contable_all] Error 2
>>> gmake[2]: Leaving directory
>>> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable'
>>> gmake[1]: *** [libs] Error 2
>>> gmake[1]: Leaving directory `/blhome/jaredlee/programs/MET_v3.0'
>>> gmake: *** [all] Error 2
>>>
>>>
>>> So this time it didn't even make it past the libraries.  Maybe
somehow
>>> I'm not using the same compiler versions??
>>>
>>> Jared
>>>
>>>
>>> On 12/16/2010 8:49 AM, RAL HelpDesk {for John Halley Gotway}
wrote:
>>>> Jared,
>>>>
>>>> This is puzzling.  I really have no idea why you'd continue to
experience problems with NetCDF.  I assume we're both using the same
version of the xlc, xlC, and xlf compilers.  If the versions of the
>>>> compilers used to build NetCDF and MET that could cause the type
of error message you're seeing.  Here's something to try... try
linking to version of NetCDF I have built locally in my home
directory:
>>>>      NETCDF_BASE  =
/blhome/johnhg/MET/MET_releases/external_libs/netcdf/netcdf-3.6.3
>>>>
>>>> I'm not sure if/why this would help.  When I compile against the
one there or the one in /usr/local/netcdf both work fine.
>>>>
>>>> Please let me know if this helps.
>>>>
>>>> Thanks,
>>>> John
>>>>
>>>> On 12/15/2010 04:53 PM, RAL HelpDesk {for Jared Lee} wrote:
>>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834>
>>>>>
>>>>> Hi John,
>>>>>
>>>>> Thanks for your reply.  I tried rebuilding GSL, BUFRLIB and MET
as you
>>>>> directed, but I got the exact same set of NetCDF errors that I
got
>>>>> before.  The one thing that I had previously forgotten to do
when
>>>>> building BUFRLIB was compile the two *.F files (I'd only
compiled the
>>>>> *.f files before).  So that's fixed now, but it didn't
apparently have
>>>>> an impact on my compilation of MET.
>>>>>
>>>>> Jared
>>>>>
>>>>>
>>>>> On 12/15/2010 4:33 PM, RAL HelpDesk {for John Halley Gotway}
wrote:
>>>>>> Jared,
>>>>>>
>>>>>> I went up to bluefire and copied your whole directory tree over
to my area.  When I tried compiling using your Makefile, I did get
errors but they are slightly different that what you're seeing.
>>>>>> Yours were for NetCDF and mine are for GSL.  See error messages
listed below.  Try recompiling to see if you get the same errors I'm
getting.  I'd recommend the following steps as described on this
>>>>>> page:
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compilation/req_libs.php
>>>>>>
>>>>>> (1) Rebuild GSL using the following commands:
>>>>>>
>>>>>>          setenv CC /usr/bin/xlc
>>>>>>          ./configure --prefix=`pwd`
>>>>>>          make
>>>>>>          make install
>>>>>>
>>>>>> (2) Rebuild BUFRLIB using the following commands:
>>>>>>
>>>>>>          xlc -c -DUNDERSCORE *.c
>>>>>>          xlf -c -qextname *.f *.F
>>>>>>          ar crv libbufr.a *.o
>>>>>>
>>>>>> (3) In your top-level MET Makefile, switch "xlf90" to "xlf".
>>>>>>
>>>>>> Hopefully, once you make these changes, it'll compile fine.
And be sure to use the "gmake" command to compile MET on bluefire.
Please let me know how it goes.
>>>>>>
>>>>>> Thanks,
>>>>>> John Halley Gotway
>>>>>>
>>>>>> Here are the MET error messages I saw:
>>>>>>
>>>>>> *** Making pcp_combine application ***
>>>>>>
>>>>>> gmake[3]: Entering directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>>>>
>>>>>> /usr/bin/xlC -o pcp_combine pcp_combine.cc \
>>>>>>
-DMET_BASE=\"/blhome/johnhg/MET/MET_releases/MET_v3.0_lee\" \
>>>>>>            -I../../lib -I/usr/local/netcdf/include
-I/blhome/jaredlee/libs/gsl/gsl-1.14/include \
>>>>>>            -L../../lib -L/usr/local/netcdf/lib
-L/blhome/jaredlee/libs/gsl/gsl-1.14/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 \
>>>>>>
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_Pinv
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_P
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_fdist_P
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_fdist_pdf
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_P
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_Pinv
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_Pinv
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_P
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_gaussian_pdf
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_P
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_ugaussian_pdf
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_Pinv
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_env_setup
>>>>>> ld: 0711-317 ERROR: Undefined symbol: gsl_rng_default
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_alloc
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_sample
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_choose
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_shuffle
>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_free
>>>>>> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain
more information.
>>>>>> gmake[3]: *** [pcp_combine] Error 8
>>>>>> gmake[3]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>>>> gmake[2]: *** [all] Error 2
>>>>>> gmake[2]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>>>> gmake[1]: *** [targets] Error 2
>>>>>> gmake[1]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee'
>>>>>> gmake: *** [all] Error 2
>>>>>> be1005en% cd ../
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 12/15/2010 03:49 PM, RAL HelpDesk {for Jared Lee} wrote:
>>>>>>> had no impact, and I also tried using xlf for the FC):
>

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #42834] Compiling MET v3.0 on Bluefire IBM
From: Jared Lee
Time: Thu Dec 16 11:03:19 2010

Hi John,

I was just able to compile MET, and all the executables are there in
the
bin directory.  Compiling NetCDF on my own was the key.  Thanks for
your
help!

Jared


On 12/16/2010 10:30 AM, RAL HelpDesk {for John Halley Gotway} wrote:
> Jared,
>
> I copied over your build again and tried compiling.  Based on the
errors I saw, I suspect that there may be issues with the version of
the compiler.  Based on that, I'd suggest compiling NetCDF
> yourself rather than using the system build.  Please perform the
following commands:
>
> cd /blhome/jaredlee/libs
> cp /blhome/johnhg/MET/MET_releases/external_libs/netcdf/netcdf-
3.6.3.tar .
> tar -xvf netcdf-3.6.3.tar
> cd netcdf-3.6.3
> set CC = /usr/bin/xlc
> set CXX = /usr/bin/xlC
> set FC = ''
> set F90 = ''
> ./configure --prefix=`pwd`
> make
> make install
>
> And then edit your top-level MET Makefile to point to that version
of NetCDF and rebuild MET.
>
> John
>
>
> On 12/16/2010 09:22 AM, RAL HelpDesk {for Jared Lee} wrote:
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834>
>>
>> John,
>>
>> Sorry about that.  Now I'm getting all the same NetCDF errors as
before.
>>
>> Jared
>>
>> On 12/16/2010 9:20 AM, RAL HelpDesk {for John Halley Gotway} wrote:
>>> Jared,
>>>
>>> You have a typo in your Makefile.  In the path for NetCDF, you put
in "johng" where it should be "johnhg".
>>>
>>> John
>>>
>>> On 12/16/2010 09:17 AM, RAL HelpDesk {for Jared Lee} wrote:
>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834>
>>>>
>>>> Hi John,
>>>>
>>>> When I tried to recompile MET by linking to your version of
NetCDF, here
>>>> are the errors I got:
>>>>
>>>>
>>>> *** Making vx_contable Library ***
>>>>
>>>> gmake[3]: Entering directory
>>>> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable
>>>> '
>>>> /usr/bin/xlC vx_contable.cc   -c -I..
>>>> /usr/bin/xlC vx_contable_stats.cc   -c -I..
>>>> -I/blhome/jaredlee/libs/gsl/gsl-1.14
>>>> /include
>>>>
-I/blhome/johng/MET/MET_releases/external_libs/netcdf/netcdf-3.6.3/include
>>>> "../vx_met_util/read_netcdf.h", line 16.10: 1540-0836 (S) The
#include
>>>> file "netcdf.hh" is not found.
>>>> "../vx_met_util/write_netcdf.h", line 16.10: 1540-0836 (S) The
#include
>>>> file "netcdf.hh" is not found.
>>>> gmake[3]: *** [vx_contable_stats.o] Error 1
>>>> gmake[3]: Leaving directory
>>>> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable'
>>>> gmake[2]: *** [vx_contable_all] Error 2
>>>> gmake[2]: Leaving directory
>>>> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable'
>>>> gmake[1]: *** [libs] Error 2
>>>> gmake[1]: Leaving directory `/blhome/jaredlee/programs/MET_v3.0'
>>>> gmake: *** [all] Error 2
>>>>
>>>>
>>>> So this time it didn't even make it past the libraries.  Maybe
somehow
>>>> I'm not using the same compiler versions??
>>>>
>>>> Jared
>>>>
>>>>
>>>> On 12/16/2010 8:49 AM, RAL HelpDesk {for John Halley Gotway}
wrote:
>>>>> Jared,
>>>>>
>>>>> This is puzzling.  I really have no idea why you'd continue to
experience problems with NetCDF.  I assume we're both using the same
version of the xlc, xlC, and xlf compilers.  If the versions of the
>>>>> compilers used to build NetCDF and MET that could cause the type
of error message you're seeing.  Here's something to try... try
linking to version of NetCDF I have built locally in my home
directory:
>>>>>       NETCDF_BASE  =
/blhome/johnhg/MET/MET_releases/external_libs/netcdf/netcdf-3.6.3
>>>>>
>>>>> I'm not sure if/why this would help.  When I compile against the
one there or the one in /usr/local/netcdf both work fine.
>>>>>
>>>>> Please let me know if this helps.
>>>>>
>>>>> Thanks,
>>>>> John
>>>>>
>>>>> On 12/15/2010 04:53 PM, RAL HelpDesk {for Jared Lee} wrote:
>>>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834>
>>>>>>
>>>>>> Hi John,
>>>>>>
>>>>>> Thanks for your reply.  I tried rebuilding GSL, BUFRLIB and MET
as you
>>>>>> directed, but I got the exact same set of NetCDF errors that I
got
>>>>>> before.  The one thing that I had previously forgotten to do
when
>>>>>> building BUFRLIB was compile the two *.F files (I'd only
compiled the
>>>>>> *.f files before).  So that's fixed now, but it didn't
apparently have
>>>>>> an impact on my compilation of MET.
>>>>>>
>>>>>> Jared
>>>>>>
>>>>>>
>>>>>> On 12/15/2010 4:33 PM, RAL HelpDesk {for John Halley Gotway}
wrote:
>>>>>>> Jared,
>>>>>>>
>>>>>>> I went up to bluefire and copied your whole directory tree
over to my area.  When I tried compiling using your Makefile, I did
get errors but they are slightly different that what you're seeing.
>>>>>>> Yours were for NetCDF and mine are for GSL.  See error
messages listed below.  Try recompiling to see if you get the same
errors I'm getting.  I'd recommend the following steps as described on
this
>>>>>>> page:
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compilation/req_libs.php
>>>>>>>
>>>>>>> (1) Rebuild GSL using the following commands:
>>>>>>>
>>>>>>>           setenv CC /usr/bin/xlc
>>>>>>>           ./configure --prefix=`pwd`
>>>>>>>           make
>>>>>>>           make install
>>>>>>>
>>>>>>> (2) Rebuild BUFRLIB using the following commands:
>>>>>>>
>>>>>>>           xlc -c -DUNDERSCORE *.c
>>>>>>>           xlf -c -qextname *.f *.F
>>>>>>>           ar crv libbufr.a *.o
>>>>>>>
>>>>>>> (3) In your top-level MET Makefile, switch "xlf90" to "xlf".
>>>>>>>
>>>>>>> Hopefully, once you make these changes, it'll compile fine.
And be sure to use the "gmake" command to compile MET on bluefire.
Please let me know how it goes.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> John Halley Gotway
>>>>>>>
>>>>>>> Here are the MET error messages I saw:
>>>>>>>
>>>>>>> *** Making pcp_combine application ***
>>>>>>>
>>>>>>> gmake[3]: Entering directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>>>>>
>>>>>>> /usr/bin/xlC -o pcp_combine pcp_combine.cc \
>>>>>>>
-DMET_BASE=\"/blhome/johnhg/MET/MET_releases/MET_v3.0_lee\" \
>>>>>>>             -I../../lib -I/usr/local/netcdf/include
-I/blhome/jaredlee/libs/gsl/gsl-1.14/include \
>>>>>>>             -L../../lib -L/usr/local/netcdf/lib
-L/blhome/jaredlee/libs/gsl/gsl-1.14/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 \
>>>>>>>
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_Pinv
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_P
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_fdist_P
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_fdist_pdf
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_P
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_Pinv
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_Pinv
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_P
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_gaussian_pdf
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_P
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_ugaussian_pdf
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_Pinv
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_env_setup
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: gsl_rng_default
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_alloc
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_sample
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_choose
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_shuffle
>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_free
>>>>>>> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain
more information.
>>>>>>> gmake[3]: *** [pcp_combine] Error 8
>>>>>>> gmake[3]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>>>>> gmake[2]: *** [all] Error 2
>>>>>>> gmake[2]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>>>>> gmake[1]: *** [targets] Error 2
>>>>>>> gmake[1]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee'
>>>>>>> gmake: *** [all] Error 2
>>>>>>> be1005en% cd ../
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 12/15/2010 03:49 PM, RAL HelpDesk {for Jared Lee} wrote:
>>>>>>>> had no impact, and I also tried using xlf for the FC):


------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #42834] Compiling MET v3.0 on Bluefire IBM
From: John Halley Gotway
Time: Thu Dec 16 11:31:37 2010

Great, glad to hear it.

In case you haven't already, I'd suggest applying the latest set of
patches for METv3.0 and recompiling:
   http://www.dtcenter.org/met/users/support/known_issues/METv3.0/index.php

I'll go ahead and resolve this ticket.

John

On 12/16/2010 11:03 AM, RAL HelpDesk {for Jared Lee} wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834 >
>
> Hi John,
>
> I was just able to compile MET, and all the executables are there in
the
> bin directory.  Compiling NetCDF on my own was the key.  Thanks for
your
> help!
>
> Jared
>
>
> On 12/16/2010 10:30 AM, RAL HelpDesk {for John Halley Gotway} wrote:
>> Jared,
>>
>> I copied over your build again and tried compiling.  Based on the
errors I saw, I suspect that there may be issues with the version of
the compiler.  Based on that, I'd suggest compiling NetCDF
>> yourself rather than using the system build.  Please perform the
following commands:
>>
>> cd /blhome/jaredlee/libs
>> cp /blhome/johnhg/MET/MET_releases/external_libs/netcdf/netcdf-
3.6.3.tar .
>> tar -xvf netcdf-3.6.3.tar
>> cd netcdf-3.6.3
>> set CC = /usr/bin/xlc
>> set CXX = /usr/bin/xlC
>> set FC = ''
>> set F90 = ''
>> ./configure --prefix=`pwd`
>> make
>> make install
>>
>> And then edit your top-level MET Makefile to point to that version
of NetCDF and rebuild MET.
>>
>> John
>>
>>
>> On 12/16/2010 09:22 AM, RAL HelpDesk {for Jared Lee} wrote:
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834>
>>>
>>> John,
>>>
>>> Sorry about that.  Now I'm getting all the same NetCDF errors as
before.
>>>
>>> Jared
>>>
>>> On 12/16/2010 9:20 AM, RAL HelpDesk {for John Halley Gotway}
wrote:
>>>> Jared,
>>>>
>>>> You have a typo in your Makefile.  In the path for NetCDF, you
put in "johng" where it should be "johnhg".
>>>>
>>>> John
>>>>
>>>> On 12/16/2010 09:17 AM, RAL HelpDesk {for Jared Lee} wrote:
>>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834>
>>>>>
>>>>> Hi John,
>>>>>
>>>>> When I tried to recompile MET by linking to your version of
NetCDF, here
>>>>> are the errors I got:
>>>>>
>>>>>
>>>>> *** Making vx_contable Library ***
>>>>>
>>>>> gmake[3]: Entering directory
>>>>> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable
>>>>> '
>>>>> /usr/bin/xlC vx_contable.cc   -c -I..
>>>>> /usr/bin/xlC vx_contable_stats.cc   -c -I..
>>>>> -I/blhome/jaredlee/libs/gsl/gsl-1.14
>>>>> /include
>>>>>
-I/blhome/johng/MET/MET_releases/external_libs/netcdf/netcdf-3.6.3/include
>>>>> "../vx_met_util/read_netcdf.h", line 16.10: 1540-0836 (S) The
#include
>>>>> file "netcdf.hh" is not found.
>>>>> "../vx_met_util/write_netcdf.h", line 16.10: 1540-0836 (S) The
#include
>>>>> file "netcdf.hh" is not found.
>>>>> gmake[3]: *** [vx_contable_stats.o] Error 1
>>>>> gmake[3]: Leaving directory
>>>>> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable'
>>>>> gmake[2]: *** [vx_contable_all] Error 2
>>>>> gmake[2]: Leaving directory
>>>>> `/blhome/jaredlee/programs/MET_v3.0/lib/vx_contable'
>>>>> gmake[1]: *** [libs] Error 2
>>>>> gmake[1]: Leaving directory `/blhome/jaredlee/programs/MET_v3.0'
>>>>> gmake: *** [all] Error 2
>>>>>
>>>>>
>>>>> So this time it didn't even make it past the libraries.  Maybe
somehow
>>>>> I'm not using the same compiler versions??
>>>>>
>>>>> Jared
>>>>>
>>>>>
>>>>> On 12/16/2010 8:49 AM, RAL HelpDesk {for John Halley Gotway}
wrote:
>>>>>> Jared,
>>>>>>
>>>>>> This is puzzling.  I really have no idea why you'd continue to
experience problems with NetCDF.  I assume we're both using the same
version of the xlc, xlC, and xlf compilers.  If the versions of the
>>>>>> compilers used to build NetCDF and MET that could cause the
type of error message you're seeing.  Here's something to try... try
linking to version of NetCDF I have built locally in my home
directory:
>>>>>>       NETCDF_BASE  =
/blhome/johnhg/MET/MET_releases/external_libs/netcdf/netcdf-3.6.3
>>>>>>
>>>>>> I'm not sure if/why this would help.  When I compile against
the one there or the one in /usr/local/netcdf both work fine.
>>>>>>
>>>>>> Please let me know if this helps.
>>>>>>
>>>>>> Thanks,
>>>>>> John
>>>>>>
>>>>>> On 12/15/2010 04:53 PM, RAL HelpDesk {for Jared Lee} wrote:
>>>>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42834>
>>>>>>>
>>>>>>> Hi John,
>>>>>>>
>>>>>>> Thanks for your reply.  I tried rebuilding GSL, BUFRLIB and
MET as you
>>>>>>> directed, but I got the exact same set of NetCDF errors that I
got
>>>>>>> before.  The one thing that I had previously forgotten to do
when
>>>>>>> building BUFRLIB was compile the two *.F files (I'd only
compiled the
>>>>>>> *.f files before).  So that's fixed now, but it didn't
apparently have
>>>>>>> an impact on my compilation of MET.
>>>>>>>
>>>>>>> Jared
>>>>>>>
>>>>>>>
>>>>>>> On 12/15/2010 4:33 PM, RAL HelpDesk {for John Halley Gotway}
wrote:
>>>>>>>> Jared,
>>>>>>>>
>>>>>>>> I went up to bluefire and copied your whole directory tree
over to my area.  When I tried compiling using your Makefile, I did
get errors but they are slightly different that what you're seeing.
>>>>>>>> Yours were for NetCDF and mine are for GSL.  See error
messages listed below.  Try recompiling to see if you get the same
errors I'm getting.  I'd recommend the following steps as described on
this
>>>>>>>> page:
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.0/compilation/req_libs.php
>>>>>>>>
>>>>>>>> (1) Rebuild GSL using the following commands:
>>>>>>>>
>>>>>>>>           setenv CC /usr/bin/xlc
>>>>>>>>           ./configure --prefix=`pwd`
>>>>>>>>           make
>>>>>>>>           make install
>>>>>>>>
>>>>>>>> (2) Rebuild BUFRLIB using the following commands:
>>>>>>>>
>>>>>>>>           xlc -c -DUNDERSCORE *.c
>>>>>>>>           xlf -c -qextname *.f *.F
>>>>>>>>           ar crv libbufr.a *.o
>>>>>>>>
>>>>>>>> (3) In your top-level MET Makefile, switch "xlf90" to "xlf".
>>>>>>>>
>>>>>>>> Hopefully, once you make these changes, it'll compile fine.
And be sure to use the "gmake" command to compile MET on bluefire.
Please let me know how it goes.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> John Halley Gotway
>>>>>>>>
>>>>>>>> Here are the MET error messages I saw:
>>>>>>>>
>>>>>>>> *** Making pcp_combine application ***
>>>>>>>>
>>>>>>>> gmake[3]: Entering directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>>>>>>
>>>>>>>> /usr/bin/xlC -o pcp_combine pcp_combine.cc \
>>>>>>>>
-DMET_BASE=\"/blhome/johnhg/MET/MET_releases/MET_v3.0_lee\" \
>>>>>>>>             -I../../lib -I/usr/local/netcdf/include
-I/blhome/jaredlee/libs/gsl/gsl-1.14/include \
>>>>>>>>             -L../../lib -L/usr/local/netcdf/lib
-L/blhome/jaredlee/libs/gsl/gsl-1.14/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 \
>>>>>>>>
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_Pinv
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_P
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_fdist_P
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_fdist_pdf
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_tdist_P
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_Pinv
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_Pinv
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_chisq_P
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_gaussian_pdf
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_gaussian_P
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_ugaussian_pdf
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_cdf_ugaussian_Pinv
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_env_setup
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: gsl_rng_default
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_alloc
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_sample
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_choose
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_ran_shuffle
>>>>>>>> ld: 0711-317 ERROR: Undefined symbol: .gsl_rng_free
>>>>>>>> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain
more information.
>>>>>>>> gmake[3]: *** [pcp_combine] Error 8
>>>>>>>> gmake[3]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>>>>>> gmake[2]: *** [all] Error 2
>>>>>>>> gmake[2]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee/src/pcp_combine'
>>>>>>>> gmake[1]: *** [targets] Error 2
>>>>>>>> gmake[1]: Leaving directory
`/blhome/johnhg/MET/MET_releases/MET_v3.0_lee'
>>>>>>>> gmake: *** [all] Error 2
>>>>>>>> be1005en% cd ../
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 12/15/2010 03:49 PM, RAL HelpDesk {for Jared Lee} wrote:
>>>>>>>>> had no impact, and I also tried using xlf for the FC):
>

------------------------------------------------


More information about the Met_help mailing list