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

970610: building using NAG f90



Steve,

>Date: 10 Jun 1997 12:03:38 -0500 
>From: "Steve Mauget" <address@hidden>
>Organization: USDA
>To: "Steve E" <address@hidden>
>Subject: Latest info... 
>Keywords: 199706021417.IAA27579

In the above message, you wrote:

>    Did as you said in correcting the continuation line problem and it took
> care of that particular error. 
> 
>    I was just about to send an e-mail to the people at NAG about the
> apparent problem with integer and integer*2 variables when I remembered
> that my netcdf data loader program (wrnetcdf.f) also declares an integer*2
> variable which is used as an argument to NCVPT.
> 
>       integer*2 istnrec(nmon)
>       call NCVPT(ncid,ipcp,corner,edges,istnrec,ierr)
> 
> 
> So I went ahead and made install, and then compiled the program.
> The results are below, and there are no errors associated with
> the above line during the compilation stage. That is, no errors like those
> found during the compilation of ftest.f... 
> 
> 
> Error: ftest.f, line 16276: Inconsistent datatype for arg 5 in call to NCVPT
>             integer*2  sarray(times)
>             call ncvpt (ncid, sid, start, count, sarray, iret) 
> 
> I would think that any integer & integer*2 problems with the NAG
> compiler would also have made themselves evident in compiling this
> program, but there are no error messages I can see that come from
> compiling.

Does your netcdf data loader program call NCVPT with both INTEGER*1 and
INTEGER*2 datatypes in the same compilation unit?

> The errors found below evidently occur during the loading
> phase. The warning:
> 
>    ld: WARNING 84: /usr/lib/libnetcdf.a is not used for resolving any symbol.
> 
> seems pretty ominous.

Quite -- though I wouldn't think you would be referencing
"/usr/lib/libnetcdf.a" at this time since we're still trying to build
the netCDF distribution and that reference is, obviously, for an
installed library.

It seems as is none of the netcdf subroutine calls are 
> being resolved in libnetcdf.a (?) Have any idea what is causing this warning
> and
> the subsequent errors? The compiler is finding libnetcdf.a -- if it wasn't 
> the error message 'no such file or directory' would have resulted (this has
> happened 
> before...).  Any thoughts on this would be appreciated.
> 
>                                                        Steve Mauget
> 
> C###################################################################################
> 
> 
>       f90   wrnetcdf.f  -lnetcdf  -I/usr/local/include -o wrnetcdf
> Extension: wrnetcdf.f, line 13: Byte count on numeric data type
>            detected at *@2
> Extension: wrnetcdf.f, line 48: TAB format input
> Extension: wrnetcdf.f, line 50: TAB format input
> Extension: wrnetcdf.f, line 51: TAB format input
> Extension: wrnetcdf.f, line 53: TAB format input
> Extension: wrnetcdf.f, line 54: TAB format input
> Extension: wrnetcdf.f, line 55: TAB format input
> Extension: wrnetcdf.f, line 60: TAB format input
> Extension: wrnetcdf.f, line 78: TAB format input
> Extension: wrnetcdf.f, line 80: TAB format input
> Extension: wrnetcdf.f, line 81: TAB format input
> Extension: wrnetcdf.f, line 83: TAB format input
> Extension: wrnetcdf.f, line 86: TAB format input
> Extension: wrnetcdf.f, line 87: TAB format input
> Extension: wrnetcdf.f, line 88: TAB format input
> Extension: wrnetcdf.f, line 89: TAB format input
> Extension: wrnetcdf.f, line 90: TAB format input
> Extension: wrnetcdf.f, line 91: TAB format input
> Warning: wrnetcdf.f, line 171: Unused external reference NF_GET_VAR_REAL
>          detected at END@<end-of-statement>
> Warning: wrnetcdf.f, line 171: Unused external reference NF_PUT_VAR_REAL
>          detected at END@<end-of-statement>
> Warning: wrnetcdf.f, line 171: Unused external reference NF_PUT_VAR_INT
>          detected at END@<end-of-statement>
> Warning: wrnetcdf.f, line 171: Unused external reference NF_GET_VAR_INT2
>          detected at END@<end-of-statement>
> Warning: wrnetcdf.f, line 171: Unused external reference NF_GET_VAR_INT
>          detected at END@<end-of-statement>
> Warning: wrnetcdf.f, line 171: Unused external reference NF_GET_VAR_INT1
>          detected at END@<end-of-statement>
> Warning: wrnetcdf.f, line 171: Unused external reference NCSFIL
>          detected at END@<end-of-statement>
> Warning: wrnetcdf.f, line 171: Unused external reference NF_PUT_VAR_INT1
>          detected at END@<end-of-statement>
>                                     :
>          (many warning messages edited out...)
>                                     :
> Warning: wrnetcdf.f, line 171: Unused external reference NF_GET_VAR1_TEXT
>          detected at END@<end-of-statement>
> Warning: wrnetcdf.f, line 171: Unused external reference NF_GET_VARS_INT2
>          detected at END@<end-of-statement>
> Warning: wrnetcdf.f, line 171: Unused external reference NF_GET_VAR_DOUBLE
>          detected at END@<end-of-statement>
> Warning: wrnetcdf.f, line 171: Unused external reference NF_PUT_VAR1_TEXT
>          detected at END@<end-of-statement>
> Warning: wrnetcdf.f, line 171: Unused external reference NF_PUT_VAR_DOUBLE
>          detected at END@<end-of-statement>
> Extension: wrnetcdf.f, line 175: TAB format input
> Extension: wrnetcdf.f, line 176: TAB format input
> Extension: wrnetcdf.f, line 177: TAB format input
> Extension: wrnetcdf.f, line 177: Byte count on numeric data type
>            detected at *@2
> Extension: wrnetcdf.f, line 178: TAB format input
> Extension: wrnetcdf.f, line 179: TAB format input
> Extension: wrnetcdf.f, line 181: TAB format input
> Extension: wrnetcdf.f, line 182: TAB format input
> Extension: wrnetcdf.f, line 186: TAB format input
> Extension: wrnetcdf.f, line 186: Byte count on numeric data type
>            detected at *@2
> Extension: wrnetcdf.f, line 191: TAB format input
> [f90 continuing despite warning messages]
> ld: WARNING 84: /usr/lib/libnetcdf.a is not used for resolving any symbol.
> ld: WARNING 84: /usr/lib/libm.so is not used for resolving any symbol.
> ld: ERROR 33: Unresolved text symbol "nccre_" -- 1st referenced by wrnetcdf.o.
> ld: ERROR 33: Unresolved text symbol "ncddef_" -- 1st referenced by
> wrnetcdf.o.
> ld: ERROR 33: Unresolved text symbol "ncvdef_" -- 1st referenced by
> wrnetcdf.o.
> ld: ERROR 33: Unresolved text symbol "ncapt_" -- 1st referenced by wrnetcdf.o.
> ld: ERROR 33: Unresolved text symbol "ncendf_" -- 1st referenced by
> wrnetcdf.o.
> ld: ERROR 33: Unresolved text symbol "ncopn_" -- 1st referenced by wrnetcdf.o.
> ld: ERROR 33: Unresolved text symbol "ncdid_" -- 1st referenced by wrnetcdf.o.
> ld: ERROR 33: Unresolved text symbol "ncvid_" -- 1st referenced by wrnetcdf.o.
> ld: ERROR 33: Unresolved text symbol "ncagt_" -- 1st referenced by wrnetcdf.o.
> ld: ERROR 33: Unresolved text symbol "ncinq_" -- 1st referenced by wrnetcdf.o.
> ld: ERROR 33: Unresolved text symbol "ncvpt_" -- 1st referenced by wrnetcdf.o.
> ld: ERROR 33: Unresolved text symbol "ncclos_" -- 1st referenced by
> wrnetcdf.o.
> ld: INFO 60: Output file removed because of error.
> *** Error code 1 (bu21)

I'm afraid I need to see all the steps in order to diagnose the problem.
Would you please do the following:

    1.  Go to the top-level, netCDF-3 source directory.

    2.  Remove the file "config.cache" if it exists.

    3.  Re-execute the configure script.
        Redirect its standard output and standard error to a file.
        If this step fails, then send me the output file and stop here.

    4.  Execute the command "make clean".

    5.  Execute the command "make".
        Redirect its standard output and standard error to a file.
        If this step fails, then send me the output file and stop here.

    6.  Execute the command "make test".
        Redirect its standard output and standard error to a file.
        If this step fails, then send me the output file and stop here.

--------
Steve Emmerson   <address@hidden>