<div dir="ltr"><div class="gmail_default" style="font-size:small">Cindy,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You can change the definition of this library in the $NCARG/config/Template file:</div><div class="gmail_default" style="font-size:small">







<p class="">#define<span class="">        </span>LexLibrary<span class="">        </span>-ll</p><p class="">Once you do this, you will need to remake the Makefiles in order for the change to take effect:</p><p class="">cd $NCARG<br>make Makefiles</p><p class="">We may have to change this library eventually, because we are seeing other people with the same issue as you, oddly in the same week.</p><p class="">--Mary</p><p class=""><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 12, 2016 at 3:25 PM, Crooks, Cynthia J <span dir="ltr">&lt;<a href="mailto:cynthia.crooks@bp.com" target="_blank">cynthia.crooks@bp.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I think I finally have a build of ncl.  At least “ncl –V” and “ng4ex gsun01n” run.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I will look more closely at the log file tomorrow.  One error that continues to pop up is “/usr/bin/ld: cannot find –ll”.  We have “flex” installed on this
 system, not lex.  Lex is not included in the OS distribution.  Is there a clean way to change the library to “-lfl”?  Is that even advisable?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The error occurs in
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">make[4]: Entering directory `/hpc/tstapps/src/ncl/ncl_ncarg-6.3.0/ni/src/mkwrap&#39;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">gcc -ansi -fPIC -fopenmp  -O    -o wrapit77 y.tab.o lex.yy.o Symbol.o wrapit_main.o  -L/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0/lib -L/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0/lib  
 -ll<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">/usr/bin/ld: cannot find -ll<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">collect2: error: ld returned 1 exit status<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">make[4]: *** [wrapit77] Error<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Cindy<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Mary Haley [mailto:<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>]
<br><span class="">
<b>Sent:</b> Tuesday, April 12, 2016 11:24 AM<br>
</span></span></p><div><div class="h5"><b>To:</b> Crooks, Cynthia J<br>
<b>Cc:</b> <a href="mailto:ncl-install@ucar.edu" target="_blank">ncl-install@ucar.edu</a><br>
<b>Subject:</b> Re: [ncl-install] Configure and/or ymake changing Include paths<u></u><u></u></div></div><p></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:black">The problem is that the string &quot;x86_64&quot; is a system predefined macro that is basically a flag (0 or 1) as to whether you are on a 64-bit system. When the Makefile gets generated,
 the preprocessor is converting this to a 1 because you are on a 64-bit system. By renaming it to &quot;x86.64&quot;, which is NOT a predefined macro, then, you get around this problem. </span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:black">I will see if somebody can find a work-around to the other issue you mentioned.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:black">At least temporarily, you can choose to install NCL to whatever parent directory you want (that doesn&#39;t have &quot;x86_64&quot; in the name), and then simply move the &quot;bin&quot;, &quot;lib&quot;, and &quot;include&quot;
 directories to  /hpc/apps/SLES/3.0/1/ncl_ncarg/6.3.0 afterwards. </span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:black">--Mary</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, Apr 11, 2016 at 1:53 PM, Crooks, Cynthia J &lt;<a href="mailto:cynthia.crooks@bp.com" target="_blank">cynthia.crooks@bp.com</a>&gt; wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Mary,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I have to update my last response.  Adding the “” did make a difference.  I found I also had to add
 it to the </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                #define YmakeRoot &quot;/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0&quot;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Unfortunately, that creates another problem:</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">YMAKEROOT               = &quot;/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0&quot;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">BINROOT                 = &quot;/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0&quot;/bin</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">LIBROOT                 = &quot;/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0&quot;/lib</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">INCROOT                 = &quot;/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0&quot;/include</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">MANROOT                 = &quot;/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0&quot;/man</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">TMPROOT                 = /tmp</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">ROOTPATH                = &quot;/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0&quot;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">BINPATH                 = &quot;/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0&quot;/bin</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">LIBPATH                 = &quot;/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0&quot;/lib</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">INCPATH                 = &quot;/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0&quot;/include</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">MANPATH                 = &quot;/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0&quot;/man</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">LIBSEARCH               = &quot;-L/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0/lib&quot;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">INCSEARCH               = &quot;-I/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0/include -</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0/include/freetype2&quot;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I also found that if I change “x86_64” to “x86.64” in Site.local, I don’t need the “” and the paths
 show up in the Make file the way I would expect.  Unfortunately, that is now how our app file system tree has been built.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I think I have found a “work around”.  I set an environment variable called HPCAPPDIR to “/hpc/apps/SLES/3.0/x86_64”. 
 I then edited the Site.local and replaced that portion of the various paths with ${HPCAPPDIR}.  It is important to use the {} notation.  It looks like most things have built and are being installed in the correct location.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Now I need to figure out what I did wrong with my INCLUDE path.  It’s always something.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Cindy</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Mary Haley [mailto:<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>]
<br>
<b>Sent:</b> Sunday, April 10, 2016 1:54 PM<br>
<b>To:</b> Crooks, Cynthia J<br>
<b>Cc:</b> <a href="mailto:ncl-install@ucar.edu" target="_blank">ncl-install@ucar.edu</a><br>
<b>Subject:</b> Re: [ncl-install] Configure and/or ymake changing Include paths</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Cindy,<u></u><u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><br>
Try adding quotes around the -L path in your Site.local file:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">#define LibSearch &quot;-L/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0/lib&quot;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">#define IncSearch &quot;-I/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0/include -I/hpc/ap\<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">ps/SLES/3.0/x86_64/ncl_ncarg/6.3.0/include/freetype2&quot;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">You will need to remake the Makefiles:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">cd $NCARG<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">make me<br>
make Makefiles includes depend all install<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">--Mary<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Fri, Apr 8, 2016 at 12:59 PM, Crooks, Cynthia J &lt;<a href="mailto:cynthia.crooks@bp.com" target="_blank">cynthia.crooks@bp.com</a>&gt; wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I am trying to build ncl_ncar-6.3.0. I am building on a SLES 11 SP 3 machine and using the gcc-5.2.0 compiler.  I am building  without the optional software.  Parts of the build
 are failing because the PATHS in the Makefile are incorrect.  The paths should include  “3.0/x86_64/ncl_ncarg”, but they are being changed to “3.0/1/ncl_ncarg”.  The Site.local appears to have the correct paths:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">#define YmakeRoot /hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">#define LibSearch -L/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0/lib<u></u><u></u></p>
<p class="MsoNormal">#define IncSearch -I/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0/include -I/hpc/apps/SLES/3.0/x86_64/ncl_ncarg/6.3.0/include/freetype2<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">The Makefiles, however, do not.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">YMAKEROOT               = /hpc/apps/SLES/3.0/1/ncl_ncarg/6.3.0<u></u><u></u></p>
<p class="MsoNormal">BINROOT                 = /hpc/apps/SLES/3.0/1/ncl_ncarg/6.3.0/bin<u></u><u></u></p>
<p class="MsoNormal">LIBROOT                 = /hpc/apps/SLES/3.0/1/ncl_ncarg/6.3.0/lib<u></u><u></u></p>
<p class="MsoNormal">INCROOT                 = /hpc/apps/SLES/3.0/1/ncl_ncarg/6.3.0/include<u></u><u></u></p>
<p class="MsoNormal">MANROOT                 = /hpc/apps/SLES/3.0/1/ncl_ncarg/6.3.0/man<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I have attached my Site.local and the top level Makefile.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I have tried rerunning Configure to verify that I put in the correct paths.  I get the same result.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I would appreciate any help you can offer.  Let me know what other information you might require.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thanks.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Cindy<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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><u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>