<div dir="ltr">Barry,<div><br></div><div>Thanks.  The patch works.  </div><div><br></div><div>George</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 4, 2015 at 12:33 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
  Aghh, looks like CMake does not have a universal standard for indicating shared libraries or not.<br>
<br>
  Please try the attached elemental.py file and see if that resolves your difficulties. <br><br>
<br>
<br>
  Barry<br>
<br>
> On Aug 4, 2015, at 12:22 PM, George Pau <<a href="mailto:gpau@lbl.gov">gpau@lbl.gov</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I am configuring petsc on NERSC/Edison with the following configure arguments:<br>
><br>
> --with-debugging=1 --with-shared-libraries=0 --prefix=/global/homes/g/gpau/clm-rom/install/t<br>
> pls --with-cxx-dialect=C++11 --download-elemental --download-mumps --download-scalapack --do<br>
> wnload-parmetis --download-metis --download-hdf5 --download-netcdf --with-x=0 --with-cc=/opt<br>
> /cray/craype/2.3.1/bin/cc --with-cxx=/opt/cray/craype/2.3.1/bin/CC --with-fc=/opt/cray/crayp<br>
> e/2.3.1/bin/ftn<br>
><br>
> but it seems like the --with-shared-libraries=0 is not propagated when building elemental.  In the end I get the following error:<br>
><br>
> gmake[3]: Leaving directory `/global/u1/g/gpau/clm-rom/build/tpl-build/petsc/petsc-3.6.1-sou<br>
> rce/arch-linux2-c-debug/externalpackages/Elemental-0.85-p1/build'/usr/bin/ld: /usr/common/us<br>
> g/darshan/2.3.0/lib/libdarshan-mpi-io.a(darshan-mpi-io.o): relocation R_X86_64_32 against `.<br>
> rodata' can not be used when making a shared object; recompile with -fPIC<br>
><br>
> Any help will be appreciated.  Attached is the configure log file.<br>
><br>
> Thanks,<br>
> George<br>
><br>
><br>
> --<br>
> George Pau<br>
> Earth Sciences Division<br>
> Lawrence Berkeley National Laboratory<br>
> One Cyclotron, MS 74-120<br>
> Berkeley, CA 94720<br>
><br>
> (510) 486-7196<br>
> <a href="mailto:gpau@lbl.gov">gpau@lbl.gov</a><br>
> <a href="http://esd.lbl.gov/about/staff/georgepau/" rel="noreferrer" target="_blank">http://esd.lbl.gov/about/staff/georgepau/</a><br>
> <petsc-configure-out.log><br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">George Pau</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Earth Sciences Division</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Lawrence Berkeley National Laboratory</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">One Cyclotron, MS 74-120</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Berkeley, CA 94720</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">(510) 486-7196<br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><a href="mailto:gpau@lbl.gov" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">gpau@lbl.gov</a><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><a href="http://esd.lbl.gov/about/staff/georgepau/" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">http://esd.lbl.gov/about/staff/georgepau/</a><br></div>
</div>