Hi all. I'd appreciate a lot your help to fix the problem compiling Netcdf.
First of all, config.guess is unable to guess system type. I tried:
setenv CPPFLAGS -Df2cFortran and
setenv CPPFLAGS -DpgiFortran but both of them produce :
UNAME_MACHINE = SX-8R
UNAME_RELEASE = 17.1
UNAME_SYSTEM = SUPER-UX
UNAME_VERSION =
configure: error: cannot guess build type; you must specify one.
So I specified where build in the configure (for the moment without netcdf4 support):
./configure -prefix=/home/girardi/bin -disable-netcdf-4 -disable-dap -enable-fortran -enable-static -enable-shared -enable-f77 -disable-cxx -build=sx8-nec-superux Remember that I'm trying to compile the netcdf 4.1.3 and 4.1.3-rc1 version but also previous version produce similar result as follow.
make:
"v2i.c", line 46: fatal(20): identifier "NC" is undefined
NC *ncp;
^
"v2i.c", line 46: fatal(20): identifier "ncp" is undefined
NC *ncp;
^
"v2i.c", line 50: fatal(20): identifier "NC_var" is undefined
const NC_var *const varp = NC_lookupvar(ncp, varid);
^
"v2i.c", line 50: warning(144): a value of type "int" cannot be used to
initialize an entity of type "const <error-type> *const"
const NC_var *const varp = NC_lookupvar(ncp, varid);
^
"v2i.c", line 53: fatal(132): expression must have pointer-to-struct-or-union
type
return varp->ndims;
^ There was another error previous this that I think to have fixed copying onstack.h in the same folder of v2i.c (/libdispatch
) 'cause c compiler complained that it cannot find onstack.h.
Instead I compile the version netcdf-3.6.0-p1 with the patch netcdf-3.6.0-p1-NEC-patch with the following script:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bashINSTALL_PATH=/home/girardi/bin
#[SX-8]
setenv CPPFLAGS -DpgiFortran
setenv CC c++
setenv FC 'f90 -dW'
setenv F90 'f90 -dW'
setenv TEMP_LARGE /work
cd netcdf-3.6.0-p1/src
patch -p0 < netcdf-3.6.0-p1-NEC-patch
#on NEC machine patch doesn't work: fixed on machine i686-pc-linux-gnu (mounted on Samsung P500)
./configure --prefix=$INSTALL_PATH --disable-netcdf-4 --disable-dap --enable-fortran --enable-static --enable-shared --enable-f77 --disable-cxx --build=sx8-nec-superux
make
# make test# make extra_test
make install
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all. I'd appreciate a lot your help to fix the problem compiling Netcdf.
First of all, config.guess is unable to guess system type. I tried:
setenv CPPFLAGS -Df2cFortran
and
setenv CPPFLAGS -DpgiFortran
but both of them produce :
UNAME_MACHINE = SX-8R
UNAME_RELEASE = 17.1
UNAME_SYSTEM = SUPER-UX
UNAME_VERSION =
configure: error: cannot guess build type; you must specify one.
So I specified where build in the configure (for the moment without netcdf4 support):
./configure -prefix=/home/girardi/bin -disable-netcdf-4 -disable-dap -enable-fortran -enable-static -enable-shared -enable-f77 -disable-cxx -build=sx8-nec-superux
Remember that I'm trying to compile the netcdf 4.1.3 and 4.1.3-rc1 version but also previous version produce similar result as follow.
make:
"v2i.c", line 46: fatal(20): identifier "NC" is undefined
NC *ncp;
^
"v2i.c", line 46: fatal(20): identifier "ncp" is undefined
NC *ncp;
^
"v2i.c", line 50: fatal(20): identifier "NC_var" is undefined
const NC_var *const varp = NC_lookupvar(ncp, varid);
^
"v2i.c", line 50: warning(144): a value of type "int" cannot be used to
initialize an entity of type "const <error-type> *const"
const NC_var *const varp = NC_lookupvar(ncp, varid);
^
"v2i.c", line 53: fatal(132): expression must have pointer-to-struct-or-union
type
return varp->ndims;
^
There was another error previous this that I think to have fixed copying onstack.h in the same folder of v2i.c (/libdispatch
) 'cause c compiler complained that it cannot find onstack.h.
Instead I compile the version netcdf-3.6.0-p1 with the patch netcdf-3.6.0-p1-NEC-patch with the following script: