[Met_help] [rt.rap.ucar.edu #60229] History for BUFRLIB Install Problem

John Halley Gotway via RT met_help at ucar.edu
Tue Mar 26 09:58:57 MDT 2013


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

Hey,

I have been trying to install bufrlib, but I cannot seem to get
"preproc.sh" to run.  It hangs up with an
"incompatible implicit declaration of built-in function" at line 18.  In my
bash profile I have the following settings FC=pgf90, CC=gcc
and CFLAGS="-fno-builtin-string -fno-builtin-math -fno-builtin-exit
-fno-builtin-stdio".

Any suggestions?

-- 
Ronald David Leeper
Research Associate, CICS-NC
Quality Assurance Specialist, USCRN
National Climatic Data Center (NCDC)
151 Patton Ave.
Asheville, NC 28801-5001
ronald.leeper at noaa.gov
leeperd at gmail.com
Office:(828)257-3185
Fax:(828)271-4022


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

Subject: Re: [rt.rap.ucar.edu #60229] BUFRLIB Install Problem
From: John Halley Gotway
Time: Sun Feb 10 11:16:00 2013

Ronald,

I believe that BUFRLIB is FORTRAN-77.  So try using pgf77 instead.
I'd
recommend following the instructions for compiling BUFRLIB, and the
other
required libraries for MET, posted here:

   http://www.dtcenter.org/met/users/support/online_tutorial/METv4.0/compilation/req_libs.php

Hope that helps.

Thanks,
John Halley Gotway

>
> Sun Feb 10 10:30:40 2013: Request 60229 was acted upon.
> Transaction: Ticket created by ronald.leeper at noaa.gov
>        Queue: met_help
>      Subject: BUFRLIB Install Problem
>        Owner: Nobody
>   Requestors: ronald.leeper at noaa.gov
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229 >
>
>
> Hey,
>
> I have been trying to install bufrlib, but I cannot seem to get
> "preproc.sh" to run.  It hangs up with an
> "incompatible implicit declaration of built-in function" at line 18.
In
> my
> bash profile I have the following settings FC=pgf90, CC=gcc
> and CFLAGS="-fno-builtin-string -fno-builtin-math -fno-builtin-exit
> -fno-builtin-stdio".
>
> Any suggestions?
>
> --
> Ronald David Leeper
> Research Associate, CICS-NC
> Quality Assurance Specialist, USCRN
> National Climatic Data Center (NCDC)
> 151 Patton Ave.
> Asheville, NC 28801-5001
> ronald.leeper at noaa.gov
> leeperd at gmail.com
> Office:(828)257-3185
> Fax:(828)271-4022
>



------------------------------------------------
Subject: BUFRLIB Install Problem
From: Ronald Leeper - NOAA Affiliate
Time: Mon Feb 11 12:15:46 2013

Thanks for the quick response over the weekend.

Following your recommendation and using the referenced link below
was incredibly helpful.  I have been able to install all of MET's
dependent
libraries.  When running the make on MET; however, I get the following
error message in the make log.

*** Finished Making the vx_analysis_util Library ***

/usr/bin/g++ ensemble_stat_conf_info.cc -Wall -Wshadow -static
-DBLOCK4 -c
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
-I/home/jyoung/WRFmodel/netcdf/include
/usr/bin/g++ -o ensemble_stat ensemble_stat.cc
ensemble_stat_conf_info.o \
        -Wall -Wshadow -static  -DBLOCK4
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
\

-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
-I/home/jyoung/WRFmodel/netcdf/include
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \

-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
-L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
        -lvx_stat_out \
        -lvx_statistics \
        -lvx_shapedata \
        -lvx_gsl_prob \
        -lvx_analysis_util \
        -lvx_data2d_factory \
        -lvx_data2d_nc_met \
        -lvx_data2d_grib  \
        -lvx_data2d_nc_pinterp \
        -lvx_data2d \
        -lvx_nc_util \
        -lvx_grid \
        -lvx_config \
        -lvx_cal \
        -lvx_util \
        -lvx_math \
        -lvx_color \
        -lvx_log \
        -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \

/usr/bin/ld: cannot find -lm
collect2: ld returned 1 exit status

Is libm associated with netcdf?  netcdf was installed by the system
administrator so I did not install this personally, but I will say
that WRF
model is functional.  Running locate on the machine I did find
libm.so*
within the /usr/lib64, which you'll note I added to the user_defs.mk.
Do
you think I need to install my own netcdf distribution?

Thanks,


On Sun, Feb 10, 2013 at 1:16 PM, John Halley Gotway via RT <
met_help at ucar.edu> wrote:

> Ronald,
>
> I believe that BUFRLIB is FORTRAN-77.  So try using pgf77 instead.
I'd
> recommend following the instructions for compiling BUFRLIB, and the
other
> required libraries for MET, posted here:
>
>
>
http://www.dtcenter.org/met/users/support/online_tutorial/METv4.0/compilation/req_libs.php
>
> Hope that helps.
>
> Thanks,
> John Halley Gotway
>
> >
> > Sun Feb 10 10:30:40 2013: Request 60229 was acted upon.
> > Transaction: Ticket created by ronald.leeper at noaa.gov
> >        Queue: met_help
> >      Subject: BUFRLIB Install Problem
> >        Owner: Nobody
> >   Requestors: ronald.leeper at noaa.gov
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229 >
> >
> >
> > Hey,
> >
> > I have been trying to install bufrlib, but I cannot seem to get
> > "preproc.sh" to run.  It hangs up with an
> > "incompatible implicit declaration of built-in function" at line
18.  In
> > my
> > bash profile I have the following settings FC=pgf90, CC=gcc
> > and CFLAGS="-fno-builtin-string -fno-builtin-math
-fno-builtin-exit
> > -fno-builtin-stdio".
> >
> > Any suggestions?
> >
> > --
> > Ronald David Leeper
> > Research Associate, CICS-NC
> > Quality Assurance Specialist, USCRN
> > National Climatic Data Center (NCDC)
> > 151 Patton Ave.
> > Asheville, NC 28801-5001
> > ronald.leeper at noaa.gov
> > leeperd at gmail.com
> > Office:(828)257-3185
> > Fax:(828)271-4022
> >
>
>
>
>


--
Ronald David Leeper
Research Associate, CICS-NC
Quality Assurance Specialist, USCRN
National Climatic Data Center (NCDC)
151 Patton Ave.
Asheville, NC 28801-5001
ronald.leeper at noaa.gov
leeperd at gmail.com
Office:(828)257-3185
Fax:(828)271-4022

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #60229] BUFRLIB Install Problem
From: John Halley Gotway
Time: Tue Feb 12 10:33:08 2013

Ronald,

We had this same issue come up during our recent MET tutorial.  MET
expects to find the file libm.a, but instead you have libm.so.  Here's
the
fix:

(1)  Edit the Makefile and put the full path to the .so file
     (example: /lib64/libm.so) on the compiler command line
     with the .o files

(2)  If the libm.so file is in a wierd place in the filesystem
     (unlikely) then you need to add the directory containing it
     to the LD_RUN_PATH environment variable.  (That's for the
     gnu family of compilers ... the environment variable might
     be called something different for pgi or whatever.)

(3)  Compile.

Just let me know if you continue to experience problems.

Thanks,
John

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229 >
>
> Thanks for the quick response over the weekend.
>
> Following your recommendation and using the referenced link below
> was incredibly helpful.  I have been able to install all of MET's
> dependent
> libraries.  When running the make on MET; however, I get the
following
> error message in the make log.
>
> *** Finished Making the vx_analysis_util Library ***
>
> /usr/bin/g++ ensemble_stat_conf_info.cc -Wall -Wshadow -static
-DBLOCK4
> -c
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
> -I/home/jyoung/WRFmodel/netcdf/include
> /usr/bin/g++ -o ensemble_stat ensemble_stat.cc
ensemble_stat_conf_info.o \
>         -Wall -Wshadow -static  -DBLOCK4
>
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
> \
>
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
> -I/home/jyoung/WRFmodel/netcdf/include
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
> -I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
>
>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
> -L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64
>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
> -L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
>         -lvx_stat_out \
>         -lvx_statistics \
>         -lvx_shapedata \
>         -lvx_gsl_prob \
>         -lvx_analysis_util \
>         -lvx_data2d_factory \
>         -lvx_data2d_nc_met \
>         -lvx_data2d_grib  \
>         -lvx_data2d_nc_pinterp \
>         -lvx_data2d \
>         -lvx_nc_util \
>         -lvx_grid \
>         -lvx_config \
>         -lvx_cal \
>         -lvx_util \
>         -lvx_math \
>         -lvx_color \
>         -lvx_log \
>         -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \
>
> /usr/bin/ld: cannot find -lm
> collect2: ld returned 1 exit status
>
> Is libm associated with netcdf?  netcdf was installed by the system
> administrator so I did not install this personally, but I will say
that
> WRF
> model is functional.  Running locate on the machine I did find
libm.so*
> within the /usr/lib64, which you'll note I added to the
user_defs.mk.  Do
> you think I need to install my own netcdf distribution?
>
> Thanks,
>
>
> On Sun, Feb 10, 2013 at 1:16 PM, John Halley Gotway via RT <
> met_help at ucar.edu> wrote:
>
>> Ronald,
>>
>> I believe that BUFRLIB is FORTRAN-77.  So try using pgf77 instead.
I'd
>> recommend following the instructions for compiling BUFRLIB, and the
>> other
>> required libraries for MET, posted here:
>>
>>
>>
http://www.dtcenter.org/met/users/support/online_tutorial/METv4.0/compilation/req_libs.php
>>
>> Hope that helps.
>>
>> Thanks,
>> John Halley Gotway
>>
>> >
>> > Sun Feb 10 10:30:40 2013: Request 60229 was acted upon.
>> > Transaction: Ticket created by ronald.leeper at noaa.gov
>> >        Queue: met_help
>> >      Subject: BUFRLIB Install Problem
>> >        Owner: Nobody
>> >   Requestors: ronald.leeper at noaa.gov
>> >       Status: new
>> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229
>> >
>> >
>> >
>> > Hey,
>> >
>> > I have been trying to install bufrlib, but I cannot seem to get
>> > "preproc.sh" to run.  It hangs up with an
>> > "incompatible implicit declaration of built-in function" at line
18.
>> In
>> > my
>> > bash profile I have the following settings FC=pgf90, CC=gcc
>> > and CFLAGS="-fno-builtin-string -fno-builtin-math
-fno-builtin-exit
>> > -fno-builtin-stdio".
>> >
>> > Any suggestions?
>> >
>> > --
>> > Ronald David Leeper
>> > Research Associate, CICS-NC
>> > Quality Assurance Specialist, USCRN
>> > National Climatic Data Center (NCDC)
>> > 151 Patton Ave.
>> > Asheville, NC 28801-5001
>> > ronald.leeper at noaa.gov
>> > leeperd at gmail.com
>> > Office:(828)257-3185
>> > Fax:(828)271-4022
>> >
>>
>>
>>
>>
>
>
> --
> Ronald David Leeper
> Research Associate, CICS-NC
> Quality Assurance Specialist, USCRN
> National Climatic Data Center (NCDC)
> 151 Patton Ave.
> Asheville, NC 28801-5001
> ronald.leeper at noaa.gov
> leeperd at gmail.com
> Office:(828)257-3185
> Fax:(828)271-4022
>



------------------------------------------------
Subject: BUFRLIB Install Problem
From: Ronald Leeper - NOAA Affiliate
Time: Tue Feb 12 20:13:48 2013

So I haven't had much luck with these instructions.  However, I did
get a
slightly different error message.

For 1). I tried both LD_LIBRARY_PATH and LD_RUN_PATH with no luck and
2). I
included "/lib/libm.so.6" in the Makefile under
/src/tools/core/ensemble_stat.

Provided below is a segment of my make_log.txt

Thanks for your help again,

/usr/bin/g++ ensemble_stat_conf_info.cc -Wall -Wshadow -static
-DBLOCK4 -c
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
-I/home/jyoung/WRFmodel/netcdf/include
/usr/bin/g++ -o ensemble_stat /lib/libm.so.6 ensemble_stat.cc
ensemble_stat_conf_info.o \
        -Wall -Wshadow -static  -DBLOCK4
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
\

-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
-I/home/jyoung/WRFmodel/netcdf/include
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \

-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
-L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64/libm.so
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
        -lvx_stat_out \
        -lvx_statistics \
        -lvx_shapedata \
        -lvx_gsl_prob \
        -lvx_analysis_util \
        -lvx_data2d_factory \
        -lvx_data2d_nc_met \
        -lvx_data2d_grib  \
        -lvx_data2d_nc_pinterp \
        -lvx_data2d \
        -lvx_nc_util \
        -lvx_grid \
        -lvx_config \
        -lvx_cal \
        -lvx_util \
        -lvx_math \
        -lvx_color \
        -lvx_log \
        -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \

/usr/bin/ld: attempted static link of dynamic object `/lib/libm.so.6'
collect2: ld returned 1 exit status


On Tue, Feb 12, 2013 at 12:33 PM, John Halley Gotway via RT <
met_help at ucar.edu> wrote:

> Ronald,
>
> We had this same issue come up during our recent MET tutorial.  MET
> expects to find the file libm.a, but instead you have libm.so.
Here's the
> fix:
>
> (1)  Edit the Makefile and put the full path to the .so file
>      (example: /lib64/libm.so) on the compiler command line
>      with the .o files
>
> (2)  If the libm.so file is in a wierd place in the filesystem
>      (unlikely) then you need to add the directory containing it
>      to the LD_RUN_PATH environment variable.  (That's for the
>      gnu family of compilers ... the environment variable might
>      be called something different for pgi or whatever.)
>
> (3)  Compile.
>
> Just let me know if you continue to experience problems.
>
> Thanks,
> John
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229 >
> >
> > Thanks for the quick response over the weekend.
> >
> > Following your recommendation and using the referenced link below
> > was incredibly helpful.  I have been able to install all of MET's
> > dependent
> > libraries.  When running the make on MET; however, I get the
following
> > error message in the make log.
> >
> > *** Finished Making the vx_analysis_util Library ***
> >
> > /usr/bin/g++ ensemble_stat_conf_info.cc -Wall -Wshadow -static
-DBLOCK4
> > -c
> >
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
> >
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
> > -I/home/jyoung/WRFmodel/netcdf/include
> > /usr/bin/g++ -o ensemble_stat ensemble_stat.cc
ensemble_stat_conf_info.o
> \
> >         -Wall -Wshadow -static  -DBLOCK4
> >
>
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
> > \
> >
> >
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
> > -I/home/jyoung/WRFmodel/netcdf/include
> >
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
> > -I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib
\
> >
> >
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
> > -L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64
> >
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
> > -L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib
\
> >         -lvx_stat_out \
> >         -lvx_statistics \
> >         -lvx_shapedata \
> >         -lvx_gsl_prob \
> >         -lvx_analysis_util \
> >         -lvx_data2d_factory \
> >         -lvx_data2d_nc_met \
> >         -lvx_data2d_grib  \
> >         -lvx_data2d_nc_pinterp \
> >         -lvx_data2d \
> >         -lvx_nc_util \
> >         -lvx_grid \
> >         -lvx_config \
> >         -lvx_cal \
> >         -lvx_util \
> >         -lvx_math \
> >         -lvx_color \
> >         -lvx_log \
> >         -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \
> >
> > /usr/bin/ld: cannot find -lm
> > collect2: ld returned 1 exit status
> >
> > Is libm associated with netcdf?  netcdf was installed by the
system
> > administrator so I did not install this personally, but I will say
that
> > WRF
> > model is functional.  Running locate on the machine I did find
libm.so*
> > within the /usr/lib64, which you'll note I added to the
user_defs.mk.
>  Do
> > you think I need to install my own netcdf distribution?
> >
> > Thanks,
> >
> >
> > On Sun, Feb 10, 2013 at 1:16 PM, John Halley Gotway via RT <
> > met_help at ucar.edu> wrote:
> >
> >> Ronald,
> >>
> >> I believe that BUFRLIB is FORTRAN-77.  So try using pgf77
instead.  I'd
> >> recommend following the instructions for compiling BUFRLIB, and
the
> >> other
> >> required libraries for MET, posted here:
> >>
> >>
> >>
>
http://www.dtcenter.org/met/users/support/online_tutorial/METv4.0/compilation/req_libs.php
> >>
> >> Hope that helps.
> >>
> >> Thanks,
> >> John Halley Gotway
> >>
> >> >
> >> > Sun Feb 10 10:30:40 2013: Request 60229 was acted upon.
> >> > Transaction: Ticket created by ronald.leeper at noaa.gov
> >> >        Queue: met_help
> >> >      Subject: BUFRLIB Install Problem
> >> >        Owner: Nobody
> >> >   Requestors: ronald.leeper at noaa.gov
> >> >       Status: new
> >> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229
> >> >
> >> >
> >> >
> >> > Hey,
> >> >
> >> > I have been trying to install bufrlib, but I cannot seem to get
> >> > "preproc.sh" to run.  It hangs up with an
> >> > "incompatible implicit declaration of built-in function" at
line 18.
> >> In
> >> > my
> >> > bash profile I have the following settings FC=pgf90, CC=gcc
> >> > and CFLAGS="-fno-builtin-string -fno-builtin-math
-fno-builtin-exit
> >> > -fno-builtin-stdio".
> >> >
> >> > Any suggestions?
> >> >
> >> > --
> >> > Ronald David Leeper
> >> > Research Associate, CICS-NC
> >> > Quality Assurance Specialist, USCRN
> >> > National Climatic Data Center (NCDC)
> >> > 151 Patton Ave.
> >> > Asheville, NC 28801-5001
> >> > ronald.leeper at noaa.gov
> >> > leeperd at gmail.com
> >> > Office:(828)257-3185
> >> > Fax:(828)271-4022
> >> >
> >>
> >>
> >>
> >>
> >
> >
> > --
> > Ronald David Leeper
> > Research Associate, CICS-NC
> > Quality Assurance Specialist, USCRN
> > National Climatic Data Center (NCDC)
> > 151 Patton Ave.
> > Asheville, NC 28801-5001
> > ronald.leeper at noaa.gov
> > leeperd at gmail.com
> > Office:(828)257-3185
> > Fax:(828)271-4022
> >
>
>
>
>


--
Ronald David Leeper
Research Associate, CICS-NC
Quality Assurance Specialist, USCRN
National Climatic Data Center (NCDC)
151 Patton Ave.
Asheville, NC 28801-5001
ronald.leeper at noaa.gov
leeperd at gmail.com
Office:(828)257-3185
Fax:(828)271-4022

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #60229] BUFRLIB Install Problem
From: John Halley Gotway
Time: Wed Feb 13 10:15:42 2013

Ronald,

You could also try building without the "-static" flag.  Please try
this:
  - undo the Makefile changes you've made
  - edit the top-level user_defs.mk file by removing the "-static"
option from the CXX_FLAGS and FC_FLAGS lines.

Then try recompiling, being sure to do a "make clean" first.

Please let me know how that goes.

Thanks,
John

On 02/12/2013 08:13 PM, Ronald Leeper - NOAA Affiliate via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229 >
>
> So I haven't had much luck with these instructions.  However, I did
get a
> slightly different error message.
>
> For 1). I tried both LD_LIBRARY_PATH and LD_RUN_PATH with no luck
and 2). I
> included "/lib/libm.so.6" in the Makefile under
> /src/tools/core/ensemble_stat.
>
> Provided below is a segment of my make_log.txt
>
> Thanks for your help again,
>
> /usr/bin/g++ ensemble_stat_conf_info.cc -Wall -Wshadow -static
-DBLOCK4 -c
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
> -I/home/jyoung/WRFmodel/netcdf/include
> /usr/bin/g++ -o ensemble_stat /lib/libm.so.6 ensemble_stat.cc
> ensemble_stat_conf_info.o \
>          -Wall -Wshadow -static  -DBLOCK4
>
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
> \
>
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
> -I/home/jyoung/WRFmodel/netcdf/include
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
> -I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
>
>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
> -L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64/libm.so
>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
> -L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
>          -lvx_stat_out \
>          -lvx_statistics \
>          -lvx_shapedata \
>          -lvx_gsl_prob \
>          -lvx_analysis_util \
>          -lvx_data2d_factory \
>          -lvx_data2d_nc_met \
>          -lvx_data2d_grib  \
>          -lvx_data2d_nc_pinterp \
>          -lvx_data2d \
>          -lvx_nc_util \
>          -lvx_grid \
>          -lvx_config \
>          -lvx_cal \
>          -lvx_util \
>          -lvx_math \
>          -lvx_color \
>          -lvx_log \
>          -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \
>
> /usr/bin/ld: attempted static link of dynamic object
`/lib/libm.so.6'
> collect2: ld returned 1 exit status
>
>
> On Tue, Feb 12, 2013 at 12:33 PM, John Halley Gotway via RT <
> met_help at ucar.edu> wrote:
>
>> Ronald,
>>
>> We had this same issue come up during our recent MET tutorial.  MET
>> expects to find the file libm.a, but instead you have libm.so.
Here's the
>> fix:
>>
>> (1)  Edit the Makefile and put the full path to the .so file
>>       (example: /lib64/libm.so) on the compiler command line
>>       with the .o files
>>
>> (2)  If the libm.so file is in a wierd place in the filesystem
>>       (unlikely) then you need to add the directory containing it
>>       to the LD_RUN_PATH environment variable.  (That's for the
>>       gnu family of compilers ... the environment variable might
>>       be called something different for pgi or whatever.)
>>
>> (3)  Compile.
>>
>> Just let me know if you continue to experience problems.
>>
>> Thanks,
>> John
>>
>>>
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229 >
>>>
>>> Thanks for the quick response over the weekend.
>>>
>>> Following your recommendation and using the referenced link below
>>> was incredibly helpful.  I have been able to install all of MET's
>>> dependent
>>> libraries.  When running the make on MET; however, I get the
following
>>> error message in the make log.
>>>
>>> *** Finished Making the vx_analysis_util Library ***
>>>
>>> /usr/bin/g++ ensemble_stat_conf_info.cc -Wall -Wshadow -static
-DBLOCK4
>>> -c
>>>
>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
>>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
>>> -I/home/jyoung/WRFmodel/netcdf/include
>>> /usr/bin/g++ -o ensemble_stat ensemble_stat.cc
ensemble_stat_conf_info.o
>> \
>>>          -Wall -Wshadow -static  -DBLOCK4
>>>
>>
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
>>> \
>>>
>>>
>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
>>> -I/home/jyoung/WRFmodel/netcdf/include
>>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
>>> -I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib
\
>>>
>>>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
>>> -L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64
>>>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
>>> -L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib
\
>>>          -lvx_stat_out \
>>>          -lvx_statistics \
>>>          -lvx_shapedata \
>>>          -lvx_gsl_prob \
>>>          -lvx_analysis_util \
>>>          -lvx_data2d_factory \
>>>          -lvx_data2d_nc_met \
>>>          -lvx_data2d_grib  \
>>>          -lvx_data2d_nc_pinterp \
>>>          -lvx_data2d \
>>>          -lvx_nc_util \
>>>          -lvx_grid \
>>>          -lvx_config \
>>>          -lvx_cal \
>>>          -lvx_util \
>>>          -lvx_math \
>>>          -lvx_color \
>>>          -lvx_log \
>>>          -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \
>>>
>>> /usr/bin/ld: cannot find -lm
>>> collect2: ld returned 1 exit status
>>>
>>> Is libm associated with netcdf?  netcdf was installed by the
system
>>> administrator so I did not install this personally, but I will say
that
>>> WRF
>>> model is functional.  Running locate on the machine I did find
libm.so*
>>> within the /usr/lib64, which you'll note I added to the
user_defs.mk.
>>   Do
>>> you think I need to install my own netcdf distribution?
>>>
>>> Thanks,
>>>
>>>
>>> On Sun, Feb 10, 2013 at 1:16 PM, John Halley Gotway via RT <
>>> met_help at ucar.edu> wrote:
>>>
>>>> Ronald,
>>>>
>>>> I believe that BUFRLIB is FORTRAN-77.  So try using pgf77
instead.  I'd
>>>> recommend following the instructions for compiling BUFRLIB, and
the
>>>> other
>>>> required libraries for MET, posted here:
>>>>
>>>>
>>>>
>>
http://www.dtcenter.org/met/users/support/online_tutorial/METv4.0/compilation/req_libs.php
>>>>
>>>> Hope that helps.
>>>>
>>>> Thanks,
>>>> John Halley Gotway
>>>>
>>>>>
>>>>> Sun Feb 10 10:30:40 2013: Request 60229 was acted upon.
>>>>> Transaction: Ticket created by ronald.leeper at noaa.gov
>>>>>         Queue: met_help
>>>>>       Subject: BUFRLIB Install Problem
>>>>>         Owner: Nobody
>>>>>    Requestors: ronald.leeper at noaa.gov
>>>>>        Status: new
>>>>>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229
>>>>>
>>>>>
>>>>>
>>>>> Hey,
>>>>>
>>>>> I have been trying to install bufrlib, but I cannot seem to get
>>>>> "preproc.sh" to run.  It hangs up with an
>>>>> "incompatible implicit declaration of built-in function" at line
18.
>>>> In
>>>>> my
>>>>> bash profile I have the following settings FC=pgf90, CC=gcc
>>>>> and CFLAGS="-fno-builtin-string -fno-builtin-math
-fno-builtin-exit
>>>>> -fno-builtin-stdio".
>>>>>
>>>>> Any suggestions?
>>>>>
>>>>> --
>>>>> Ronald David Leeper
>>>>> Research Associate, CICS-NC
>>>>> Quality Assurance Specialist, USCRN
>>>>> National Climatic Data Center (NCDC)
>>>>> 151 Patton Ave.
>>>>> Asheville, NC 28801-5001
>>>>> ronald.leeper at noaa.gov
>>>>> leeperd at gmail.com
>>>>> Office:(828)257-3185
>>>>> Fax:(828)271-4022
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Ronald David Leeper
>>> Research Associate, CICS-NC
>>> Quality Assurance Specialist, USCRN
>>> National Climatic Data Center (NCDC)
>>> 151 Patton Ave.
>>> Asheville, NC 28801-5001
>>> ronald.leeper at noaa.gov
>>> leeperd at gmail.com
>>> Office:(828)257-3185
>>> Fax:(828)271-4022
>>>
>>
>>
>>
>>
>
>

------------------------------------------------
Subject: BUFRLIB Install Problem
From: Ronald Leeper - NOAA Affiliate
Time: Wed Feb 13 10:47:55 2013

Thanks, that did the trick for this issue, but the make unfortunately
wasn't able to finish.  Another error occurred with gen_poly_mask.cc.
 There was a series of undefined references to cblas_* commands within
the
libgsl.so file.  Provided below is an excerpt from the make_log.

/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib/libgsl.so:
undefined reference to `cblas_ztrsv'
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib/libgsl.so:
undefined reference to `cblas_scasum'
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib/libgsl.so:
undefined reference to `cblas_izamax'

The nm command does indicate these references are in deed undefined.

nm -g
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib/libgsl.a
| grep cblas_ztrsv
>>U cblas_ztrsv

I'll try recompiling the gsl package again and see if this doesn't fix
this
issue.

Thanks for your patience,

On Wed, Feb 13, 2013 at 12:15 PM, John Halley Gotway via RT <
met_help at ucar.edu> wrote:

> Ronald,
>
> You could also try building without the "-static" flag.  Please try
this:
>   - undo the Makefile changes you've made
>   - edit the top-level user_defs.mk file by removing the "-static"
option
> from the CXX_FLAGS and FC_FLAGS lines.
>
> Then try recompiling, being sure to do a "make clean" first.
>
> Please let me know how that goes.
>
> Thanks,
> John
>
> On 02/12/2013 08:13 PM, Ronald Leeper - NOAA Affiliate via RT wrote:
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229 >
> >
> > So I haven't had much luck with these instructions.  However, I
did get a
> > slightly different error message.
> >
> > For 1). I tried both LD_LIBRARY_PATH and LD_RUN_PATH with no luck
and
> 2). I
> > included "/lib/libm.so.6" in the Makefile under
> > /src/tools/core/ensemble_stat.
> >
> > Provided below is a segment of my make_log.txt
> >
> > Thanks for your help again,
> >
> > /usr/bin/g++ ensemble_stat_conf_info.cc -Wall -Wshadow -static
-DBLOCK4
> -c
> >
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
> >
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
> > -I/home/jyoung/WRFmodel/netcdf/include
> > /usr/bin/g++ -o ensemble_stat /lib/libm.so.6 ensemble_stat.cc
> > ensemble_stat_conf_info.o \
> >          -Wall -Wshadow -static  -DBLOCK4
> >
>
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
> > \
> >
> >
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
> > -I/home/jyoung/WRFmodel/netcdf/include
> >
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
> > -I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib
\
> >
> >
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
> > -L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64/libm.so
> >
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
> > -L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib
\
> >          -lvx_stat_out \
> >          -lvx_statistics \
> >          -lvx_shapedata \
> >          -lvx_gsl_prob \
> >          -lvx_analysis_util \
> >          -lvx_data2d_factory \
> >          -lvx_data2d_nc_met \
> >          -lvx_data2d_grib  \
> >          -lvx_data2d_nc_pinterp \
> >          -lvx_data2d \
> >          -lvx_nc_util \
> >          -lvx_grid \
> >          -lvx_config \
> >          -lvx_cal \
> >          -lvx_util \
> >          -lvx_math \
> >          -lvx_color \
> >          -lvx_log \
> >          -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \
> >
> > /usr/bin/ld: attempted static link of dynamic object
`/lib/libm.so.6'
> > collect2: ld returned 1 exit status
> >
> >
> > On Tue, Feb 12, 2013 at 12:33 PM, John Halley Gotway via RT <
> > met_help at ucar.edu> wrote:
> >
> >> Ronald,
> >>
> >> We had this same issue come up during our recent MET tutorial.
MET
> >> expects to find the file libm.a, but instead you have libm.so.
Here's
> the
> >> fix:
> >>
> >> (1)  Edit the Makefile and put the full path to the .so file
> >>       (example: /lib64/libm.so) on the compiler command line
> >>       with the .o files
> >>
> >> (2)  If the libm.so file is in a wierd place in the filesystem
> >>       (unlikely) then you need to add the directory containing it
> >>       to the LD_RUN_PATH environment variable.  (That's for the
> >>       gnu family of compilers ... the environment variable might
> >>       be called something different for pgi or whatever.)
> >>
> >> (3)  Compile.
> >>
> >> Just let me know if you continue to experience problems.
> >>
> >> Thanks,
> >> John
> >>
> >>>
> >>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229 >
> >>>
> >>> Thanks for the quick response over the weekend.
> >>>
> >>> Following your recommendation and using the referenced link
below
> >>> was incredibly helpful.  I have been able to install all of
MET's
> >>> dependent
> >>> libraries.  When running the make on MET; however, I get the
following
> >>> error message in the make log.
> >>>
> >>> *** Finished Making the vx_analysis_util Library ***
> >>>
> >>> /usr/bin/g++ ensemble_stat_conf_info.cc -Wall -Wshadow -static
>  -DBLOCK4
> >>> -c
> >>>
> >>
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
> >>>
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
> >>> -I/home/jyoung/WRFmodel/netcdf/include
> >>> /usr/bin/g++ -o ensemble_stat ensemble_stat.cc
> ensemble_stat_conf_info.o
> >> \
> >>>          -Wall -Wshadow -static  -DBLOCK4
> >>>
> >>
>
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
> >>> \
> >>>
> >>>
> >>
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
> >>> -I/home/jyoung/WRFmodel/netcdf/include
> >>>
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
> >>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
> >>>
> >>>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
> >>> -L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64
> >>>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
> >>>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
> >>>          -lvx_stat_out \
> >>>          -lvx_statistics \
> >>>          -lvx_shapedata \
> >>>          -lvx_gsl_prob \
> >>>          -lvx_analysis_util \
> >>>          -lvx_data2d_factory \
> >>>          -lvx_data2d_nc_met \
> >>>          -lvx_data2d_grib  \
> >>>          -lvx_data2d_nc_pinterp \
> >>>          -lvx_data2d \
> >>>          -lvx_nc_util \
> >>>          -lvx_grid \
> >>>          -lvx_config \
> >>>          -lvx_cal \
> >>>          -lvx_util \
> >>>          -lvx_math \
> >>>          -lvx_color \
> >>>          -lvx_log \
> >>>          -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \
> >>>
> >>> /usr/bin/ld: cannot find -lm
> >>> collect2: ld returned 1 exit status
> >>>
> >>> Is libm associated with netcdf?  netcdf was installed by the
system
> >>> administrator so I did not install this personally, but I will
say that
> >>> WRF
> >>> model is functional.  Running locate on the machine I did find
libm.so*
> >>> within the /usr/lib64, which you'll note I added to the
user_defs.mk.
> >>   Do
> >>> you think I need to install my own netcdf distribution?
> >>>
> >>> Thanks,
> >>>
> >>>
> >>> On Sun, Feb 10, 2013 at 1:16 PM, John Halley Gotway via RT <
> >>> met_help at ucar.edu> wrote:
> >>>
> >>>> Ronald,
> >>>>
> >>>> I believe that BUFRLIB is FORTRAN-77.  So try using pgf77
instead.
>  I'd
> >>>> recommend following the instructions for compiling BUFRLIB, and
the
> >>>> other
> >>>> required libraries for MET, posted here:
> >>>>
> >>>>
> >>>>
> >>
>
http://www.dtcenter.org/met/users/support/online_tutorial/METv4.0/compilation/req_libs.php
> >>>>
> >>>> Hope that helps.
> >>>>
> >>>> Thanks,
> >>>> John Halley Gotway
> >>>>
> >>>>>
> >>>>> Sun Feb 10 10:30:40 2013: Request 60229 was acted upon.
> >>>>> Transaction: Ticket created by ronald.leeper at noaa.gov
> >>>>>         Queue: met_help
> >>>>>       Subject: BUFRLIB Install Problem
> >>>>>         Owner: Nobody
> >>>>>    Requestors: ronald.leeper at noaa.gov
> >>>>>        Status: new
> >>>>>   Ticket <URL:
> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229
> >>>>>
> >>>>>
> >>>>>
> >>>>> Hey,
> >>>>>
> >>>>> I have been trying to install bufrlib, but I cannot seem to
get
> >>>>> "preproc.sh" to run.  It hangs up with an
> >>>>> "incompatible implicit declaration of built-in function" at
line 18.
> >>>> In
> >>>>> my
> >>>>> bash profile I have the following settings FC=pgf90, CC=gcc
> >>>>> and CFLAGS="-fno-builtin-string -fno-builtin-math
-fno-builtin-exit
> >>>>> -fno-builtin-stdio".
> >>>>>
> >>>>> Any suggestions?
> >>>>>
> >>>>> --
> >>>>> Ronald David Leeper
> >>>>> Research Associate, CICS-NC
> >>>>> Quality Assurance Specialist, USCRN
> >>>>> National Climatic Data Center (NCDC)
> >>>>> 151 Patton Ave.
> >>>>> Asheville, NC 28801-5001
> >>>>> ronald.leeper at noaa.gov
> >>>>> leeperd at gmail.com
> >>>>> Office:(828)257-3185
> >>>>> Fax:(828)271-4022
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>> --
> >>> Ronald David Leeper
> >>> Research Associate, CICS-NC
> >>> Quality Assurance Specialist, USCRN
> >>> National Climatic Data Center (NCDC)
> >>> 151 Patton Ave.
> >>> Asheville, NC 28801-5001
> >>> ronald.leeper at noaa.gov
> >>> leeperd at gmail.com
> >>> Office:(828)257-3185
> >>> Fax:(828)271-4022
> >>>
> >>
> >>
> >>
> >>
> >
> >
>
>


--
Ronald David Leeper
Research Associate, CICS-NC
Quality Assurance Specialist, USCRN
National Climatic Data Center (NCDC)
151 Patton Ave.
Asheville, NC 28801-5001
ronald.leeper at noaa.gov
leeperd at gmail.com
Office:(828)257-3185
Fax:(828)271-4022

------------------------------------------------
Subject: BUFRLIB Install Problem
From: Ronald Leeper - NOAA Affiliate
Time: Wed Feb 13 13:59:56 2013

I was able to resolve the previously noted issue by including the
libcblas.so file in the nested Makefile.  Once again though, I have
run
into another undefined reference.  This time for BUFRLIB.  I tried
recreating the libbufr.a file, but no luck.  I am using the suggested
PGI
command line options noted on the web to create libbufr.a file.

/opt/pgi/linux86-64/9.0-4/bin/pgf77 dumppb.f  -c
/usr/bin/g++ -o pb2nc pb2nc.cc pb2nc_conf_info.o numpbmsg.o openpb.o
closepb.o readpb.o dumppb.o \
        -Wall -Wshadow  -DBLOCK4
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
\

-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
-I/home/jyoung/WRFmodel/netcdf/include
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib
 -I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \

-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
-L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
-lgslcblas
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib
 -L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
        -lvx_stat_out \
        -lvx_statistics \
        -lvx_shapedata \
        -lvx_gsl_prob \
        -lvx_analysis_util \
        -lvx_data2d_factory \
        -lvx_data2d_grib  \
        -lvx_data2d_nc_met \
        -lvx_data2d_nc_pinterp \
        -lvx_data2d \
        -lvx_nc_util \
        -lvx_grid \
        -lvx_config \
        -lvx_pb_util \
        -lvx_cal \
        -lvx_util \
        -lvx_math \
        -lvx_color \
        -lvx_log \
        -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas -lbufr \
          -lrt -lpthread -L/opt/pgi/linux86-64/9.0-4/libso -lpgftnrtl
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/libbufr.a(ups.o):
In function `ups_':
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/BUFRLIB/./ups.f:60:
undefined reference to `__mth_i_dpowi'
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/BUFRLIB/./ups.f:82:
undefined reference to `__mth_i_dpowi'


On Wed, Feb 13, 2013 at 12:47 PM, Ronald Leeper - NOAA Affiliate <
ronald.leeper at noaa.gov> wrote:

> Thanks, that did the trick for this issue, but the make
unfortunately
> wasn't able to finish.  Another error occurred with
gen_poly_mask.cc.
>  There was a series of undefined references to cblas_* commands
within the
> libgsl.so file.  Provided below is an excerpt from the make_log.
>
>
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib/libgsl.so:
> undefined reference to `cblas_ztrsv'
>
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib/libgsl.so:
> undefined reference to `cblas_scasum'
>
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib/libgsl.so:
> undefined reference to `cblas_izamax'
>
> The nm command does indicate these references are in deed undefined.
>
> nm -g
>
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib/libgsl.a
> | grep cblas_ztrsv
> >>U cblas_ztrsv
>
> I'll try recompiling the gsl package again and see if this doesn't
fix
> this issue.
>
> Thanks for your patience,
>
> On Wed, Feb 13, 2013 at 12:15 PM, John Halley Gotway via RT <
> met_help at ucar.edu> wrote:
>
>> Ronald,
>>
>> You could also try building without the "-static" flag.  Please try
this:
>>   - undo the Makefile changes you've made
>>   - edit the top-level user_defs.mk file by removing the "-static"
>> option from the CXX_FLAGS and FC_FLAGS lines.
>>
>> Then try recompiling, being sure to do a "make clean" first.
>>
>> Please let me know how that goes.
>>
>> Thanks,
>> John
>>
>> On 02/12/2013 08:13 PM, Ronald Leeper - NOAA Affiliate via RT
wrote:
>> >
>> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229 >
>> >
>> > So I haven't had much luck with these instructions.  However, I
did get
>> a
>> > slightly different error message.
>> >
>> > For 1). I tried both LD_LIBRARY_PATH and LD_RUN_PATH with no luck
and
>> 2). I
>> > included "/lib/libm.so.6" in the Makefile under
>> > /src/tools/core/ensemble_stat.
>> >
>> > Provided below is a segment of my make_log.txt
>> >
>> > Thanks for your help again,
>> >
>> > /usr/bin/g++ ensemble_stat_conf_info.cc -Wall -Wshadow -static
>>  -DBLOCK4 -c
>> >
>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
>> >
>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
>> > -I/home/jyoung/WRFmodel/netcdf/include
>> > /usr/bin/g++ -o ensemble_stat /lib/libm.so.6 ensemble_stat.cc
>> > ensemble_stat_conf_info.o \
>> >          -Wall -Wshadow -static  -DBLOCK4
>> >
>>
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
>> > \
>> >
>> >
>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
>> > -I/home/jyoung/WRFmodel/netcdf/include
>> >
>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
>> > -I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib
\
>> >
>> >
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
>> > -L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64/libm.so
>> >
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
>> > -L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib
\
>> >          -lvx_stat_out \
>> >          -lvx_statistics \
>> >          -lvx_shapedata \
>> >          -lvx_gsl_prob \
>> >          -lvx_analysis_util \
>> >          -lvx_data2d_factory \
>> >          -lvx_data2d_nc_met \
>> >          -lvx_data2d_grib  \
>> >          -lvx_data2d_nc_pinterp \
>> >          -lvx_data2d \
>> >          -lvx_nc_util \
>> >          -lvx_grid \
>> >          -lvx_config \
>> >          -lvx_cal \
>> >          -lvx_util \
>> >          -lvx_math \
>> >          -lvx_color \
>> >          -lvx_log \
>> >          -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \
>> >
>> > /usr/bin/ld: attempted static link of dynamic object
`/lib/libm.so.6'
>> > collect2: ld returned 1 exit status
>> >
>> >
>> > On Tue, Feb 12, 2013 at 12:33 PM, John Halley Gotway via RT <
>> > met_help at ucar.edu> wrote:
>> >
>> >> Ronald,
>> >>
>> >> We had this same issue come up during our recent MET tutorial.
MET
>> >> expects to find the file libm.a, but instead you have libm.so.
Here's
>> the
>> >> fix:
>> >>
>> >> (1)  Edit the Makefile and put the full path to the .so file
>> >>       (example: /lib64/libm.so) on the compiler command line
>> >>       with the .o files
>> >>
>> >> (2)  If the libm.so file is in a wierd place in the filesystem
>> >>       (unlikely) then you need to add the directory containing
it
>> >>       to the LD_RUN_PATH environment variable.  (That's for the
>> >>       gnu family of compilers ... the environment variable might
>> >>       be called something different for pgi or whatever.)
>> >>
>> >> (3)  Compile.
>> >>
>> >> Just let me know if you continue to experience problems.
>> >>
>> >> Thanks,
>> >> John
>> >>
>> >>>
>> >>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229 >
>> >>>
>> >>> Thanks for the quick response over the weekend.
>> >>>
>> >>> Following your recommendation and using the referenced link
below
>> >>> was incredibly helpful.  I have been able to install all of
MET's
>> >>> dependent
>> >>> libraries.  When running the make on MET; however, I get the
following
>> >>> error message in the make log.
>> >>>
>> >>> *** Finished Making the vx_analysis_util Library ***
>> >>>
>> >>> /usr/bin/g++ ensemble_stat_conf_info.cc -Wall -Wshadow -static
>>  -DBLOCK4
>> >>> -c
>> >>>
>> >>
>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
>> >>>
>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
>> >>> -I/home/jyoung/WRFmodel/netcdf/include
>> >>> /usr/bin/g++ -o ensemble_stat ensemble_stat.cc
>> ensemble_stat_conf_info.o
>> >> \
>> >>>          -Wall -Wshadow -static  -DBLOCK4
>> >>>
>> >>
>>
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
>> >>> \
>> >>>
>> >>>
>> >>
>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
>> >>> -I/home/jyoung/WRFmodel/netcdf/include
>> >>>
>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
>> >>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
>> >>>
>> >>>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
>> >>> -L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64
>> >>>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
>> >>>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
>> >>>          -lvx_stat_out \
>> >>>          -lvx_statistics \
>> >>>          -lvx_shapedata \
>> >>>          -lvx_gsl_prob \
>> >>>          -lvx_analysis_util \
>> >>>          -lvx_data2d_factory \
>> >>>          -lvx_data2d_nc_met \
>> >>>          -lvx_data2d_grib  \
>> >>>          -lvx_data2d_nc_pinterp \
>> >>>          -lvx_data2d \
>> >>>          -lvx_nc_util \
>> >>>          -lvx_grid \
>> >>>          -lvx_config \
>> >>>          -lvx_cal \
>> >>>          -lvx_util \
>> >>>          -lvx_math \
>> >>>          -lvx_color \
>> >>>          -lvx_log \
>> >>>          -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \
>> >>>
>> >>> /usr/bin/ld: cannot find -lm
>> >>> collect2: ld returned 1 exit status
>> >>>
>> >>> Is libm associated with netcdf?  netcdf was installed by the
system
>> >>> administrator so I did not install this personally, but I will
say
>> that
>> >>> WRF
>> >>> model is functional.  Running locate on the machine I did find
>> libm.so*
>> >>> within the /usr/lib64, which you'll note I added to the
user_defs.mk.
>> >>   Do
>> >>> you think I need to install my own netcdf distribution?
>> >>>
>> >>> Thanks,
>> >>>
>> >>>
>> >>> On Sun, Feb 10, 2013 at 1:16 PM, John Halley Gotway via RT <
>> >>> met_help at ucar.edu> wrote:
>> >>>
>> >>>> Ronald,
>> >>>>
>> >>>> I believe that BUFRLIB is FORTRAN-77.  So try using pgf77
instead.
>>  I'd
>> >>>> recommend following the instructions for compiling BUFRLIB,
and the
>> >>>> other
>> >>>> required libraries for MET, posted here:
>> >>>>
>> >>>>
>> >>>>
>> >>
>>
http://www.dtcenter.org/met/users/support/online_tutorial/METv4.0/compilation/req_libs.php
>> >>>>
>> >>>> Hope that helps.
>> >>>>
>> >>>> Thanks,
>> >>>> John Halley Gotway
>> >>>>
>> >>>>>
>> >>>>> Sun Feb 10 10:30:40 2013: Request 60229 was acted upon.
>> >>>>> Transaction: Ticket created by ronald.leeper at noaa.gov
>> >>>>>         Queue: met_help
>> >>>>>       Subject: BUFRLIB Install Problem
>> >>>>>         Owner: Nobody
>> >>>>>    Requestors: ronald.leeper at noaa.gov
>> >>>>>        Status: new
>> >>>>>   Ticket <URL:
>> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> Hey,
>> >>>>>
>> >>>>> I have been trying to install bufrlib, but I cannot seem to
get
>> >>>>> "preproc.sh" to run.  It hangs up with an
>> >>>>> "incompatible implicit declaration of built-in function" at
line 18.
>> >>>> In
>> >>>>> my
>> >>>>> bash profile I have the following settings FC=pgf90, CC=gcc
>> >>>>> and CFLAGS="-fno-builtin-string -fno-builtin-math
-fno-builtin-exit
>> >>>>> -fno-builtin-stdio".
>> >>>>>
>> >>>>> Any suggestions?
>> >>>>>
>> >>>>> --
>> >>>>> Ronald David Leeper
>> >>>>> Research Associate, CICS-NC
>> >>>>> Quality Assurance Specialist, USCRN
>> >>>>> National Climatic Data Center (NCDC)
>> >>>>> 151 Patton Ave.
>> >>>>> Asheville, NC 28801-5001
>> >>>>> ronald.leeper at noaa.gov
>> >>>>> leeperd at gmail.com
>> >>>>> Office:(828)257-3185
>> >>>>> Fax:(828)271-4022
>> >>>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>
>> >>>
>> >>> --
>> >>> Ronald David Leeper
>> >>> Research Associate, CICS-NC
>> >>> Quality Assurance Specialist, USCRN
>> >>> National Climatic Data Center (NCDC)
>> >>> 151 Patton Ave.
>> >>> Asheville, NC 28801-5001
>> >>> ronald.leeper at noaa.gov
>> >>> leeperd at gmail.com
>> >>> Office:(828)257-3185
>> >>> Fax:(828)271-4022
>> >>>
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>
>
> --
> Ronald David Leeper
> Research Associate, CICS-NC
> Quality Assurance Specialist, USCRN
> National Climatic Data Center (NCDC)
> 151 Patton Ave.
> Asheville, NC 28801-5001
> ronald.leeper at noaa.gov
> leeperd at gmail.com
> Office:(828)257-3185
> Fax:(828)271-4022
>



--
Ronald David Leeper
Research Associate, CICS-NC
Quality Assurance Specialist, USCRN
National Climatic Data Center (NCDC)
151 Patton Ave.
Asheville, NC 28801-5001
ronald.leeper at noaa.gov
leeperd at gmail.com
Office:(828)257-3185
Fax:(828)271-4022

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #60229] BUFRLIB Install Problem
From: John Halley Gotway
Time: Wed Feb 13 15:26:48 2013

I'm sorry you're having such a difficult time with this.  Typically it
isn't this problematic.  Let's try this - edit the top-level
user_def.mk
file by setting:

ENABLE_PB2NC           = 0

That'll disable the compilation of the PB2NC tool, the only tool in
MET
that links to BUFRLIB.  Then recompile.  Please let me know if
everything
compiles without error - or if there are other problems.  Once we're
confident that everything else is working OK, we can address this
BUFRLIB
issue.

Thanks,
John

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229 >
>
> I was able to resolve the previously noted issue by including the
> libcblas.so file in the nested Makefile.  Once again though, I have
run
> into another undefined reference.  This time for BUFRLIB.  I tried
> recreating the libbufr.a file, but no luck.  I am using the
suggested PGI
> command line options noted on the web to create libbufr.a file.
>
> /opt/pgi/linux86-64/9.0-4/bin/pgf77 dumppb.f  -c
> /usr/bin/g++ -o pb2nc pb2nc.cc pb2nc_conf_info.o numpbmsg.o openpb.o
> closepb.o readpb.o dumppb.o \
>         -Wall -Wshadow  -DBLOCK4
>
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
> \
>
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
> -I/home/jyoung/WRFmodel/netcdf/include
>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
> -I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib
>  -I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
>
>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
> -L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64
>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
> -lgslcblas
> -L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib
>  -L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
>         -lvx_stat_out \
>         -lvx_statistics \
>         -lvx_shapedata \
>         -lvx_gsl_prob \
>         -lvx_analysis_util \
>         -lvx_data2d_factory \
>         -lvx_data2d_grib  \
>         -lvx_data2d_nc_met \
>         -lvx_data2d_nc_pinterp \
>         -lvx_data2d \
>         -lvx_nc_util \
>         -lvx_grid \
>         -lvx_config \
>         -lvx_pb_util \
>         -lvx_cal \
>         -lvx_util \
>         -lvx_math \
>         -lvx_color \
>         -lvx_log \
>         -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas -lbufr \
>           -lrt -lpthread -L/opt/pgi/linux86-64/9.0-4/libso
-lpgftnrtl
>
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/libbufr.a(ups.o):
> In function `ups_':
>
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/BUFRLIB/./ups.f:60:
> undefined reference to `__mth_i_dpowi'
>
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/BUFRLIB/./ups.f:82:
> undefined reference to `__mth_i_dpowi'
>
>
> On Wed, Feb 13, 2013 at 12:47 PM, Ronald Leeper - NOAA Affiliate <
> ronald.leeper at noaa.gov> wrote:
>
>> Thanks, that did the trick for this issue, but the make
unfortunately
>> wasn't able to finish.  Another error occurred with
gen_poly_mask.cc.
>>  There was a series of undefined references to cblas_* commands
within
>> the
>> libgsl.so file.  Provided below is an excerpt from the make_log.
>>
>>
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib/libgsl.so:
>> undefined reference to `cblas_ztrsv'
>>
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib/libgsl.so:
>> undefined reference to `cblas_scasum'
>>
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib/libgsl.so:
>> undefined reference to `cblas_izamax'
>>
>> The nm command does indicate these references are in deed
undefined.
>>
>> nm -g
>>
/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib/libgsl.a
>> | grep cblas_ztrsv
>> >>U cblas_ztrsv
>>
>> I'll try recompiling the gsl package again and see if this doesn't
fix
>> this issue.
>>
>> Thanks for your patience,
>>
>> On Wed, Feb 13, 2013 at 12:15 PM, John Halley Gotway via RT <
>> met_help at ucar.edu> wrote:
>>
>>> Ronald,
>>>
>>> You could also try building without the "-static" flag.  Please
try
>>> this:
>>>   - undo the Makefile changes you've made
>>>   - edit the top-level user_defs.mk file by removing the "-static"
>>> option from the CXX_FLAGS and FC_FLAGS lines.
>>>
>>> Then try recompiling, being sure to do a "make clean" first.
>>>
>>> Please let me know how that goes.
>>>
>>> Thanks,
>>> John
>>>
>>> On 02/12/2013 08:13 PM, Ronald Leeper - NOAA Affiliate via RT
wrote:
>>> >
>>> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229 >
>>> >
>>> > So I haven't had much luck with these instructions.  However, I
did
>>> get
>>> a
>>> > slightly different error message.
>>> >
>>> > For 1). I tried both LD_LIBRARY_PATH and LD_RUN_PATH with no
luck and
>>> 2). I
>>> > included "/lib/libm.so.6" in the Makefile under
>>> > /src/tools/core/ensemble_stat.
>>> >
>>> > Provided below is a segment of my make_log.txt
>>> >
>>> > Thanks for your help again,
>>> >
>>> > /usr/bin/g++ ensemble_stat_conf_info.cc -Wall -Wshadow -static
>>>  -DBLOCK4 -c
>>> >
>>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
>>> >
>>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
>>> > -I/home/jyoung/WRFmodel/netcdf/include
>>> > /usr/bin/g++ -o ensemble_stat /lib/libm.so.6 ensemble_stat.cc
>>> > ensemble_stat_conf_info.o \
>>> >          -Wall -Wshadow -static  -DBLOCK4
>>> >
>>>
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
>>> > \
>>> >
>>> >
>>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
>>> > -I/home/jyoung/WRFmodel/netcdf/include
>>> >
>>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
>>> >
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
>>> >
>>> >
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
>>> > -L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64/libm.so
>>> >
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
>>> >
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
>>> >          -lvx_stat_out \
>>> >          -lvx_statistics \
>>> >          -lvx_shapedata \
>>> >          -lvx_gsl_prob \
>>> >          -lvx_analysis_util \
>>> >          -lvx_data2d_factory \
>>> >          -lvx_data2d_nc_met \
>>> >          -lvx_data2d_grib  \
>>> >          -lvx_data2d_nc_pinterp \
>>> >          -lvx_data2d \
>>> >          -lvx_nc_util \
>>> >          -lvx_grid \
>>> >          -lvx_config \
>>> >          -lvx_cal \
>>> >          -lvx_util \
>>> >          -lvx_math \
>>> >          -lvx_color \
>>> >          -lvx_log \
>>> >          -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \
>>> >
>>> > /usr/bin/ld: attempted static link of dynamic object
`/lib/libm.so.6'
>>> > collect2: ld returned 1 exit status
>>> >
>>> >
>>> > On Tue, Feb 12, 2013 at 12:33 PM, John Halley Gotway via RT <
>>> > met_help at ucar.edu> wrote:
>>> >
>>> >> Ronald,
>>> >>
>>> >> We had this same issue come up during our recent MET tutorial.
MET
>>> >> expects to find the file libm.a, but instead you have libm.so.
>>> Here's
>>> the
>>> >> fix:
>>> >>
>>> >> (1)  Edit the Makefile and put the full path to the .so file
>>> >>       (example: /lib64/libm.so) on the compiler command line
>>> >>       with the .o files
>>> >>
>>> >> (2)  If the libm.so file is in a wierd place in the filesystem
>>> >>       (unlikely) then you need to add the directory containing
it
>>> >>       to the LD_RUN_PATH environment variable.  (That's for the
>>> >>       gnu family of compilers ... the environment variable
might
>>> >>       be called something different for pgi or whatever.)
>>> >>
>>> >> (3)  Compile.
>>> >>
>>> >> Just let me know if you continue to experience problems.
>>> >>
>>> >> Thanks,
>>> >> John
>>> >>
>>> >>>
>>> >>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229
>
>>> >>>
>>> >>> Thanks for the quick response over the weekend.
>>> >>>
>>> >>> Following your recommendation and using the referenced link
below
>>> >>> was incredibly helpful.  I have been able to install all of
MET's
>>> >>> dependent
>>> >>> libraries.  When running the make on MET; however, I get the
>>> following
>>> >>> error message in the make log.
>>> >>>
>>> >>> *** Finished Making the vx_analysis_util Library ***
>>> >>>
>>> >>> /usr/bin/g++ ensemble_stat_conf_info.cc -Wall -Wshadow -static
>>>  -DBLOCK4
>>> >>> -c
>>> >>>
>>> >>
>>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
>>> >>>
>>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
>>> >>> -I/home/jyoung/WRFmodel/netcdf/include
>>> >>> /usr/bin/g++ -o ensemble_stat ensemble_stat.cc
>>> ensemble_stat_conf_info.o
>>> >> \
>>> >>>          -Wall -Wshadow -static  -DBLOCK4
>>> >>>
>>> >>
>>>
-DMET_BASE=\"/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0\"
>>> >>> \
>>> >>>
>>> >>>
>>> >>
>>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/include
>>> >>> -I/home/jyoung/WRFmodel/netcdf/include
>>> >>>
>>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/include
>>> >>>
-I/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
>>> >>>
>>> >>>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/METv4.0/lib
>>> >>> -L/home/jyoung/WRFmodel/netcdf/lib -L/usr/lib64
>>> >>>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib/lib
>>> >>>
-L/home/leeperd/TJ_Paper/Analysis/Processing/METevaluation/metLib \
>>> >>>          -lvx_stat_out \
>>> >>>          -lvx_statistics \
>>> >>>          -lvx_shapedata \
>>> >>>          -lvx_gsl_prob \
>>> >>>          -lvx_analysis_util \
>>> >>>          -lvx_data2d_factory \
>>> >>>          -lvx_data2d_nc_met \
>>> >>>          -lvx_data2d_grib  \
>>> >>>          -lvx_data2d_nc_pinterp \
>>> >>>          -lvx_data2d \
>>> >>>          -lvx_nc_util \
>>> >>>          -lvx_grid \
>>> >>>          -lvx_config \
>>> >>>          -lvx_cal \
>>> >>>          -lvx_util \
>>> >>>          -lvx_math \
>>> >>>          -lvx_color \
>>> >>>          -lvx_log \
>>> >>>          -lm -lnetcdf_c++ -lnetcdf -lgsl -lgslcblas \
>>> >>>
>>> >>> /usr/bin/ld: cannot find -lm
>>> >>> collect2: ld returned 1 exit status
>>> >>>
>>> >>> Is libm associated with netcdf?  netcdf was installed by the
system
>>> >>> administrator so I did not install this personally, but I will
say
>>> that
>>> >>> WRF
>>> >>> model is functional.  Running locate on the machine I did find
>>> libm.so*
>>> >>> within the /usr/lib64, which you'll note I added to the
>>> user_defs.mk.
>>> >>   Do
>>> >>> you think I need to install my own netcdf distribution?
>>> >>>
>>> >>> Thanks,
>>> >>>
>>> >>>
>>> >>> On Sun, Feb 10, 2013 at 1:16 PM, John Halley Gotway via RT <
>>> >>> met_help at ucar.edu> wrote:
>>> >>>
>>> >>>> Ronald,
>>> >>>>
>>> >>>> I believe that BUFRLIB is FORTRAN-77.  So try using pgf77
instead.
>>>  I'd
>>> >>>> recommend following the instructions for compiling BUFRLIB,
and
>>> the
>>> >>>> other
>>> >>>> required libraries for MET, posted here:
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>
>>>
http://www.dtcenter.org/met/users/support/online_tutorial/METv4.0/compilation/req_libs.php
>>> >>>>
>>> >>>> Hope that helps.
>>> >>>>
>>> >>>> Thanks,
>>> >>>> John Halley Gotway
>>> >>>>
>>> >>>>>
>>> >>>>> Sun Feb 10 10:30:40 2013: Request 60229 was acted upon.
>>> >>>>> Transaction: Ticket created by ronald.leeper at noaa.gov
>>> >>>>>         Queue: met_help
>>> >>>>>       Subject: BUFRLIB Install Problem
>>> >>>>>         Owner: Nobody
>>> >>>>>    Requestors: ronald.leeper at noaa.gov
>>> >>>>>        Status: new
>>> >>>>>   Ticket <URL:
>>> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60229
>>> >>>>>
>>> >>>>>
>>> >>>>>
>>> >>>>> Hey,
>>> >>>>>
>>> >>>>> I have been trying to install bufrlib, but I cannot seem to
get
>>> >>>>> "preproc.sh" to run.  It hangs up with an
>>> >>>>> "incompatible implicit declaration of built-in function" at
line
>>> 18.
>>> >>>> In
>>> >>>>> my
>>> >>>>> bash profile I have the following settings FC=pgf90, CC=gcc
>>> >>>>> and CFLAGS="-fno-builtin-string -fno-builtin-math
>>> -fno-builtin-exit
>>> >>>>> -fno-builtin-stdio".
>>> >>>>>
>>> >>>>> Any suggestions?
>>> >>>>>
>>> >>>>> --
>>> >>>>> Ronald David Leeper
>>> >>>>> Research Associate, CICS-NC
>>> >>>>> Quality Assurance Specialist, USCRN
>>> >>>>> National Climatic Data Center (NCDC)
>>> >>>>> 151 Patton Ave.
>>> >>>>> Asheville, NC 28801-5001
>>> >>>>> ronald.leeper at noaa.gov
>>> >>>>> leeperd at gmail.com
>>> >>>>> Office:(828)257-3185
>>> >>>>> Fax:(828)271-4022
>>> >>>>>
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>
>>> >>>
>>> >>> --
>>> >>> Ronald David Leeper
>>> >>> Research Associate, CICS-NC
>>> >>> Quality Assurance Specialist, USCRN
>>> >>> National Climatic Data Center (NCDC)
>>> >>> 151 Patton Ave.
>>> >>> Asheville, NC 28801-5001
>>> >>> ronald.leeper at noaa.gov
>>> >>> leeperd at gmail.com
>>> >>> Office:(828)257-3185
>>> >>> Fax:(828)271-4022
>>> >>>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >
>>> >
>>>
>>>
>>
>>
>> --
>> Ronald David Leeper
>> Research Associate, CICS-NC
>> Quality Assurance Specialist, USCRN
>> National Climatic Data Center (NCDC)
>> 151 Patton Ave.
>> Asheville, NC 28801-5001
>> ronald.leeper at noaa.gov
>> leeperd at gmail.com
>> Office:(828)257-3185
>> Fax:(828)271-4022
>>
>
>
>
> --
> Ronald David Leeper
> Research Associate, CICS-NC
> Quality Assurance Specialist, USCRN
> National Climatic Data Center (NCDC)
> 151 Patton Ave.
> Asheville, NC 28801-5001
> ronald.leeper at noaa.gov
> leeperd at gmail.com
> Office:(828)257-3185
> Fax:(828)271-4022
>



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


More information about the Met_help mailing list