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

[Support #RAU-596814]: Problems Building NetCDF From Source



> I am having quite a bit of trouble compiling NetCDF.   Below I have included 
> the output from ./configure and make check.
> 
> 
> 
> 
> I am truing to compile on a suse linux box with the following setup:
> Linux master 2.6.8.1-suse92-osmp #5 SMP Thu Dec 23 14:22:23 EST 2004 x86_64 
> x86_64 x86_64 GNU/Linux
> 
> And ifort version 9.1
> 
> FC, F77, and F90 are all set to ifort. The LD_LIBRARY_PATH is properly set to 
> include libimf.so and other ifort library files. FFLAGS is set to "-O3 -xT 
> -ip -no-prec-div -static".  At this point I am at somewhat of a loss as to 
> why Iam seeing this error.  As a note, I am seeing the same error when trying 
> to compile version 3.6.2 of NetCDF, and I have been running "make clean" 
> before each run of ./configure and make. Thanks
> 
> Michael Bueti
> University of Rhode Island
> Graduate School of Oceanography
> 

Howdy Michael!

I am a bit stumped. Your compile problem is usually caused by a failure to 
detect what type of fortran compiler is being used, and setting the appropriate 
C pre-processor flag in config.h (pgiFortran, for the ifort compiler.)

But I see from your config.log that this *is* happening, so why can't the C 
pre-processor figure out what to do?

Could it be something to do with your system time being so different from the 
time that these files were created? I don't understand how that can happen. Did 
you not generate the makefiles with the configure script, just before running 
make on this platform?
make: Warning: File `Makefile' has modification time 9.5e+03 s in the future
Making check in f90
make[1]: Entering directory `/typhoon5/mbueti/netcdf-4.0.1/f90'
make[1]: Warning: File `Makefile' has modification time 9.5e+03 s in the future
make  check-am
make[2]: Entering directory `/typhoon5/mbueti/netcdf-4.0.1/f90'
make[2]: Warning: File `Makefile' has modification time 9.5e+03 s in the future
make[2]: Nothing to be done for `check-am'.
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Leaving directory `/typhoon5/mbueti/netcdf-4.0.1/f90'
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory `/typhoon5/mbueti/netcdf-4.0.1/f90'
Making check in fortran
make[1]: Entering directory `/typhoon5/mbueti/netcdf-4.0.1/fortran'
make[1]: Warning: File `.deps/fort-varsio.Plo' has modification time 7.6e+03 s 
in the future
make  check-am
make[2]: Entering directory `/typhoon5/mbueti/netcdf-4.0.1/fortran'
make[2]: Warning: File `.deps/fort-varsio.Plo' has modification time 7.6e+03 s 
in the future
depbase=`echo fort-attio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..     
-I../libsrc    -g -O2 -MT fort-attio.lo -MD -MP -MF $depbase.Tpo -c -o 
fort-attio.lo fort-attio.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../libsrc -g -O2 -MT 
fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c -o fort-attio.o
In file included from fort-attio.c:7:
ncfortran.h:26:42: NF_INT_IS_C_... not defined: No such file or directory
fort-attio.c:13: error: parse error before "NF_INTEGER"
fort-attio.c:13: error: parse error before '*' token



Ticket Details
===================
Ticket ID: RAU-596814
Department: Support netCDF
Priority: Normal
Status: Closed