Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

[netCDF #QGO-808761]: netCDF make check error with gfortran and Ubuntu



> Full Name: Rafael  Fernandez
> Email Address: rafapedro@xxxxxxxxx
> Organization: FRM-UTN
> Package Version: 4.0
> Operating System: Ubuntu 9
> Hardware:
> Description of problem: Hi,
> Following the CMAS Porting Guide 
> (http://www.cmascenter.org/help/model_docs/porting_guide.cfm?temp_id=99999) I 
> am using the following flags to install netCDF for CMAQ using Ubuntu and 
> gfortran:
> 
> export FC="gfortran"
> export CPPFLAGS="-Df2cFortran"
> 
> The configure command runs without any problem:
> 
> ./configure --prefix=/home/rafapedro/Modelos/CMAQ/lib/netCDF
> 
> But when performing the make check, the following errors appear at the end of 
> an extense "undefined reference" list:
> 
> --snip
> util.o: In function `internal_min':
> /home/rafapedro/Modelos/CMAQ/lib/netCDF/netcdf-4.0/nf_test/util.F:1277: 
> undefined reference to `min_int_'
> /home/rafapedro/Modelos/CMAQ/lib/netCDF/netcdf-4.0/nf_test/util.F:1255: 
> undefined reference to `min_schar_'
> /home/rafapedro/Modelos/CMAQ/lib/netCDF/netcdf-4.0/nf_test/util.F:1267: 
> undefined reference to `min_short_'
> collect2: ld returned 1 exit status
> make[2]: *** [nf_test] Error 1
> make[2]: Leaving directory 
> `/home/rafapedro/Modelos/CMAQ/lib/netCDF/netcdf-4.0/nf_test'
> make[1]: *** [check-am] Error 2
> make[1]: Leaving 
> direrafapedro@rafa-laptop:~/Modelos/CMAQ/lib/netCDF/netcdf-4.0$ctory 
> `/home/rafapedro/Modelos/CMAQ/lib/netCDF/netcdf-4.0/nf_test'
> make: *** [check-recursive] Error 1
> rafapedro@rafa-laptop:~/Modelos/CMAQ/lib/netCDF/netcdf-4.0$
> 
> If I run the make install, it ends succesfully, but suggest to check that the 
> make check works properly.
> 
> Can you give me a hand to solve this problem??
> 
> Rafa
> 
> 

Can you do a "make distclean" and try again, without setting CPPFLAGS to 
anything?

Please let me know if this doesn't solve your problem.

Thanks,

Ed

Ticket Details
===================
Ticket ID: QGO-808761
Department: Support netCDF
Priority: Urgent
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690