[Met_help] compile error w/ METv2.0
John Halley Gotway
johnhg at rap.ucar.edu
Mon Aug 10 16:12:52 MDT 2009
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/compilation/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