Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
How to compile in Linux, mpich2 and gtk (Read 1808 times)
liu
YaBB Newbies
*
Offline


Feed your monkey!

Posts: 1
How to compile in Linux, mpich2 and gtk
Jul 17th, 2008 at 11:50am
 
Hi,

I tried to build HyPhy in a Linux cluster.

The OS is CentOS 4.2, AMD64

And mpich2 was installed at:
Code:
/data1/mpich2
 



I've modified gtk_build.sh as:
Code:
COMPILER="/data1/mpich2/bin/mpicxx";
COMPLIERC="/data1/mpich2/bin/mpicc";
 



and in the MPI branch

Code:
LINKER_FLAGS=$CURL_LINKER_LIBS" -L/data1/mpich2/lib -lm ";
...
COMPILER_FLAGS=$COMPILER_FLAGS" -D __HYPHYMPI__ -I/data1/mpich2/include ";
 



When I run ./gtk_build.sh MPI, the error message are:
Code:
Linux
Checking for curl
Curl seems to be present
+-----------------------------------------------------------+
|Building a single-threaded HYPHYKernelMPI for MPI	    |
+-----------------------------------------------------------+
COMPILER=/data1/mpich2/bin/mpicxx, /data1/mpich2/bin/mpicc
COMPILER_FLAGS= -w -c -O3 -D INTPTR_TYPE=long -fsigned-char -fpermissive -I/data1/opt/HYPHY_mpi/GUI -I/data1/opt/HYPHY_mpi/Source -I/data1/opt/HYPHY_mpi/Source/SQLite -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -D GDK_PIXBUF_ENABLE_BACKEND -D __HYPHY_GTK__  -D __HYPHYMPI__ -I/data1/mpich2/include
Building baseobj.cpp
In file included from /data1/mpich2/include/mpi.h:1142,
		     from batchlan.h:361,
		     from baseobj.cpp:34:
/data1/mpich2/include/mpicxx.h:26:2: #error "SEEK_SET is #defined but must not be for the C++ binding of MPI"
/data1/mpich2/include/mpicxx.h:30:2: #error "SEEK_CUR is #defined but must not be for the C++ binding of MPI"
/data1/mpich2/include/mpicxx.h:35:2: #error "SEEK_END is #defined but must not be for the C++ binding of MPI"
Error during compilation
 



Any suggestions are helpful!

thanks!
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: How to compile in Linux, mpich2 and gtk
Reply #1 - Jul 17th, 2008 at 12:47pm
 
Dear Lui,

Try setting -DMPICH_IGNORE_CXX_SEEK in the compiler line options (Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login Login section 4.3)

Cheers,
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