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

Satish Balay balay at mcs.anl.gov
Wed Feb 2 10:48:56 CST 2011


I think there is some stuff on stdout.

configure should capture this and place it in configure.log.

Satish

On Wed, 2 Feb 2011, Richard Tran Mills wrote:

> 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
> 
> 




More information about the petsc-dev mailing list