Installing with slepc 3.5 on Mac OSX

Issue #9 resolved
jtravs created an issue

I'm trying to build the master branch with petsc-3.5.1 and slepc-3.5 with arch-darwin-c-opt. I get the following error.

Any ideas? Thanks!

Johns-MacBook-Pro:slepc4py john$ python setup.py install --prefix=/Users/john/local/
running install
running build
running build_src
cythonizing 'slepc4py.SLEPc.pyx' -> 'slepc4py.SLEPc.c'
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-2.7
creating build/lib.macosx-10.9-x86_64-2.7/slepc4py
copying src/__init__.py -> build/lib.macosx-10.9-x86_64-2.7/slepc4py
copying src/__main__.py -> build/lib.macosx-10.9-x86_64-2.7/slepc4py
copying src/help.py -> build/lib.macosx-10.9-x86_64-2.7/slepc4py
copying src/SLEPc.py -> build/lib.macosx-10.9-x86_64-2.7/slepc4py
creating build/lib.macosx-10.9-x86_64-2.7/slepc4py/lib
copying src/lib/__init__.py -> build/lib.macosx-10.9-x86_64-2.7/slepc4py/lib
creating build/lib.macosx-10.9-x86_64-2.7/slepc4py/include
creating build/lib.macosx-10.9-x86_64-2.7/slepc4py/include/slepc4py
copying src/include/slepc4py/slepc4py.h -> build/lib.macosx-10.9-x86_64-2.7/slepc4py/include/slepc4py
copying src/include/slepc4py/slepc4py.SLEPc.h -> build/lib.macosx-10.9-x86_64-2.7/slepc4py/include/slepc4py
copying src/include/slepc4py/slepc4py.SLEPc_api.h -> build/lib.macosx-10.9-x86_64-2.7/slepc4py/include/slepc4py
copying src/include/slepc4py/slepc4py.i -> build/lib.macosx-10.9-x86_64-2.7/slepc4py/include/slepc4py
copying src/include/slepc4py/__init__.pxd -> build/lib.macosx-10.9-x86_64-2.7/slepc4py/include/slepc4py
copying src/include/slepc4py/SLEPc.pxd -> build/lib.macosx-10.9-x86_64-2.7/slepc4py/include/slepc4py
copying src/include/slepc4py/__init__.pyx -> build/lib.macosx-10.9-x86_64-2.7/slepc4py/include/slepc4py
copying src/lib/slepc.cfg -> build/lib.macosx-10.9-x86_64-2.7/slepc4py/lib
running build_ext
SLEPC_DIR:   /Users/john/Documents/code/downloaded/slepc-3.5.0
PETSC_DIR:   /Users/john/Documents/code/downloaded/petsc-3.5.1
PETSC_ARCH:  arch-darwin-c-opt
version:     3.5.1 release
scalar-type: complex
precision:   double
language:    CONLY
compiler:    gcc
linker:      gcc
building 'SLEPc' extension
creating build/temp.macosx-10.9-x86_64-2.7
creating build/temp.macosx-10.9-x86_64-2.7/arch-darwin-c-opt
creating build/temp.macosx-10.9-x86_64-2.7/arch-darwin-c-opt/src
gcc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O3 -fno-strict-aliasing -fno-common -dynamic -pipe -Os -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -DPETSC_DIR=/Users/john/Documents/code/downloaded/petsc-3.5.1 -DSLEPC_DIR=/Users/john/Documents/code/downloaded/slepc-3.5.0 -I/Users/john/Documents/code/downloaded/slepc-3.5.0/include -I/Users/john/Documents/code/downloaded/slepc-3.5.0/arch-darwin-c-opt/include -I/Users/john/Documents/code/downloaded/petsc-3.5.1/include/mpiuni -I/Users/john/Documents/code/downloaded/petsc-3.5.1/arch-darwin-c-opt/include -I/Users/john/Documents/code/downloaded/petsc-3.5.1/include -Isrc/include -I/Users/john/local/lib/python2.7/site-packages/petsc4py/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/SLEPc.c -o build/temp.macosx-10.9-x86_64-2.7/arch-darwin-c-opt/src/SLEPc.o
In file included from src/SLEPc.c:3:0:
src/slepc4py.SLEPc.c: In function '__pyx_pf_8slepc4py_5SLEPc_3SVD_22getTransposeMode':
src/slepc4py.SLEPc.c:24367:3: error: unknown type name 'SVDTransposeMode'
   SVDTransposeMode __pyx_v_val;
   ^
src/slepc4py.SLEPc.c:24384:17: error: 'SVD_TRANSPOSE_IMPLICIT' undeclared (first use in this function)
   __pyx_v_val = SVD_TRANSPOSE_IMPLICIT;
                 ^
src/slepc4py.SLEPc.c:24384:17: note: each undeclared identifier is reported only once for each function it appears in
src/slepc4py.SLEPc.c:24393:3: warning: implicit declaration of function 'SVDGetTransposeMode' [-Wimplicit-function-declaration]
   __pyx_t_1 = __pyx_f_8slepc4py_5SLEPc_CHKERR(SVDGetTransposeMode(__pyx_v_self->svd, (&__pyx_v_val))); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
   ^
In file included from src/SLEPc.c:3:0:
src/slepc4py.SLEPc.c: In function '__pyx_pf_8slepc4py_5SLEPc_3SVD_24setTransposeMode':
src/slepc4py.SLEPc.c:24490:3: error: unknown type name 'SVDTransposeMode'
   SVDTransposeMode __pyx_v_val;
   ^
src/slepc4py.SLEPc.c:24493:3: error: unknown type name 'SVDTransposeMode'
   SVDTransposeMode __pyx_t_1;
   ^
src/slepc4py.SLEPc.c:24507:17: error: 'SVDTransposeMode' undeclared (first use in this function)
   __pyx_t_1 = ((SVDTransposeMode)PyInt_AsLong(__pyx_v_mode)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                 ^
src/slepc4py.SLEPc.c:24507:34: error: expected ')' before 'PyInt_AsLong'
   __pyx_t_1 = ((SVDTransposeMode)PyInt_AsLong(__pyx_v_mode)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                  ^
src/slepc4py.SLEPc.c:24517:3: warning: implicit declaration of function 'SVDSetTransposeMode' [-Wimplicit-function-declaration]
   __pyx_t_2 = __pyx_f_8slepc4py_5SLEPc_CHKERR(SVDSetTransposeMode(__pyx_v_self->svd, __pyx_v_val)); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
   ^
In file included from src/SLEPc.c:3:0:
src/slepc4py.SLEPc.c: In function '__pyx_pf_8slepc4py_5SLEPc_3NEP_60getEigenpair':
src/slepc4py.SLEPc.c:36699:47: warning: passing argument 4 of 'NEPGetEigenpair' from incompatible pointer type
   __pyx_t_4 = __pyx_f_8slepc4py_5SLEPc_CHKERR(NEPGetEigenpair(__pyx_v_self->nep, __pyx_v_i, (&__pyx_v_sval), __pyx_v_vec)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[13]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                               ^
In file included from /Users/john/Documents/code/downloaded/slepc-3.5.0/include/slepc.h:26:0,
                 from src/slepc4py.SLEPc.c:349,
                 from src/SLEPc.c:3:
/Users/john/Documents/code/downloaded/slepc-3.5.0/include/slepcnep.h:149:29: note: expected '__complex__ double *' but argument is of type 'Vec'
 PETSC_EXTERN PetscErrorCode NEPGetEigenpair(NEP,PetscInt,PetscScalar*,PetscScalar*,Vec,Vec);
                             ^
In file included from src/SLEPc.c:3:0:
src/slepc4py.SLEPc.c:36699:47: error: too few arguments to function 'NEPGetEigenpair'
   __pyx_t_4 = __pyx_f_8slepc4py_5SLEPc_CHKERR(NEPGetEigenpair(__pyx_v_self->nep, __pyx_v_i, (&__pyx_v_sval), __pyx_v_vec)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[13]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                               ^
In file included from /Users/john/Documents/code/downloaded/slepc-3.5.0/include/slepc.h:26:0,
                 from src/slepc4py.SLEPc.c:349,
                 from src/SLEPc.c:3:
/Users/john/Documents/code/downloaded/slepc-3.5.0/include/slepcnep.h:149:29: note: declared here
 PETSC_EXTERN PetscErrorCode NEPGetEigenpair(NEP,PetscInt,PetscScalar*,PetscScalar*,Vec,Vec);
                             ^
In file included from src/SLEPc.c:3:0:
src/slepc4py.SLEPc.c: In function 'initSLEPc':
src/slepc4py.SLEPc.c:45666:30: error: 'EPS_ORTH_I' undeclared (first use in this function)
   __pyx_t_5 = PyInt_FromLong(EPS_ORTH_I); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                              ^
src/slepc4py.SLEPc.c:45678:30: error: 'EPS_ORTH_B' undeclared (first use in this function)
   __pyx_t_5 = PyInt_FromLong(EPS_ORTH_B); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                              ^
src/slepc4py.SLEPc.c:46090:30: error: 'SVD_TRANSPOSE_EXPLICIT' undeclared (first use in this function)
   __pyx_t_5 = PyInt_FromLong(SVD_TRANSPOSE_EXPLICIT); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                              ^
src/slepc4py.SLEPc.c:46102:30: error: 'SVD_TRANSPOSE_IMPLICIT' undeclared (first use in this function)
   __pyx_t_5 = PyInt_FromLong(SVD_TRANSPOSE_IMPLICIT); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                              ^
src/slepc4py.SLEPc.c:46362:43: error: 'PEPSTOAR' undeclared (first use in this function)
   __pyx_t_5 = __pyx_f_8slepc4py_5SLEPc_S_(PEPSTOAR); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[12]; __pyx_lineno = 17; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                           ^
error: command 'gcc' failed with exit status 1

Comments (1)

  1. Log in to comment