<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal><a name="OLE_LINK1"></a><a name="OLE_LINK2"><span lang=EN-US>Hi NCL developers,<o:p></o:p></span></a></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I’m trying to install the NCL_ncarg-6.0.0 on Utunbu system with PGI version 10.4.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I ran the commands as follows before running ./Configure -v,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>#define CCompiler pgcc -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#define FCompiler pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Then, I ran make Everything >& make-output &, and got these Error messages in the make-optput file<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>make[4]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/ni/src/nyacc'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>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<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgcc-Error-Unknown switch: -ansi<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[4]: *** [closure.o] Error 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[4]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/ni/src/nyacc'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Making includes in ./ni/src/lib<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Making ./config<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[2]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/config'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>touch .home_made<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>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<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgcc-Error-Unknown switch: -ansi<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[2]: *** [ymake-filter.o] Error 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[2]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/config'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Making ./external<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[2]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Making ./external/blas<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[3]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/blas'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgf90 -fPIC -fno-second-underscore -fno-range-check -O -c -o caxpy.o caxpy.f<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgf90-Error-Unknown switch: -fno-second-underscore<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgf90-Error-Unknown switch: -fno-range-check<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[3]: *** [caxpy.o] Error 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[3]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/blas'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Making ./external/lapack<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[3]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/lapack'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgf90 -fPIC -fno-second-underscore -fno-range-check -O -c -o cbdsqr.o cbdsqr.f<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgf90-Error-Unknown switch: -fno-second-underscore<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgf90-Error-Unknown switch: -fno-range-check<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[3]: *** [cbdsqr.o] Error 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[3]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/lapack'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Making ./external/sphere3.1_dp<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[3]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/sphere3.1_dp'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgf90 -fPIC -fno-second-underscore -fno-range-check -O -c -o divec.o divec.f<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgf90-Error-Unknown switch: -fno-second-underscore<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgf90-Error-Unknown switch: -fno-range-check<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[3]: *** [divec.o] Error 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[3]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/sphere3.1_dp'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Making ./external/fftpack5_dp<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[3]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/fftpack5_dp'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgf90 -fPIC -fno-second-underscore -fno-range-check -O -c -o c1f2kb.o c1f2kb.f<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgf90-Error-Unknown switch: -fno-second-underscore<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>pgf90-Error-Unknown switch: -fno-range-check<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[3]: *** [c1f2kb.o] Error 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[3]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external/fftpack5_dp'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[2]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/external'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Making ./common<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>make[2]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/common'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The make-output file suggests the following information at its beginning,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US> NCL/NCAR Graphics - Version 6.0.0 Installation Configuration<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>System File LINUX<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Binary Install Directory /usr/local/ncl_ncarg-6.0.0/bin<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Library Install Directory /usr/local/ncl_ncarg-6.0.0/lib<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Include Install Directory /usr/local/ncl_ncarg-6.0.0/include<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Manpage Install Directory /usr/local/ncl_ncarg-6.0.0/man<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Config Install Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/config<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Data Base Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/database<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Programmer Doc Dir /usr/local/ncl_ncarg-6.0.0/lib/ncarg/doc<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Reloc Obj. Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/robj<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Examples Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/examples<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Tutorial Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/tutorial<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Test Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/tests<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>X App. Def. Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/xapp<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>f77 Compiler pgf90<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>f77 Flags -fPIC -fno-second-underscore -fno-range-check -O<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>C Compiler pgcc<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>cc Flags -ansi -fPIC -O -I./include -I/usr/X11R6/include -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped –DneedFuncProto<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>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?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Any help will be appreciated.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Miao<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>