[Met_help] compile error w/ METv2.0

John Halley Gotway johnhg at rap.ucar.edu
Mon Aug 10 18:17:22 MDT 2009


Shane,

Great.  I'm glad that did the trick.   Yeah, I think that the NetCDF
configure script uses the GNU compilers by default unless you tell it to
do otherwise.

Just let us know if you have any questions in your use of MET.

Thanks,
John

> netcdf had built all the libs, but it had done so w/ gnu C while MET was
> using pgi C
>
> netcdf found pgi fortran compilers & even though pgi C compilers were in
> the same dir, it decided to use gnu instead
>
> after telling netcdf to use pgi C compiler & preprocessor & rebuilding,
> MET built w/o issues
>
> thank you for your time
>
>
>
> -----Original Message-----
> From: John Halley Gotway [mailto:johnhg at rap.ucar.edu]
> Sent: Monday, August 10, 2009 6:13 PM
> To: Shane Kennedy
> Cc: met_help at ucar.edu
> Subject: Re: [Met_help] compile error w/ METv2.0
>
> Shane,
>
> It looks like the linker is having trouble with your build of NetCDF.
> You
> can ignore that first set of warnings.  Those are fine.
>
> But all those undefined references are showing up because there's some
> issue with the NetCDF build in /lustre-sas1/METv2.0/NETCDF/lib.
> Specifically, it's trying to link to the files libnetcdf.a and
> libnetcdf_c++.a in that directory.
>
> Try listing out those files:
> ls /lustre-sas1/METv2.0/NETCDF/lib/libnetcdf.a
> ls /lustre-sas1/METv2.0/NETCDF/lib/libnetcdf_c++.a
> If they don't exist then that's the problem.
>
> Also, are you sure you built NetCDF using those same PGI v8.0.5
> compilers
> you're using for MET?  Please take a look at how to set the CC and CXX
> environment variables described in the "Compiling NetCDF" section on
> this
> page:
> http://www.dtcenter.org/met/users/support/online_tutorial/METv2.0/compil
> ation/req_libs.php
> You could try rebuilding NetCDF, making sure you're using those
> compilers.
>
> Thanks,
> John Halley Gotway
> johnhg at ucar.edu
>
>
>> downloaded METv2.0.20090416.tar.gz & METv2.0_patches_20090805.tar.gz
>>
>> compiled w/ PGI v8.0.5 C & fortran compilers
>>
>> built netcdf 3.6.3 w/o issues
>>
>> makefile & make log attached
>>
>> errors include:
>>
>> pgCC cfile.tab.cc -Bstatic   -c -I..
>> "cfile.tab.c", line 1355: warning: label "yyerrorlab" was declared but
>> never
>>           referenced
>>   yyerrorlab:
>>   ^
>>
>>
>>
> ../../lib/libvx_met_util.a(write_netcdf.o):/lustre-sas1/METv2.0/lib/vx_m
>> et_util/write_netcdf.cc:43: more undefined references to
>> `NcFile::add_att(char const *, char const *)' follow
>> make[3]: *** [pcp_combine] Error 2
>> make[2]: *** [all] Error 2
>> make[1]: *** [targets] Error 2
>> make: *** [all] Error 2
>> _______________________________________________
>> Met_help mailing list
>> Met_help at mailman.ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/met_help
>>
>
>
>




More information about the Met_help mailing list