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

Richard Tran Mills rmills at climate.ornl.gov
Wed Feb 2 17:25:16 CST 2011


I should probably add that I was configuring with

Configure Options: --configModules=PETSc.Configure 
--optionsModule=PETSc.compilerOptions --with-cc=gcc --with-fc=gfortran 
--with-cxx=g++ COPTFLAGS=-g FOPTFLAGS=-g CXXOPTFLAGS=-g 
--download-f-blas-lapack=1 --download-mpich=1 --download-hdf5=1 
--download-hypre=1 --download-ml=1 --download-blacs=1 --download-scalapack=1 
--download-parmetis=1 --download-plapack=1 --with-cmake=/usr/bin/cmake 
PETSC_ARCH=ubuntu-gnu_g

--Richard

On 2/2/2011 6:22 PM, Richard Tran Mills wrote:
> Hi Jed,
>
> I get the following:
>
> -----
> rmills at ubuntu:~/proj/petsc-dev/ubuntu-gnu_g$ /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'
> CMake Error: The following variables are used in this project, but they are 
> set to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the CMake 
> files:
> PETSC_STDC++_LIB (ADVANCED)
>     linked by target "petsc" in directory /home/rmills/proj/petsc-dev
>
> -- Configuring incomplete, errors occurred!
> -----
>
> --Richard
>
> On 2/2/2011 11:51 AM, Jed Brown wrote:
>> '/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'
>

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




More information about the petsc-dev mailing list