need help compiling netCDF 3.3.1 on Linux and NT4

Dear all,
I have been unable to build netcdf-3.3.1 out of the box on my Linux
and NT4 systems with GNU software. I read the FAQs but they don't seem
to answer the problems I'm having. Can anyone help me out? The error
messages are listed below.
Thanks,
Charlie

************************************************************************
* Windows NT4 with gcc
************************************************************************
Here is the error I get when attempting to compile netCDF 3.3.1 on my
NT4 system using the Cygnus gnuwin32 tools. The fortran code won't
build because it can't find a fortran compiler (which is OK, since I
don't have one for NT), but there are also problems building ncgen and
ncdump, which shouldn't require any fortran. These problems seem to
stem from the inability of the system to find a file called "values.h".
I think this caused the build script to abort before building the C++
* library.

...
Making `all' in directory /netcdf-3.3.1/src/ncgen

gcc -c -O -I../libsrc -I.  -DNDEBUG ncgentab.c
ncgen.y:92: values.h: No such file or directory
gcc: Internal compiler error: program cpp got fatal signal 33
make: *** [ncgentab.o] Error 1
make: *** [subdir_target] Error 1
make: *** [ncgen/all] Error 2

C:\netcdf-3.3.1\src>
...

Note that all the rest of the C code built correctly and links fine.
The C test programs worked fine. I just need to get the ncgen and
ncdump operators and the C++ library working for now.

************************************************************************
* Linux 2.0.0 with gcc and g77
************************************************************************
Here is the error I get when attempting to compile netCDF 3.3.1 on my
Linux system with gcc and g77. I could not get fort77 and f2c working,
so I'm stuck with g77. The C library built fine.
The fortran code doesn't seem to want * to build with g77, and  
I think that this broke the build script before getting a chance to
build the C++ library:

...
Making `all' in directory /usr/local/src/netcdf-3.3.1/src/fortran

make[2]: Entering directory `/usr/local/src/netcdf-3.3.1/src/fortran'
cc -c -O -I../libsrc  -DNDEBUG fort-attio.c
In file included from ncfortran.h:13,
                 from fort-attio.c:6:
cfortran.h:151: #error "cfortran.h:  Can't find your environment
among:    
- MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...)

- IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000

- VAX   VMS CC 3.1 and FORTRAN 5.4.

- Alpha VMS DEC C 1.3 and DEC FORTRAN 6.0.

- Alpha OSF DEC C and DEC Fortran for OSF/1 AXP Version 1.2

- Apollo DomainOS 10.2 (sys5.3) with f77 10.7 and cc 6.7.

- CRAY

- NEC SX-4 SUPER-UX

- CONVEX

- Sun

- PowerStation Fortran with Visual C++

- HP9000s300/s700/s800 Latest test with: HP-UX A.08.07 A 9000/730

- LynxOS: cc or gcc with f2c.

- VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77.

-            f77 with vcc works; but missing link magic for f77 I/O.

-            NO fort. None of gcc, cc or vcc generate required names.

- f2c    : Use #define    f2cFortran, or cc -Df2cFortran

- NAG f90: Use #define NAGf90Fortran, or cc -DNAGf90Fortran

- Absoft UNIX F77: Use #define AbsoftUNIXFortran or cc -DAbsoftUNIXFortran"
make[2]: *** [fort-attio.o] Error 1
make[2]: Leaving directory `/usr/local/src/netcdf-3.3.1/src/fortran'
make[1]: *** [subdir_target] Error 1
make[1]: Leaving directory `/usr/local/src/netcdf-3.3.1/src'
make: *** [fortran/all] Error 2
...

-- 
Charlie Zender        Voice, FAX: (303) 497-1612, 497-1324 
NCAR ASP & CGD        E-mail: zender@xxxxxxxxxxxxx
P.O. Box 3000         URL: http://www.cgd.ucar.edu/cms/zender
Boulder CO 80307-3000 PGP: finger -l zender@xxxxxxxxxxxxxxxxxxxxx


  • 1997 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: