Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
build.sh cannot find lmpich (Read 2224 times)
Javier Forment
YaBB Newbies
*
Offline


Feed your monkey!

Posts: 9
build.sh cannot find lmpich
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.
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: build.sh cannot find lmpich
Reply #1 - 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
Back to top
 

Associate Professor
Division of Infectious Diseases
Division of Biomedical Informatics
School of Medicine
University of California San Diego
WWW WWW  
IP Logged
 
Javier Forment
YaBB Newbies
*
Offline


Feed your monkey!

Posts: 9
Re: build.sh cannot find lmpich
Reply #2 - 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:Cheesyatatype::Set_name(char const*)':
baseobj.cpp:(.text._ZN3MPI8Datatype8Set_nameEPKc[MPI:Cheesyatatype::Set_name(char const*)]+0x5): undefined reference to `MPI_Type_set_name'
obj_MPI/baseobj.cpp.o: In function `MPI:Cheesyatatype::Set_attr(int, void const*)':
baseobj.cpp:(.text._ZN3MPI8Datatype8Set_attrEiPKv[MPI:Cheesyatatype::Set_attr(int, void const*)]+0x5): undefined reference to `MPI_Type_set_attr'
obj_MPI/baseobj.cpp.o: In function `MPI:Cheesyatatype::Get_name(char*, int&) const':
baseobj.cpp:(.text._ZNK3MPI8Datatype8Get_nameEPcRi[MPI:Cheesyatatype::Get_name(char*, int&) const]+0x5): undefined reference to `MPI_Type_get_name'
obj_MPI/baseobj.cpp.o: In function `MPI:Cheesyatatype::Get_attr(int, void*) const':
baseobj.cpp:(.text._ZNK3MPI8Datatype8Get_attrEiPv[MPI:Cheesyatatype::Get_attr(int, void*) const]+0xe): undefined reference to `MPI_Type_get_attr'
obj_MPI/baseobj.cpp.o: In function `MPI:Cheesyatatype:Cheesyelete_attr(int)':
baseobj.cpp:(.text._ZN3MPI8Datatype11Delete_attrEi[MPI:Cheesyatatype:Cheesyelete_attr(int)]+0x5): undefined reference to `MPI_Type_delete_attr'
obj_MPI/baseobj.cpp.o: In function `MPI:Cheesyatatype::Get_true_extent(long&, long&) const':
baseobj.cpp:(.text._ZNK3MPI8Datatype15Get_true_extentERlS1_[MPI:Cheesyatatype::Get_t
rue_extent(long&, long&) const]+0x5): undefined reference to `MPI_Type_get_true_extent'
obj_MPI/baseobj.cpp.o: In function `MPI:Cheesyatatype::Get_extent(long&, long&) const':
baseobj.cpp:(.text._ZNK3MPI8Datatype10Get_extentERlS1_[MPI:Cheesyatatype::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:Cheesyisconnect()':
baseobj.cpp:(.text._ZN3MPI4Comm10DisconnectEv[MPI::Comm:Cheesyisconnect()]+0x5): undefined reference to `MPI_Comm_disconnect'
obj_MPI/baseobj.cpp.o: In function `MPI:Shockedp::Init(void (*)(void const*, void*, int, MPI:Cheesyatatype const&), bool)':
baseobj.cpp:(.text._ZN3MPI2Op4InitEPFvPKvPviRKNS_8DatatypeEEb[MPI:Shockedp::Init(void
(*)(void const*, void*, int, MPI:Cheesyatatype const&), bool)]+0x19): undefined reference to `ompi_mpi_cxx_op_intercept'
baseobj.cpp:(.text._ZN3MPI2Op4InitEPFvPKvPviRKNS_8DatatypeEEb[MPI:Shockedp::Init(void
(*)(void const*, void*, int, MPI:Cheesyatatype const&), bool)]+0x3e): undefined reference to `ompi_op_set_cxx_callback'
(... error follows with many lines)

Any help?
Back to top
 
 
IP Logged