Dear Bhavesh,
From the log file, here is your problem:
    *******************************************************************************
             UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
    -------------------------------------------------------------------------------
    Your libraries are from OpenMPI but it appears your mpiexec is from MPICH
    *******************************************************************************
You have a confused mix of OpenMPI and MPICH installed, and this is causing the PETSc configure to fail. Generally speaking, MPICH is a much more robust option than Open-MPI, so the best option is
 to just get rid of OpenMPI and have the Ubuntu libmpich-dev package installed.
Regards,
David
From:
<firedrake-bounces@imperial.ac.uk> on behalf of Bhavesh Shrimali <bhavesh.shrimali@gmail.com>
Date: Friday, 18 October 2019 at 16:32
To: firedrake <firedrake@imperial.ac.uk>
Subject: [firedrake] Installation on Ubuntu: 18.04.3 LTS
Hi all,  
I tried installing firedrake on my laptop with `Ubuntu: 18.04` but have been unsuccessful so far.
These are the warnings I see in the `log` file 
===============================================================================
                      ***** WARNING: F90 (set to mpif90) found in environment variables - ignoring
                       use ./configure F90=$F90 if you really want to use that value ******
                  ===============================================================================
                     ===============================================================================
                          ***** WARNING: Using default optimization C flags -g -O
                          You might consider manually setting optimal optimization flags for your system with
                           COPTFLAGS="optimization flags" see config/examples/arch-*-opt.py for examples
                      ===============================================================================
                      ===============================================================================
                          ***** WARNING: Using default C++ optimization flags -g -O
                          You might consider manually setting optimal optimization flags for your system with
                           CXXOPTFLAGS="optimization flags" see config/examples/arch-*-opt.py for examples
                      ===============================================================================
                      ===============================================================================
                          ***** WARNING: Using default FORTRAN optimization flags -g -O
                          You might consider manually setting optimal optimization flags for your system with
                           FOPTFLAGS="optimization flags" see config/examples/arch-*-opt.py for examples
                      ===============================================================================
and it fails to build PETSc beyond this point. 
    *******************************************************************************
             UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
    -------------------------------------------------------------------------------
    Your libraries are from OpenMPI but it appears your mpiexec is from MPICH
    *******************************************************************************
I am attaching the entire `log` file for reference. 
Any leads into what could be possibly going wrong would be helpful. 
Thanks
Bhavesh
-- 
Bhavesh Shrimali
Ph.D. Student, Civil and Environmental Engineering,
University of Illinois Urbana-Champaign
Champaign, IL, United States
Email : 
bshrima2@illinois.edu