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!