compilation problem with PETSC_ARCH

Issue #5 resolved
Jaroslav Hron created an issue

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 the PETSC_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)

  1. Jaroslav Hron reporter

    Yes, i believe i did.

    At the end I had to undefine completely the PETS_ARCH variable by export -n PETSC_ARCH - then it works ok.

  2. Jose E. Roman

    Are you using the master branch? I think this problem appears in the maint branch but is fixed in master.

  3. Jaroslav Hron 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

  4. Log in to comment