<p>Fffg</p>
<div class="gmail_quote">On Aug 9, 2013 12:25 PM, "Barry Smith" <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
petsc-dev folks,<br>
<br>
If PETSc is configured to generate a shared library then ./configure should check each externally needed library and make sure they can be handled with a shared library. This shouldn't be something discovered at PETSc library compilation time.<br>
<br>
Barry<br>
<br>
<br>
Begin forwarded message:<br>
<br>
> From: Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>><br>
> Subject: Re: [petsc-maint] help with PETSc compilation<br>
> Date: August 9, 2013 1:23:14 PM CDT<br>
> To: Brendan C Lyons <<a href="mailto:bclyons@princeton.edu">bclyons@princeton.edu</a>><br>
> Cc: <a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a><br>
><br>
><br>
> Brendan,<br>
><br>
> The scalapack you are linking against is not compiled to go into a shared library.<br>
><br>
> /usr/bin/ld: /usr/pppl/pathscale/4.0.X-pkgs/openmpi-1.6-pkgs/scalapack-2.0.2/lib/libscalapack.a(blacs_map_.o): relocation R_X86_64_32S against `ompi_mpi_comm_null' can not be used when making a shared object; recompile with -fPIC<br>
><br>
> You can either<br>
><br>
> 1) not build PETSc shared libraries by adding the configure option --with-shared-libraries=0 With this option linking executables will be slower.<br>
><br>
> or<br>
><br>
> 2) use --download-scalapack instead of --with-scalapack-dir<br>
><br>
> Barry<br>
><br>
><br>
> On Aug 9, 2013, at 12:58 PM, Brendan C Lyons <<a href="mailto:bclyons@princeton.edu">bclyons@princeton.edu</a>> wrote:<br>
><br>
>> Dear Sir or Madam,<br>
>><br>
>> I'm trying to compile a debug version of PETSc to track down an error with SuperLU_DIST using multiple processors, but I'm running into an error. The error message said to send you the attached files. If you have any advice, I would appreciate it.<br>
>><br>
>> Thank you,<br>
>><br>
>> ~Brendan Lyons<br>
>> Graduate Student<br>
>> Princeton Plasma Physics Laboratory<br>
>> <configure.log><make.log><br>
><br>
<br>
</blockquote></div>