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

Re: 20000321: netcdf installation problems: o32 vs. n32



Pawel,

> To: address@hidden
> cc: address@hidden
> From: Pawel Schlichtholz <address@hidden>
> Subject: netcdf installation problems
> Organization: .
> Keywords: 200003210910.CAA24540

In the above message, you wrote:

> I have tried to install the netcdf library from the unpacked file
> netcdf-3.5-beta2.tar.Z 
> I executed begining from my home directory:
> cd ~/netcdf/f90
> cp getfiles/netcdf-3.5-beta2.tar.Z .
> gzip -cd netcdf-3.5-beta2.tar.Z | tar -xvf -
> cd netcdf-3.5/src
> setenv CC /bin/c89
> setenv CPPFLAGS "-DNDEBUG"
> setenv CFLAGS "-O"
> setenv FC /bin/f90
> setenv FFLAGS "-O"
> setenv CXX /bin/CC
> ./configure > & ! configure.log
> make
> 
> In the file configure.log there is an error of linking
> and make did not start with message cannot get macros.make for including
> 
> Could you help me ? I attach below the items you require
> 
> Best regards 
> 
> 
> Pawel Schlichtholz 
> 
> 
> Items:
> 
> A. uname -a >
> IRIX64 kliper 6.2 03131016 IP19
> 
> B. VERSION >
> 3.5
> 
> C.  which f90 >
> /usr/bin/f90
>   which c89
> /usr/bin/c89
>   which CC
> /usr/bin/CC
> 
> D. configure.log >
> 
> creating cache ./config.cache
> checking for m4 preprocessor
> checking for m4... m4
> checking m4 flags... -B10000
> checking user-defined C compiler "/bin/c89"
> checking C compiler... works
> checking how to make dependencies... cc -M
> checking for /bin/CC... /bin/CC
> checking C++ compiler "/bin/CC"... works
> checking how to run the C preprocessor... /bin/c89 -E
> checking user-defined Fortran compiler "/bin/f90"... works
> checking for Fortran .F compiler...
> checking if Fortran compiler handles *.F files... no
> checking for Fortran preprocessor... /bin/c89 -E
> checking for C-equivalent to Fortran routine "SUB"... sub_
> checking for Fortran "byte"... no
> checking for Fortran "integer*1"... yes
> checking for Fortran "integer*2"... yes
> checking if Fortran "integer*1" is C "signed char"... configure: error:
> Could no
> t link conftestf.o and conftest.o
> 
> E. config.log >
...
> configure:1663: checking if Fortran "integer*1" is C "signed char"
> configure:1672: /bin/c89 -c -DNDEBUG -O conftest.c
> configure:1674: /bin/f90 -O -c conftestf.f
> configure:1676: /bin/f90 -o conftest -O  conftestf.o conftest.o
> ld32: FATAL 12: Expecting n32 objects: conftest.o is o32.

It appears that your "c89" compiler creates "o32" object files but your
"f90" creates "n32" object files.  You must decide which type of object
file you want and force only that type to be created.

Try the following:

    1.  Go to the top-level source directory.

    2.  Perform steps 3 through 5 near the end of the INSTALL file.

    3.  Set compilation flags in the environment variables to force one
        type of object file, e.g.

            setenv CFLAGS "-O -n32"
            setenv FFLAGS "-O -n32"

        or

            setenv CFLAGS "-O -o32"
            setenv FFLAGS "-O -o32"

    4.  Perform steps 6 through 9 near the end of the INSTALL file.

Please let me know if this helps.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>