Build error: too few arguments to function 'PEPSetScale'

Issue #17 resolved
Murat Keceli created an issue

I installed latest versions of petsc, slepc, petsc4py from bitbucket. During the build phase of slepc4py I got the error below. I'd appreciate any help.

Thank you

/usr/local/Cellar/mpich2/3.1.4/bin/mpicc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -O0 -pipe -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -DNDEBUG -g -fwrapv -Os -Wall -DENABLE_DTRACE -arch x86_64 -DPETSC_DIR=/Volumes/s/keceli/lib/petsc -DSLEPC_DIR=/Volumes/s/keceli/lib/slepc -I/Volumes/s/keceli/lib/slepc/include -I/Volumes/s/keceli/lib/slepc/dev_debug/include -I/usr/local/Cellar/mpich2/3.1.4/include -I/opt/X11/include -I/Volumes/s/keceli/lib/petsc/dev_debug/include -I/Volumes/s/keceli/lib/petsc/include -Isrc/include -I/Library/Python/2.7/site-packages/petsc4py/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/SLEPc.c -o build/temp.macosx-10.9-intel-2.7/dev_debug/src/SLEPc.o
In file included from src/SLEPc.c:3:0:
src/slepc4py.SLEPc.c: In function '__pyx_pf_8slepc4py_5SLEPc_3PEP_58getScale':
src/slepc4py.SLEPc.c:35399:114: warning: passing argument 4 of 'PEPGetScale' from incompatible pointer type
   __pyx_t_1 = __pyx_f_8slepc4py_5SLEPc_CHKERR(PEPGetScale(__pyx_v_self->pep, (&__pyx_v_scale), (&__pyx_v_alpha), (&__pyx_v_its), (&__pyx_v_lbda))); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[13]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                  ^
In file included from /Volumes/s/keceli/lib/slepc/include/slepc.h:25:0,
                 from src/slepc4py.SLEPc.c:236,
                 from src/SLEPc.c:3:
/Volumes/s/keceli/lib/slepc/include/slepcpep.h:210:29: note: expected 'struct _p_Vec **' but argument is of type 'PetscInt *'
 PETSC_EXTERN PetscErrorCode PEPGetScale(PEP,PEPScale*,PetscReal*,Vec*,Vec*,PetscInt*,PetscReal*);
                             ^
In file included from src/SLEPc.c:3:0:
src/slepc4py.SLEPc.c:35399:130: warning: passing argument 5 of 'PEPGetScale' from incompatible pointer type
   __pyx_t_1 = __pyx_f_8slepc4py_5SLEPc_CHKERR(PEPGetScale(__pyx_v_self->pep, (&__pyx_v_scale), (&__pyx_v_alpha), (&__pyx_v_its), (&__pyx_v_lbda))); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[13]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                  ^
In file included from /Volumes/s/keceli/lib/slepc/include/slepc.h:25:0,
                 from src/slepc4py.SLEPc.c:236,
                 from src/SLEPc.c:3:
/Volumes/s/keceli/lib/slepc/include/slepcpep.h:210:29: note: expected 'struct _p_Vec **' but argument is of type 'PetscReal *'
 PETSC_EXTERN PetscErrorCode PEPGetScale(PEP,PEPScale*,PetscReal*,Vec*,Vec*,PetscInt*,PetscReal*);
                             ^
In file included from src/SLEPc.c:3:0:
src/slepc4py.SLEPc.c:35399:47: error: too few arguments to function 'PEPGetScale'
   __pyx_t_1 = __pyx_f_8slepc4py_5SLEPc_CHKERR(PEPGetScale(__pyx_v_self->pep, (&__pyx_v_scale), (&__pyx_v_alpha), (&__pyx_v_its), (&__pyx_v_lbda))); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[13]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                               ^
In file included from /Volumes/s/keceli/lib/slepc/include/slepc.h:25:0,
                 from src/slepc4py.SLEPc.c:236,
                 from src/SLEPc.c:3:
/Volumes/s/keceli/lib/slepc/include/slepcpep.h:210:29: note: declared here
 PETSC_EXTERN PetscErrorCode PEPGetScale(PEP,PEPScale*,PetscReal*,Vec*,Vec*,PetscInt*,PetscReal*);
                             ^
In file included from src/SLEPc.c:3:0:
src/slepc4py.SLEPc.c: In function '__pyx_pf_8slepc4py_5SLEPc_3PEP_60setScale':
src/slepc4py.SLEPc.c:35661:108: warning: passing argument 4 of 'PEPSetScale' makes pointer from integer without a cast
   __pyx_t_6 = __pyx_f_8slepc4py_5SLEPc_CHKERR(PEPSetScale(__pyx_v_self->pep, __pyx_v_senum, __pyx_v_rval1, __pyx_v_ival, __pyx_v_rval2)); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[13]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                            ^
In file included from /Volumes/s/keceli/lib/slepc/include/slepc.h:25:0,
                 from src/slepc4py.SLEPc.c:236,
                 from src/SLEPc.c:3:
/Volumes/s/keceli/lib/slepc/include/slepcpep.h:209:29: note: expected 'Vec' but argument is of type 'PetscInt'
 PETSC_EXTERN PetscErrorCode PEPSetScale(PEP,PEPScale,PetscReal,Vec,Vec,PetscInt,PetscReal);
                             ^
In file included from src/SLEPc.c:3:0:
src/slepc4py.SLEPc.c:35661:47: error: incompatible type for argument 5 of 'PEPSetScale'
   __pyx_t_6 = __pyx_f_8slepc4py_5SLEPc_CHKERR(PEPSetScale(__pyx_v_self->pep, __pyx_v_senum, __pyx_v_rval1, __pyx_v_ival, __pyx_v_rval2)); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[13]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                               ^
In file included from /Volumes/s/keceli/lib/slepc/include/slepc.h:25:0,
                 from src/slepc4py.SLEPc.c:236,
                 from src/SLEPc.c:3:
/Volumes/s/keceli/lib/slepc/include/slepcpep.h:209:29: note: expected 'Vec' but argument is of type 'PetscReal'
 PETSC_EXTERN PetscErrorCode PEPSetScale(PEP,PEPScale,PetscReal,Vec,Vec,PetscInt,PetscReal);
                             ^
In file included from src/SLEPc.c:3:0:
src/slepc4py.SLEPc.c:35661:47: error: too few arguments to function 'PEPSetScale'
   __pyx_t_6 = __pyx_f_8slepc4py_5SLEPc_CHKERR(PEPSetScale(__pyx_v_self->pep, __pyx_v_senum, __pyx_v_rval1, __pyx_v_ival, __pyx_v_rval2)); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[13]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                               ^
In file included from /Volumes/s/keceli/lib/slepc/include/slepc.h:25:0,
                 from src/slepc4py.SLEPc.c:236,
                 from src/SLEPc.c:3:
/Volumes/s/keceli/lib/slepc/include/slepcpep.h:209:29: note: declared here
 PETSC_EXTERN PetscErrorCode PEPSetScale(PEP,PEPScale,PetscReal,Vec,Vec,PetscInt,PetscReal);
                             ^

Comments (2)

  1. Log in to comment