Re: [OMPI users] Building OpenMPI with DevStudio 2010

2010-08-18 Thread Shiqing Fan

 Hi Rick,

All the steps you've done were absolutely correct. The CMake output 
messages are not errors but the feature check results; if a real error 
occurs, CMake will just stop and pop up an error message window.


Unfortunately, 1.4.2 doesn't have the VS 2010 support yet, it will be 
added in the upcoming releases (1.4.3 and 1.5).  So the solution for the 
moment could be using the svn trunk or 1.5 branch. (1.4 branch will also 
have this very soon, see https://svn.open-mpi.org/trac/ompi/ticket/2521)



Regards,
Shiqing

On 2010-8-17 7:26 PM, Rick Hullinger wrote:

I am trying to get OpenMPI built on a windows machine using Dev
Studio, and I'm not having any luck. I'm hoping someone can point me
in the right direction.
Here are the details:

Environment: Windows 7, (64 bit OS, but I’m performing a 32 bit
build), Attempting to build under Dev Studio 2010
Steps:
1)  Download OpenMPI 1.4.2 to E:\\openmpi-1.4.2
2)  Run the windows installer for CMake 2.8.2
3) Open a visual studio command prompt and execute cmake-gui from the
command line
4) Set the “source code:” directory to: E:\\openmpi-1.4.2
   Set the “Build the binaries:” directory to E:\\MPIBuild
5) Hit the configure button:
Select Visual Studio 10 as the generator for this project
Leave the radio button on the default “use default native compilers”
Click Finish.
Output: see file “cmake.output.txt” for the full output (I've added
"**" to the start of each "error" line)

Note: it’s my understanding that all of the “not found” messages are
not necessarily errors, just CMake trying to figure out what is in
place and what is not…so maybe everything so far is fine.

7) Hit the configure button again. Output:
Check for working flex...
Skipping MPI F77 interface
looking for ccp...
looking for ccp...not found.
looking for ccp...
looking for ccp...not found.
Configuring done

8) Click Generate button. Output: “Generating done.”
9) Close CMake
10) Open MS DevStudio 2010, select “Open Project”, navigate to the
MPIBuild directory and select the “OpenMPI.sln” project
11) Select “Build solution”
12) Wait
13) Full output is attached in the file DevStudio.Output.txt, but right off the
bat, there are several of these messages:

..\..\openmpi-1.4.2\opal\event\WIN32-Code\win32.c(28): fatal error C1083: 
Cannot open include file: 'opal_config.h': No such file or directory

then we get into:

c1 : fatal error C1083: Cannot open source file:
'E:/Code/C++/ExternalLibs/openmpi-1.4.2/opal/event/compat': Permission
denied

  WIN32-Code

(note: compat is not a "source file" it's a directory? seems like an odd error)


c1 : fatal error C1083: Cannot open source file: 
'E:/Code/C++/ExternalLibs/openmpi-1.4.2/opal/event/WIN32-Code': Permission 
denied
  Generating Code...
-- Build started: Project: libopen-rte, Configuration: Debug Win32 --
-- Build started: Project: opal-restart, Configuration: Debug Win32 --
  opal-restart.c
  orted_comm.c
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(73): 
warning C4005: 'INT16_MIN' : macro redefinition

..and a ton of the “macro redefinition” errors after that.

When all is said and done:
== Build: 1 succeeded, 13 failed, 0 up-to-date, 2 skipped ==

Anybody have any ideas?


___
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users



--
--
Shiqing Fan  http://www.hlrs.de/people/fan
High Performance Computing   Tel.: +49 711 685 87234
  Center Stuttgart (HLRS)Fax.: +49 711 685 65832
Address:Allmandring 30   email: f...@hlrs.de
70569 Stuttgart



[OMPI users] Building OpenMPI with DevStudio 2010

2010-08-17 Thread Rick Hullinger
I am trying to get OpenMPI built on a windows machine using Dev
Studio, and I'm not having any luck. I'm hoping someone can point me
in the right direction.
Here are the details:

Environment: Windows 7, (64 bit OS, but I’m performing a 32 bit
build), Attempting to build under Dev Studio 2010
Steps:
1)  Download OpenMPI 1.4.2 to E:\\openmpi-1.4.2
2)  Run the windows installer for CMake 2.8.2
3) Open a visual studio command prompt and execute cmake-gui from the
command line
4) Set the “source code:” directory to: E:\\openmpi-1.4.2
  Set the “Build the binaries:” directory to E:\\MPIBuild
5) Hit the configure button:
Select Visual Studio 10 as the generator for this project
Leave the radio button on the default “use default native compilers”
Click Finish.
Output: see file “cmake.output.txt” for the full output (I've added
"**" to the start of each "error" line)

Note: it’s my understanding that all of the “not found” messages are
not necessarily errors, just CMake trying to figure out what is in
place and what is not…so maybe everything so far is fine.

7) Hit the configure button again. Output:
Check for working flex...
   Skipping MPI F77 interface
   looking for ccp...
   looking for ccp...not found.
   looking for ccp...
   looking for ccp...not found.
   Configuring done

8) Click Generate button. Output: “Generating done.”
9) Close CMake
10) Open MS DevStudio 2010, select “Open Project”, navigate to the
MPIBuild directory and select the “OpenMPI.sln” project
11) Select “Build solution”
12) Wait
13) Full output is attached in the file DevStudio.Output.txt, but right off the
bat, there are several of these messages:
>..\..\openmpi-1.4.2\opal\event\WIN32-Code\win32.c(28): fatal error C1083: 
>Cannot open include file: 'opal_config.h': No such file or directory

then we get into:

c1 : fatal error C1083: Cannot open source file:
'E:/Code/C++/ExternalLibs/openmpi-1.4.2/opal/event/compat': Permission
denied
>  WIN32-Code

(note: compat is not a "source file" it's a directory? seems like an odd error)

>c1 : fatal error C1083: Cannot open source file: 
>'E:/Code/C++/ExternalLibs/openmpi-1.4.2/opal/event/WIN32-Code': Permission 
>denied
>  Generating Code...
>-- Build started: Project: libopen-rte, Configuration: Debug Win32 --
>-- Build started: Project: opal-restart, Configuration: Debug Win32 --
>  opal-restart.c
>  orted_comm.c
>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(73): 
>warning C4005: 'INT16_MIN' : macro redefinition

..and a ton of the “macro redefinition” errors after that.

When all is said and done:
== Build: 1 succeeded, 13 failed, 0 up-to-date, 2 skipped ==

Anybody have any ideas?
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Start Microsoft specific detection
Found Microsoft compiler: C:/Program Files (x86)/Microsoft Visual Studio 
10.0/VC/bin/cl.exe.
Looking for windows.h
Looking for windows.h - found
Looking for winsock2.h
Looking for winsock2.h - found
**Looking for wdm.h
**Looking for wdm.h - not found
Checking for InterlockedCompareExchange...
Checking for InterlockedCompareExchange...done
Checking for InterlockedCompareExchangeAcquire...
Checking for InterlockedCompareExchangeAcquire...done
Checking for InterlockedCompareExchangeRelease...
Checking for InterlockedCompareExchangeRelease...done
Checking for InterlockedCompareExchange64...
Checking for InterlockedCompareExchange64...done
Checking for socklen_t...
Checking for socklen_t...done
Checking for struct sockaddr_in...
Checking for struct sockaddr_in...done
Checking for struct sockaddr_in6...
Checking for struct sockaddr_in6...done
Checking for struct sockaddr_storage...
Checking for struct sockaddr_storage...done
Check for working flex...
**Looking for aio.h
**Looking for aio.h - not found
**Looking for alloca.h
**Looking for alloca.h - not found
**Looking for arpa/inet.h
**Looking for arpa/inet.h - not found
**Looking for crt_externs.h
**Looking for crt_externs.h - not found
**Looking for dirent.h
**Looking for dirent.h - not found
**Looking for dlfcn.h
**Looking for dlfcn.h - not found
**Looking for err.h
**Looking for err.h - not found
**Looking for execinfo.h
**Looking for execinfo.h - not found
**Looking for fcntl.h
**Looking for fcntl.h - found
**Looking for grp.h
**Looking for grp.h - not found
**Looking for ifaddrs.h
**Looking for ifaddrs.h - not found
**Looking for inttypes.h
**Looking for inttypes.h - not found
**Looking for libcr.h
**Looking for libcr.h - not found
**Looking for libgen.h
**Looking for libgen.h - not found
**Looking for libutil.h
**Looking for libutil.h - not found
**Looking for libxcpu.h
**Looking for libxcpu.h -