<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jan 9, 2014 at 3:32 PM, Qin Lu <span dir="ltr"><<a href="mailto:lu_qin_2000@yahoo.com" target="_blank">lu_qin_2000@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:12pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><div><span>Can I specify the what version of Hypre to download? Do I need to use --with-hypre=1 and specify --with-hypre-dir? It will be nice if you may point me to a sample setting of configure options using --download-hypre.</span></div>
</div></blockquote><div><br></div><div>No. That is the only option.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:12pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">
<div><span style="font-size:12pt"> </span></div><div><span>Thanks,</span></div><div><span>Qin</span></div><div style="display:block"> <br> <br> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt">
 <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt"> <div dir="ltr"> <font face="Arial"> On Thursday, January 9, 2014 3:07 PM, Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:<br>
 </font> </div>  <div><div><div><div dir="ltr"><div><div>On Thu, Jan 9, 2014 at 3:05 PM, Qin Lu <span dir="ltr"><<a href="mailto:lu_qin_2000@yahoo.com" shape="rect" rel="nofollow" target="_blank">lu_qin_2000@yahoo.com</a>></span> wrote:<br clear="none">

<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt">
<div><span>Is the linker ld compitable with Intel compilers?</span></div>
<div><span></span> </div><div><span>If I use --download-hypre=1, will it download the 32-bit Hypre lib that is consistent with my MPI lib and my PETSc lib built with Intel compilers?</span></div></div></blockquote><div><br clear="none">

</div><div>It will build it from source.</div><div><br clear="none"></div><div>   Matt</div><div><div> </div></div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt"><div>
<div><span style="font-size:12pt"> </span></div><div><span>Thanks,</span></div><div><span>Qin</span></div></div><div style="display:block"><div> <br clear="none"> <br clear="none"> </div><div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt">
<div>
 </div><div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt"><div> <div dir="ltr"> <font face="Arial"> On Thursday, January 9, 2014 11:43 AM, Satish Balay <<a href="mailto:balay@mcs.anl.gov" shape="rect" rel="nofollow" target="_blank">balay@mcs.anl.gov</a>> wrote:<br clear="none">


 </font> </div>  </div><div><div>Well the compiler [ld] doesn't appear to like the hypre library you built.<br clear="none"><br clear="none">What do you have for:<br clear="none"><br clear="none">file /d/dev01/qlu/Lib/hypre-2.8.0b/LINUX_32/lib/libHYPRE.a<br clear="none">

<br clear="none">Why not use --download-hypre=1 ?<br clear="none"><br clear="none">Satish<br clear="none"></div><div><div><br clear="none">On Thu, 9 Jan 2014, Qin Lu wrote:<br clear="none"><br clear="none">> Now it got new problem later in configure: it does not like the Hypre lib :"Possible ERROR while running linker: ld: skipping incompatible /d/dev01/qlu/Lib/hypre-2.8.0b/LINUX_32/lib/libHYPRE.a when searching for -lHYPRE". Please see the attached log file for details.<br clear="none">

>  <br clear="none">> I built the Hypre-2.8.0b using the same Intel compilers as PETSc.<br clear="none">>  <br clear="none">> Thanks
 for any ideas,<br clear="none">> Qin<br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> On Thursday, January 9, 2014 9:25 AM, Qin Lu <<a href="mailto:lu_qin_2000@yahoo.com" shape="rect" rel="nofollow" target="_blank">lu_qin_2000@yahoo.com</a>> wrote:<br clear="none">

>   <br clear="none">> Thanks a lot for pointing out the problem. Configure passed it after I set the path of libirc.so.<br clear="none">>  <br clear="none">> Regards,<br clear="none">> Qin<br clear="none">

> <br clear="none">> <br clear="none">> <br clear="none">> On Wednesday, January 8, 2014 4:25 PM, Satish Balay <<a href="mailto:balay@mcs.anl.gov" shape="rect" rel="nofollow" target="_blank">balay@mcs.anl.gov</a>> wrote:<br clear="none">

>   <br clear="none">> > ('Linux', 'houhpclc01', '2.6.18-308.4.1.el5', '#1 SMP Tue Apr 17 17:08:10 EDT 2012', 'i686', 'i686')<br clear="none">> <br clear="none">

> the machine appears to to be running 32bit linux - so I'm not sure why it has a 64bit libirc.so<br clear="none">> <br clear="none">> [and the paths linker is referencing to are 32bit library paths]<br clear="none">

> <br clear="none">> The workarround to try [for intel compilers] is:<br clear="none">> <br clear="none">> --with-clib-autodetect=0 --with-fortranlib-autodetect=0 --with-cxxlib-autodetect=0 LIBS="-Bstatic -lifcore -Bdynamic"<br clear="none">

> <br clear="none">> Satish<br clear="none">> <br clear="none">> <br clear="none">> The On Wed, 8 Jan 2014, Barry Smith wrote:<br clear="none">> <br clear="none">> > <br clear="none">> >   Here is how icc is linking a C main program:<br clear="none">

> > <br clear="none">> > ld    --eh-frame-hdr -dynamic-linker /lib/ld-linux.so.2 -m elf_i386 -o /tmp/petsc-3SW45q/config.compilers/conftest
 -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32<br clear="none">>  -L/usr/lib/gcc/i386-redhat-linux/4.1.2/ -L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../ -L/lib/ -L/usr/lib /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o /usr/lib/gcc/i386-redhat-linux/4.1.2/crtbegin.o /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl -Bstatic -limf -lsvml -Bdynamic -lm -Bstatic -lipgo -ldecimal -Bdynamic -lgcc_s -lgcc -Bstatic -lirc -Bdynamic -lc -lgcc_s -lgcc -Bstatic -lirc_s -Bdynamic -ldl -lc /usr/lib/gcc/i386-redhat-linux/4.1.2/crtend.o /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o<br clear="none">

> > <br clear="none">> >    Since PETSc uses C if you use Fortran it needs to link against this same stuff with the intel Fortran linker. We try to rationalize the above list and get <br clear="none">> > <br clear="none">

> > Libraries needed to link C code with
 another linker: ['-ldl', '-L/apps/compilers/intel/Compiler/11.1/056/lib/ia32',<br clear="none">>  '-L/usr/lib/gcc/i386-redhat-linux/4.1.2', '-limf', '-lsvml', '-lipgo', '-ldecimal', '-lgcc_s', '-lirc', '-lirc_s', '-L/apps/compilers/intel/Compiler/11.1/056/lib/ia32', '-L/usr/lib/gcc/i386-redhat-linux/4.1.2’]<br clear="none">

> > <br clear="none">> > So when it uses ifort to link something it uses<br clear="none">> > <br clear="none">> > /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort  -o /tmp/petsc-3SW45q/config.setCompilers/conftest    -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -limf -lsvml -lipgo -ldecimal -lgcc_s -lirc -lirc_s -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -ldl <br clear="none">

> > <br clear="none">> > which when running
 the code results in <br clear="none">> > <br clear="none">> > ERROR while running executable: Could not execute<br clear="none">>  "/tmp/petsc-3SW45q/config.setCompilers/conftest":<br clear="none">

> > /tmp/petsc-3SW45q/config.setCompilers/conftest: error while loading shared libraries: libirc.so: wrong ELF class: ELFCLASS64<br clear="none">> > <br clear="none">> > Because the -Bstatic are stripped from the link line the wrong libirc.so gets picked up by the linker resulting in the runtime error.<br clear="none">

> > <br clear="none">> > I’ve seen these perverse icc link lines mess things up before but don’t remember a solution. Satish must remember!<br clear="none">> > <br clear="none">> > Is there a reason to use the 32bit version?  Have you tried using the 64 bit compilers ? Generally I don’t think there is a reason to use 32bit now a days.<br clear="none">

> > <br clear="none">> > Barry<br clear="none">> > <br clear="none">> > <br clear="none">> > <br clear="none">> > <br clear="none">> > <br clear="none">> > <br clear="none">

> > On Jan 8, 2014, at 3:21<br clear="none">>  PM, Qin Lu <<a href="mailto:lu_qin_2000@yahoo.com" shape="rect" rel="nofollow" target="_blank">lu_qin_2000@yahoo.com</a>> wrote:<br clear="none">> > <br clear="none">
> > > Hello,<br clear="none">
> > >  <br clear="none">> > > I am trying to build a Linux 32-bit PETSc lib. I first built python-2.7.5 in a 32-bit Linux workstation without problem, then used this python to configure PETSc-3.4.2 with Intel C/C++/Fortran compilers, it got the following error:<br clear="none">

> > >  <br clear="none">> > > ===============================================================================           
                                                                     TESTING: checkCLibraries from<br clear="none">>  config.compilers(config/BuildSystem/config/compilers.py:161)                                                                     *******************************************************************************<br clear="none">

> > >                     UNABLE to EXECUTE BINARIES for ./configure<br clear="none">> > > -------------------------------------------------------------------------------<br clear="none">> >
 > Cannot run executables created with FC. If this machine uses a batch system<br clear="none">> > > to submit jobs you will need to configure using ./configure with the additional option  --with-batch.<br clear="none">

> > >  Otherwise there is problem with the compilers. Can you compile and run code<br clear="none">>  with your C/C++ (and maybe Fortran) compilers?<br clear="none">> > > See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#libimf" shape="rect" rel="nofollow" target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html#libimf</a><br clear="none">

> > > *******************************************************************************<br clear="none">> > >  <br clear="none">> > > It seems that a test program built with the given Intel ifort does not run. But I have built another program using ifort in the same workstation and it runs fine.<br clear="none">

>
 > >  <br clear="none">> > > Please see the attached configure.log file for details.<br clear="none">> > >  <br clear="none">> > > Thanks for your suggestions!<br clear="none">> > >  <br clear="none">

> > > Regards,<br clear="none">> > > Qin<br clear="none">> > >  <br clear="none">> > >  <br clear="none">> > ><br clear="none">>  <configure.log></div><br clear="none">
> > <br clear="none">
> ><br clear="none">> <br clear="none"></div><br clear="none"><br clear="none"></div><span class="HOEnZb"><font color="#888888">  </font></span></div><span class="HOEnZb"><font color="#888888"> </font></span></div>
<span class="HOEnZb"><font color="#888888">  </font></span></div><span class="HOEnZb"><font color="#888888"> </font></span></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br clear="none"><br clear="all">
<div><br clear="none"></div>-- <br clear="none">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br clear="none">

-- Norbert Wiener
</font></span></div></div></div></div><br><br></div>  </div> </div>  </div> </div></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>