Hi Bruno,

I am using PETSc 3.6 with SLEPc 3.6 to compile deal-ii. However, I get the 
following error:
In file included from 
/home/nitish/Softwares/dealii/include/deal.II/lac/slepc_spectral_transformation.h:29:0,
                 from 
/home/nitish/Softwares/dealii/include/deal.II/lac/slepc_solver.h:26,
                 from /home/nitish/Softwares/dealii/source/base/mpi.cc:45:
/usr/include/slepc/slepceps.h: In function ‘PetscErrorCode 
EPSViewFromOptions(EPS, PetscObject, const char*)’:
/usr/include/slepc/slepceps.h:203:158: error: cannot convert ‘PetscObject 
{aka _p_PetscObject*}’ to ‘const char*’ for argument ‘2’ to ‘PetscErrorCode 
PetscObjectViewFromOptions(PetscObject, const char*, const char*)’
 PETSC_STATIC_INLINE PetscErrorCode EPSViewFromOptions(EPS eps,PetscObject 
obj,const char name[]) {return 
PetscObjectViewFromOptions((PetscObject)eps,obj,name);}
                                                                            
                                                                            
      ^
/usr/include/slepc/slepceps.h: At global scope:
/usr/include/slepc/slepceps.h:256:181: error: ‘PetscViewerAndFormat’ has 
not been declared
 PETSC_EXTERN PetscErrorCode EPSMonitorSetFromOptions(EPS,const char*,const 
char*,const char*,PetscErrorCode 
(*)(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*),PetscBool);

      ^
/usr/include/slepc/slepceps.h:274:113: error: ‘PetscViewerAndFormat’ has 
not been declared
 PETSC_EXTERN PetscErrorCode 
EPSMonitorFirst(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*);
                                                                            
                                     ^
/usr/include/slepc/slepceps.h:275:111: error: ‘PetscViewerAndFormat’ has 
not been declared
 PETSC_EXTERN PetscErrorCode 
EPSMonitorAll(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*);
                                                                            
                                   ^
make[2]: *** [source/base/CMakeFiles/obj_base_release.dir/mpi.cc.o] Error 1
make[1]: *** [source/base/CMakeFiles/obj_base_release.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from 
/home/nitish/Softwares/dealii/include/deal.II/lac/slepc_spectral_transformation.h:29:0,
                 from 
/home/nitish/Softwares/dealii/include/deal.II/lac/petsc_solver.h:32,
                 from 
/home/nitish/Softwares/dealii/source/lac/petsc_precondition.cc:25:
/usr/include/slepc/slepceps.h: In function ‘PetscErrorCode 
EPSViewFromOptions(EPS, PetscObject, const char*)’:
/usr/include/slepc/slepceps.h:203:158: error: cannot convert ‘PetscObject 
{aka _p_PetscObject*}’ to ‘const char*’ for argument ‘2’ to ‘PetscErrorCode 
PetscObjectViewFromOptions(PetscObject, const char*, const char*)’
 PETSC_STATIC_INLINE PetscErrorCode EPSViewFromOptions(EPS eps,PetscObject 
obj,const char name[]) {return 
PetscObjectViewFromOptions((PetscObject)eps,obj,name);}
                                                                            
                                                                            
      ^
/usr/include/slepc/slepceps.h: At global scope:
/usr/include/slepc/slepceps.h:256:181: error: ‘PetscViewerAndFormat’ has 
not been declared
 PETSC_EXTERN PetscErrorCode EPSMonitorSetFromOptions(EPS,const char*,const 
char*,const char*,PetscErrorCode 
(*)(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*),PetscBool);

      ^
/usr/include/slepc/slepceps.h:274:113: error: ‘PetscViewerAndFormat’ has 
not been declared
 PETSC_EXTERN PetscErrorCode 
EPSMonitorFirst(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*);
                                                                            
                                     ^
/usr/include/slepc/slepceps.h:275:111: error: ‘PetscViewerAndFormat’ has 
not been declared
 PETSC_EXTERN PetscErrorCode 
EPSMonitorAll(EPS,PetscInt,PetscInt,PetscScalar*,PetscScalar*,PetscReal*,PetscInt,PetscViewerAndFormat*);
                                                                            
                                   ^
make[2]: *** 
[source/lac/CMakeFiles/obj_lac_release.dir/petsc_precondition.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [source/lac/CMakeFiles/obj_lac_release.dir/all] Error 2
make: *** [all] Error 2

Any suggestions ?? 

Thanks,
Nitish


On Monday, June 13, 2016 at 2:04:04 PM UTC+2, Bruno Turcksin wrote:
>
> Hi,
>
> we don't support PETSc 3.7 yet 
> https://github.com/dealii/dealii/issues/2677 Use PETSc 3.6 instead.
>
> Best,
>
> Bruno
>
> On Monday, June 13, 2016 at 5:02:50 AM UTC-4, Roc Wang wrote:
>>
>> Hi,
>>
>>    I configured cmake successfully, the detaled cmake configuration is 
>> attached.
>>
>>    However, I got the following errors at about 67% installation, I 
>> searched the topic in this group post, and just got one similar post by 
>> Craig 
>> Michoski <https://plus.google.com/u/0/107274907969610636597?prsrc=4> @ 
>> https://groups.google.com/forum/?hl=en#!searchin/dealii/petsc_precondition.cc.o$20failed/dealii/G4pOuHWoDVM/U_A2LGvZU0QJ,
>>  
>> but it seems Craig's is not my case. Could please someone help me on this? 
>> Thanks.
>>
>>
>>   ====
>>
>> [ 67%] Building CXX object 
>> source/lac/CMakeFiles/obj_lac.release.dir/petsc_precondition.cc.o 
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc: 
>> In member function ‘void dealii::PETScWrappers::Precond
>> itionBoomerAMG::initialize()’: 
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:490:70:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>       PetscOptionsSetValue("-pc_hypre_boomeramg_print_statistics","1"); 
>>                                                                      ^ 
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:495:35:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>                          ).c_str()); 
>>                                   ^ 
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:499:83:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>     PetscOptionsSetValue("-pc_hypre_boomeramg_max_row_sum", 
>> ssStream.str().c_str()); 
>>                                                                              
>>      ^ 
>>
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:503:88:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>     PetscOptionsSetValue("-pc_hypre_boomeramg_strong_threshold", 
>> ssStream.str().c_str()); 
>>                                                                              
>>           ^ 
>>
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:507:89:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>         PetscOptionsSetValue("-pc_hypre_boomeramg_relax_type_up", 
>> "symmetric-SOR/Jacobi"); 
>>                                                                              
>>            ^ 
>>
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:508:91:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>         PetscOptionsSetValue("-pc_hypre_boomeramg_relax_type_down", 
>> "symmetric-SOR/Jacobi"); 
>>                                                                              
>>              ^ 
>>
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:509:93:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>         PetscOptionsSetValue("-pc_hypre_boomeramg_relax_type_coarse", 
>> "Gaussian-elimination"); 
>>                                                                              
>>                ^ 
>>
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:513:79:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>         PetscOptionsSetValue("-pc_hypre_boomeramg_relax_type_up", 
>> "SOR/Jacobi"); 
>>                                                                              
>>  ^ 
>>
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:514:81:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>         PetscOptionsSetValue("-pc_hypre_boomeramg_relax_type_down", 
>> "SOR/Jacobi"); 
>>                                                                              
>>    ^ 
>>
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:515:93:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>         PetscOptionsSetValue("-pc_hypre_boomeramg_relax_type_coarse", 
>> "Gaussian-elimination"); 
>>                                                                              
>>                ^ 
>>
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc: 
>> In member function ‘void dealii::PETScWrappers::Precond
>> itionParaSails::initialize(const dealii::PETScWrappers::MatrixBase&, 
>> const dealii::PETScWrappers::PreconditionParaSails::Additio
>> nalData&)’: 
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:591:61:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>       PetscOptionsSetValue("-pc_hypre_parasails_logging","1"); 
>>                                                             ^ 
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:625:74:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>     PetscOptionsSetValue("-pc_hypre_parasails_sym",ssStream.str().c_str()); 
>>
>>                                                                          ^ 
>>
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:630:35:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>                          ).c_str()); 
>>                                   ^ 
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:634:78:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>     PetscOptionsSetValue("-pc_hypre_parasails_thresh", 
>> ssStream.str().c_str()); 
>>                                                                              
>> ^ 
>>
>> /mnt/LINUX_APP/ZSoft-Leap/dealii-8.4.1/source/lac/petsc_precondition.cc:638:78:
>>  
>> error: cannot convert ‘const char*’ to ‘PetscOpt
>> ions {aka _n_PetscOptions*}’ for argument ‘1’ to ‘PetscErrorCode 
>> PetscOptionsSetValue(PetscOptions, const char*, const char*)’ 
>>     PetscOptionsSetValue("-pc_hypre_parasails_filter", 
>> ssStream.str().c_str()); 
>>                                                                              
>> ^ 
>>
>> source/lac/CMakeFiles/obj_lac.release.dir/build.make:1070: recipe for 
>> target 'source/lac/CMakeFiles/obj_lac.release.dir/petsc_pr
>> econdition.cc.o' failed 
>> make[2]: *** 
>> [source/lac/CMakeFiles/obj_lac.release.dir/petsc_precondition.cc.o] Error 1 
>> CMakeFiles/Makefile2:3283: recipe for target 
>> 'source/lac/CMakeFiles/obj_lac.release.dir/all' failed 
>> make[1]: *** [source/lac/CMakeFiles/obj_lac.release.dir/all] Error 2 
>> Makefile:127: recipe for target 'all' failed 
>> make: *** [all] Error 2
>>
>>
>>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to