[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #XNG-578851]: nf_strerror reference when compiling WRF



Looking at the first instance.
> mpif90  -w -ffree-form -ffree-line-length-none -fconvert=big-endian 
>       -frecord-marker=4     -c  -I/usr/include -I../ioapi_share diffwrf.f
It looks like the -I path is missing to where the netcdf fortran header
should be located (presumably /sci/wrf/gcc/include).
Since you set them in configure.wrf, I do not understand why they
do not appear in the mpif90 line above. In fact, the list at line 201
appears to specify a large number of -I flags that do not appear
in the mpif90 command above. Any idea why?


> Sorry, now attached two files.
> 
> In compile.log file - line 1078 error itself. I suppose it is
> compilation stage, not linking.
> In configure.wrf file - lines 201 and 219 are to set include and lib 
> libraries.
> 
> libnetcdff.a file we checked is located in /sci/wrf/gcc/lib and set in
> lines above
> 
> 
> One assumption from my side - in log in 1075 line mpif90 is used and I
> can see only /usr/include included, but not required folder. Maybe
> that's why it can't find .a file - but I can't clearly see in
> configure file where can I set that variable. Maybe lines 122,141 and
> somwhere around 310?
> 
> Would me much appreciated your guidance here or opininon where should
> I dig into.
> 
> Regards,
> Fedor.
> 
> On 4/24/19, Unidata netCDF Support <address@hidden> wrote:
> > Ok, so the code is there and accessible.
> > So let me make sure I understand. When you say this:
> >> while compiling wrf_io.f I got a lot undef references to nf_*
> > Do you mean at compile time, or at link time? Can you send me
> > a couple of the error messages to look at? Also include the 20 or
> > so lines before the error messages if possible.
> >
> >
> >>
> >> There is one T line and one U line in nm output. Seems that thats ok. And
> >> libnetcdff.a is located in lib directory mentioned in line 219 and
> >> include
> >> dir in line 201 of configure.wrf
> >>
> >> And still while compiling wrf_io.f I got a lot undef references to nf_*
> >> starting from nf_strerror_ and a lot more.
> >>
> >> Regards,
> >> Fedor Loktev.
> >> IAP RAS
> >>
> >>
> >> address@hidden> wrote:
> >>
> >> > Assuming you are under linux, let's make sure that e.g. nf_strerror
> >> > is defined in the library.
> >> > 1. Locate the netcdff.a file
> >> > 2. execute this command:
> >> >     nm netcdff.a |fgrep nf_strerror
> >> > This should show some lines one of which should have
> >> > the character 'T' indicating it is defined and is global.
> >> > If you only see lines with 'U', then it is missing.
> >> >
> >> >
> >> > > Package Version: 4.4.1
> >> > > Operating System: Ubuntu 18.04
> >> > > Hardware: Intel PCSD Server
> >> > > Description of problem: When installing WRF with netcdf and
> >> > netcdf-fortran libs appears a lot
> >> > >
> >> > > undefined references to 'nf_*' which leads to fail.
> >> > >
> >> > > netcdf.inc is built, netcdff.a is also built, wrf config file has
> >> > > right
> >> > paths to libraries. Stuck in that place for weeks.
> >> > >
> >> > >
> >> > > Regards,
> >> > > Fedor Loktev.
> >> > >
> >> > >
> >> > >
> >> >
> >> > =Dennis Heimbigner
> >> >   Unidata
> >> >
> >> >
> >> > Ticket Details
> >> > ===================
> >> > Ticket ID: XNG-578851
> >> > Department: Support netCDF
> >> > Priority: Normal
> >> > Status: Open
> >> > ===================
> >> > NOTE: All email exchanges with Unidata User Support are recorded in the
> >> > Unidata inquiry tracking system and then made publicly available
> >> > through
> >> > the web.  If you do not want to have your interactions made available
> >> > in
> >> > this way, you must let us know in each email you send to us.
> >> >
> >> >
> >> >
> >>
> >>
> >
> > =Dennis Heimbigner
> >   Unidata
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: XNG-578851
> > Department: Support netCDF
> > Priority: Normal
> > Status: Open
> > ===================
> > NOTE: All email exchanges with Unidata User Support are recorded in the
> > Unidata inquiry tracking system and then made publicly available through the
> > web.  If you do not want to have your interactions made available in this
> > way, you must let us know in each email you send to us.
> >
> >
> >
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: XNG-578851
Department: Support netCDF
Priority: Normal
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.