compilation problem with PETSC_ARCH
Hi - it seems there is a problem in the build system for the following case:
-
petsc is installed without the
PETSC_ARCH
part in its path (e.g. with--prefix=/usr/local/pkg/petsc
) but thePETSC_ARCH
is defined, since some other packages need it -
compiling slepc
SLEPC_DIR=`pwd`
PETSC_DIR='/usr/local/pkg/petsc'
PETSC_ARCH=''
./configure --prefix=/usr/local/pkg/slepc
make SLEPC_DIR=$PWD PETSC_DIR=/usr/local/pkg/petsc
fails with
/usr/users/hron/pkg/slepc/conf/slepc_rules:219: /usr/users/hron/pkg/slepc//conf/slepcrules: No such file or directory
make[2]: Entering directory `/usr/users/hron/pkg/slepc'
make[2]: *** No rule to make target `/usr/users/hron/pkg/slepc//conf/slepcrules'. Stop.
the missing file exist, but is in /usr/users/hron/pkg/slepc/arch-linux2-c-opt/conf/slepcrules
It seems that even if the PETSC_ARCH
is empty slepc/config/petscconf.py
makes up some ARCH
value but its not used corectly
Comments (5)
-
-
reporter Yes, i believe i did.
At the end I had to undefine completely the
PETS_ARCH
variable byexport -n PETSC_ARCH
- then it works ok. -
Are you using the master branch? I think this problem appears in the maint branch but is fixed in master.
-
reporter Thanks - I see, that was my mistake - you are right that in master it is fine just to set
PETSC_ARCH=''
I was a bit surprised by the
slepc/arch-linux2-c-opt/lib
-
reporter - changed status to resolved
- Log in to comment
Have you tried to run the make command exactly as it is reported by SLEPc's configure?