RE: [ncl-install] Install ncl_ncarg-6.0.0 in Utunbu with PGI-10.4

From: Miao Yu <miao.yu_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 11 2011 - 21:02:21 MDT

Hi Mary,

 

Thank you very much for your prompt response. It really reminds me that I°Į
ve made a mistake to change the configuration file. Now, the problem has
been solved.

 

But I encountered another problem.

 

The Error messages in the make-output file are as follows,

 

make[5]: Entering directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/ncarg2d/src/bin/tdpackdemo'

pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -O -c -o TdpackDemo.o TdpackDemo.f

pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -O -o tdpackdemo TdpackDemo.o
-L../../../.././ncarg2d/src/libncarg -lncarg
-L../../../.././ncarg2d/src/libncarg_gks -lncarg_gks
-L../../../.././common/src/libncarg_c -lncarg_c -lpng -lz
-L/usr/local/ncl_ncarg-6.0.0/lib -L/usr/X11R6/lib -lX11 -lXext

/usr/bin/ld: cannot find -lpng

make[5]: *** [tdpackdemo] Error 2

make[5]: Leaving directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/ncarg2d/src/bin/tdpackdemo'

°≠

pgcc -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-I/usr/local/include -O -rdynamic -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 NclTypeubyte.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 NclGroup.o
NclFile.o NclFileVar.o NclGRIB.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/usr/local/ncl_ncarg-6.0.0/lib -L/usr/X11R6/lib -lnetcdf
-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 -pgf90libs
-lm -ldl

pgcc-Error-Unknown switch: -rdynamic

make[4]: *** [ncl] Error 1

 

I don°Įt know where to find the ®Clpng and ®Crdynamic and how to set them
correctly.

 

Best,

Miao

 

From: Mary Haley [mailto:haley@ucar.edu]
Sent: 2011ńÍ10‘¬11»’ 15:47
To: Miao Yu
Cc: ncl-install@ucar.edu
Subject: Re: Install ncl_ncarg-6.0.0 in Utunbu with PGI-10.4

 

Hi Miao,

 

>From the output you included below, it looks like you might have made your
changes to the wrong configuration file.

 

You need to make the changes to $NCARG/config/LINUX. You can use
$NCARG/config/LINUX.64.PGI as an example.

 

Also, my recommendation is to set the lines as follows:

 

#define CCompiler pgcc

#define FCompiler pgf90

#define CcOptions -tp k8-64 -O -Msignextend -Mreentrant -fPIC
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE

#define FcOptions -tp k8-64 -O -Msignextend -Mreentrant -fPIC
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE

 

This isn't necessary, but it's cleaner.

 

--Mary

 

On Oct 11, 2011, at 12:22 PM, Miao Yu wrote:

Hi NCL developers,

 

I°Įm trying to install the NCL_ncarg-6.0.0 on Utunbu system with PGI version
10.4.

 

I ran the commands as follows before running ./Configure -v,

 

#define CCompiler pgcc -tp k8-64 -O -Msignextend -Mreentrant -fPIC
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE

#define FCompiler pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE

 

Then, I ran make Everything >& make-output &, and got these Error messages
in the make-optput file

 

make[4]: Entering directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/ni/src/nyacc'

pgcc -ansi -fPIC -O -I../../.././include -I/usr/X11R6/include -DSYSV
-D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c -o
closure.o closure.c

pgcc-Error-Unknown switch: -ansi

make[4]: *** [closure.o] Error 1

make[4]: Leaving directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/ni/src/nyacc'

Making includes in ./ni/src/lib

°≠

Making ./config

make[2]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/config'

touch .home_made

pgcc -ansi -fPIC -O -I.././include -I/usr/X11R6/include -DSYSV
-D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c -o
ymake-filter.o ymake-filter.c

pgcc-Error-Unknown switch: -ansi

make[2]: *** [ymake-filter.o] Error 1

make[2]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/config'

Making ./external

make[2]: Entering directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external'

Making ./external/blas

make[3]: Entering directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/blas'

pgf90 -fPIC -fno-second-underscore -fno-range-check -O -c -o caxpy.o
caxpy.f

pgf90-Error-Unknown switch: -fno-second-underscore

pgf90-Error-Unknown switch: -fno-range-check

make[3]: *** [caxpy.o] Error 1

make[3]: Leaving directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/blas'

Making ./external/lapack

make[3]: Entering directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/lapack'

pgf90 -fPIC -fno-second-underscore -fno-range-check -O -c -o cbdsqr.o
cbdsqr.f

pgf90-Error-Unknown switch: -fno-second-underscore

pgf90-Error-Unknown switch: -fno-range-check

make[3]: *** [cbdsqr.o] Error 1

make[3]: Leaving directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/lapack'

Making ./external/sphere3.1_dp

make[3]: Entering directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/sphere3.1_dp'

pgf90 -fPIC -fno-second-underscore -fno-range-check -O -c -o divec.o
divec.f

pgf90-Error-Unknown switch: -fno-second-underscore

pgf90-Error-Unknown switch: -fno-range-check

make[3]: *** [divec.o] Error 1

make[3]: Leaving directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/sphere3.1_dp'

Making ./external/fftpack5_dp

make[3]: Entering directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/fftpack5_dp'

pgf90 -fPIC -fno-second-underscore -fno-range-check -O -c -o c1f2kb.o
c1f2kb.f

pgf90-Error-Unknown switch: -fno-second-underscore

pgf90-Error-Unknown switch: -fno-range-check

make[3]: *** [c1f2kb.o] Error 1

make[3]: Leaving directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/fftpack5_dp'

make[2]: Leaving directory
`/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external'

Making ./common

make[2]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/common'

 

The make-output file suggests the following information at its beginning,

 

         NCL/NCAR Graphics - Version 6.0.0 Installation Configuration

 

System File LINUX

Binary Install Directory /usr/local/ncl_ncarg-6.0.0/bin

Library Install Directory /usr/local/ncl_ncarg-6.0.0/lib

Include Install Directory /usr/local/ncl_ncarg-6.0.0/include

Manpage Install Directory /usr/local/ncl_ncarg-6.0.0/man

Config Install Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/config

Data Base Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/database

Programmer Doc Dir /usr/local/ncl_ncarg-6.0.0/lib/ncarg/doc

Reloc Obj. Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/robj

Examples Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/examples

Tutorial Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/tutorial

Test Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/tests

X App. Def. Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/xapp

f77 Compiler pgf90

f77 Flags -fPIC -fno-second-underscore -fno-range-check -O

C Compiler pgcc

cc Flags -ansi -fPIC -O -I./include -I/usr/X11R6/include -DSYSV
-D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped ®CDneedFuncProto

 

I°Įm wondering how can I set the C and C++ compiler flags correctly for PGI
C and C++ compilers. How can I fix these problems?

 

Any help will be appreciated.

 

Miao

 

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install

 
Received on Tue Oct 11 21:02:25 2011

This archive was generated by hypermail 2.1.8 : Tue Nov 01 2011 - 13:43:19 MDT