[petsc-users] configure error with --with-shared-libraries=0 --download-elemental
Barry Smith
bsmith at mcs.anl.gov
Tue Aug 4 17:09:59 CDT 2015
George,
Thanks for letting us know. Now fixed in maint, master, next and will be in our next patch release
Barry
commit 5219fea8a3666c8b7c80c852d85e563864a43d28
Author: Barry Smith <bsmith at mcs.anl.gov>
Date: Tue Aug 4 14:33:41 2015 -0500
Turn off elemental shared libraries if --with-shared-libraries=0 is used
Reported-by: George Pau <gpau at lbl.gov>
> On Aug 4, 2015, at 5:06 PM, George Pau <gpau at lbl.gov> wrote:
>
> Barry,
>
> Thanks. The patch works.
>
> George
>
>
> On Tue, Aug 4, 2015 at 12:33 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
> 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.
>
>
>
> 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>
>
>
>
>
>
> --
> 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/
More information about the petsc-users
mailing list