Regarding installation of firedrake
Dear Sir I am able to ./configure from the firedrake directory with no errors but the make step gives some errors. (I am trying to install on ubuntu 12.04 where I already had working fenics installation) Running make results in: INSTALL local scripts BUILD libfluidity MKDIR lib MAKE debug MAKE libwm MAKE femtools BUILDING fluidity_library BUILD shared libfluidity LD libfluidity.so INSTALL local scripts BUILD libfluidity MKDIR lib MAKE debug MAKE libwm MAKE femtools BUILDING fluidity_library BUILD fldecomp MKDIR bin fldmain.o: In function `MPI::Intracomm::Intracomm()': fldmain.cpp:(.text._ZN3MPI9IntracommC2Ev[_ZN3MPI9IntracommC5Ev]+0x14): undefined reference to `MPI::Comm::Comm()' fldmain.o: In function `MPI::Intracomm::Intracomm(ompi_communicator_t*)': fldmain.cpp:(.text._ZN3MPI9IntracommC2EP19ompi_communicator_t[_ZN3MPI9IntracommC5EP19ompi_communicator_t]+0x19): undefined reference to `MPI::Comm::Comm()' fldmain.cpp:(.text._ZN3MPI9IntracommC2EP19ompi_communicator_t[_ZN3MPI9IntracommC5EP19ompi_communicator_t]+0x42): undefined reference to `ompi_mpi_comm_null' fldmain.cpp:(.text._ZN3MPI9IntracommC2EP19ompi_communicator_t[_ZN3MPI9IntracommC5EP19ompi_communicator_t]+0x7d): undefined reference to `ompi_mpi_comm_null' fldmain.o: In function `MPI::Cartcomm::Cartcomm(ompi_communicator_t* const&)': fldmain.cpp:(.text._ZN3MPI8CartcommC2ERKP19ompi_communicator_t[_ZN3MPI8CartcommC5ERKP19ompi_communicator_t]+0x49): undefined reference to `ompi_mpi_comm_null' fldmain.cpp:(.text._ZN3MPI8CartcommC2ERKP19ompi_communicator_t[_ZN3MPI8CartcommC5ERKP19ompi_communicator_t]+0x98): undefined reference to `ompi_mpi_comm_null' fldmain.o: In function `MPI::Graphcomm::Graphcomm(ompi_communicator_t* const&)': fldmain.cpp:(.text._ZN3MPI9GraphcommC2ERKP19ompi_communicator_t[_ZN3MPI9GraphcommC5ERKP19ompi_communicator_t]+0x49): undefined reference to `ompi_mpi_comm_null' fldmain.o:fldmain.cpp:(.text._ZN3MPI9GraphcommC2ERKP19ompi_communicator_t[_ZN3MPI9GraphcommC5ERKP19ompi_communicator_t]+0x98): more undefined references to `ompi_mpi_comm_null' follow fldmain.o: In function `MPI::Op::Init(void (*)(void const*, void*, int, MPI::Datatype const&), bool)': fldmain.cpp:(.text._ZN3MPI2Op4InitEPFvPKvPviRKNS_8DatatypeEEb[MPI::Op::Init(void (*)(void const*, void*, int, MPI::Datatype const&), bool)]+0x24): undefined reference to `ompi_mpi_cxx_op_intercept' fldmain.cpp:(.text._ZN3MPI2Op4InitEPFvPKvPviRKNS_8DatatypeEEb[MPI::Op::Init(void (*)(void const*, void*, int, MPI::Datatype const&), bool)]+0x45): undefined reference to `ompi_op_set_cxx_callback' collect2: ld returned 1 exit status make[2]: *** [fldecomp] Error 1 make[1]: *** [fldecomp] Error 2 make: *** [fltools] Error 2 Thanks Best Regards Sarosh Quraishi -- Sarosh M. Quraishi Postdoctoral researcher Institut für Mathematik Straße des 17. Juni 136 Raum MA 468 Berlin Charlottenburg, FRG *Tel: 030-314-21268*
Dear Sarosh, On 25/02/14 06:55, Sarosh Quraishi wrote:> Dear Sir ...
fldmain.cpp:(.text._ZN3MPI2Op4InitEPFvPKvPviRKNS_8DatatypeEEb[MPI::Op::Init(void
(*)(void const*, void*, int, MPI::Datatype const&), bool)]+0x45): undefined reference to `ompi_op_set_cxx_callback'
this looks like a symptom of having both openmpi and mpich installed on your system, with the include files pointing to openmpi header files but the linker pointing at mpich's libmpi. What do $ mpicxx -show and $ readlink -f /usr/lib/libmpi_cxx.so print? I suspect that there will be a mismatch here. Can you ensure that both the compiler wrappers and the mpiexec run script point to the same installation. You can do this with: $ update-alternatives --config mpi and $ update-alternatives --config mpirun you'll then need to reconfigure and make clean and make again. Hopefully this will work. Cheers, Lawrence
participants (2)
- 
                
                Lawrence Mitchell
- 
                
                Sarosh Quraishi