[ncl-install] shell errors during NCL compilation

Mark Suhovecky suhovecky at nd.edu
Thu Oct 21 13:22:50 MDT 2010


Thanks for the quick reply!

Since you suspected the LINUX config file  I checked  it, and found an extraneous ' amid
all my fortran libraries- removing that & rebuilding has me down to
one (!!!) error:

gcc -ansi -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/local/include -O  -Wl, --export-dynamic   -o ncl Ncl.o io.o NclHLUObj.o scanner.o parser.o MathFuncs.o NclTypedouble.o NclTypefloat.o                         NclTypeint.o NclTypelogical.o                   NclTypelong.o NclTypeobj.o                      NclTypeshort.o NclTypestring.o                  NclTypeint64.o NclTypeuint64.o                  NclTypeushort.o NclTypeuint.o NclTypeulong.o                    NclTypebyte.o NclTypechar.o TypeSupport.o                       NclMultiDValData.o AddFileFormats.o AttSupport.o DataSupport.o                  FileSupport.o Formats.o GetGrids.o                      InitData.o Memory.o NclAtt.o NclCCM.o                   NclCoordVar.o NclData.o NclFile.o NclFileVar.o                  NclGRIB.o NclHDF.o NclMultiDValnclfileData.o                    NclNetCdf.o NclOneDValCoordData.o NclType.o                     NclTypelist.o NclVar.o VarSupport.o                     ctoiee.o date.o qu2reg3.o rowina3.o scm0.o ncepcode.o     AddBuiltIns.o AddHLUObjs.o                    AddIntrinsics.o Execute.o                       Machine.o OpsFuncs.o Printtoken.o SrcTree.o                     Symbol.o Translate.o                    NclHLUVar.o HLUSupport.o                        NclMultiDValHLUObjData.o                        BuiltInSupport.o BuiltInFuncs.o                         javaAddProto.o javaAddFuncs.o                   userAddProto.o userAddFuncs.o                   HLUFunctions.o yywrap.o craybin.o                       complete.o editline.o sysunix.o ListSupport.o                   NclList.o NclMultiDVallistData.o fortranio.o  -L../../.././ni/src/lib/nfp -lnfp -L../../.././ni/src/lib/nfpfort -lnfpfort -L../../.././ni/src/lib/hlu -lhlu -L../../.././ncarg2d/src/libncarg -lncarg -L../../.././ncarg2d/src/libncarg_gks -lncarg_gks -L../../.././common/src/libncarg_c -lncarg_c -L../../.././ngmath/src/lib -lngmath -L/afs/crc.nd.edu/x86_64_linux/ncl/5.2.1/pgi-9.0/install/lib -L/usr/lib64 -L/opt/crc/scilib/netcdf/4.1.1/pgi-9.0/inst/lib -L/opt/crc/ncl/5.2.1/pgi-9.0/install/lib -lnetcdf    -lmfhdf -ldf -ljpeg -lz     -lpng -lz  -L../../.././external/sphere3.1_dp -lsphere3.1_dp -L../../.././external/fftpack5_dp -lfftpack5_dp -L../../.././external/lapack -llapack_ncl -L../../.././external/blas -lblas_ncl -lX11 -lXext -L /opt/crc/pgi/9.0/linux86-64/9.0-1/lib  -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl -lnspgc -lpgc -lrt -lm -lgcc -lc -lgcc -lm  -ldl
/usr/bin/ld: : No such file: No such file or directory
collect2: ld returned 1 exit status
make[4]: *** [ncl] Error 1
make[4]: Leaving directory `/afs/crc.nd.edu/x86_64_linux/ncl/5.2.1/pgi-9.0/ncl_ncarg-5.2.1/ni/src/ncl'

If you're still game, my LINUX & the build output are here:



Thanks again- I may get this built yet!

Mark Suhovecky
suhovecky at nd.edu

From: Mary Haley [haley at ucar.edu]
Sent: Thursday, October 21, 2010 1:32 PM
To: Mark Suhovecky
Cc: ncl-install at ucar.edu
Subject: Re: [ncl-install] shell errors during NCL compilation

Hi Mark,

It looks like something got into your config file and messed with all your Makefiles.

Can you send me the $NCARG/config/LINUX file you're using, along with $NCARG/config/Site.local if you have that file?
Also, your make-output file would be helpful.


On Oct 21, 2010, at 10:58 AM, Mark Suhovecky wrote:

> I am trying to compile ncl 5.2.1 from the source tar. My systems are 64-bit Redhat  Enterprise 5.
> I'm using the version 9.0.1 of the Portland Group compiler.
> I get many of these sort of make errors: (Doing a make All from the top ncl directory)
> Making ./ncarg2d/src/bin/scripts
> make[5]: Entering directory `/afs/crc.nd.edu/x86_64_linux/ncl/5.2.1/pgi-9.0/ncl_ncarg-5.2.1/ncarg2d/src/bin/scripts'
> /bin/sh: -c: line 0: unexpected EOF while looking for matching `''
> /bin/sh: -c: line 1: syntax error: unexpected end of file
> make[5]: *** [ncargcc] Error 2
> make[5]: Leaving directory `/afs/crc.nd.edu/x86_64_linux/ncl/5.2.1/pgi-9.0/ncl_ncarg-5.2.1/ncarg2d/src/bin/scripts'
> If I look at this particular Makefile, I see a number of stream editor (sed) commands being run in a shell- not
> sure what they do.
> /bin/sh on our systems is a symbolic link to a bash shell. Is there perhaps csh-specific syntax embedded somewhere?
> Any advice appreciated.
> Thanks,
> Mark
> suhovecky at nd.edu
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install

More information about the ncl-install mailing list