[Met_help] [rt.rap.ucar.edu #62885] History for unable to compile MET code

John Halley Gotway via RT met_help at ucar.edu
Wed Sep 4 09:58:30 MDT 2013


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

I am unable to successfully compile the MET code. Could you take a quick look at my make.log file (attached) and give me one or more hints on what to look at next ? I am probably missing a simple thing but I have no idea what it is. My user_defs.mk file is also attached.

"basic" and "libcode" appear to compile fine. Trouble starts when compiling "tools". The first (?) sign of trouble in the make.log file is on line 518 : 

/tmp/ccG0o3ze.o: In function `main':
ensemble_stat.cc:(.text+0x15): undefined reference to `std::set_new_handler(void (*)())'

Another ~5500 similar lines of undefined references follow the above. The compilation of the particular tool then halts with (line 6044) :

collect2: ld returned 1 exit status
make[4]: *** [ensemble_stat] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

Additional notes:
- METv4.1 with METv4.1_patches_20130827.tar.gz applied
- executed "make clean" before doing make

Thanks,
Pieter






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

Subject: Re: [rt.rap.ucar.edu #62885] unable to compile MET code
From: John Halley Gotway
Time: Tue Sep 03 10:38:30 2013

Pieter,

You're using the GNU-C compiler where the GNU-C++ compiler is
required.  Please try switching "gcc" to "g++" on the "CXX" line of
user_defs.mk:
    CXX = /usr/bin/g++

And then try recompiling.

Thanks,
John Halley Gotway
met_help at ucar.edu

On 09/03/2013 10:35 AM, Pieter J Versavel via RT wrote:
>
> Tue Sep 03 10:35:09 2013: Request 62885 was acted upon.
> Transaction: Ticket created by pieter_versavel at yahoo.com
>         Queue: met_help
>       Subject: unable to compile MET code
>         Owner: Nobody
>    Requestors: pieter_versavel at yahoo.com
>        Status: new
>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>
>
> I am unable to successfully compile the MET code. Could you take a
quick look at my make.log file (attached) and give me one or more
hints on what to look at next ? I am probably missing a simple thing
but I have no idea what it is. My user_defs.mk file is also attached.
>
> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling "tools". The first (?) sign of trouble in the make.log file
is on line 518 :
>
> /tmp/ccG0o3ze.o: In function `main':
> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void (*)())'
>
> Another ~5500 similar lines of undefined references follow the
above. The compilation of the particular tool then halts with (line
6044) :
>
> collect2: ld returned 1 exit status
> make[4]: *** [ensemble_stat] Error 1
> make[3]: *** [all] Error 2
> make[2]: *** [all] Error 2
> make[1]: *** [all] Error 2
> make: *** [all] Error 2
>
> Additional notes:
> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
> - executed "make clean" before doing make
>
> Thanks,
> Pieter
>
>
>
>
>
>
>
> I am unable to successfully compile the MET code. Could you take a
quick look at
> my make.log file (attached) and give me one or more hints on what to
look at
> next ? I am probably missing a simple thing but I have no idea what
it is. My
> user_defs.mk file is also attached.
>
> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling
> "tools". The first (?) sign of trouble in the make.log file is on
line 518 :
>
> /tmp/ccG0o3ze.o: In function `main':
> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void
> (*)())'
>
> Another ~5500 similar lines of undefined references follow the
above. The
> compilation of the particular tool then halts with (line 6044) :
>
> collect2: ld returned 1 exit status
> make[4]: *** [ensemble_stat] Error 1
> make[3]: *** [all] Error 2
> make[2]: *** [all] Error 2
> make[1]: *** [all] Error 2
> make: *** [all] Error 2
>
> Additional notes:
> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
> - executed "make clean" before doing make
>
> Thanks,
> Pieter
>
>
>
>
>
>
>

------------------------------------------------
Subject: unable to compile MET code
From: Pieter J Versavel
Time: Tue Sep 03 11:40:01 2013

John,

Thanks for the quick response. I made the change as you suggested. Now
I get "undefined reference" errors related to netcdf…

The NetCDF package installed is v4.1.1. Since the machine also has two
other NetCDF libraries that came with UV-CDAT. I modified the
user_defs.mk to point to those NetCDF libraries, but also got
"undefined reference" errors.

Based on the new make.log file output, what else could I try ?

thanks,
Pieter


------------------------------------------------
Subject: unable to compile MET code
From: Pieter J Versavel
Time: Tue Sep 03 11:40:01 2013




On Sep 3, 2013, at 9:38 AM, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:

Pieter,

You're using the GNU-C compiler where the GNU-C++ compiler is
required.  Please try switching "gcc" to "g++" on the "CXX" line of
user_defs.mk:
   CXX = /usr/bin/g++

And then try recompiling.

Thanks,
John Halley Gotway
met_help at ucar.edu

On 09/03/2013 10:35 AM, Pieter J Versavel via RT wrote:
>
> Tue Sep 03 10:35:09 2013: Request 62885 was acted upon.
> Transaction: Ticket created by pieter_versavel at yahoo.com
>        Queue: met_help
>      Subject: unable to compile MET code
>        Owner: Nobody
>   Requestors: pieter_versavel at yahoo.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>
>
> I am unable to successfully compile the MET code. Could you take a
quick look at my make.log file (attached) and give me one or more
hints on what to look at next ? I am probably missing a simple thing
but I have no idea what it is. My user_defs.mk file is also attached.
>
> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling "tools". The first (?) sign of trouble in the make.log file
is on line 518 :
>
> /tmp/ccG0o3ze.o: In function `main':
> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void (*)())'
>
> Another ~5500 similar lines of undefined references follow the
above. The compilation of the particular tool then halts with (line
6044) :
>
> collect2: ld returned 1 exit status
> make[4]: *** [ensemble_stat] Error 1
> make[3]: *** [all] Error 2
> make[2]: *** [all] Error 2
> make[1]: *** [all] Error 2
> make: *** [all] Error 2
>
> Additional notes:
> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
> - executed "make clean" before doing make
>
> Thanks,
> Pieter
>
>
>
>
>
>
>
> I am unable to successfully compile the MET code. Could you take a
quick look at
> my make.log file (attached) and give me one or more hints on what to
look at
> next ? I am probably missing a simple thing but I have no idea what
it is. My
> user_defs.mk file is also attached.
>
> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling
> "tools". The first (?) sign of trouble in the make.log file is on
line 518 :
>
> /tmp/ccG0o3ze.o: In function `main':
> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void
> (*)())'
>
> Another ~5500 similar lines of undefined references follow the
above. The
> compilation of the particular tool then halts with (line 6044) :
>
> collect2: ld returned 1 exit status
> make[4]: *** [ensemble_stat] Error 1
> make[3]: *** [all] Error 2
> make[2]: *** [all] Error 2
> make[1]: *** [all] Error 2
> make: *** [all] Error 2
>
> Additional notes:
> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
> - executed "make clean" before doing make
>
> Thanks,
> Pieter
>
>
>
>
>
>
>



------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #62885] unable to compile MET code
From: John Halley Gotway
Time: Tue Sep 03 11:46:33 2013

Pieter,

You're compiling against NetCDF v4.1.1 which is built upon HDF5.  MET
still makes use of the "classic" NetCDF format, not the "enhanced"
data model that is available in NetCDF version 4.  While NetCDF
4 can be configured in a way to work with MET... it'd probably be
easier to build MET against a NetCDF version 3 build.  You could check
on your system to see if NetCDF 3 is available anywhere.  If
so, updated user_defs.mk to point to it.  If not, you can easily
compile it locally using the instructions listed here:
    http://www.dtcenter.org/met/users/support/online_tutorial/METv4.0/compilation/req_libs.php

Thanks,
John


On 09/03/2013 11:40 AM, Pieter J Versavel via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>
> John,
>
> Thanks for the quick response. I made the change as you suggested.
Now I get "undefined reference" errors related to netcdf…
>
> The NetCDF package installed is v4.1.1. Since the machine also has
two other NetCDF libraries that came with UV-CDAT. I modified the
user_defs.mk to point to those NetCDF libraries, but also got
"undefined reference" errors.
>
> Based on the new make.log file output, what else could I try ?
>
> thanks,
> Pieter
>
>
>
>
>
>
>
> On Sep 3, 2013, at 9:38 AM, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:
>
> Pieter,
>
> You're using the GNU-C compiler where the GNU-C++ compiler is
required.  Please try switching "gcc" to "g++" on the "CXX" line of
user_defs.mk:
>     CXX = /usr/bin/g++
>
> And then try recompiling.
>
> Thanks,
> John Halley Gotway
> met_help at ucar.edu
>
> On 09/03/2013 10:35 AM, Pieter J Versavel via RT wrote:
>>
>> Tue Sep 03 10:35:09 2013: Request 62885 was acted upon.
>> Transaction: Ticket created by pieter_versavel at yahoo.com
>>         Queue: met_help
>>       Subject: unable to compile MET code
>>         Owner: Nobody
>>    Requestors: pieter_versavel at yahoo.com
>>        Status: new
>>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>>
>>
>> I am unable to successfully compile the MET code. Could you take a
quick look at my make.log file (attached) and give me one or more
hints on what to look at next ? I am probably missing a simple thing
but I have no idea what it is. My user_defs.mk file is also attached.
>>
>> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling "tools". The first (?) sign of trouble in the make.log file
is on line 518 :
>>
>> /tmp/ccG0o3ze.o: In function `main':
>> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void (*)())'
>>
>> Another ~5500 similar lines of undefined references follow the
above. The compilation of the particular tool then halts with (line
6044) :
>>
>> collect2: ld returned 1 exit status
>> make[4]: *** [ensemble_stat] Error 1
>> make[3]: *** [all] Error 2
>> make[2]: *** [all] Error 2
>> make[1]: *** [all] Error 2
>> make: *** [all] Error 2
>>
>> Additional notes:
>> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
>> - executed "make clean" before doing make
>>
>> Thanks,
>> Pieter
>>
>>
>>
>>
>>
>>
>>
>> I am unable to successfully compile the MET code. Could you take a
quick look at
>> my make.log file (attached) and give me one or more hints on what
to look at
>> next ? I am probably missing a simple thing but I have no idea what
it is. My
>> user_defs.mk file is also attached.
>>
>> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling
>> "tools". The first (?) sign of trouble in the make.log file is on
line 518 :
>>
>> /tmp/ccG0o3ze.o: In function `main':
>> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void
>> (*)())'
>>
>> Another ~5500 similar lines of undefined references follow the
above. The
>> compilation of the particular tool then halts with (line 6044) :
>>
>> collect2: ld returned 1 exit status
>> make[4]: *** [ensemble_stat] Error 1
>> make[3]: *** [all] Error 2
>> make[2]: *** [all] Error 2
>> make[1]: *** [all] Error 2
>> make: *** [all] Error 2
>>
>> Additional notes:
>> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
>> - executed "make clean" before doing make
>>
>> Thanks,
>> Pieter
>>
>>
>>
>>
>>
>>
>>
>
>

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #62885] unable to compile MET code
From: Pieter J Versavel
Time: Tue Sep 03 12:49:58 2013

John,

I haven't compiled NetCDF myself before. Which package do you
recommend I compile ? There seems to be a lot of them to choose from:

http://www.unidata.ucar.edu/downloads/netcdf/index.jsp
and
http://www.unidata.ucar.edu/downloads/netcdf/current/index.jsp

thanks,
Pieter


On Sep 3, 2013, at 10:46 AM, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:

Pieter,

You're compiling against NetCDF v4.1.1 which is built upon HDF5.  MET
still makes use of the "classic" NetCDF format, not the "enhanced"
data model that is available in NetCDF version 4.  While NetCDF
4 can be configured in a way to work with MET... it'd probably be
easier to build MET against a NetCDF version 3 build.  You could check
on your system to see if NetCDF 3 is available anywhere.  If
so, updated user_defs.mk to point to it.  If not, you can easily
compile it locally using the instructions listed here:
   http://www.dtcenter.org/met/users/support/online_tutorial/METv4.0/compilation/req_libs.php

Thanks,
John


On 09/03/2013 11:40 AM, Pieter J Versavel via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>
> John,
>
> Thanks for the quick response. I made the change as you suggested.
Now I get "undefined reference" errors related to netcdf…
>
> The NetCDF package installed is v4.1.1. Since the machine also has
two other NetCDF libraries that came with UV-CDAT. I modified the
user_defs.mk to point to those NetCDF libraries, but also got
"undefined reference" errors.
>
> Based on the new make.log file output, what else could I try ?
>
> thanks,
> Pieter
>
>
>
>
>
>
>
> On Sep 3, 2013, at 9:38 AM, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:
>
> Pieter,
>
> You're using the GNU-C compiler where the GNU-C++ compiler is
required.  Please try switching "gcc" to "g++" on the "CXX" line of
user_defs.mk:
>    CXX = /usr/bin/g++
>
> And then try recompiling.
>
> Thanks,
> John Halley Gotway
> met_help at ucar.edu
>
> On 09/03/2013 10:35 AM, Pieter J Versavel via RT wrote:
>>
>> Tue Sep 03 10:35:09 2013: Request 62885 was acted upon.
>> Transaction: Ticket created by pieter_versavel at yahoo.com
>>        Queue: met_help
>>      Subject: unable to compile MET code
>>        Owner: Nobody
>>   Requestors: pieter_versavel at yahoo.com
>>       Status: new
>>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>>
>>
>> I am unable to successfully compile the MET code. Could you take a
quick look at my make.log file (attached) and give me one or more
hints on what to look at next ? I am probably missing a simple thing
but I have no idea what it is. My user_defs.mk file is also attached.
>>
>> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling "tools". The first (?) sign of trouble in the make.log file
is on line 518 :
>>
>> /tmp/ccG0o3ze.o: In function `main':
>> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void (*)())'
>>
>> Another ~5500 similar lines of undefined references follow the
above. The compilation of the particular tool then halts with (line
6044) :
>>
>> collect2: ld returned 1 exit status
>> make[4]: *** [ensemble_stat] Error 1
>> make[3]: *** [all] Error 2
>> make[2]: *** [all] Error 2
>> make[1]: *** [all] Error 2
>> make: *** [all] Error 2
>>
>> Additional notes:
>> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
>> - executed "make clean" before doing make
>>
>> Thanks,
>> Pieter
>>
>>
>>
>>
>>
>>
>>
>> I am unable to successfully compile the MET code. Could you take a
quick look at
>> my make.log file (attached) and give me one or more hints on what
to look at
>> next ? I am probably missing a simple thing but I have no idea what
it is. My
>> user_defs.mk file is also attached.
>>
>> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling
>> "tools". The first (?) sign of trouble in the make.log file is on
line 518 :
>>
>> /tmp/ccG0o3ze.o: In function `main':
>> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void
>> (*)())'
>>
>> Another ~5500 similar lines of undefined references follow the
above. The
>> compilation of the particular tool then halts with (line 6044) :
>>
>> collect2: ld returned 1 exit status
>> make[4]: *** [ensemble_stat] Error 1
>> make[3]: *** [all] Error 2
>> make[2]: *** [all] Error 2
>> make[1]: *** [all] Error 2
>> make: *** [all] Error 2
>>
>> Additional notes:
>> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
>> - executed "make clean" before doing make
>>
>> Thanks,
>> Pieter
>>
>>
>>
>>
>>
>>
>>
>
>




------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #62885] unable to compile MET code
From: John Halley Gotway
Time: Tue Sep 03 13:34:19 2013

Pieter,

Looks like they've switched around the NetCDF downloads page since I
last visited.  You can grab NetCDF version 3.6.3 using this link:
    ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.6.3.tar.gz

Thanks,
John

On 09/03/2013 12:49 PM, Pieter J Versavel via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>
> John,
>
> I haven't compiled NetCDF myself before. Which package do you
recommend I compile ? There seems to be a lot of them to choose from:
>
> http://www.unidata.ucar.edu/downloads/netcdf/index.jsp
> and
> http://www.unidata.ucar.edu/downloads/netcdf/current/index.jsp
>
> thanks,
> Pieter
>
>
> On Sep 3, 2013, at 10:46 AM, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:
>
> Pieter,
>
> You're compiling against NetCDF v4.1.1 which is built upon HDF5.
MET still makes use of the "classic" NetCDF format, not the "enhanced"
data model that is available in NetCDF version 4.  While NetCDF
> 4 can be configured in a way to work with MET... it'd probably be
easier to build MET against a NetCDF version 3 build.  You could check
on your system to see if NetCDF 3 is available anywhere.  If
> so, updated user_defs.mk to point to it.  If not, you can easily
compile it locally using the instructions listed here:
>
http://www.dtcenter.org/met/users/support/online_tutorial/METv4.0/compilation/req_libs.php
>
> Thanks,
> John
>
>
> On 09/03/2013 11:40 AM, Pieter J Versavel via RT wrote:
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>>
>> John,
>>
>> Thanks for the quick response. I made the change as you suggested.
Now I get "undefined reference" errors related to netcdf…
>>
>> The NetCDF package installed is v4.1.1. Since the machine also has
two other NetCDF libraries that came with UV-CDAT. I modified the
user_defs.mk to point to those NetCDF libraries, but also got
"undefined reference" errors.
>>
>> Based on the new make.log file output, what else could I try ?
>>
>> thanks,
>> Pieter
>>
>>
>>
>>
>>
>>
>>
>> On Sep 3, 2013, at 9:38 AM, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:
>>
>> Pieter,
>>
>> You're using the GNU-C compiler where the GNU-C++ compiler is
required.  Please try switching "gcc" to "g++" on the "CXX" line of
user_defs.mk:
>>     CXX = /usr/bin/g++
>>
>> And then try recompiling.
>>
>> Thanks,
>> John Halley Gotway
>> met_help at ucar.edu
>>
>> On 09/03/2013 10:35 AM, Pieter J Versavel via RT wrote:
>>>
>>> Tue Sep 03 10:35:09 2013: Request 62885 was acted upon.
>>> Transaction: Ticket created by pieter_versavel at yahoo.com
>>>         Queue: met_help
>>>       Subject: unable to compile MET code
>>>         Owner: Nobody
>>>    Requestors: pieter_versavel at yahoo.com
>>>        Status: new
>>>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>>>
>>>
>>> I am unable to successfully compile the MET code. Could you take a
quick look at my make.log file (attached) and give me one or more
hints on what to look at next ? I am probably missing a simple thing
but I have no idea what it is. My user_defs.mk file is also attached.
>>>
>>> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling "tools". The first (?) sign of trouble in the make.log file
is on line 518 :
>>>
>>> /tmp/ccG0o3ze.o: In function `main':
>>> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void (*)())'
>>>
>>> Another ~5500 similar lines of undefined references follow the
above. The compilation of the particular tool then halts with (line
6044) :
>>>
>>> collect2: ld returned 1 exit status
>>> make[4]: *** [ensemble_stat] Error 1
>>> make[3]: *** [all] Error 2
>>> make[2]: *** [all] Error 2
>>> make[1]: *** [all] Error 2
>>> make: *** [all] Error 2
>>>
>>> Additional notes:
>>> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
>>> - executed "make clean" before doing make
>>>
>>> Thanks,
>>> Pieter
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> I am unable to successfully compile the MET code. Could you take a
quick look at
>>> my make.log file (attached) and give me one or more hints on what
to look at
>>> next ? I am probably missing a simple thing but I have no idea
what it is. My
>>> user_defs.mk file is also attached.
>>>
>>> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling
>>> "tools". The first (?) sign of trouble in the make.log file is on
line 518 :
>>>
>>> /tmp/ccG0o3ze.o: In function `main':
>>> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void
>>> (*)())'
>>>
>>> Another ~5500 similar lines of undefined references follow the
above. The
>>> compilation of the particular tool then halts with (line 6044) :
>>>
>>> collect2: ld returned 1 exit status
>>> make[4]: *** [ensemble_stat] Error 1
>>> make[3]: *** [all] Error 2
>>> make[2]: *** [all] Error 2
>>> make[1]: *** [all] Error 2
>>> make: *** [all] Error 2
>>>
>>> Additional notes:
>>> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
>>> - executed "make clean" before doing make
>>>
>>> Thanks,
>>> Pieter
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
>

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #62885] unable to compile MET code
From: Pieter J Versavel
Time: Tue Sep 03 17:23:48 2013

John,
I got netcdf and MET to compile successfully Thank you for your very
effective support !!!
Pieter


On Sep 3, 2013, at 12:34 PM, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:

Pieter,

Looks like they've switched around the NetCDF downloads page since I
last visited.  You can grab NetCDF version 3.6.3 using this link:
   ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.6.3.tar.gz

Thanks,
John

On 09/03/2013 12:49 PM, Pieter J Versavel via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>
> John,
>
> I haven't compiled NetCDF myself before. Which package do you
recommend I compile ? There seems to be a lot of them to choose from:
>
> http://www.unidata.ucar.edu/downloads/netcdf/index.jsp
> and
> http://www.unidata.ucar.edu/downloads/netcdf/current/index.jsp
>
> thanks,
> Pieter
>
>
> On Sep 3, 2013, at 10:46 AM, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:
>
> Pieter,
>
> You're compiling against NetCDF v4.1.1 which is built upon HDF5.
MET still makes use of the "classic" NetCDF format, not the "enhanced"
data model that is available in NetCDF version 4.  While NetCDF
> 4 can be configured in a way to work with MET... it'd probably be
easier to build MET against a NetCDF version 3 build.  You could check
on your system to see if NetCDF 3 is available anywhere.  If
> so, updated user_defs.mk to point to it.  If not, you can easily
compile it locally using the instructions listed here:
>
http://www.dtcenter.org/met/users/support/online_tutorial/METv4.0/compilation/req_libs.php
>
> Thanks,
> John
>
>
> On 09/03/2013 11:40 AM, Pieter J Versavel via RT wrote:
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>>
>> John,
>>
>> Thanks for the quick response. I made the change as you suggested.
Now I get "undefined reference" errors related to netcdf…
>>
>> The NetCDF package installed is v4.1.1. Since the machine also has
two other NetCDF libraries that came with UV-CDAT. I modified the
user_defs.mk to point to those NetCDF libraries, but also got
"undefined reference" errors.
>>
>> Based on the new make.log file output, what else could I try ?
>>
>> thanks,
>> Pieter
>>
>>
>>
>>
>>
>>
>>
>> On Sep 3, 2013, at 9:38 AM, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:
>>
>> Pieter,
>>
>> You're using the GNU-C compiler where the GNU-C++ compiler is
required.  Please try switching "gcc" to "g++" on the "CXX" line of
user_defs.mk:
>>    CXX = /usr/bin/g++
>>
>> And then try recompiling.
>>
>> Thanks,
>> John Halley Gotway
>> met_help at ucar.edu
>>
>> On 09/03/2013 10:35 AM, Pieter J Versavel via RT wrote:
>>>
>>> Tue Sep 03 10:35:09 2013: Request 62885 was acted upon.
>>> Transaction: Ticket created by pieter_versavel at yahoo.com
>>>        Queue: met_help
>>>      Subject: unable to compile MET code
>>>        Owner: Nobody
>>>   Requestors: pieter_versavel at yahoo.com
>>>       Status: new
>>>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>>>
>>>
>>> I am unable to successfully compile the MET code. Could you take a
quick look at my make.log file (attached) and give me one or more
hints on what to look at next ? I am probably missing a simple thing
but I have no idea what it is. My user_defs.mk file is also attached.
>>>
>>> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling "tools". The first (?) sign of trouble in the make.log file
is on line 518 :
>>>
>>> /tmp/ccG0o3ze.o: In function `main':
>>> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void (*)())'
>>>
>>> Another ~5500 similar lines of undefined references follow the
above. The compilation of the particular tool then halts with (line
6044) :
>>>
>>> collect2: ld returned 1 exit status
>>> make[4]: *** [ensemble_stat] Error 1
>>> make[3]: *** [all] Error 2
>>> make[2]: *** [all] Error 2
>>> make[1]: *** [all] Error 2
>>> make: *** [all] Error 2
>>>
>>> Additional notes:
>>> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
>>> - executed "make clean" before doing make
>>>
>>> Thanks,
>>> Pieter
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> I am unable to successfully compile the MET code. Could you take a
quick look at
>>> my make.log file (attached) and give me one or more hints on what
to look at
>>> next ? I am probably missing a simple thing but I have no idea
what it is. My
>>> user_defs.mk file is also attached.
>>>
>>> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling
>>> "tools". The first (?) sign of trouble in the make.log file is on
line 518 :
>>>
>>> /tmp/ccG0o3ze.o: In function `main':
>>> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void
>>> (*)())'
>>>
>>> Another ~5500 similar lines of undefined references follow the
above. The
>>> compilation of the particular tool then halts with (line 6044) :
>>>
>>> collect2: ld returned 1 exit status
>>> make[4]: *** [ensemble_stat] Error 1
>>> make[3]: *** [all] Error 2
>>> make[2]: *** [all] Error 2
>>> make[1]: *** [all] Error 2
>>> make: *** [all] Error 2
>>>
>>> Additional notes:
>>> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
>>> - executed "make clean" before doing make
>>>
>>> Thanks,
>>> Pieter
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
>




------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #62885] unable to compile MET code
From: John Halley Gotway
Time: Wed Sep 04 09:58:20 2013

Pieter,

Great, glad it worked out.  Sorry it was such a hassle!  We're
considering ways of streamlining the installation process in the
future - including the addition of a configure/compile option and
distributing pre-compiled binaries.

Just let us know if any more questions arise in your use of MET.

Thanks,
John

On 09/03/2013 05:23 PM, Pieter J Versavel via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>
> John,
> I got netcdf and MET to compile successfully Thank you for your very
effective support !!!
> Pieter
>
>
> On Sep 3, 2013, at 12:34 PM, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:
>
> Pieter,
>
> Looks like they've switched around the NetCDF downloads page since I
last visited.  You can grab NetCDF version 3.6.3 using this link:
>     ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.6.3.tar.gz
>
> Thanks,
> John
>
> On 09/03/2013 12:49 PM, Pieter J Versavel via RT wrote:
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>>
>> John,
>>
>> I haven't compiled NetCDF myself before. Which package do you
recommend I compile ? There seems to be a lot of them to choose from:
>>
>> http://www.unidata.ucar.edu/downloads/netcdf/index.jsp
>> and
>> http://www.unidata.ucar.edu/downloads/netcdf/current/index.jsp
>>
>> thanks,
>> Pieter
>>
>>
>> On Sep 3, 2013, at 10:46 AM, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:
>>
>> Pieter,
>>
>> You're compiling against NetCDF v4.1.1 which is built upon HDF5.
MET still makes use of the "classic" NetCDF format, not the "enhanced"
data model that is available in NetCDF version 4.  While NetCDF
>> 4 can be configured in a way to work with MET... it'd probably be
easier to build MET against a NetCDF version 3 build.  You could check
on your system to see if NetCDF 3 is available anywhere.  If
>> so, updated user_defs.mk to point to it.  If not, you can easily
compile it locally using the instructions listed here:
>>
http://www.dtcenter.org/met/users/support/online_tutorial/METv4.0/compilation/req_libs.php
>>
>> Thanks,
>> John
>>
>>
>> On 09/03/2013 11:40 AM, Pieter J Versavel via RT wrote:
>>>
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>>>
>>> John,
>>>
>>> Thanks for the quick response. I made the change as you suggested.
Now I get "undefined reference" errors related to netcdf…
>>>
>>> The NetCDF package installed is v4.1.1. Since the machine also has
two other NetCDF libraries that came with UV-CDAT. I modified the
user_defs.mk to point to those NetCDF libraries, but also got
"undefined reference" errors.
>>>
>>> Based on the new make.log file output, what else could I try ?
>>>
>>> thanks,
>>> Pieter
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Sep 3, 2013, at 9:38 AM, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:
>>>
>>> Pieter,
>>>
>>> You're using the GNU-C compiler where the GNU-C++ compiler is
required.  Please try switching "gcc" to "g++" on the "CXX" line of
user_defs.mk:
>>>     CXX = /usr/bin/g++
>>>
>>> And then try recompiling.
>>>
>>> Thanks,
>>> John Halley Gotway
>>> met_help at ucar.edu
>>>
>>> On 09/03/2013 10:35 AM, Pieter J Versavel via RT wrote:
>>>>
>>>> Tue Sep 03 10:35:09 2013: Request 62885 was acted upon.
>>>> Transaction: Ticket created by pieter_versavel at yahoo.com
>>>>         Queue: met_help
>>>>       Subject: unable to compile MET code
>>>>         Owner: Nobody
>>>>    Requestors: pieter_versavel at yahoo.com
>>>>        Status: new
>>>>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62885 >
>>>>
>>>>
>>>> I am unable to successfully compile the MET code. Could you take
a quick look at my make.log file (attached) and give me one or more
hints on what to look at next ? I am probably missing a simple thing
but I have no idea what it is. My user_defs.mk file is also attached.
>>>>
>>>> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling "tools". The first (?) sign of trouble in the make.log file
is on line 518 :
>>>>
>>>> /tmp/ccG0o3ze.o: In function `main':
>>>> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void (*)())'
>>>>
>>>> Another ~5500 similar lines of undefined references follow the
above. The compilation of the particular tool then halts with (line
6044) :
>>>>
>>>> collect2: ld returned 1 exit status
>>>> make[4]: *** [ensemble_stat] Error 1
>>>> make[3]: *** [all] Error 2
>>>> make[2]: *** [all] Error 2
>>>> make[1]: *** [all] Error 2
>>>> make: *** [all] Error 2
>>>>
>>>> Additional notes:
>>>> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
>>>> - executed "make clean" before doing make
>>>>
>>>> Thanks,
>>>> Pieter
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> I am unable to successfully compile the MET code. Could you take
a quick look at
>>>> my make.log file (attached) and give me one or more hints on what
to look at
>>>> next ? I am probably missing a simple thing but I have no idea
what it is. My
>>>> user_defs.mk file is also attached.
>>>>
>>>> "basic" and "libcode" appear to compile fine. Trouble starts when
compiling
>>>> "tools". The first (?) sign of trouble in the make.log file is on
line 518 :
>>>>
>>>> /tmp/ccG0o3ze.o: In function `main':
>>>> ensemble_stat.cc:(.text+0x15): undefined reference to
`std::set_new_handler(void
>>>> (*)())'
>>>>
>>>> Another ~5500 similar lines of undefined references follow the
above. The
>>>> compilation of the particular tool then halts with (line 6044) :
>>>>
>>>> collect2: ld returned 1 exit status
>>>> make[4]: *** [ensemble_stat] Error 1
>>>> make[3]: *** [all] Error 2
>>>> make[2]: *** [all] Error 2
>>>> make[1]: *** [all] Error 2
>>>> make: *** [all] Error 2
>>>>
>>>> Additional notes:
>>>> - METv4.1 with METv4.1_patches_20130827.tar.gz applied
>>>> - executed "make clean" before doing make
>>>>
>>>> Thanks,
>>>> Pieter
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
>

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


More information about the Met_help mailing list