[Mitgcm-support] Re: bug in genmake?

mitgcm-support at dev.mitgcm.org mitgcm-support at dev.mitgcm.org
Wed Jul 9 15:47:51 EDT 2003


Look at the line
    set LIBS   = ...    \
It's incomplete and should have the remaining piece further down
    '-lsocket -lnsl' )
Might be that the latter are not even needed.
Maybe try withouth?

-p.

Martin Losch wrote:
> Hi there,
> 
> I tried to compile the code for the -platform=SunOS+mpi. The genmake 
> complains with "too many )'s". This is the piece of script in question 
> (sorry for the autowrapping by my mailtool, as usual I have no control):
> 
> case SunOS+mpi:
>   set LN         = ( '/usr/bin/ln -s' )
>   set CPP        = ( '/usr/ccs/lib/cpp -P' )
>   set DEFINES    = ( ${DEFINES} '-DTARGET_SUN -DWORDLENGTH=4 -D_d=E' )
>   set INCLUDES   = ( '-I/usr/local/mpi/include' )
>   set LIBS       = ( '-L/usr/local/mpi/lib/solaris/ch_shmem -lmpi 
> -lthread' \
>   set FFLAGS     = ( '-stackvar -explicitpar -vpara -e -u -noautopar 
> -xtypemap=real:64,double:64,integer:32 -fsimple=0' )
>   set FOPTIM     = ( '-dalign -O3 -xarch=v9' )
>   set NOOPTFLAGS = ( '-dalign -O0 -xarch=v9' )
>                        '-lsocket -lnsl' )
>   set NOOPTFILES = ( 'barrier.F different_multiple.F 
> external_fields_load.F ini_vertical_grid.F ini_spherical_polar_grid.F 
> ini_cori.F mon_printstats_rl.F mon_printstats_rs.F')
>     breaksw
> 
> I assume that the '-lsocket -lnsl' ) line is out of place and (maybe) 
> belongs to further up after -lthread' \
> but I dare not change it myself and check it in before someone with the 
> proper compentence (Chris?) has given his OK. I also plan to develop a 
> case which is specific to our SunFire architecture here at AWI, if 
> that's of interest for you.
> 
> Martin
> 


-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Patrick Heimbach     Massachusetts Institute of Technology
FON: +1/617/253-5259                    EAPS, Room 54-1518
FAX: +1/617/253-4464               77 Massachusetts Avenue
mailto:heimbach at mit.edu                 Cambridge MA 02139
http://www.mit.edu/~heimbach/                       U.S.A.




More information about the MITgcm-support mailing list