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

[netCDF #YKZ-923534]: failed configure for Netcdf



>
>
> ----- Original Message -----
> From: Unidata netCDF Support <address@hidden>
> Date: Wednesday, July 25, 2007 2:49 am
> Subject: [netCDF #YKZ-923534]: failed configure for Netcdf
> To: address@hidden
> Cc: address@hidden
>
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: Unidata netCDF Support <address@hidden>
> > > > Date: Sunday, July 22, 2007 5:18 am
> > > > Subject: [netCDF #YKZ-923534]: failed configure for Netcdf
> > > > To: address@hidden
> > > > Cc: address@hidden
> > > >
> > > > > > Dear Unidata staff,
> > > > > >
> > > > > > I have failed to configure Netcdf-3.6.2 with my LF95 Fortran
> > > > > compiler.> The diagnostic file config.log is attached. Some
> > > > > compilation tests show
> > > > > > 0 error and 0 warning, but still failure. I also tried the
> > > > > > --disable-fortran-compiler-check option (just to see), but it
> > > > > did not
> > > > > > make a difference on the outcome (apparently, compilation
> > checks> > > were> still run). This is uncharted territory on my
> > part...> > > >
> > > > > > Thank you for your help,
> > > > > >
> > > > > > Gerard
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Gerard C. Nihous, Ph.D.
> > > > > >
> > > > > > Hawaii Natural Energy Institute
> > > > > > School of Ocean and Earth Science and Technology
> > > > > > University of Hawaii at Manoa
> > > > > > 1680 East-West Road, POST 122
> > > > > > Honolulu, Hawaii 96822
> > > > > > USA
> > > > > >
> > > > > > Phone: (808)-956-2338
> > > > > > Fax: (808)-956-2336
> > > > > >
> > > > > > Email: address@hidden
> > > > > > Web: www.hnei.hawaii.edu
> > > > > >
> > > > > >
> > >
> > > >
> > > > Hawaii Natural Energy Institute
> > > > School of Ocean and Earth Science and Technology
> > > > University of Hawaii at Manoa
> > > > 1680 East-West Road, POST 122
> > > > Honolulu, Hawaii 96822
> > > > USA
> > > >
> > > > Phone: (808)-956-2338
> > > > Fax: (808)-956-2336
> > > >
> > > > Email: address@hidden
> > > > Web: www.hnei.hawaii.edu
> > > >
> > > >
> > > >
> > >
> > > Ahha! I bet that is the problem.
> > >
> > > The problem is, autoconf does not seem to have the concept of a
> > C compiler which uses .o and a fortran compiler which uses .obj!
> > >
> > > It expects them to be the same.
> > >
> > > Is there any way, I wonder, to get Lahey Fortran to use .o
> > instead of .obj?
> > >
> > > There does not seem to be a way to get gcc to use .obj, without
> > extensive modification of the makefiles of the project.
> > >
> > > Thanks,
> > >
> > > Ed
> >
> > ...I believe I have the answer. Use the microsoft C compiler on
> > your system to build netCDF, not the gcc which cygwin is finding
> > for you.
> >
> > This will generate object files with the .obj extension, and not
> > with the .o extension.
> >
> > The MS C compiler is called "cl.exe".
> >
> > You also need to have your env vars set properly in Cygwin to call
> > the MS C compiler and have it work. I am not sure what those
> > settings are. If you figure them out, please let me know.
> >
> > As you may know, there is a limited number of full-time engineers
> > working on NetCDF - just me! So we rely on users to help port
> > netCDF to new and interesting platforms, like cygwin with a
> > commercial windows fortran compiler!
> >
> > In fact, I am struggling right now to set this up in my automatic
> > testing environment. The hard part is getting all the env vars
> > correct!
> > Thanks,
> >
> > Ed
> >
> > Ticket Details
> > ===================
> > Ticket ID: YKZ-923534
> > Department: Support netCDF
> > Priority: Normal
> > Status: Open
> >
> >
>
> Hi Ed,
>
> Believe me, I appreciate the efforts of specialists like you who try to
improve a product to be used by as many users as possible. Users like me,
however, are very weak in general programming (I usually write ad hoc Fortran
codes to solve specific engineering/modeling problems); my interest in Netcdf
is that it is a building block in the architecture of available Ocean General
Circulation Models, which I would like to be able to use (a very steep software
learning curve lies ahead of me).
>
> Back to our "problem".
> 1) I couldn't find any option with LF95 to specify .o files as object files.
I believe that it would probably be as hard to do with programming as to force
gcc to generate .obj object files.
>
> 2) I didn't have cl.exe in my system until today, since this theoretically is
not free software. Yet, a web search revealed that it is imbedded in the free
Microsoft SDK suite. The download and installation placed cl.exe along the
path:
>
> E:/Program Files/Microsoft SDKs/Windows/v6.0/VC/bin
>
> 3) I then tried the following in the Cygwin shell:
>
> export CC=E:/Program Files/Microsoft SDKs/Windows/v6.0/VC/bin/cl
> export CXX=E:/Program Files/Microsoft SDKs/Windows/v6.0/VC/bin/cl
> ./configure
>
> The config file is attached. Essentially, configure does not seem to find the
file cl.exe. I had a suspicion that the spaces in the path names (between
Program and Files, for example) could be the problem. I repeated the above by
using ' or " around the two directories with a space, but the same result
occurred. Being a newcomer with Unix/Linux, I may have missed something trivial
here.
>
> Thanks,
>
> Gerard
>
>
>
>
> Gerard C. Nihous, Ph.D.
>
> Hawaii Natural Energy Institute
> School of Ocean and Earth Science and Technology
> University of Hawaii at Manoa
> 1680 East-West Road, POST 122
> Honolulu, Hawaii 96822
> USA
>
> Phone: (808)-956-2338
> Fax: (808)-956-2336
>
> Email: address@hidden
> Web: www.hnei.hawaii.edu
>
>
>
>

Howdy Gerard!

I'm sorry, but lahey fortran on windows is not one of the platforms we can
currently support at Unidata. We do not have a copy of that software.

You can keep trying the netCDF-3 snapshot release at various times over the
next few months to see if we have added support for your platform:
http://www.unidata.ucar.edu/software/netcdf/builds/snapshot/

You might also try posting this in the new netcdf-porting mailing list, but as
the list is brand new, there are no subscribers yet to read it.

Sorry I could not be of more help...

Ed

Ticket Details
===================
Ticket ID: YKZ-923534
Department: Support netCDF
Priority: Critical
Status: Closed