<div dir="ltr">This is a ppc64 system, correct? If so, I think you want to be sure the "StdDefines" line in your $NCARG/LINUX file does *not* have the "-DByteSwapped" macro set. Also, make sure you do *not* have this line in the file:<div>
<br></div><div><div>#define ByteSwapped</div></div><div><br></div><div>I would look at the "LINUX.ppc64.xl" file for guidance on what the "LINUX" file should look like. For example, the StdDefines line should probably look like this:</div>
<div><br></div><div>#define StdDefines -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -DNGLONG2XINT -Dppc64<br></div><div><br></div><div>I say "probably" because I don't know the details of the compiler you are using. But, you definitely want "-DNGLONG2XINT -Dppc64" in the file. The "-Dppc64" is probably redundant, but shouldn't hurt.</div>
<div><br></div><div>--Mary</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 18, 2014 at 10:16 AM, Smriti Prathapan <span dir="ltr"><<a href="mailto:smritip1@umbc.edu" target="_blank">smritip1@umbc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi, <div><br></div><div>I am trying to install NCL/NCAR Graphics from source for Power 7( PPC64). Following the instructions, I did the configure and make Everything. There are a few errors in the make-output file and some of the executables have not been created, for e.g. idt, ctrans etc. </div>
<div><br></div><div>Pasted below are some of the errors in make-output. I have attached the make-output. Please help me solve these errors. </div><div><div style="margin:0px;font-family:'Courier New'"><span style="font-family:Helvetica"><br>
</span></div><div style="margin:0px"><div style="margin:0px"><div style="font-family:'Courier New';margin:0px">gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O -o ncargworld ncargworld.o ../../../.././nc</div>
<div style="font-family:'Courier New';margin:0px">arg2d/src/libncarg_gks/awi/ggkwdr_stub.o -L../../../.././ncarg2d/src/libncarg -lncarg -L../../../.././ncarg2d/src</div><div style="font-family:'Courier New';margin:0px">
/libncarg_gks -lncarg_gks -L../../../.././common/src/libncarg_c -lncarg_c -L/home/smritip1/NOAA/new_gsi/WRFV3.6/P7</div><div style="font-family:'Courier New';margin:0px">/ncl_ncarg-6.2.0/lib -L/usr/lib64/X11/ -L/usr/include/freetype2/ -L/usr/local/lib64/ -L/home/smritip1/NOAA/new_gsi</div>
<div style="font-family:'Courier New';margin:0px">/hdf5-1.8.13/hdf5/lib -L/usr/local/lib </div><div style="font-family:'Courier New';margin:0px">../../../.././ncarg2d/src/libncarg_gks/libncarg_gks.a(wks.o):(.text+0x748): undefined reference to `bcopyswap'</div>
<div style="font-family:'Courier New';margin:0px">../../../.././ncarg2d/src/libncarg_gks/libncarg_gks.a(wks.o):(.text+0x944): undefined reference to `bcopyswap'</div><div style="font-family:'Courier New';margin:0px">
../../../.././ncarg2d/src/libncarg_gks/libncarg_gks.a(wks.o):(.text+0xa04): undefined reference to `bcopyswap'</div><div style="font-family:'Courier New';margin:0px">collect2: ld returned 1 exit status</div><div style="font-family:'Courier New';margin:0px">
make[5]: *** [ncargworld] <span style="color:rgb(255,255,255);background-color:rgb(0,0,0)">Err</span>or 1</div><div style="font-family:'Courier New';margin:0px"><br></div><div style="margin:0px"><div style="font-family:'Courier New';margin:0px">
<br></div><div style="margin:0px"><div style="font-family:'Courier New';margin:0px"><br></div><div style="font-family:'Courier New';margin:0px"></div></div></div></div></div></div></div><br><div style="word-wrap:break-word">
<div><div style="margin:0px"><div style="margin:0px"><div style="margin:0px"><div style="margin:0px"><div style="font-family:'Courier New';margin:0px"></div><div style="font-family:'Courier New';margin:0px">
<br></div><div style="margin:0px">Thanks,</div><div style="margin:0px">Smriti</div></div></div></div></div></div><div><div>On Jun 3, 2014, at 1:52 PM, Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> wrote:</div>
<br><blockquote type="cite">Dear Smriti,<br><br>I don't have access to a PPC64 system, so yes, you would need to build it from source code.<br><br>I can help with this, by providing suggestions on what to set in your LINUX configuration file.<br>
<br>When you download the NCL source code, you will see a directory in the top of the tree called "config". This directory contains a bunch of sample configuration files for LINUX, like:<br><br>LINUX.64.GNU<br>LINUX.64.INTEL<br>
LINUX.64.PGI<br>LINUX.INTEL<br>LINUX.ppc64.xl<br><br>You can look at these files to get an idea of what things you need to set.<br><br>The file that ends up getting used for the NCL build is called LINUX, so this is the one you will need to make the modifications for.<br>
<br>The most critical lines in the LINUX file that you need to worry about are these:<br><br>#define StdDefines -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped<br>#define ByteSwapped<br>#define CCompiler gcc<br>#define FCompiler gfortran<br>
#define CtoFLibraries -lgfortran<br>#define CtoFLibrariesUser -lgfortran<br>#define CcOptions -ansi -fPIC -fopenmp<br>#define FcOptions -fPIC -fno-f2c -fno-second-underscore -fopenmp<br><br>If you are not using the GNU compilers, then you'll need to change the CCompiler and FCompiler as desired, along with the compile options via CcOptions and FcOptions.<br>
<br>The line <br><br>#define ByteSwapped<br><br>should be removed if this is a big endian machine, which I seem to remember that it is.<br><br>Once you have the "config/LINUX" file set up as desired, then you can cd to the top level NCL tree and run "./Configure" as documented. See this link for full information:<br>
<br><a href="http://www.ncl.ucar.edu/Download/build_from_src.shtml" target="_blank">http://www.ncl.ucar.edu/Download/build_from_src.shtml</a><br><br>If you have any questions about this, please post them back to this email list.<br>
<br>Thanks,<br><br>--Mary<br><br>On Jun 3, 2014, at 9:05 AM, Smriti Prathapan <<a href="mailto:smritip1@umbc.edu" target="_blank">smritip1@umbc.edu</a>> wrote:<br><br><blockquote type="cite">Hi, <br><br>I was looking for the pre-buit Linux binary for Power7 (ppc64) and couldn’t find it. Do you suggest installing from source ?<br>
<br>Thanks,<br>Smriti<br>_______________________________________________<br>ncl-install mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
</blockquote><br></blockquote></div><br></div><br>_______________________________________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
<br></blockquote></div><br></div>