It could have something to do with the mpi/gcc version you are using, maybe it's not compatible with HYPRE? Again it depends what the configure.log from your stand-alone PETSc tells you.

Send the configure.log to petsc-maint@mcs.anl.gov and they should tell you what the problem is exactly.

On Fri, Oct 9, 2015 at 11:31 AM, Tuomas Karna <tuomas.karna@gmail.com> wrote:
Interesting. Installing with with --minimal_petsc works fine.

If I build petsc with --download-hypre I see the same ceil error:

Cloned the same petsc (bitbucket.org/mapdes/petsc.git branch firedrake commit f2b0407) and configured with the same options:

./configure --prefix=/home/tuomas/sources/petsc/firedrake/build/lib/python2.7/site-packages/petsc PETSC_ARCH=arch-python-linux-x86_64 --with-shared-libraries=1 --with-debugging=0 --with-c2html=0 --with-cc=/usr/bin/mpicc --with-cxx=/usr/bin/mpicxx --with-fc=0 --with-sowing=0 --download-ctetgen --download-triangle --download-chaco --download-metis --download-parmetis --download-scalapack --download-hypre --download-mumps --download-netcdf --download-hdf5 --download-exodusii

With this I get error:
*******************************************************************************
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
-------------------------------------------------------------------------------
Cannot use scalapack without Fortran, make sure you do NOT have --with-fc=0
*******************************************************************************

If I remove --download-mumps  and --download-scalapack, I get the same hypre error as with firedrake-install:

*******************************************************************************
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
-------------------------------------------------------------------------------
Downloaded hypre could not be used. Please check install in /home/tuomas/sources/petsc/firedrake/build/lib/python2.7/site-packages/petsc
*******************************************************************************

configure.log (too large to attach) has more details:

Possible ERROR while running linker: exit code 256
stderr:
/home/tuomas/sources/petsc/firedrake/build/lib/python2.7/site-packages/petsc/lib
/libHYPRE.a(exchange_data.o): In function `hypre_DataExchangeList':
/home/tuomas/sources/petsc/firedrake/arch-python-linux-x86_64/externalpackages/h
ypre-2.10.0b-p1/src/utilities/exchange_data.c:205: undefined reference to `ceil'

which would suggest that the linker is missing some libs?

- Tuomas



On 10/09/2015 03:08 AM, David Ham wrote:
It seems I spoke too soon. Firedrake-install works for me but the manual configure Tuomas posted fails. Intriguing...

On Fri, 9 Oct 2015 at 10:49 Ham, David A <david.ham@imperial.ac.uk> wrote:
I can reproduce this error. Bizarrely it's an unresolved reference to ceil somewhere deep in Hypre. I have no idea why. Looking further now.
david

On Thu, 8 Oct 2015 at 22:39 Justin Chang <jychang48@gmail.com> wrote:
Oh, I think it would only show up if you successfully installed petsc. Could be wrong though

On Thu, Oct 8, 2015 at 3:33 PM, Tuomas Karna <tuomas.karna@gmail.com> wrote:
Hi Justin,

I haven't used hypre with PETSc before. I'll try configuring it with the same options.

Actually, show us what's in /home/tuomas/firedrake/lib/python2.7/site-packages/petsc/lib/petsc/conf/configure.log
I tried to look for the cofigure.log but it's not under /home/tuomas/firedrake/lib/python2.7/site-packages/petsc/lib/ ...

- Tuomas


On 10/08/2015 02:29 PM, Justin Chang wrote:
Actually, show us what's in /home/tuomas/firedrake/lib/python2.7/site-packages/petsc/lib/petsc/conf/configure.log

On Thu, Oct 8, 2015 at 3:28 PM, Justin Chang <jychang48@gmail.com> wrote:
In your already installed PETSc version, did you have HYPRE configured with the same MPI compilers? If not, see if you can reproduce this error and see what's going on in the configure.log

On Thu, Oct 8, 2015 at 3:15 PM, Tuomas Karna <tuomas.karna@gmail.com> wrote:
Hi all,

I'm trying to install firedrake with
python firedrake-install --developer --log --disable_ssh --no_package_manager

and I get the following error when building PETSc (full log attached):

*******************************************************************************

         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):

-------------------------------------------------------------------------------

Downloaded hypre could not be used. Please check install in /home/tuomas/firedrake/lib/python2.7/site-packages/petsc

*******************************************************************************

Any ideas? I'm on Ubuntu 15.04, I have PETSc installed but I've unset PETSC_DIR.


- Tuomas


_______________________________________________
firedrake mailing list
firedrake@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake





_______________________________________________
firedrake mailing list
firedrake@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake


_______________________________________________
firedrake mailing list
firedrake@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake




_______________________________________________
firedrake mailing list
firedrake@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake


_______________________________________________
firedrake mailing list
firedrake@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake