This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi, I've forwarded this to address@hidden, which is a better address for specific questions such as this. The netcdfgroup mailing list is intended for announcements to the netCDF user community and for general discussions of netCDF-related issues. Thanks. --Russ > --===============0363371648== > Content-Type: multipart/alternative; boundary=000feaf371e3103b9c048795eafb > > --000feaf371e3103b9c048795eafb > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: quoted-printable > > Hi Ted, > > Thanks for your message. I went back to config.log and got this: > > 276 PGF90-S-0034-Syntax error at or near end of line (conftest.F: 3) > 277 0 inform, 0 warnings, 1 severes, 0 fatal for main > 278 configure:4765: $? =3D 2 > 279 configure: failed program was: > 280 | program main > 281 | #ifndef __GNUC__ > 282 | choke me > 283 | #endif > 284 | > 285 | end > > 357 configure:5582: pgCC -c -DNDEBUG -DpgiFortran -D_LARGEFILE_SOURCE > conftest.cpp >&5 > 358 "conftest.cpp", line 17: error: identifier "choke" is undefined > 359 choke me > 360 ^ > 361 > 362 "conftest.cpp", line 17: warning: variable "me" was declared but never > 363 referenced > 364 choke me > 365 ^ > 366 > 367 1 error detected in the compilation of "conftest.cpp". > > 713 configure:9380: pgCC -E -DNDEBUG -DpgiFortran -D_LARGEFILE_SOURCE > conftest.cpp > 714 "conftest.cpp", line 23: error: could not open source file > "ac_nonexistent.h" > 715 #include <ac_nonexistent.h> > 716 ^ > 717 > 718 1 error detected in the compilation of "conftest.cpp". > 719 configure:9386: $? =3D 2 > 720 configure: failed program was: > > 748 "conftest.cpp", line 23: error: could not open source file > "ac_nonexistent.h" > 749 #include <ac_nonexistent.h> > 750 ^ > 751 > 752 1 error detected in the compilation of "conftest.cpp". > 753 configure:9491: $? =3D 2 > 754 configure: failed program was: > 755 | /* confdefs.h. */ > > 1050 configure:22807: error: Could not compile conftest.f > > 1350 configure: exit 1 > > But I just download the whole thing... > > Hongyan > On Thu, May 27, 2010 at 12:13 PM, Ted Mansell <address@hidden> wrote: > > > Have you checked in the config.log output to see what the full error is? > > There is some issue with the fortran compiler, which could be a number o= > f > > things. > > > > -- Ted > > > > > > On May 27, 2010, at 11:09 AM, H.Dang wrote: > > > > Hello, > >> > >> I met a problem when ./configure --prefix=3D... > >> > >> 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 > >> > >> The setting in my ~/.bashrc is: > >> > >> 18 export BIN=3DLinux2_x86pg > >> 19 > >> 20 #configuration from > >> http://www.pgroup.com/resources/netcdf/netcdf362_pgi80.htm > >> 21 export CC=3Dpgcc > >> 22 export CFLAGS=3D"-O2 -Msignextend -V" > >> 23 export F77=3Dpgf90 > >> 24 export FC=3Dpgf90 > >> 25 export F90=3Dpgf90 > >> 26 export FFLAGS=3D"-02 -w -V" > >> 27 # export CXX=3Dpgcpp > >> 28 export CXX=3DpgCC > >> 29 export CPPFLAGS=3D"-DNDEBUG -DpgiFortran -D_LARGEFILE_SOURCE" > >> >> Can anybody please tell me what's wrong with it? Thank you! > >> > >> -- > >> Cordially, > >> Hongyan > >> =E9=B8=BF=E9=9B=81 > >> _______________________________________________ > >> netcdfgroup mailing list > >> address@hidden > >> For list information or to unsubscribe, visit: > >> http://www.unidata.ucar.edu/mailing_lists/ > >> > > > > > > > --=20 > Cordially, > Hongyan > =E9=B8=BF=E9=9B=81 > > --000feaf371e3103b9c048795eafb > Content-Type: text/html; charset=UTF-8 > Content-Transfer-Encoding: quoted-printable > > Hi Ted,<br><br>Thanks for your message. I went back to config.log and got t= > his:<br><br><span style=3D"color: rgb(0, 153, 0);">=C2=A0276 PGF90-S-0034-S= > yntax error at or near end of line (conftest.F: 3)</span><br style=3D"color= > : rgb(0, 153, 0);"> > > <span style=3D"color: rgb(0, 153, 0);">=C2=A0277=C2=A0=C2=A0 0 inform,=C2= > =A0=C2=A0 0 warnings,=C2=A0=C2=A0 1 severes, 0 fatal for main</span><br sty= > le=3D"color: rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153, 0);">=C2=A0= > 278 configure:4765: $? =3D 2</span><br style=3D"color: rgb(0, 153, 0);"> > > <span style=3D"color: rgb(0, 153, 0);">=C2=A0279 configure: failed program = > was:</span><br style=3D"color: rgb(0, 153, 0);"><span style=3D"color: rgb(0= > , 153, 0);">=C2=A0280 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 program main</s= > pan><br style=3D"color: rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153, = > 0);">=C2=A0281 | #ifndef __GNUC__</span><br style=3D"color: rgb(0, 153, 0);= > "> > > <span style=3D"color: rgb(0, 153, 0);">=C2=A0282 |=C2=A0=C2=A0=C2=A0=C2=A0= > =C2=A0=C2=A0=C2=A0 choke me</span><br style=3D"color: rgb(0, 153, 0);"><spa= > n style=3D"color: rgb(0, 153, 0);">=C2=A0283 | #endif</span><br style=3D"co= > lor: rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153, 0);">=C2=A0284 |</s= > pan><br style=3D"color: rgb(0, 153, 0);"> > > <span style=3D"color: rgb(0, 153, 0);">=C2=A0285 |=C2=A0=C2=A0=C2=A0=C2=A0= > =C2=A0=C2=A0 end</span><br style=3D"color: rgb(0, 153, 0);"><br style=3D"co= > lor: rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153, 0);">=C2=A0357 conf= > igure:5582: pgCC -c=C2=A0 -DNDEBUG -DpgiFortran -D_LARGEFILE_SOURCE conftes= > t.cpp >&5</span><br style=3D"color: rgb(0, 153, 0);"> > > <span style=3D"color: rgb(0, 153, 0);">=C2=A0358 "conftest.cpp", = > line 17: error: identifier "choke" is undefined</span><br style= > =3D"color: rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153, 0);">=C2=A035= > 9=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 choke me</span><br = > style=3D"color: rgb(0, 153, 0);"> > > <span style=3D"color: rgb(0, 153, 0);">=C2=A0360=C2=A0=C2=A0=C2=A0=C2=A0=C2= > =A0=C2=A0=C2=A0=C2=A0=C2=A0 ^</span><br style=3D"color: rgb(0, 153, 0);"><s= > pan style=3D"color: rgb(0, 153, 0);">=C2=A0361 </span><br style=3D"color: r= > gb(0, 153, 0);"><span style=3D"color: rgb(0, 153, 0);">=C2=A0362 "conf= > test.cpp", line 17: warning: variable "me" was declared but = > never</span><br style=3D"color: rgb(0, 153, 0);"> > <span style=3D"color: rgb(0, 153, 0);">=C2=A0363=C2=A0=C2=A0=C2=A0=C2=A0=C2= > =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 referenced</span><br style=3D"color: rgb(= > 0, 153, 0);"><span style=3D"color: rgb(0, 153, 0);">=C2=A0364=C2=A0=C2=A0= > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 choke me</span><br style=3D"colo= > r: rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153, 0);">=C2=A0365=C2=A0= > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= > =A0=C2=A0 ^</span><br style=3D"color: rgb(0, 153, 0);"> > > <span style=3D"color: rgb(0, 153, 0);">=C2=A0366 </span><br style=3D"color:= > rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153, 0);">=C2=A0367 1 error = > detected in the compilation of "conftest.cpp".</span><br style=3D= > "color: rgb(0, 153, 0);"> > > <br style=3D"color: rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153, 0);"= > >=C2=A0713 configure:9380: pgCC -E -DNDEBUG -DpgiFortran -D_LARGEFILE_SOURC= > E conftest.cpp</span><br style=3D"color: rgb(0, 153, 0);"><span style=3D"co= > lor: rgb(0, 153, 0);">=C2=A0714 "conftest.cpp", line 23: error: c= > ould not open source file "ac_nonexistent.h"</span><br style=3D"c= > olor: rgb(0, 153, 0);"> > > <span style=3D"color: rgb(0, 153, 0);">=C2=A0715=C2=A0=C2=A0 #include <a= > c_nonexistent.h></span><br style=3D"color: rgb(0, 153, 0);"><span style= > =3D"color: rgb(0, 153, 0);">=C2=A0716=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= > =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^</span><br= > style=3D"color: rgb(0, 153, 0);"> > > <span style=3D"color: rgb(0, 153, 0);">=C2=A0717 </span><br style=3D"color:= > rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153, 0);">=C2=A0718 1 error = > detected in the compilation of "conftest.cpp".</span><br style=3D= > "color: rgb(0, 153, 0);"> > > <span style=3D"color: rgb(0, 153, 0);">=C2=A0719 configure:9386: $? =3D 2</= > span><br style=3D"color: rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153,= > 0);">=C2=A0720 configure: failed program was:</span><br style=3D"color: rg= > b(0, 153, 0);"> > <br style=3D"color: rgb(0, 153, 0);"> > <span style=3D"color: rgb(0, 153, 0);">=C2=A0748 "conftest.cpp", = > line 23: error: could not open source file "ac_nonexistent.h"</sp= > an><br style=3D"color: rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153, 0= > );">=C2=A0749=C2=A0=C2=A0 #include <ac_nonexistent.h></span><br style= > =3D"color: rgb(0, 153, 0);"> > > <span style=3D"color: rgb(0, 153, 0);">=C2=A0750=C2=A0=C2=A0=C2=A0=C2=A0=C2= > =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^<= > /span><br style=3D"color: rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153= > , 0);">=C2=A0751 </span><br style=3D"color: rgb(0, 153, 0);"><span style=3D= > "color: rgb(0, 153, 0);">=C2=A0752 1 error detected in the compilation of &= > quot;conftest.cpp".</span><br style=3D"color: rgb(0, 153, 0);"> > > <span style=3D"color: rgb(0, 153, 0);">=C2=A0753 configure:9491: $? =3D 2</= > span><br style=3D"color: rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153,= > 0);">=C2=A0754 configure: failed program was:</span><br style=3D"color: rg= > b(0, 153, 0);"> > <span style=3D"color: rgb(0, 153, 0);">=C2=A0755 | /* confdefs.h.=C2=A0 */<= > /span><br style=3D"color: rgb(0, 153, 0);"> > <br style=3D"color: rgb(0, 153, 0);"><span style=3D"color: rgb(0, 153, 0);"= > >1050 configure:22807: error: Could not compile conftest.f</span><br style= > =3D"color: rgb(0, 153, 0);"><br style=3D"color: rgb(0, 153, 0);"><span styl= > e=3D"color: rgb(0, 153, 0);">1350 configure: exit 1</span><br> > > <br>But I just download the whole thing...<br><br>Hongyan<br><div class=3D"= > gmail_quote">On Thu, May 27, 2010 at 12:13 PM, Ted Mansell <span dir=3D"ltr= > "><<a href=3D"mailto:address@hidden">address@hidden</a>><= > /span> wrote:<br> > > <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= > r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Have you checked = > in the config.log output to see what the full error is? =C2=A0There is some= > issue with the fortran compiler, which could be a number of things.<br> > > > <br> > -- Ted<div><div></div><div class=3D"h5"><br> > <br> > On May 27, 2010, at 11:09 AM, H.Dang wrote:<br> > <br> > </div></div><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt = > 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>= > <div></div><div class=3D"h5"> > Hello,<br> > <br> > I met a problem when ./configure --prefix=3D...<br> > <br> > checking for /usr/bin/nm... /usr/bin/nm -B<br> > checking nm flags...<br> > checking for C-equivalent to Fortran routine "SUB"...<br> > pgf90 9.0-4 64-bit target on x86-64 Linux -tp nehalem-64<br> > Copyright 1989-2000, The Portland Group, Inc. =C2=A0All Rights Reserved.<br= > > > Copyright 2000-2009, STMicroelectronics, Inc. =C2=A0All Rights Reserved.<br= > > > configure: error: Could not compile conftest.f<br> > <br> > The setting in my ~/.bashrc is:<br> > <br> > =C2=A018 =C2=A0export BIN=3DLinux2_x86pg<br> > =C2=A019<br> > =C2=A020 #configuration from <a href=3D"http://www.pgroup.com/resources/net= > cdf/netcdf362_pgi80.htm" target=3D"_blank">http://www.pgroup.com/resources/= > netcdf/netcdf362_pgi80.htm</a><br> > =C2=A021 =C2=A0export CC=3Dpgcc<br> > =C2=A022 =C2=A0export CFLAGS=3D"-O2 -Msignextend -V"<br> > =C2=A023 =C2=A0export F77=3Dpgf90<br> > =C2=A024 =C2=A0export FC=3Dpgf90<br> > =C2=A025 =C2=A0export F90=3Dpgf90<br> > =C2=A026 =C2=A0export FFLAGS=3D"-02 -w -V"<br> > =C2=A027 # export CXX=3Dpgcpp<br> > =C2=A028 =C2=A0export CXX=3DpgCC<br> > =C2=A029 =C2=A0export CPPFLAGS=3D"-DNDEBUG -DpgiFortran -D_LARGEFILE_S= > OURCE"<br> > <br> > Can anybody please tell me what's wrong with it? Thank you!<br> > <br> > -- <br> > Cordially,<br> > Hongyan<br> > =E9=B8=BF=E9=9B=81<br></div></div> > _______________________________________________<br> > netcdfgroup mailing list<br> > <a href=3D"mailto:address@hidden" target=3D"_blank">netcdfgro= > address@hidden</a><br> > For list information or to unsubscribe, =C2=A0visit: <a href=3D"http://www.= > unidata.ucar.edu/mailing_lists/" target=3D"_blank">http://www.unidata.ucar.= > edu/mailing_lists/</a><br> > </blockquote> > <br> > </blockquote></div><br><br clear=3D"all"><br>-- <br>Cordially,<br>Hongyan <= > br>=E9=B8=BF=E9=9B=81<br> > > --000feaf371e3103b9c048795eafb-- > > > --===============0363371648== > Content-Type: text/plain; charset="us-ascii" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > > _______________________________________________ > netcdfgroup mailing list > address@hidden > For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/m > ailing_lists/ > --===============0363371648==--