[cam-users] CCM3 build issues

David Noone dcn@gps.caltech.edu
Wed, 22 Jan 2003 09:46:40 -0800 (PST)


Hi Vinu,

I have come across this problem with a number of codes, including CCM.
It seems to be something fishy with the Sun Fortran's "vector" library
(vsin rather than sin, for instance). My workaround has been to compile
with -xvector=no (see Sun f77/f90/f95 manpage). Thus,

FFLAGS  := $(cpp_path) -r8 -i4 -fast -xvector=no -stackvar

(-fast invokes -xvector=yes)

This doesn't seem to be a problem on older version of f90.

Dave


On Wed, 22 Jan 2003, Vinutha Nagaraju wrote:

>
> Hi,
>
> I was trying to build CCM3 on solaris. All the files compiled correctly, but
> while linking I observed some undefined symbol errors due to which the build
> fails.
>
> <snip>
>
> o tstep.o twostr.o upcase.o vdiff.o vdinti.o vdintr.o vdplim.o vegconi.o
> vegtypi.o verh2o.o virtem.o vqsat.o vqsatd.o vrtdep.o vrtmap.o wheneq.o
> whenfgt.o whenfle.o whenflt.o whenne.o whenwr.o wrap_nf.o wrapup.o writeric.o
> writup.o wrtarr.o wrtharr.o wrthdr.o wrtrs1.o wsds.o wshist.o xqmass.o zenith.o
> zint.o zmid.o
> -L/hpc/prism/sand/vinu/mpprof/neworder_latest/gryphon/mpi/mpprof/appls/ccm3/ccm/
> bld/../netcdf-3.5.0/lib -lnetcdf -L/opt/SUNWhpc/lib -lmpi -lnsl -lsocket -lm
> Undefined                       first referenced
>  symbol                             in file
> __vlog_                             buoyan.o
> __vexp_                             cldclw.o
> __vsin_                             fft99.o
> __vsincos_                          g2spos.o
> __vpow_                             cldfrc.o
> __vcos_                             g2spos.o
> ld: fatal: Symbol referencing errors. No output written to
> /hpc/prism/sand/vinu/mpprof/neworder_latest/gryphon/mpi/mpprof/appls/ccm3/ccm/bl
> d/../run/atm
> gmake[1]: ***
> [/hpc/prism/sand/vinu/mpprof/neworder_latest/gryphon/mpi/mpprof/appls/ccm3/ccm/b
> ld/../run/atm] Error 1
> gmake[1]: Leaving directory
> `/hpc/prism/sand/vinu/mpprof/neworder_latest/gryphon/mpi/mpprof/appls/ccm3/ccm/r
> un/obj'
>
> <snip>
>
> I tried linking with the "-lm" option but the build still fails.
>
> Any idea on how to resolve this?
> Please reply to me directly as I am not on this alias.
>
> Thanks,
> Vinu
>
> _______________________________________________
> cam-users mailing list
> cam-users@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/cam-users
>

-- 

--------------------------------------------------------------------
California Institute of Technology, Pasadena, CA, 91125, USA
Division of Geological and Planetary Sciences
Mail Stop 100-23, Phone (626) 395-6982
http://www.gps.caltech.edu/~dcn