Hi Kate and Gerry,
Thanks you two. I've changed my .bashrc file and log out/in and tried again .
I can finish configuration by:
./configure --prefix=....
But when I "make", I got problem again:
[h3dang@bro98 netcdf-3.6.2test]$ make
cd . && /bin/sh /brosto2/jcl_data/hdang/M3HOME/netcdf-3.6.2test/missing
--run automake-1.9 --foreign
man/Makefile.am:155: user target `netcdf.html' defined here...
/usr/share/automake-1.9/am/texibuild.am: ... overrides Automake target
`netcdf.html' defined here
man/Makefile.am:159: user target `netcdf-install.html' defined here...
/usr/share/automake-1.9/am/texibuild.am: ... overrides Automake target
`netcdf-install.html' defined here
man/Makefile.am:163: user target `netcdf-c.html' defined here...
/usr/share/automake-1.9/am/texibuild.am: ... overrides Automake target
`netcdf-c.html' defined here
man/Makefile.am:179: user target `netcdf-tutorial.html' defined here...
/usr/share/automake-1.9/am/texibuild.am: ... overrides Automake target
`netcdf-tutorial.html' defined here
man/Makefile.am:167: user target `netcdf-f77.html' defined here...
/usr/share/automake-1.9/am/texibuild.am: ... overrides Automake target
`netcdf-f77.html' defined here
man/Makefile.am:175: user target `netcdf-f90.html' defined here...
/usr/share/automake-1.9/am/texibuild.am: ... overrides Automake target
`netcdf-f90.html' defined here
man/Makefile.am:171: user target `netcdf-cxx.html' defined here...
/usr/share/automake-1.9/am/texibuild.am: ... overrides Automake target
`netcdf-cxx.html' defined here
man/Makefile.am:61: user variable `TEXI2DVI' defined here...
/usr/share/automake-1.9/am/texinfos.am: ... overrides Automake variable
`TEXI2DVI' defined here
man/Makefile.am:73: `doc_DATA' is used but `docdir' is undefined
make: *** [Makefile.in] Error 1
So far, the only way to make it successful is to add these flags and
arguments together with ./configurate.
./configurate alone seems not to read the setting in ".bashrc"....
Hongyan
On Thu, May 27, 2010 at 5:25 PM, Gerald Creager <gerry.creager@xxxxxxxx>wrote:
> Kate,
>
> Great catch. I just found that, about a minute ago and was looking again
> for Hongyan's message to respond. You're right, that will tend to cause
> some problems.
>
> gerry
>
> Kate Hedstrom wrote:
>
>> Dear Hongyan,
>>
>> Your error appears to be due to the "-02" flag in FFLAGS. That is a
>> zero-two rather than an oh-two.
>>
>> Kate
>>
>> On 05/27/2010 12:43 PM, H.Dang wrote:
>>
>>> 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). <
>>> http://www.pgroup.com/resources/netcdf/netcdf362_pgi90.htm%29.>..
>>>
>>>
>>> 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<mailto:
>>> 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 <mailto:netcdfgroup@xxxxxxxxxxxxxxxx
>>> >
>>>
>>> For list information or to unsubscribe, visit:
>>> http://www.unidata.ucar.edu/mailing_lists/
>>>
>>>
>>> -- Gerry Creager -- gerry.creager@xxxxxxxx
>>> <mailto: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
>>> 鸿雁
>>>
>>>
>>> _______________________________________________
>>> netcdfgroup mailing list
>>> netcdfgroup@xxxxxxxxxxxxxxxx
>>> For list information or to unsubscribe, visit:
>>> http://www.unidata.ucar.edu/mailing_lists/
>>>
>>
>>
>> --
>> Kate Hedström Arctic Region Supercomputing Center
>> kate@xxxxxxxx University of Alaska, Fairbanks
>> Phone: 907-450-8678
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/
>
--
Cordially,
Hongyan
鸿雁