[Met_help] [rt.rap.ucar.edu #92248] History for MET compilation error on PB2NC

John Halley Gotway via RT met_help at ucar.edu
Tue Sep 24 14:10:58 MDT 2019


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

Hello,
I am installing MET 8.1 for the first time and there is an error with
pb2nc; It says *Makefile:353: recipe for target 'all' failed*. I really
dont understand this. Please advise accordingly. My make.log file is hereby
attached.

Thanks,
Ikenna.


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

Subject: MET compilation error on PB2NC
From: John Halley Gotway
Time: Mon Sep 23 09:44:42 2019

Ikenna,

I see you're getting a compilation error from the pb2nc tool in MET.
That
tool links to the BUFRLIB library, which is one of the dependencies
for the
MET software.  And linking to that library is where the errors are
occurring:
   /home/ikenna/MET/MET8.1/met-
8.1.1/src/tools/other/pb2nc/pb2nc.cc:2072:
undefined reference to `ireadns_'

Based on the output of make, I'm guessing that you're linking to
BUFRLIB in
this directory:
   /home/ikenna/MET/MET8.1/external_libs/lib

So first, check to see if this file exists (and I'm guessing that it
will):
   ls /home/ikenna/MET/MET8.1/external_libs/lib/libbufr.a

I suspect that recompiling BUFRLIB with the options listed on the
following
page will do the trick:

https://dtcenter.org/met-online-tutorial-metv8-0/tutorial-
setup/compilation/required-libraries



*gcc -c -DUNDERSCORE *.cgfortran -c -DUNDERSCORE -fno-second-
underscore *.f
*.Far crv libbufr.a *.o*

Perhaps you didn't compile BUFRLIB using the -DUNDERSCORE and
-fno-second-underscore options, which would cause this type of error?

So please try recompiling BUFRLIB with these options, and then make
sure
you update the library file
in /home/ikenna/MET/MET8.1/external_libs/lib/libbufr.a.  And then try
recompiling MET... just type "make" again.  There's no need to do a
"make
clean" first.

This part of compiling MET is tricky... where C++ code needs to talk
to
FORTRAN code, and we need to get the options exactly correct for it to
work.

Hope that helps.

Thanks,
John


On Sat, Sep 21, 2019 at 10:16 AM Ikenna Orisakwe via RT
<met_help at ucar.edu>
wrote:

>
> Sat Sep 21 10:16:32 2019: Request 92248 was acted upon.
> Transaction: Ticket created by ikennacorisakwe at gmail.com
>        Queue: met_help
>      Subject: MET compilation error on PB2NC
>        Owner: Nobody
>   Requestors: ikennacorisakwe at gmail.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92248 >
>
>
> Hello,
> I am installing MET 8.1 for the first time and there is an error
with
> pb2nc; It says *Makefile:353: recipe for target 'all' failed*. I
really
> dont understand this. Please advise accordingly. My make.log file is
hereby
> attached.
>
> Thanks,
> Ikenna.
>
>

------------------------------------------------
Subject: MET compilation error on PB2NC
From: Ikenna Orisakwe
Time: Tue Sep 24 02:19:27 2019

Hello John,

Thank you so much for the guide. It has worked.
As instructed in the following link, the two lines ( highlighted
below)
were added to the appropriate section in the "compile_MET_all.sh"
script;
https://dtcenter.org/met-online-tutorial-metv8-0/tutorial-
setup/compilation/required-libraries

*gfortran -c -DUNDERSCORE -fno-second-underscore *.f *.F*
*ar crv libbufr.a *.o*

I have successfully compiled MET8.1.

Thank you for your assistance,

Ikenna

On Mon, Sep 23, 2019 at 4:44 PM John Halley Gotway via RT
<met_help at ucar.edu>
wrote:

> Ikenna,
>
> I see you're getting a compilation error from the pb2nc tool in MET.
That
> tool links to the BUFRLIB library, which is one of the dependencies
for the
> MET software.  And linking to that library is where the errors are
> occurring:
>    /home/ikenna/MET/MET8.1/met-
8.1.1/src/tools/other/pb2nc/pb2nc.cc:2072:
> undefined reference to `ireadns_'
>
> Based on the output of make, I'm guessing that you're linking to
BUFRLIB in
> this directory:
>    /home/ikenna/MET/MET8.1/external_libs/lib
>
> So first, check to see if this file exists (and I'm guessing that it
will):
>    ls /home/ikenna/MET/MET8.1/external_libs/lib/libbufr.a
>
> I suspect that recompiling BUFRLIB with the options listed on the
following
> page will do the trick:
>
>
> https://dtcenter.org/met-online-tutorial-metv8-0/tutorial-
setup/compilation/required-libraries
>
>
>
> *gcc -c -DUNDERSCORE *.cgfortran -c -DUNDERSCORE -fno-second-
underscore *.f
> *.Far crv libbufr.a *.o*
>
> Perhaps you didn't compile BUFRLIB using the -DUNDERSCORE and
> -fno-second-underscore options, which would cause this type of
error?
>
> So please try recompiling BUFRLIB with these options, and then make
sure
> you update the library file
> in /home/ikenna/MET/MET8.1/external_libs/lib/libbufr.a.  And then
try
> recompiling MET... just type "make" again.  There's no need to do a
"make
> clean" first.
>
> This part of compiling MET is tricky... where C++ code needs to talk
to
> FORTRAN code, and we need to get the options exactly correct for it
to
> work.
>
> Hope that helps.
>
> Thanks,
> John
>
>
> On Sat, Sep 21, 2019 at 10:16 AM Ikenna Orisakwe via RT
<met_help at ucar.edu
> >
> wrote:
>
> >
> > Sat Sep 21 10:16:32 2019: Request 92248 was acted upon.
> > Transaction: Ticket created by ikennacorisakwe at gmail.com
> >        Queue: met_help
> >      Subject: MET compilation error on PB2NC
> >        Owner: Nobody
> >   Requestors: ikennacorisakwe at gmail.com
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92248 >
> >
> >
> > Hello,
> > I am installing MET 8.1 for the first time and there is an error
with
> > pb2nc; It says *Makefile:353: recipe for target 'all' failed*. I
really
> > dont understand this. Please advise accordingly. My make.log file
is
> hereby
> > attached.
> >
> > Thanks,
> > Ikenna.
> >
> >
>
>

------------------------------------------------
Subject: MET compilation error on PB2NC
From: John Halley Gotway
Time: Tue Sep 24 14:10:32 2019

Ikenna,

Great!  Thanks for following up to let me know.  I'll go ahead and
resolve
this support ticket.

John

On Tue, Sep 24, 2019 at 2:19 AM Ikenna Orisakwe via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92248 >
>
> Hello John,
>
> Thank you so much for the guide. It has worked.
> As instructed in the following link, the two lines ( highlighted
below)
> were added to the appropriate section in the "compile_MET_all.sh"
script;
>
> https://dtcenter.org/met-online-tutorial-metv8-0/tutorial-
setup/compilation/required-libraries
>
> *gfortran -c -DUNDERSCORE -fno-second-underscore *.f *.F*
> *ar crv libbufr.a *.o*
>
> I have successfully compiled MET8.1.
>
> Thank you for your assistance,
>
> Ikenna
>
> On Mon, Sep 23, 2019 at 4:44 PM John Halley Gotway via RT <
> met_help at ucar.edu>
> wrote:
>
> > Ikenna,
> >
> > I see you're getting a compilation error from the pb2nc tool in
MET.
> That
> > tool links to the BUFRLIB library, which is one of the
dependencies for
> the
> > MET software.  And linking to that library is where the errors are
> > occurring:
> >    /home/ikenna/MET/MET8.1/met-
8.1.1/src/tools/other/pb2nc/pb2nc.cc:2072:
> > undefined reference to `ireadns_'
> >
> > Based on the output of make, I'm guessing that you're linking to
BUFRLIB
> in
> > this directory:
> >    /home/ikenna/MET/MET8.1/external_libs/lib
> >
> > So first, check to see if this file exists (and I'm guessing that
it
> will):
> >    ls /home/ikenna/MET/MET8.1/external_libs/lib/libbufr.a
> >
> > I suspect that recompiling BUFRLIB with the options listed on the
> following
> > page will do the trick:
> >
> >
> >
> https://dtcenter.org/met-online-tutorial-metv8-0/tutorial-
setup/compilation/required-libraries
> >
> >
> >
> > *gcc -c -DUNDERSCORE *.cgfortran -c -DUNDERSCORE -fno-second-
underscore
> *.f
> > *.Far crv libbufr.a *.o*
> >
> > Perhaps you didn't compile BUFRLIB using the -DUNDERSCORE and
> > -fno-second-underscore options, which would cause this type of
error?
> >
> > So please try recompiling BUFRLIB with these options, and then
make sure
> > you update the library file
> > in /home/ikenna/MET/MET8.1/external_libs/lib/libbufr.a.  And then
try
> > recompiling MET... just type "make" again.  There's no need to do
a "make
> > clean" first.
> >
> > This part of compiling MET is tricky... where C++ code needs to
talk to
> > FORTRAN code, and we need to get the options exactly correct for
it to
> > work.
> >
> > Hope that helps.
> >
> > Thanks,
> > John
> >
> >
> > On Sat, Sep 21, 2019 at 10:16 AM Ikenna Orisakwe via RT <
> met_help at ucar.edu
> > >
> > wrote:
> >
> > >
> > > Sat Sep 21 10:16:32 2019: Request 92248 was acted upon.
> > > Transaction: Ticket created by ikennacorisakwe at gmail.com
> > >        Queue: met_help
> > >      Subject: MET compilation error on PB2NC
> > >        Owner: Nobody
> > >   Requestors: ikennacorisakwe at gmail.com
> > >       Status: new
> > >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92248
> >
> > >
> > >
> > > Hello,
> > > I am installing MET 8.1 for the first time and there is an error
with
> > > pb2nc; It says *Makefile:353: recipe for target 'all' failed*. I
really
> > > dont understand this. Please advise accordingly. My make.log
file is
> > hereby
> > > attached.
> > >
> > > Thanks,
> > > Ikenna.
> > >
> > >
> >
> >
>
>

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


More information about the Met_help mailing list