hi, I managed to build it after adding -fpermissive to libmesh_CXXFLAGS. Has anybody else had this issue? I am on ArchLinux with gcc version 4.7.1 20120721. Thanks, Subramanya
----- Original Message ----- From: "Subramanya Gautam Sadasiva" <[email protected]> To: [email protected] Sent: Tuesday, October 16, 2012 9:05:09 PM Subject: Re: [Libmesh-users] Compilation (rev 6187) error This seems to be the problematic bit. Is this right? This doesn't look right to me.. #if PETSC_VERSION_LESS_THAN(3,0,0) PCType orig_petsc_pc_type; KSPType orig_petsc_ksp_type; #else const PCType orig_petsc_pc_type; const KSPType orig_petsc_ksp_type; #endif int ierr = 0; if (petsc_linear_solver) { PC pc = petsc_linear_solver->pc(); ierr = PCGetType(pc, &orig_petsc_pc_type); CHKERRABORT(libMesh::COMM_WORLD,ierr); KSP ksp = petsc_linear_solver->ksp(); ierr = KSPGetType(ksp, &orig_petsc_ksp_type); CHKERRABORT(libMesh::COMM_WORLD,ierr); ----- Original Message ----- From: "Subramanya Gautam Sadasiva" <[email protected]> To: [email protected] Sent: Tuesday, October 16, 2012 8:51:03 PM Subject: [Libmesh-users] Compilation (rev 6187) error Hi I am trying to compile rev 6187 with petsc-dev and I get the following error. Any idea what the issue might be? I don't really need reduced basis- can I compile it without this? Thanks, Subramanya src/reduced_basis/rb_construction_base.C: In instantiation of 'std::pair<std::basic_string<char>, std::basic_string<char> > libMesh::RBConstructionBase<Base>::set_alternative_solver(libMesh::AutoPtr<libMesh::LinearSolver<double> >&) [with Base = libMesh::LinearImplicitSystem]': src/reduced_basis/rb_construction_base.C:791:16: required from here src/reduced_basis/rb_construction_base.C:649:16: error: uninitialized const 'orig_petsc_pc_type' [-fpermissive] src/reduced_basis/rb_construction_base.C:650:17: error: uninitialized const 'orig_petsc_ksp_type' [-fpermissive] src/reduced_basis/rb_construction_base.C:657:7: error: invalid conversion from 'const char* const*' to 'const char**' [-fpermissive] In file included from /home/potaman/soft/petsc-dev/include/petscksp.h:6:0, from /home/potaman/soft/petsc-dev/include/petscsnes.h:6, from /home/potaman/soft/petsc-dev/include/petscts.h:7, from /home/potaman/soft/petsc-dev/include/petsc.h:4, from /home/potaman/soft/libmesh/include/libmesh/petsc_macro.h:81, from /home/potaman/soft/libmesh/include/libmesh/petsc_linear_solver.h:27, from src/reduced_basis/rb_construction_base.C:28: /home/potaman/soft/petsc-dev/include/petscpc.h:186:29: error: initializing argument 2 of 'PetscErrorCode PCGetType(PC, const char**)' [-fpermissive] src/reduced_basis/rb_construction_base.C:660:7: error: invalid conversion from 'const char* const*' to 'const char**' [-fpermissive] In file included from /home/potaman/soft/petsc-dev/include/petscsnes.h:6:0, from /home/potaman/soft/petsc-dev/include/petscts.h:7, from /home/potaman/soft/petsc-dev/include/petsc.h:4, from /home/potaman/soft/libmesh/include/libmesh/petsc_macro.h:81, from /home/potaman/soft/libmesh/include/libmesh/petsc_linear_solver.h:27, from src/reduced_basis/rb_construction_base.C:28: /home/potaman/soft/petsc-dev/include/petscksp.h:131:29: error: initializing argument 2 of 'PetscErrorCode KSPGetType(KSP, const char**)' [-fpermissive] make: *** [src/reduced_basis/rb_construction_base.x86_64-unknown-linux-gnu.opt.o] Error 1 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
