[petsc-users] configure error with --with-shared-libraries=0 --download-elemental

Barry Smith bsmith at mcs.anl.gov
Tue Aug 4 14:33:31 CDT 2015


  Aghh, looks like CMake does not have a universal standard for indicating shared libraries or not.

  Please try the attached elemental.py file and see if that resolves your difficulties. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elemental.py
Type: text/x-python-script
Size: 2705 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150804/3a141556/attachment.bin>
-------------- next part --------------



  Barry

> On Aug 4, 2015, at 12:22 PM, George Pau <gpau at lbl.gov> wrote:
> 
> Hi,
> 
> I am configuring petsc on NERSC/Edison with the following configure arguments:
> 
> --with-debugging=1 --with-shared-libraries=0 --prefix=/global/homes/g/gpau/clm-rom/install/t
> pls --with-cxx-dialect=C++11 --download-elemental --download-mumps --download-scalapack --do
> wnload-parmetis --download-metis --download-hdf5 --download-netcdf --with-x=0 --with-cc=/opt
> /cray/craype/2.3.1/bin/cc --with-cxx=/opt/cray/craype/2.3.1/bin/CC --with-fc=/opt/cray/crayp
> e/2.3.1/bin/ftn
> 
> but it seems like the --with-shared-libraries=0 is not propagated when building elemental.  In the end I get the following error:
> 
> gmake[3]: Leaving directory `/global/u1/g/gpau/clm-rom/build/tpl-build/petsc/petsc-3.6.1-sou
> rce/arch-linux2-c-debug/externalpackages/Elemental-0.85-p1/build'/usr/bin/ld: /usr/common/us
> g/darshan/2.3.0/lib/libdarshan-mpi-io.a(darshan-mpi-io.o): relocation R_X86_64_32 against `.
> rodata' can not be used when making a shared object; recompile with -fPIC
> 
> Any help will be appreciated.  Attached is the configure log file.
> 
> Thanks,
> George
> 
> 
> -- 
> George Pau
> Earth Sciences Division
> Lawrence Berkeley National Laboratory
> One Cyclotron, MS 74-120
> Berkeley, CA 94720
> 
> (510) 486-7196
> gpau at lbl.gov
> http://esd.lbl.gov/about/staff/georgepau/
> <petsc-configure-out.log>



More information about the petsc-users mailing list