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

Re: 20010912: Update to imcalib.f



Sean,

There appears to be a problem with your setup. I compared your
netcdf configure output versus our solaris machine here. The first problem
appears when trying to use your fortran compiler.

What we neet to check first is to make sure you are using
/opt/SUNWspro/bin/cc and f77 instead of somtheing else.

Type "which cc". It should respond /opt/SUNWspro/bin/cc.
Verify the version of cc with "cc -V". It should look something like:
> cc -V
cc: Sun WorkShop 6 2000/06/19 C 5.1 Patch 109491-02
usage: cc [ options] files.  Use 'cc -flags' for details

They type "which f77". It again should be the /opt/SUNWspro/bin compiler.
Type "f77 -V" to see the version. SHould look like:
f77 -V
f77: Sun WorkShop 6 2000/04/07 FORTRAN 77 5.1
Usage: f77 [ options ] files.  Use 'f77 -flags' for details


Now, make sure you haven't defined any other usage of the environmental 
variable FC. Type "echo $FC". it must come back with: FC: Undefined variable.
If it does not give that error, then you must "unset FC" or "unsetenv FC".

Other things to check:
Make sure /opt/SUNWspro/bin is in your path before /usr/bin and /bin. Also, make
sure "/usr/ccs/bin" is in your path. Type "which make". It must be
/usr/ccs/bin/make and not some gnu replacement.

Other than that, make sure your fortarn compiler isn't complaining about the
license being expired. You can compile a short fortran routine to test.

Steve Chiswell
Unidata User SUpport

On Thu, 13 Sep 2001, Sean D. wrote:

> Hi again,
> 
> No luck.  I'm getting the same type of error.  Here's the relevant part of
> the make all command:
> -----------------------------------------------------------------------------
> eturning to directory
> /home/hokukea/rknabb/gempak/NAWIPS-5.6a/gempak/source/netcdf-3.5.0/src
> 
> cp macros.make.def macros.make
> rm -f *.o *.a *.so *.sl *.i *.Z core  \
>     MANIFEST *.log config.cache  config.status   MANIFEST
> rm -rf SunWS_cache
> creating cache ./config.cache
> checking for top-level source-directory
> /home/hokukea/rknabb/gempak/NAWIPS-5.6a/gempak/source/netcdf-3.5.0/src
> checking for m4 preprocessor
> checking for m4... m4
> checking m4 flags... -B10000
> checking for xlc... no
> checking for c89... c89
> checking C compiler "c89"... works
> checking how to make dependencies... cc -xM
> checking for CC... CC
> checking C++ compiler "CC"... works
> checking how to run the C preprocessor... c89 -E
> checking "" as Fortran-77 compiler... failed to compile test program
> checking for f77... f77
> checking for Fortran .F compiler... 
> checking if Fortran-77 compiler handles *.F files... no
> checking for Fortran preprocessor... c89 -E
> checking user-defined Fortran-90 compiler ""... failed to compile test
> program
> configure: warning: The Fortran-90 interface will not be built
> checking for nm utility
> checking for nm... nm
> checking nm flags... 
> checking for C-equivalent to Fortran routine "SUB"... sub_
> checking for Fortran "byte"... yes
> checking for Fortran "integer*2"... yes
> checking if Fortran "byte" is C "signed char"... configure: error: Could
> not link conftestf.o and conftest.o
> *** Error code 1
> make: Fatal error: Command failed for target `lnetcdf'
> Current working directory
> /home/hokukea/rknabb/gempak/NAWIPS-5.6a/gempak/source/netcdf-3.5.0
> *** Error code 1
> make: Fatal error: Command failed for target
> `/home/hokukea/rknabb/gempak/NAWIPS-5.6a/netcdf/sol/lib/libnetcdf.a'
> Current working directory
> /home/hokukea/rknabb/gempak/NAWIPS-5.6a/gempak/source/netcdf-3.5.0
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> Current working directory
> /home/hokukea/rknabb/gempak/NAWIPS-5.6a/gempak/source
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> Current working directory /home/hokukea/rknabb/gempak/NAWIPS-5.6a/gempak
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> -----------------------------------------------------------------------------
> 
> I'm going to try to compile it on one of the other machines.  Our
> department tech (A. Hori) says that he's seen this error before but did
> get it to compile on one of the other computers.
> 
> Thanks for your continued support.  Let me know what I should try
> next.  =)
> 
> Sincerely,
> Sean Daida
> address@hidden
> 
> On Thu, 13 Sep 2001, Steve Chiswell wrote:
> 
> > Sean,
> > 
> > It looks like you downloaded the distribution tar file to
> > a directory called: /home/hokukea/rknabb/gempak/NAWIPS-5.6a.
> > 
> > First thing to check is to make sure that was an empty directory.
> > If you downloaded the distribution ontop of existing stuff, things
> > will be messed up.
> > 
> > Ok, so the build is failing when trying to build the netcdf library.
> > The problem appears to be with your F90 compiler that is being found.
> > It could be that your F90 compiler isn't working correctly.
> > Luckily, we don't need the fortran interface for NetCDF, so we can skip that
> > by adding a line to the $CONFIGDIR/Makeinc.sol:
> > 
> > NCOPT = "F90= "
> > 
> > Then, do a complete make discclean from $NAWIPS.
> > 
> > cd $NAWIPS
> > make distclean
> > 
> > Then start the build:
> > 
> > make all
> > 
> > Steve Chiswell
> > Unidata User Support
> > 
> > On Thu, 13 Sep 2001, Sean D. wrote:
> > 
> > > Hi there,
> > >
> > > I downloaded the file and the source code (I didn't keep the original
> > > sorce download).  I followed your instructions on inserting the new source
> > > file.  Then made sure the Gemenviron was okay, sourced it, and then edited
> > > the resulting env variables to make sure everything was pointing to the
> > > new distribution directory.
> > >
> > > I got the same error that I had the last time I tried the source
> > > distribution.  Here's a snippit of the relevent portions of the "make
> > > all" log (only the end portion, I can include that if you want it, but
> > > everything before what I gave you here looks like clean up commands):
> > > ----------------------------------------------------------------------
> > > Returning to directory
> > > /home/hokukea/rknabb/gempak/NAWIPS-5.6a/gempak/source/netcdf-3.5.0/src
> > >
> > > cp macros.make.def macros.make
> > > rm -f *.o *.a *.so *.sl *.i *.Z core  \
> > >     MANIFEST *.log config.cache  config.status   MANIFEST
> > > rm -rf SunWS_cache
> > > creating cache ./config.cache
> > > checking for top-level source-directory
> > > /home/hokukea/rknabb/gempak/NAWIPS-5.6a/gempak/source/netcdf-3.5.0/src
> > > checking for m4 preprocessor
> > > checking for m4... m4
> > > checking m4 flags... -B10000
> > > checking for xlc... no
> > > checking for c89... c89
> > > checking C compiler "c89"... works
> > > checking how to make dependencies... cc -xM
> > > configure: warning: Empty CXX variable
> > > configure: warning: The C++ interface will not be built
> > > checking how to run the C preprocessor... c89 -E
> > > checking for f77... f77
> > > checking for Fortran .F compiler...
> > > checking if Fortran-77 compiler handles *.F files... no
> > > checking for Fortran preprocessor... c89 -E
> > > checking "f77" as Fortran-90 compiler... failed to build test program
> > > checking for xlf90... no
> > > checking for f90... f90
> > > checking Fortran-90 compiler "f90"... works
> > > checking for nm utility
> > > checking for nm... nm
> > > checking nm flags...
> > > checking for C-equivalent to Fortran routine "SUB"... sub_
> > > checking for Fortran "byte"... yes
> > > checking for Fortran "integer*2"... yes
> > > checking if Fortran "byte" is C "signed char"... configure: error: Could
> > > not link conftestf.o and conftest.o
> > > *** Error code 1
> > > make: Fatal error: Command failed for target `lnetcdf'
> > > Current working directory
> > > /home/hokukea/rknabb/gempak/NAWIPS-5.6a/gempak/source/netcdf-3.5.0
> > > *** Error code 1
> > > make: Fatal error: Command failed for target
> > > `/home/hokukea/rknabb/gempak/NAWIPS-5.6a/netcdf/sol/lib/libnetcdf.a'
> > > Current working directory
> > > /home/hokukea/rknabb/gempak/NAWIPS-5.6a/gempak/source/netcdf-3.5.0
> > > *** Error code 1
> > > make: Fatal error: Command failed for target `all'
> > > Current working directory
> > > /home/hokukea/rknabb/gempak/NAWIPS-5.6a/gempak/source
> > > *** Error code 1
> > > make: Fatal error: Command failed for target `all'
> > > Current working directory /home/hokukea/rknabb/gempak/NAWIPS-5.6a/gempak
> > > *** Error code 1
> > > make: Fatal error: Command failed for target `all'
> > > ---------------------End of Make All run----------------------------------
> > >
> > > Any ideas?  I tried looking up suggestions on the gempak mail archives and
> > > tried some of the ideas such as modifying the Makeinc.sol and
> > > Makeinc.common, as well as making sure I was using the correct make, cc,
> > > and f77 programs.  Everything seems to be ok.
> > >
> > > Sorry to trouble you so much these past weeks.
> > >
> > > Sincerely,
> > > Sean Daida
> > > address@hidden
> > > (808)956-4593
> > >
> > >
> > > On Wed, 12 Sep 2001, Steve Chiswell wrote:
> > >
> > > >
> > > >
> > > > Sean,
> > > >
> > > > I looked in the logs and see you have downloaded both the
> > > > source and linux binary distributions for gempak.
> > > >
> > > > If you want to update your source distribution, I have attatched a
> > > > copy of $GEMPAK/source/gemlib/im/imcalib.f
> > > >
> > > > Here are the update instructions:
> > > >
> > > > 1) move your current imcalib.f routine to imcalib.f.old
> > > >
> > > > cd $GEMPAK/source/gemlib/im
> > > > mv imcalib.f imcalib.f.old
> > > >
> > > > 2) store the attatched imcalib.f routine to: 
> > > > $GEMPAK/source/gemlib/im/imcalib.f
> > > >
> > > > 3) rebuild the gemlib.a
> > > >
> > > > cd $GEMPAK/source/gemlib/im
> > > > make clean
> > > > make all
> > > > make clean
> > > >
> > > > 4) rebuild the programs and GUIs
> > > >
> > > > cd $NAWIPS
> > > > make clean
> > > > make all
> > > > make install
> > > > make clean
> > > >
> > > >
> > > > The above won't take too long since all you have to do is relink 
> > > > programs.
> > > >
> > > >
> > > > Steve Chiswell
> > > > Unidata User Support
> > > >
> > > >
> > >
> > >
> > 
> > 
> 
>