This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Shulan Liu, >Date: 11 Dec 2003 10:24:01 -0800 >From: Shulan Liu <address@hidden> >Organization: DRI >To: Steve Emmerson <address@hidden> >Subject: Re: 20031213: netcdf compiling error on Itanium2/Linux The above message contained the following: > Thank you for your previous help. I managed to compile > the netcdf3.5 by using following environment on SGI > Itanium2/Linux, with your advices of course: > > CC=gcc > FC=efc > F90=efc > CPP=ecc I would be surprised if "ecc" is a substitute for the C preprocessor, which can be invoked as "gcc -E". Are two commands equivalent? If not, then you should 1. Go to the top-level source-directory. 2. Perform steps 3 through 5 described near the end of the file INSTALL.html. 3. Ensure that the environment variable CPP is unset. 4. Perform steps 6 through 9 described near the end of the file INSTALL.html. 5. Stop here. If the two commands are equivalent, then don't do the above but continue with the following: > CFLAGS="-O" > CPPFLAGS="-DNDEBUG -DpgiFortran" > FFLAGS="-mp" > FLIBS="/usr/local/intel/compiler70/ia64/lib/libPEPCF90.a" > > However, it failed during "make test" phase, I've already attached the > test.log for your analysis. > > Also I have a naive question, since I am using gcc to compile the > netCDF c library, will it be a problem later on when I use ecc to > compile a user program that calls netcdf c library? I don't know. In general, it's best to use the same compiler. > Thank you for the help, > > Shulan Liu > Desert Research Institute ... > make[1]: Entering directory `/home1/shulan/netCDF/netcdf-3.5.0/src' > > Making `test' in directory /home1/shulan/netCDF/netcdf-3.5.0/src/libsrc > > make[2]: Entering directory `/home1/shulan/netCDF/netcdf-3.5.0/src/libsrc' > ar cru libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o ncx.o putget.o > string.o v1hpg.o v2i.o var.o > ranlib libnetcdf.a > gcc -o t_nc -O t_nc.o -L. -lnetcdf > ./t_nc > trying again > 0: 6917529027641081856 != 0 > t_nc: t_nc.c:136: testdims: Assertion `size == *sizes' failed. Well... this failure was very early in the testing. Please send me the file "make.log" from the above attempt. Regards, Steve Emmerson