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

20030916: netCDF linking problem using pgf90



Roger,

>Date: Tue, 16 Sep 2003 17:20:05 +0800 (HKT)
>From: "HIU FUNG ROGER Kwok" <address@hidden>
>Organization: ?
>To: <address@hidden>
>Subject: netCDF linking problem using pgf90

The above message contained the following:

> Thanks for your suggestions. I did a "make clean" before invoking "make".
> I guess the following commands, extracted from the attached make.log, are
> required for diagnosis:
> 
> 
> /math/import/application/pgi/4.0/linux86/bin/pgf90 -O2 -tp p7 -pc 32
> -Mvect=prefetch -Mnoframe -Mfree -byteswapio  -c mcip.F

Strange.  None of the options in the above command should affect
the names of unresolved symbols -- yet your program is looking for
"nf_inq_libvers__"" rather than "nf_inq_libvers_" (for example).

I want to verify that "mcip.F" calls nf_inq_libvers().  Please send me
the output of the following command:

    nm -g mcip.o | grep nf_inq_libvers

> /math/import/application/pgi/4.0/linux86/bin/pgf90 -o mcip.exe -O2 -tp p7
> -pc 32 -Mvect=prefetch -Mnoframe -Mfree -byteswapio mcip.o alloc_met.o
> alloc_ctm.o alloc_x.o bcldprc_ak.o bilin2d.o bilin3d.o close_files.o
> comheader.o collapx.o crs2dot.o cvmgp.o cvmgz.o dealloc_met.o dealloc_x.o
> dealloc_ctm.o dynflds.o getgist.o getluse.o getmet.o getpblht.o getsdt.o
> getversion.o graceful_stop.o gridout.o init_met.o init_x.o julian.o
> layht.o locate.o lutrans1.o lutrans2.o lutrans3.o lutrans4.o lutrans5.o
> lutrans6.o m3dry.o mdate2hdate.o met3dsup.o metcro.o metdot.o
> metgrid2ctm.o metvars2ctm.o null_x.o pblpkg.o pblpwr.o pblsup.o radmdry.o
> ratint.o rdmm5.o rdmm5v2.o rdmm5v3.o readnml.o refstate.o resistcalc.o
> setgriddefs.o setupmm5.o setupv2.o setupv3.o sfcflux.o sfclayer.o slflux.o
> solar.o statflds.o transm.o vertarys.o verthyd.o vertnhy.o vstamp.o
> wrgdesc.o const_mod.o const_mete_mod.o const_pbl_mod.o coord_mod.o
> date_pack_mod.o date_time_mod.o parms3_mod.o fdesc3_mod.o file_mod.o
> iodecl3_mod.o lradmdat_mod.o groutcom_mod.o mcipparm_mod.o mcoutcom_mod.o
> mdoutcom_mod.o metinfo_mod.o metvars_mod.o vgrd_mod.o xvars_mod.o
> -L/math/staff/ma/maroger/cmaq/lib/ioapi_22/Linux2_x86pg -lioapi
> -L/math/staff/ma/maroger/cmaq/lib/netCDF/Linux -lnetcdf
> 
> 
> Also, I just found out that -Mfree is an option to interpret any file with
> suffix .f as freeform instead of fixed form. Now that all source codes
> have .F as suffices, will the option cause compilation errors?

It shouldn't.

> Many thanks,
> 
> Roger Kwok

Regards,
Steve Emmerson