<div>Dave,</div>
<div> </div>
<div> Thanks!!</div>
<div> Compilation was sucessful.</div>
<div> </div>
<div>Cheers,</div>
<div> </div>
<div>-Arvind<br><br></div>
<div class="gmail_quote">On Mon, Jan 25, 2010 at 5:25 PM, Dave Goodell <span dir="ltr"><<a href="mailto:goodell@mcs.anl.gov">goodell@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I don't think it matters what shell you used to invoke "./configure". The shell that actually interprets the command is determined by the shebang line at the top of configure, "#! /bin/sh". AFAIK, the Solaris "/bin/sh" is _not_ bash or zsh, so it will not understand the "export VAL=var" convenience syntax.<br>
<br>You can test this by running the following sequence of commands:<br><br>-------8<-------<br>/bin/sh<br>export FOO=" -lpthread"<br>-------8<-------<br><br>You should get a very similar error message to the one you received when running configure.<br>
<br>The reason that you still saw the problem even after modifying configure is that you only attempted to re-make. You need to modify /petara1/mpich2/mpich2-1.2.1/src/mpid/ch3/configure as I indicated earlier, then run configure, then run make. Changes to configure after configure has been run won't have any effect.<br>
<font color="#888888"><br>-Dave</font>
<div>
<div></div>
<div class="h5"><br><br>On Jan 22, 2010, at 10:40 AM, Arvind Petaru wrote:<br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">To add on more.....<br>I was compiling on bash shell.......and i tried below commands on bash shell prompt and it works fine, so I don't think MY_EXPORTED_LIBS is creating problem here:<br>
<br>lperf011-root><br>lperf011-root> VAR=abcd<br>lperf011-root> echo $VAR<br>abcd<br>lperf011-root><br>lperf011-root> export TMPVAR="$VAR"<br>lperf011-root> echo $TMPVAR<br>abcd<br>lperf011-root><br>
lperf011-root><br><br>Also, there was a typo in my earlier mail for point 2, where it should be "--with-device=ch3:sock" instead of "--with-devicech3:sock", missed a "=" symbol.....<br><br>
-Arvind<br>On Fri, Jan 22, 2010 at 11:29 AM, Arvind Petaru <<a href="mailto:arvindpetaru@gmail.com" target="_blank">arvindpetaru@gmail.com</a>> wrote:<br>Hi Dave,<br><br> Thanks for your suggestion.<br> I tried compiling following your suggestion and I still see the same errors.<br>
<br>Steps I followed:<br>============<br><br>1> Removed everything from previous tmp build directory (i.e., /tmp/petara1/mpich2-1.2.1) and freshly created it again.<br><br>2> Configured as below :-<br> /petara1/mpich2/mpich2-1.2.1/configure -prefix=/mpich2-install --with-devicech3:sock 2>&1 | tee c.txt<br>
<br>3> As ususal I saw the below error in c.txt file.<br> /petara1/mpich2/mpich2-1.2.1/src/mpid/ch3/configure: MY_EXPORTED_LIBS= -lpthread: is not an identifier<br><br>4> Modified file ( /tmp/petara1/mpich2-1.2.1/src/mpid/ch3/configure.lineno, line 7259 ) as suggested by you as:<br>
MY_EXPORTED_LIBS="$LIBS"<br> export MY_EXPORTED_LIBS<br><br>5> Tried compiling again as:<br> make 2>&1 | tee m.txt<br><br>6> Fails with same reason<br><br>Attaching new c.txt, m.txt and configure.log files.<br>
<br>Cheers,<br><br>-Arvind<br><br>On Thu, Jan 21, 2010 at 6:06 PM, Dave Goodell <<a href="mailto:goodell@mcs.anl.gov" target="_blank">goodell@mcs.anl.gov</a>> wrote:<br>It looks like the CH3 configure step didn't entirely complete, so a bunch of configure-generated files are missing. Line 454 of your previously attached c.txt is particularly suspect:<br>
<br>--------8<--------<br>/petara1/mpich2/mpich2-1.2.1/src/mpid/ch3/configure: MY_EXPORTED_LIBS= -lpthread: is not an identifier<br>--------8<--------<br><br>Aha! As I'm writing this I think I see the problem. There's a bash/zsh-ism in src/mpid/ch3/<a href="http://configure.in/" target="_blank">configure.in</a>, line 311:<br>
<br>--------8<--------<br>export MY_EXPORTED_LIBS="$LIBS"<br>--------8<--------<br><br>I don't have the time to do it today, but I can try to build you a release tarball with a fixed version tomorrow. The fix should be to separate out the assignment from the export:<br>
<br>--------8<--------<br>MY_EXPORTED_LIBS="$LIBS"<br>export MY_EXPORTED_LIBS<br>--------8<--------<br><br>You are welcome to make that change yourself, but you'll need to regenerate the configure from the <a href="http://configure.in/" target="_blank">configure.in</a> by running "./maint/updatefiles" in the source tree, which itself requires particular versions of the autotools and some other utilities. Alternatively, you can edit "src/mpid/ch3/configure" in the build tree directly, but I can't tell you exactly which line to change. You'll just have to search for MY_EXPORTED_LIBS and make the change wherever it is.<br>
<br>-Dave<br><br><br>On Jan 21, 2010, at 3:34 PM, Arvind Petaru wrote:<br><br>same errors...<br><br>On Thu, Jan 21, 2010 at 4:34 PM, Rajeev Thakur <<a href="mailto:thakur@mcs.anl.gov" target="_blank">thakur@mcs.anl.gov</a>> wrote:<br>
Does it give the same error or a different error?<br><br>Rajeev<br><br>From: <a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">mpich-discuss-bounces@mcs.anl.gov</a> [mailto:<a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">mpich-discuss-bounces@mcs.anl.gov</a>] On Behalf Of Arvind Petaru<br>
Sent: Thursday, January 21, 2010 3:32 PM<br><br>To: <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>Subject: Re: [mpich-discuss] Compilation of MPCH2-1.2.1 is failing onSunSolaris 10 (Sparc)<br>
<br>Forgot to mention earlier....I tried that too(--with-device=ch3:sock) and it fails........<br><br>-Arvind<br><br>On Thu, Jan 21, 2010 at 4:27 PM, Rajeev Thakur <<a href="mailto:thakur@mcs.anl.gov" target="_blank">thakur@mcs.anl.gov</a>> wrote:<br>
Can you try configuring with --with-device=ch3:sock (followed by make and make install) and see if that works?<br><br>Rajeev<br><br>From: <a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">mpich-discuss-bounces@mcs.anl.gov</a> [mailto:<a href="mailto:mpich-discuss-bounces@mcs.anl.gov" target="_blank">mpich-discuss-bounces@mcs.anl.gov</a>] On Behalf Of Arvind Petaru<br>
Sent: Thursday, January 21, 2010 2:19 PM<br>To: <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>Subject: [mpich-discuss] Compilation of MPCH2-1.2.1 is failing on SunSolaris 10 (Sparc)<br>
<br><br>Hi,<br><br> I'm new to MPI programming.<br> I installed MPICH2 on my Sun Solaris 10, SPARC version and tried to configure & compile it on this machine.<br> I was not able to compile it successfully and it throws lot of errors. Not sure what could be the problem (or) if I am missing something.<br>
I'd appreciate if someone can help me in this regards.<br><br> Attaching c.txt, m.txt, config.log, config.system and config.status files for your reference.<br><br> Let me know if you need any other info.<br><br>-- <br>
Cheers,<br><br>-Arvind<br><br><br>_______________________________________________<br>mpich-discuss mailing list<br><a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br><br><br><br><br>_______________________________________________<br>mpich-discuss mailing list<br><a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br><br><br><br>_______________________________________________<br>mpich-discuss mailing list<br><a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br>_______________________________________________<br>mpich-discuss mailing list<br><a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br><br><br><br>_______________________________________________<br>mpich-discuss mailing list<br><a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</blockquote><br>_______________________________________________<br>mpich-discuss mailing list<br><a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</div></div></blockquote></div><br><br clear="all">