Compiling PSVM with Cygwin

108 views
Skip to first unread message

Uday kamath

unread,
Jan 20, 2013, 9:13:11 AM1/20/13
to ps...@googlegroups.com
I have a windows box, but using Cygwin with all OpenMPI installed using Cygwins pacakage installer. When i compile PSVM with CC flags = mpicc, get this error. Any help appreciated
Thanks a ton!
Uday

mpicc -c -O3 -Wall  timer.cc -o timer.o
mpicc -c -O3 -Wall  io.cc -o io.o
mpicc -c -O3 -Wall  parallel_interface.cc -o parallel_interface.o
In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ios:49,
                 from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ostream:45,
                 from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/iostream:45,
                 from /usr/include/openmpi/ompi/mpi/cxx/mpicxx.h:53,
                 from /usr/include/mpi.h:2087,
                 from parallel_interface.h:23,
                 from parallel_interface.cc:18:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/ios_base.h:187: error: `SEEK_CUR' was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/ios_base.h:187: error: enumerator value for `_S_cur' not integer constant
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/ios_base.h:188: error: `SEEK_END' was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/ios_base.h:188: error: enumerator value for `_S_end' not integer constant
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/ios_base.h:398: error: `SEEK_CUR' was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/ios_base.h:401: error: `SEEK_END' was not declared in this scope
In file included from /usr/include/mpi.h:2087,
                 from parallel_interface.h:23,
                 from parallel_interface.cc:18:
/usr/include/openmpi/ompi/mpi/cxx/mpicxx.h:55: error: `SEEK_SET' was not declared in this scope
/usr/include/openmpi/ompi/mpi/cxx/mpicxx.h:56: error: `SEEK_CUR' was not declared in this scope
/usr/include/openmpi/ompi/mpi/cxx/mpicxx.h:57: error: `SEEK_END' was not declared in this scope
Makefile:41: recipe for target `parallel_interface.o' failed

Hongjie Bai

unread,
Jan 20, 2013, 10:28:59 PM1/20/13
to ps...@googlegroups.com
This looks like an error between mpich and cygwin.
You may check where SEED_SET is defined in your environment and include that file before every #include "mpi.h"

--
You received this message because you are subscribed to the Google Groups "PSVM" group.
To view this discussion on the web visit https://groups.google.com/d/msg/psvm/-/3EkjfJ0LaFEJ.
To post to this group, send email to ps...@googlegroups.com.
To unsubscribe from this group, send email to psvm+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/psvm?hl=en.

Reply all
Reply to author
Forward
0 new messages