Installation error

Issue #15 resolved
Blaž Starc created an issue

Hi,

I am trying to install slepc4py on my virtualBox (ubuntu) and I get an error:

/slepcconf.h:1:0: error: unterminated #if

#if !defined(__SLEPCCONF_H)

^

error: command '/home/blaz/Desktop/petsc-3.5.1/arch-linux2-c-debug/bin/mpicc' failed with exit status 1

How can I fix this?


blaz@blaz-VirtualBox:~/Desktop/slepc-slepc-d8f15c851948$ pip install --user slepc4py Downloading/unpacking slepc4py Could not find any downloads that satisfy the requirement slepc4py Some externally hosted files were ignored (use --allow-external slepc4py to allow). Cleaning up... No distributions at all found for slepc4py Storing debug log for failure in /home/blaz/.pip/pip.log blaz@blaz-VirtualBox:~/Desktop/slepc-slepc-d8f15c851948$ pip install --user slepc4py --allow-external slpec4py Downloading/unpacking slepc4py Could not find any downloads that satisfy the requirement slepc4py Some externally hosted files were ignored (use --allow-external slepc4py to allow). Cleaning up... No distributions at all found for slepc4py Storing debug log for failure in /home/blaz/.pip/pip.log blaz@blaz-VirtualBox:~/Desktop/slepc-slepc-d8f15c851948$ pip install --user slepc4py --allow-external slepc4py Downloading/unpacking slepc4py slepc4py an externally hosted file and may be unreliable Downloading slepc4py-3.5.1.tar.gz (687kB): 687kB downloaded Running setup.py (path:/tmp/pip_build_blaz/slepc4py/setup.py) egg_info for package slepc4py

Requirement already satisfied (use --upgrade to upgrade): petsc4py>=3.5 in /home/blaz/.local/lib/python2.7/site-packages (from slepc4py) Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/local/lib/python2.7/dist-packages (from petsc4py>=3.5->slepc4py) Installing collected packages: slepc4py Running setup.py install for slepc4py SLEPC_DIR: /home/blaz/Desktop/slepc-slepc-d8f15c851948 PETSC_DIR: /home/blaz/Desktop/petsc-3.5.1 PETSC_ARCH: arch-linux2-c-debug version: 3.5.1 release scalar-type: real precision: double language: CONLY compiler: /home/blaz/Desktop/petsc-3.5.1/arch-linux2-c-debug/bin/mpicc linker: /home/blaz/Desktop/petsc-3.5.1/arch-linux2-c-debug/bin/mpicc building 'SLEPc' extension /home/blaz/Desktop/petsc-3.5.1/arch-linux2-c-debug/bin/mpicc -pthread -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -O0 -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DPETSC_DIR=/home/blaz/Desktop/petsc-3.5.1 -DSLEPC_DIR=/home/blaz/Desktop/slepc-slepc-d8f15c851948 -I/home/blaz/Desktop/slepc-slepc-d8f15c851948/include -I/home/blaz/Desktop/slepc-slepc-d8f15c851948/arch-linux2-c-debug/include -I/home/blaz/Desktop/petsc-3.5.1/arch-linux2-c-debug/include -I/home/blaz/Desktop/petsc-3.5.1/include -Isrc/include -I/home/blaz/.local/lib/python2.7/site-packages/petsc4py/include -I/usr/include/python2.7 -c src/SLEPc.c -o build/temp.linux-x86_64-2.7/arch-linux2-c-debug/src/SLEPc.o In file included from /home/blaz/Desktop/slepc-slepc-d8f15c851948/include/slepcsys.h:33:0, from /home/blaz/Desktop/slepc-slepc-d8f15c851948/include/slepcst.h:26, from /home/blaz/Desktop/slepc-slepc-d8f15c851948/include/slepceps.h:26, from /home/blaz/Desktop/slepc-slepc-d8f15c851948/include/slepcsvd.h:26, from /home/blaz/Desktop/slepc-slepc-d8f15c851948/include/slepc.h:24, from src/slepc4py.SLEPc.c:349, from src/SLEPc.c:3: /home/blaz/Desktop/slepc-slepc-d8f15c851948/arch-linux2-c-debug/include/slepcconf.h:1:0: error: unterminated #if #if !defined(SLEPCCONF_H) ^ error: command '/home/blaz/Desktop/petsc-3.5.1/arch-linux2-c-debug/bin/mpicc' failed with exit status 1 Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file='/tmp/pip_build_blaz/slepc4py/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-HjP3Zm-record/install-record.txt --single-version-externally-managed --compile --user: running install

running build

running build_src

running build_py

creating build

creating build/lib.linux-x86_64-2.7

creating build/lib.linux-x86_64-2.7/slepc4py

copying src/SLEPc.py -> build/lib.linux-x86_64-2.7/slepc4py

copying src/init.py -> build/lib.linux-x86_64-2.7/slepc4py

copying src/help.py -> build/lib.linux-x86_64-2.7/slepc4py

copying src/main.py -> build/lib.linux-x86_64-2.7/slepc4py

creating build/lib.linux-x86_64-2.7/slepc4py/lib

copying src/lib/init.py -> build/lib.linux-x86_64-2.7/slepc4py/lib

creating build/lib.linux-x86_64-2.7/slepc4py/include

creating build/lib.linux-x86_64-2.7/slepc4py/include/slepc4py

copying src/include/slepc4py/slepc4py.h -> build/lib.linux-x86_64-2.7/slepc4py/include/slepc4py

copying src/include/slepc4py/slepc4py.SLEPc_api.h -> build/lib.linux-x86_64-2.7/slepc4py/include/slepc4py

copying src/include/slepc4py/slepc4py.SLEPc.h -> build/lib.linux-x86_64-2.7/slepc4py/include/slepc4py

copying src/include/slepc4py/slepc4py.i -> build/lib.linux-x86_64-2.7/slepc4py/include/slepc4py

copying src/include/slepc4py/init.pxd -> build/lib.linux-x86_64-2.7/slepc4py/include/slepc4py

copying src/include/slepc4py/SLEPc.pxd -> build/lib.linux-x86_64-2.7/slepc4py/include/slepc4py

copying src/include/slepc4py/init.pyx -> build/lib.linux-x86_64-2.7/slepc4py/include/slepc4py

copying src/lib/slepc.cfg -> build/lib.linux-x86_64-2.7/slepc4py/lib

running build_ext

SLEPC_DIR: /home/blaz/Desktop/slepc-slepc-d8f15c851948

PETSC_DIR: /home/blaz/Desktop/petsc-3.5.1

PETSC_ARCH: arch-linux2-c-debug

version: 3.5.1 release

scalar-type: real

precision: double

language: CONLY

compiler: /home/blaz/Desktop/petsc-3.5.1/arch-linux2-c-debug/bin/mpicc

linker: /home/blaz/Desktop/petsc-3.5.1/arch-linux2-c-debug/bin/mpicc

building 'SLEPc' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/arch-linux2-c-debug

creating build/temp.linux-x86_64-2.7/arch-linux2-c-debug/src

/home/blaz/Desktop/petsc-3.5.1/arch-linux2-c-debug/bin/mpicc -pthread -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -O0 -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DPETSC_DIR=/home/blaz/Desktop/petsc-3.5.1 -DSLEPC_DIR=/home/blaz/Desktop/slepc-slepc-d8f15c851948 -I/home/blaz/Desktop/slepc-slepc-d8f15c851948/include -I/home/blaz/Desktop/slepc-slepc-d8f15c851948/arch-linux2-c-debug/include -I/home/blaz/Desktop/petsc-3.5.1/arch-linux2-c-debug/include -I/home/blaz/Desktop/petsc-3.5.1/include -Isrc/include -I/home/blaz/.local/lib/python2.7/site-packages/petsc4py/include -I/usr/include/python2.7 -c src/SLEPc.c -o build/temp.linux-x86_64-2.7/arch-linux2-c-debug/src/SLEPc.o

In file included from /home/blaz/Desktop/slepc-slepc-d8f15c851948/include/slepcsys.h:33:0,

             from /home/blaz/Desktop/slepc-slepc-d8f15c851948/include/slepcst.h:26,

             from /home/blaz/Desktop/slepc-slepc-d8f15c851948/include/slepceps.h:26,

             from /home/blaz/Desktop/slepc-slepc-d8f15c851948/include/slepcsvd.h:26,

             from /home/blaz/Desktop/slepc-slepc-d8f15c851948/include/slepc.h:24,

             from src/slepc4py.SLEPc.c:349,

             from src/SLEPc.c:3:

/home/blaz/Desktop/slepc-slepc-d8f15c851948/arch-linux2-c-debug/include/slepcconf.h:1:0: error: unterminated #if

#if !defined(__SLEPCCONF_H)

^

error: command '/home/blaz/Desktop/petsc-3.5.1/arch-linux2-c-debug/bin/mpicc' failed with exit status 1


Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip_build_blaz/slepc4py/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-HjP3Zm-record/install-record.txt --single-version-externally-managed --compile --user failed with error code 1 in /tmp/pip_build_blaz/slepc4py Storing debug log for failure in /home/blaz/.pip/pip.log

Comments (2)

  1. Jose E. Roman

    This error suggests that SLEPc's configure failed. You must build and test SLEPc before proceeding to install slepc4py: cd $SLEPC_DIR; ./configure; make; make test. Alternatively, let pip install download the dependencies for you.

  2. Log in to comment