Topic: Building OOFEM with PETSc
Hi
I've managed to compile OOFEM without PETSc, but if I try to build it with PETSc im getting some errors when compiling.
I'm using OOFEM-1.7 and PETSc 2.3.3-p8. I've installed PETSc according to the instructions in http://www-unix.mcs.anl.gov/petsc/petsc … ation.html
I've configured PETSc with:
./config/configure.py --with-cc=gcc --with-fc=g77 --download-f-blas-lapack=1 --download-mpich=1
PETSC_DIR is '/home/christian/Software/src/petsc'
PETSC_ARCH is 'linux-gnu'
I've been abe to run 'make test' without encountering any errors.
I've configured OOFEM with: ./configure --enable-iml --enable-petsc --enable-dss -enable--oofeg
When I run 'make all' I get the following output from the compiler:
cd main/src; make oofem-release
make[1]: Entering directory `/home/christian/Software/src/oofem-1.7/main/src'
makefile:236: warning: overriding commands for target `clean'
/home/christian/Software/src/petsc/bmake/common/rules:95: warning: ignoring old commands for target `clean'
/usr/bin/make -C ../../oofemlib/src oofemlib-release
make[2]: Entering directory `/home/christian/Software/src/oofem-1.7/oofemlib/src'
c -D__OOFEMLIB_MODULE -D__SM_MODULE -D__TM_MODULE -D__FM_MODULE -D__IML_MODULE -D__DSS_MODULE -D__PETSC_MODULE -O -Wall -I/home/christian/Software/src/oofem-1.7/iml -I/home/christian/Software/src/petsc -I/home/christian/Software/src/petsc/bmake/linux-gnu -I/home/christian/Software/src/petsc/include -I/home/christian/Software/src/petsc/externalpackages/spooles-2.2/linux-gnu/ -I/home/christian/Software/src/petsc/externalpackages/mpich2-1.0.5p4/linux-gnu/include -I/home/christian/Software/src/oofem-1.7/dss/src bodyload.C -o ../oofem_obj/Release/bodyload.o
make[2]: c: Command not found
make[2]: [../oofem_obj/Release/bodyload.o] Error 127 (ignored)
then it's the same error message for the rest of the source files as well.
Did I configure OOFEM or PETSc incorrectly, am I just missing some pre-requisities or is it something totally different?
Thanks
Christian