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

20001011: 7.7 build error on make mcx (installing netcdf?)



>From:  address@hidden
>Organization:  UVa
>Keywords:  200010111541.e9BFfL419853 McIDAS-X 7.70 netCDF

Jennie,

>It looked like everything was going okay (man, windfall is soooo
>slow compared to the new Dell!), but then I hit an error in
>netcdf/cxx.  For some reason it didn't log this into the
>makelog file (??),

The netCDF build stuff is not logged into makelog.

Because of problems building the C++ portion of the netCDF on some systems,
just last night I changed my "Notes and Warnings" file to tell people
to define CXX as nothing before building McIDAS-X.

The C shell syntax for doing this is:

setenv CXX

I am not really sure what the the Korn shell syntax for doing this is,
but it must be something like:

export CXX=

You should set this in your shell environment file (.kshrc in your case
I believe) and make sure that an 'env' listing shows that CXX is
defined as nothing before doing the build.

>but I cut and pasted the error message part:
>
>Making `all' in directory /p0/users/mcadde/mcidas7.7/netcdf/ncgen
>
>/opt/SUNWspro/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG main.c
>/opt/SUNWspro/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG load.c
>Warning: ncgentab.c is out-of-date with respect to ncgenyy.c
>Warning: It should be recreated via yacc on an OSF/1 system
>/opt/SUNWspro/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG ncgentab.c
>/opt/SUNWspro/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG escapes.c
>/opt/SUNWspro/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG getfill.c
>/opt/SUNWspro/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG init.c
>/opt/SUNWspro/bin/c89 -c -O -I../libsrc -I.  -DNDEBUG genlib.c
>/opt/SUNWspro/bin/c89 -o ncgen -O  main.o load.o ncgentab.o
>escapes.o  getfill.o init.o genlib.o ../libsrc/libnetcdf.a  
>
>Returning to directory /p0/users/mcadde/mcidas7.7/netcdf
>
>
>Making `all' in directory /p0/users/mcadde/mcidas7.7/netcdf/cxx
>
>/opt/SUNWspro/bin/CC -c -O -I../libsrc  -DNDEBUG netcdf.cc
>/opt/SUNWspro/bin/CC -c -O -I../libsrc  -DNDEBUG ncvalues.cc
>"./SunWS_cache/CC_state", line 3: Error: ";" not allowed here.
>** Assertion ** : 0
>(/export/sambox/zephyr/builds/test1214/sparc-S2/lang/cafe/resources/cdr/src/c_
> dataparse.cc: 763)
>*** Error code 251
>make: Fatal error: Command failed for target `ncvalues.o'
>Current working directory /p0/users/mcadde/mcidas7.7/netcdf/cxx
>*** Error code 1
>make: Fatal error: Command failed for target `subdir_target'
>Current working directory /p0/users/mcadde/mcidas7.7/netcdf
>*** Error code 1
>make: Fatal error: Command failed for target `cxx/all'
>Current working directory /p0/users/mcadde/mcidas7.7/netcdf
>*** Error code 1
>make: Fatal error: Command failed for target
>`../netcdf/libsrc/libnetcdf.a'

>Now what?

At the point you are now, you should:

<setup the CXX environment definition and make sure it is active in your 
session>
cd mcidas7.7/netcdf
make distclean
cd ~/mcidas7.7/src
make mcx

The netCDF should be rebuilt without the C++ interface and things should
proceed.

Tom
--
+-----------------------------------------------------------------------------+
* Tom Yoksas                                             UCAR Unidata Program *
* (303) 497-8642 (last resort)                                  P.O. Box 3000 *
* address@hidden                                   Boulder, CO 80307 *
* Unidata WWW Service                             http://www.unidata.ucar.edu/*
+-----------------------------------------------------------------------------+


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.