HyPhy message board | |
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
HYPHY Package >> HyPhy feedback >> build.sh cannot find lmpich http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1283966228 Message started by Javier Forment on Sep 8th, 2010 at 10:17am |
Title: build.sh cannot find lmpich Post by Javier Forment on Sep 8th, 2010 at 10:17am
When compiling HYPHYMPI with 'bash build.sh MPI' from the HYPHY folder (created when running 'bash buildFromSVN.sh' without errors), I've got the following error:
Linking HYPHYMPI g++ -w -fsigned-char -o HYPHYMPI obj_MPI/baseobj.cpp.o obj_MPI/batchlan2.cpp.o obj_MPI/batchlan.cpp.o obj_MPI/bayesgraph2.cpp.o obj_MPI/bayesgraph.cpp.o obj_MPI/bgm2.cpp.o obj_MPI/bgm.cpp.o obj_MPI/calcnode2.cpp.o obj_MPI/calcnode.cpp.o obj_MPI/category.cpp.o obj_MPI/error.cpp.o obj_MPI/fisher_exact.cpp.o obj_MPI/HYNetInterface.cpp.o obj_MPI/hyphyunixutils.cpp.o obj_MPI/likefunc2.cpp.o obj_MPI/likefunc.cpp.o obj_MPI/list.cpp.o obj_MPI/main-unix.cxx.o obj_MPI/matrix.cpp.o obj_MPI/Net.cpp.o obj_MPI/nexus.cpp.o obj_MPI/parser2.cpp.o obj_MPI/parser.cpp.o obj_MPI/polynoml.cpp.o obj_MPI/regex.cpp.o obj_MPI/scfg.cpp.o obj_MPI/sequence.cpp.o obj_MPI/site.cpp.o obj_MPI/sqlite3.c.o obj_MPI/strings.cpp.o -lssl -lcrypto -lcurl -lpthread -lm -lmpich -ldl /usr/bin/ld.real: cannot find -lmpich collect2: ld returned 1 exit status Finished I've got installed libmpich, but it seems it cannot be found by the script. Do I must tell it the location of libmpich? How? Thanks in advance for your help, and keep on the good work... Javier. |
Title: Re: build.sh cannot find lmpich Post by Sergei on Sep 8th, 2010 at 10:19am
Hi Javier,
Try pasting the line you include below into the terminal window (from within the HYPHY build directory) but replace g++ with mpic++ Alternatively, edit the build.sh script and replace gcc and g++ with mpicc and mpi++ in compiler variable definitions. Sergei |
Title: Re: build.sh cannot find lmpich Post by Javier Forment on Sep 9th, 2010 at 7:11am
I've changed gcc to mpicc and g++ to mpiCC (mpic-- is a synonym for mpiCC provided for filenames that do not support case-sensitive filenames), but now I have the following error:
obj_MPI/baseobj.cpp.o: In function `GlobalShutdown()': baseobj.cpp:(.text+0x833): undefined reference to `ompi_mpi_comm_world' baseobj.cpp:(.text+0x9c8): undefined reference to `SEEK_END' obj_MPI/baseobj.cpp.o: In function `MPI::Datatype::Set_name(char const*)': baseobj.cpp:(.text._ZN3MPI8Datatype8Set_nameEPKc[MPI::Datatype::Set_name(char const*)]+0x5): undefined reference to `MPI_Type_set_name' obj_MPI/baseobj.cpp.o: In function `MPI::Datatype::Set_attr(int, void const*)': baseobj.cpp:(.text._ZN3MPI8Datatype8Set_attrEiPKv[MPI::Datatype::Set_attr(int, void const*)]+0x5): undefined reference to `MPI_Type_set_attr' obj_MPI/baseobj.cpp.o: In function `MPI::Datatype::Get_name(char*, int&) const': baseobj.cpp:(.text._ZNK3MPI8Datatype8Get_nameEPcRi[MPI::Datatype::Get_name(char*, int&) const]+0x5): undefined reference to `MPI_Type_get_name' obj_MPI/baseobj.cpp.o: In function `MPI::Datatype::Get_attr(int, void*) const': baseobj.cpp:(.text._ZNK3MPI8Datatype8Get_attrEiPv[MPI::Datatype::Get_attr(int, void*) const]+0xe): undefined reference to `MPI_Type_get_attr' obj_MPI/baseobj.cpp.o: In function `MPI::Datatype::Delete_attr(int)': baseobj.cpp:(.text._ZN3MPI8Datatype11Delete_attrEi[MPI::Datatype::Delete_attr(int)]+0x5): undefined reference to `MPI_Type_delete_attr' obj_MPI/baseobj.cpp.o: In function `MPI::Datatype::Get_true_extent(long&, long&) const': baseobj.cpp:(.text._ZNK3MPI8Datatype15Get_true_extentERlS1_[MPI::Datatype::Get_true_extent(long&, long&) const]+0x5): undefined reference to `MPI_Type_get_true_extent' obj_MPI/baseobj.cpp.o: In function `MPI::Datatype::Get_extent(long&, long&) const': baseobj.cpp:(.text._ZNK3MPI8Datatype10Get_extentERlS1_[MPI::Datatype::Get_extent(long&, long&) const]+0x5): undefined reference to `MPI_Type_get_extent' obj_MPI/baseobj.cpp.o: In function `MPI::Grequest::Complete()': baseobj.cpp:(.text._ZN3MPI8Grequest8CompleteEv[MPI::Grequest::Complete()]+0x5): undefined reference to `MPI_Grequest_complete' obj_MPI/baseobj.cpp.o: In function `MPI::Request::Get_status() const': baseobj.cpp:(.text._ZNK3MPI7Request10Get_statusEv[MPI::Request::Get_status() const]+0x10): undefined reference to `MPI_Request_get_status' obj_MPI/baseobj.cpp.o: In function `MPI::Request::Get_status(MPI::Status&) const': baseobj.cpp:(.text._ZNK3MPI7Request10Get_statusERNS_6StatusE[MPI::Request::Get_status(MPI::Status&) const]+0x1d): undefined reference to `MPI_Request_get_status' obj_MPI/baseobj.cpp.o: In function `MPI::Comm::Disconnect()': baseobj.cpp:(.text._ZN3MPI4Comm10DisconnectEv[MPI::Comm::Disconnect()]+0x5): undefined reference to `MPI_Comm_disconnect' obj_MPI/baseobj.cpp.o: In function `MPI::Op::Init(void (*)(void const*, void*, int, MPI::Datatype const&), bool)': baseobj.cpp:(.text._ZN3MPI2Op4InitEPFvPKvPviRKNS_8DatatypeEEb[MPI::Op::Init(void (*)(void const*, void*, int, MPI::Datatype const&), bool)]+0x19): undefined reference to `ompi_mpi_cxx_op_intercept' baseobj.cpp:(.text._ZN3MPI2Op4InitEPFvPKvPviRKNS_8DatatypeEEb[MPI::Op::Init(void (*)(void const*, void*, int, MPI::Datatype const&), bool)]+0x3e): undefined reference to `ompi_op_set_cxx_callback' (... error follows with many lines) Any help? |
HyPhy message board » Powered by YaBB 2.5.2! YaBB Forum Software © 2000-2024. All Rights Reserved. |