<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi Sugosh,</div>
<div><br>
</div>
<div>Sounds like you are using a more recent revision of ROSS, which removed the variable in question. You can either checkout the version of ROSS shown in the codes-base INSTALL document, or you can use recent revisions of the codes-* repositories.</div>
<div><br>
</div>
<div>John</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Sughosh Divanji <<a href="mailto:sdivanji@hawk.iit.edu">sdivanji@hawk.iit.edu</a>><br>
<span style="font-weight:bold">Date: </span>Friday, February 20, 2015 at 11:02 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:codes-ross-users@lists.mcs.anl.gov">codes-ross-users@lists.mcs.anl.gov</a>" <<a href="mailto:codes-ross-users@lists.mcs.anl.gov">codes-ross-users@lists.mcs.anl.gov</a>><br>
<span style="font-weight:bold">Cc: </span>Raghav Kapoor <<a href="mailto:rkapoor7@hawk.iit.edu">rkapoor7@hawk.iit.edu</a>>, Ke Wang <<a href="mailto:kwang22@hawk.iit.edu">kwang22@hawk.iit.edu</a>><br>
<span style="font-weight:bold">Subject: </span>[codes-ross-users] make for codes-base is failing at src/util/codes_mapping.c:483:51<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>I am trying to install codes-base-0.3.0. Make is failing with the following error,</div>
<div><br>
</div>
<div>
<div>sughosh@sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base-0.3.0/build$ make</div>
<div>make  all-am</div>
<div>make[1]: Entering directory `/home/sughosh/Desktop/IITC/CS597/codes-base-0.3.0/build'</div>
<div>  CC       src/util/codes_mapping.o</div>
<div>../src/util/codes_mapping.c: In function ‘codes_mapping_init’:</div>
<div>../src/util/codes_mapping.c:422:3: warning: passing argument 2 of ‘tw_lp_settype’ discards ‘const’ qualifier from pointer target type [enabled by default]</div>
<div>   tw_lp_settype(ross_lid, lp_type_lookup(lp_type_name));</div>
<div>   ^</div>
<div>In file included from /home/sughosh/Desktop/IITC/CS597/ROSS/install/include/ross.h:195:0,</div>
<div>                 from ../codes/codes.h:11,</div>
<div>                 from ../codes/codes_mapping.h:11,</div>
<div>                 from ../src/util/codes_mapping.c:10:</div>
<div>/home/sughosh/Desktop/IITC/CS597/ROSS/install/include/ross-extern.h:97:15: note: expected ‘struct tw_lptype *’ but argument is of type ‘const struct tw_lptype *’</div>
<div> extern void   tw_lp_settype(tw_lpid lp, tw_lptype * type);</div>
<div>               ^</div>
<div>../src/util/codes_mapping.c: In function ‘codes_mapping_setup_with_seed_offset’:</div>
<div>../src/util/codes_mapping.c:483:51: error: ‘g_tw_rng_max’ undeclared (first use in this function)</div>
<div>                           global_nlps * offset) * g_tw_rng_max + i);</div>
<div>                                                   ^</div>
<div>../src/util/codes_mapping.c:483:51: note: each undeclared identifier is reported only once for each function it appears in</div>
<div>make[1]: *** [src/util/codes_mapping.o] Error 1</div>
<div>make[1]: Leaving directory `/home/sughosh/Desktop/IITC/CS597/codes-base-0.3.0/build'</div>
<div>make: *** [all] Error 2 </div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Please let me know how to fix this.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sughosh</div>
<div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px; max-height:0px;" src="https://mailfoogae.appspot.com/t?sender=ac2RpdmFuamlAaGF3ay5paXQuZWR1&type=zerocontent&guid=c2776052-359d-4dbe-ac9f-f5d1f280642b"><font color="#ffffff" size="1">ᐧ</font></div>
</div>
</div>
</div>
</span>
</body>
</html>