[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #QGO-808761]: netCDF make check error with gfortran and Ubuntu
- Subject: [netCDF #QGO-808761]: netCDF make check error with gfortran and Ubuntu
- Date: Thu, 18 Jun 2009 10:13:55 -0600
> Full Name: Rafael Fernandez
> Email Address: address@hidden
> 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