[petsc-dev] Trying to get the CMake instructions to work, unsuccessfully

Richard Tran Mills rmills at climate.ornl.gov
Wed Feb 2 10:37:43 CST 2011


Hmm.  I see in my configure.log that configureCMake succeeds:

================================================================================
TEST configureCMake from 
PETSc.utilities.CMake(/home/rmills/proj/petsc-dev/config/PETSc/utilities/CMake.py:21)
TESTING: configureCMake from 
PETSc.utilities.CMake(config/PETSc/utilities/CMake.py:21)
   Check various things about cmake
Checking for program /usr/bin/cmake...found
           Defined make macro "CMAKE" to "/usr/bin/cmake"
================================================================================

But farther down in the configure.log I find

        Invoking: ['/usr/bin/cmake', '/home/rmills/proj/petsc-dev', 
'-DCMAKE_C_FLAGS= -Wall -Wwrite-strings -Wno-strict-aliasing 
-Wno-unknown-pragmas -g', 
'-DCMAKE_C_COMPILER=/home/rmills/proj/petsc-dev/ubuntu-gnu_g/bin/mpicc', 
'-DCMAKE_Fortran_FLAGS=  -Wall -Wno-unused-variable -g', 
'-DCMAKE_Fortran_COMPILER=/home/rmills/proj/petsc-dev/ubuntu-gnu_g/bin/mpif90']
     Booting CMake in PETSC_ARCH failed:
CMake process failed with status 1

in the output associated with configureFortranFlush.  So it looks like the 
CMake "boot" is failing.  Can you offer any advice on how to proceed?

Thanks,
Richard

On 2/2/2011 11:21 AM, Jed Brown wrote:
> On Wed, Feb 2, 2011 at 13:12, Richard Tran Mills <rmills at climate.ornl.gov 
> <mailto:rmills at climate.ornl.gov>> wrote:
>
>     Thanks for your responses.  However, that is the first thing that I tried:
>
>     rmills at ubuntu:~/proj/petsc-dev$ make -C ubuntu-gnu_g/
>     make: Entering directory `/home/rmills/proj/petsc-dev/ubuntu-gnu_g'
>     make: *** No targets specified and no makefile found.  Stop.
>     make: Leaving directory `/home/rmills/proj/petsc-dev/ubuntu-gnu_g'
>
>     Then I assumed that the instructions meant to say 'cmake', not 'make'. 
>     What is supposed to generate the makefile that gets used?
>
>
> configure should have generated petsc-dev/ubuntu-gnu_g/Makefile if cmake was 
> found.  Try
> rm -r CMake* ubuntu-gnu_g/CMake*
> # reconfigure if ubuntu-gnu_g/conf/PETScConfig.cmake is missing
> # otherwise you can just run config/cmakeboot.py (faster)
> make -C ubuntu-gnu_g

-- 
Richard Tran Mills, Ph.D.            |   E-mail: rmills at climate.ornl.gov
Computational Scientist              |   Phone:  (865) 241-3198
Computational Earth Sciences Group   |   Fax:    (865) 574-0405
Oak Ridge National Laboratory        |   http://climate.ornl.gov/~rmills

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20110202/60fbccd1/attachment.html>


More information about the petsc-dev mailing list