Hi Gerald, Thanks for your kindness. I've attached the "config.log". The way I compile was to set the environment in .bashrc, and ./configure --prefix=.... My .bashrc is like: 20 export CC=pgcc 21 export CFLAGS="-O2 -Msignextend -V" 22 export F77=pgfortran 23 export FC=pgfortran 24 export F90=pgfortran 25 export FFLAGS="-02 -w -V" 26 export CXX=pgcpp #c++(intel icpc's default) 27 export CPPFLAGS="-DNDEBUG -DpgiFortran" I couldn't make it through this way. But I just success if I compile like this: env CC=pgcc CFLAGS="-O2 -Msignextend -V" FC=pgfortran F90=pgfortran FFLAGS="-O2 -w -V" \ CXX=pgcpp CPPFLAGS="-DNDEBUG -DpgiFortran" ./configure -prefix=/..... (from http://www.pgroup.com/resources/netcdf/netcdf362_pgi90.htm)... Please let me know if you find the trick in it. Thanks! Cheers Hongyan On Thu, May 27, 2010 at 3:58 PM, Gerald Creager <gerry.creager@xxxxxxxx>wrote: > Send your config.log and let me look at it. I've spent a lot of time with > netcdf lately. > > H.Dang wrote: > >> Hi dear all, >> >> I'm still compiling netcdf-3.6.2 (./configure --prefix=... ) since the >> error message I got is like: >> >> checking for /usr/bin/nm... /usr/bin/nm -B >> checking nm flags... >> checking for C-equivalent to Fortran routine "SUB"... >> pgf90 9.0-4 64-bit target on x86-64 Linux -tp nehalem-64 >> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved. >> Copyright 2000-2009, STMicroelectronics, Inc. All Rights Reserved. >> configure: error: Could not compile conftest.f >> >> I tried to find "conftest.f" this way in directory netcdf-3.6.2: >> >> find . -name conftest.f >> >> But I can't find it. Would you please tell me where could be the right >> place this file stay? Thank you! >> -- >> Cordially, >> Hongyan >> 鸿雁 >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> netcdfgroup mailing list >> netcdfgroup@xxxxxxxxxxxxxxxx >> For list information or to unsubscribe, visit: >> http://www.unidata.ucar.edu/mailing_lists/ >> > > -- > Gerry Creager -- gerry.creager@xxxxxxxx > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 > Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 > -- Cordially, Hongyan 鸿雁
Attachment:
config.log
Description: Binary data
netcdfgroup
archives: