Here is the answer:<br><br><a href="http://comments.gmane.org/gmane.comp.clustering.open-mpi.user/12804">http://comments.gmane.org/gmane.comp.clustering.open-mpi.user/12804</a><br><br><br><div class="gmail_quote">On Mon, Aug 6, 2012 at 4:37 PM, Sanjay Govindjee <span dir="ltr"><<a href="mailto:s_g@berkeley.edu" target="_blank">s_g@berkeley.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Did you remember to 'source iccvars.sh' first?<div><div class="h5"><br>
    <br>
    <div>On 8/6/12 7:18 AM, Adam Stanier wrote:<br>
    </div>
    <blockquote type="cite">
      
      
      <div style="direction:ltr;font-size:10pt;font-family:Tahoma"><br>
        <div style="font-size:16px;font-family:Times New Roman">
          <div>
            <div style="direction:ltr;font-size:10pt;font-family:Tahoma">
              Hello,<br>
              <br>
              I'm trying to configure PETSc 3.2-p7 with intel composer
              xe 2011 mpi libraries. This is the configure line I have
              been using:<br>
              <br>
              ./configure --with-cc=mpiicc --with-cxx=mpiicpc
              --with-fc=mpiifort
              --with-blas-lapack-dir=/usr/local/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64/
              --with-blacs-lib=/usr/local/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a

              --with-blacs-include=/usr/local/intel/composer_xe_2011_sp1.6.233/mkl/include
              --with-scalapack-lib=/usr/local/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64/libmkl_scalapack_lp64.a
              --with-scalapack-include=/usr/local/intel/composer_xe_2011_sp1.6.233/mkl/include

              --download-parmetis --download-mumps
              --download-superlu_dist --download-hypre
              --with-mpi-dir=/usr/local/intel/impi/<a href="http://4.0.3.008/intel64/" target="_blank">4.0.3.008/intel64/</a>
              --with-debugging=0<br>
              <br>
              This is fine for making PETSc, but when I try to run a
              code based on the PETSc libraries I get the following
              error:<br>
              ./sel: symbol lookup error: ./sel: undefined symbol:
              __intel_sse2_strchr<br>
              <br>
              I don't get this error when I set --with-debugging=1 with
              everything else the same.<br>
              <br>
              Apparently this symbol should be within the libirc.a
              library. I notice that PETSc is looking in a folder for
              gcc for this library:<br>
              -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 <br>
              <br>
              but I want to use the version within the intel lib
              directory:<br>
/usr/local/intel/composer_xe_2011_sp1.6.233/compiler/lib/intel64<br>
              <br>
              Is there a way to do this? I couldn't find anything by
              searching.<br>
              <br>
              Many Thanks,<br>
              Adam<br>
              <br>
              <br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    </div></div><pre cols="72">-- 
-----------------------------------------------
Sanjay Govindjee, PhD, PE
Professor of Civil Engineering
Vice Chair for Academic Affairs

779 Davis Hall
Structural Engineering, Mechanics and Materials
Department of Civil Engineering
University of California
Berkeley, CA 94720-1710

Voice:  <a href="tel:%2B1%20510%20642%206060" value="+15106426060" target="_blank">+1 510 642 6060</a>
FAX:    <a href="tel:%2B1%20510%20643%205264" value="+15106435264" target="_blank">+1 510 643 5264</a>
<a href="mailto:s_g@berkeley.edu" target="_blank">s_g@berkeley.edu</a>
<a href="http://www.ce.berkeley.edu/%7Esanjay" target="_blank">http://www.ce.berkeley.edu/~sanjay</a>
-----------------------------------------------
</pre>
  </div>

</blockquote></div><br><br clear="all"><br>-- <br>Zhengyong Ren<br>AUG Group, Institute of Geophysics<br>Department of Geosciences, ETH Zurich<br>NO H 47 Sonneggstrasse 5<br>CH-8092, Zürich, Switzerland<br>Tel: +41 44 633 37561<br>
e-mail: <a href="mailto:zhengyong.ren@aug.ig.erdw.ethz.ch">zhengyong.ren@aug.ig.erdw.ethz.ch</a><br>Gmail: <a href="mailto:renzhengyong@gmail.com">renzhengyong@gmail.com</a><br>