[petsc-dev] cmake problem

Barry Smith bsmith at mcs.anl.gov
Fri Sep 23 18:54:10 CDT 2011


On Sep 23, 2011, at 5:54 PM, Jed Brown wrote:

> Does make -C $PETSC_ARCH clean fix the problem. I don't know what caused this in the first place.

  I started a "make" without the cmake part then control-ced it because I didn't want to waste time for it (a thing that could happen all the time). 

> I'd rather not always have reconfigure clean because it usually means needless compiling. I

    At least have it clean up the Fortran module stuff?

> guess normal make clean should clean the CMake part as well...

   Absolutely

   Barry

> 
> On Sep 23, 2011 5:23 PM, "Barry Smith" <bsmith at mcs.anl.gov> wrote:
> > 
> > Jed,
> > 
> > Please see the error below. What is the approved way to recover from something incomprehensible to me like this? Shouldn't a reconfigure clean up all possible dangers?
> > 
> > Thanks
> > 
> > Barry
> > 
> > 
> > 
> > barry-smiths-macbook-pro:petsc-dev barrysmith$ ./arch-gnu/conf/reconfigure-arch-gnu.py
> > ===============================================================================
> > Configuring PETSc to compile on your system 
> > ===============================================================================
> > TESTING: alternateConfigureLibrary from PETSc.packages.mpi4py(config/PETSc/packages/mpi4py.py:49) Compilers:
> > C Compiler: /Users/barrysmith/Src/petsc-dev/arch-gnu/bin/mpicc -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 
> > CUDA Compiler: nvcc -g 
> > Fortran Compiler: /Users/barrysmith/Src/petsc-dev/arch-gnu/bin/mpif90 -Wall -Wno-unused-variable -Wno-unused-dummy-argument -g 
> > Linkers:
> > Static linker: /usr/bin/ar cr
> > Dynamic linker: /Users/barrysmith/Src/petsc-dev/arch-gnu/bin/mpicc -dynamiclib -single_module -undefined dynamic_lookup -multiply_defined suppress -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3
> > MPI:
> > Includes: -I/Users/barrysmith/Src/petsc-dev/arch-gnu/include
> > X11:
> > Includes: 
> > Library: -L/usr/X11R6/lib -lX11
> > BLAS/LAPACK: -llapack -lblas
> > c2html:
> > pthread:
> > sowing:
> > valgrind:
> > Includes: -I/opt/local/include
> > PETSc:
> > PETSC_ARCH: arch-gnu
> > PETSC_DIR: /Users/barrysmith/Src/petsc-dev
> > Clanguage: C
> > Scalar type: real
> > Precision: double
> > Memory alignment: 16
> > shared libraries: disabled
> > dynamic loading: disabled
> > xxx=========================================================================xxx
> > Configure stage complete. Now build PETSc libraries with (legacy build):
> > make PETSC_DIR=/Users/barrysmith/Src/petsc-dev PETSC_ARCH=arch-gnu all
> > or (experimental with python):
> > PETSC_DIR=/Users/barrysmith/Src/petsc-dev PETSC_ARCH=arch-gnu ./config/builder.py
> > xxx=========================================================================xxx
> > barry-smiths-macbook-pro:petsc-dev barrysmith$ make cmake
> > make -j 2 -C /Users/barrysmith/Src/petsc-dev/arch-gnu
> > Scanning dependencies of target petsc
> > Error copying Fortran module "include/petscsys". Tried "include/PETSCSYS.mod" and "include/petscsys.mod".
> > make[4]: *** [CMakeFiles/petsc.dir/src/sys/f90-mod/petscsysmod.F.o.provides.build] Error 1
> > make[3]: *** [CMakeFiles/petsc.dir/src/sys/f90-mod/petscsysmod.F.o.provides] Error 2
> > make[2]: *** [CMakeFiles/petsc.dir/all] Error 2
> > make[1]: *** [all] Error 2
> > make: *** [cmake] Error 2
> > 
> > 




More information about the petsc-dev mailing list