Compiled Boost with MPI
Hi, For my project I saw today that I needed MPI too. So I installed MPICH2 and Changed my < user-config.jam > file like that : import toolset : using ; using python : 2.7 : "C:/Python273" : "C:/Python273/include" : "C:/Python273/libs" ; using mpi : : <find-static-library>mpi <library-path>"C:/librairies/MPICH2-3.0.2/lib" <include>"C:/librairies/MPICH2-3.0.2/include" : "\"C:\\librairies\\MPICH2-3.0.2\\bin\\mpiexec\"" ; So I compile Boost with this command line : b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam install And the error is in the out.txt file in attachment. Anyone know what's happenned ? Thanks in advance. Julien.
Hi,
Did you try another MPI library ? Are you using mingw or cygwin? No Visual Studio?
Open MPI provides also binaries for Windows, although the support seems decreasing for this platform.
Matthieu
--
Information System Engineer, Ph.D.
Blog: http://matt.eifelle.com
LinkedIn: http://www.linkedin.com/in/matthieubrucher
Music band: http://liliejay.com/
Le 4 mars 2013 à 23:38,
Hi,
For my project I saw today that I needed MPI too. So I installed MPICH2 and Changed my « user-config.jam » file like that :
import toolset : using ; using python : 2.7 : "C:/Python273" : "C:/Python273/include" : "C:/Python273/libs" ; using mpi : : <find-static-library>mpi <library-path>"C:/librairies/MPICH2-3.0.2/lib" <include>"C:/librairies/MPICH2-3.0.2/include" : "\"C:\\librairies\\MPICH2-3.0.2\\bin\\mpiexec\"" ;
So I compile Boost with this command line : b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam install
And the error is in the out.txt file in attachment.
Anyone know what’s happenned ?
Thanks in advance.
Julien.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Im on MinGW with GCC 4.7.2. Not Cygwin nor Visual Studio.
I need « .a » libs, OpenMPI provides them ?
Julien.
De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de
Matthieu Brucher
Envoyé : mardi 5 mars 2013 23:34
À : boost-users@lists.boost.org
Objet : Re: [Boost-users] Compiled Boost with MPI
Hi,
Did you try another MPI library ? Are you using mingw or cygwin? No Visual
Studio?
Open MPI provides also binaries for Windows, although the support seems
decreasing for this platform.
Matthieu
--
Information System Engineer, Ph.D.
Blog: http://matt.eifelle.com/ http://matt.eifelle.com
LinkedIn: http://www.linkedin.com/in/matthieubrucher
http://www.linkedin.com/in/matthieubrucher
Music band: http://liliejay.com/ http://liliejay.com/
Le 4 mars 2013 à 23:38,
...Snipped... On 05/03/2013 3:40 PM, julien.plu@redaction-developpez.com wrote:
I'm on MinGW with GCC 4.7.2. Not Cygwin nor Visual Studio.
I need « .a » libs, OpenMPI provides them ?
Julien.
OpenMPI doesn't supply MinGW binaries, only Cygwin and 1.6.2 Visual Studio builds. Windows support for newer OpenMPI builds is more or less finished because there's not many Windows users, and no developers with access to a cluster who can test it properly. Damien
On Tue, 5 Mar 2013, julien.plu@redaction-developpez.com wrote:
Hi,
For my project I saw today that I needed MPI too. So I installed MPICH2 and Changed my « user-config.jam » file like that :
import toolset : using ;
using python : 2.7 : "C:/Python273" : "C:/Python273/include" : "C:/Python273/libs" ;
using mpi : :
<find-static-library>mpi
<library-path>"C:/librairies/MPICH2-3.0.2/lib"
<include>"C:/librairies/MPICH2-3.0.2/include"
:
"\"C:\\librairies\\MPICH2-3.0.2\\bin\\mpiexec\""
;
So I compile Boost with this command line : b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam install
And the error is in the out.txt file in attachment.
Anyone know what’s happenned ?
It looks like mpicxx.h is having problems. Try to download http://www.usqcd.org/fnal/example/cpi.c, rename it to a .cpp file, and try to compile it with mpic++. If you get similar errors, it is a bug in MPICH and you should report it there (you might be hitting http://trac.mpich.org/projects/mpich/ticket/1582 which mentions the same line number as in your error messages). If that ends up being the problem, adding -DMPICH_SKIP_MPICXX to your compile flags might act as a workaround. If you do hit the existing bug, you might want to post a comment on that bug saying that it breaks compiling Boost.MPI with MPICH 3.0.2. -- Jeremiah Willcock
Hi, Thanks for your answer. I have the same problem than the person on the trac with his code and If I add "--compileflags=-DMPICH_SKIP_MPICXX" or "--linkflags=-DMPICH_SKIP_MPICXX " to the boost compile command line I have exactly the same error. Cheers. Julien. -----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Jeremiah Willcock Envoyé : mardi 5 mars 2013 23:41 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Compiled Boost with MPI On Tue, 5 Mar 2013, julien.plu@redaction-developpez.com wrote:
Hi,
For my project I saw today that I needed MPI too. So I installed MPICH2 and Changed my « user-config.jam » file like that :
import toolset : using ;
using python : 2.7 : "C:/Python273" : "C:/Python273/include" : "C:/Python273/libs" ;
using mpi : :
<find-static-library>mpi
<library-path>"C:/librairies/MPICH2-3.0.2/lib"
<include>"C:/librairies/MPICH2-3.0.2/include"
:
"\"C:\\librairies\\MPICH2-3.0.2\\bin\\mpiexec\""
;
So I compile Boost with this command line : b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam install
And the error is in the out.txt file in attachment.
Anyone know whatʼs happenned ?
It looks like mpicxx.h is having problems. Try to download http://www.usqcd.org/fnal/example/cpi.c, rename it to a .cpp file, and try to compile it with mpic++. If you get similar errors, it is a bug in MPICH and you should report it there (you might be hitting http://trac.mpich.org/projects/mpich/ticket/1582 which mentions the same line number as in your error messages). If that ends up being the problem, adding -DMPICH_SKIP_MPICXX to your compile flags might act as a workaround. If you do hit the existing bug, you might want to post a comment on that bug saying that it breaks compiling Boost.MPI with MPICH 3.0.2. -- Jeremiah Willcock
On Wed, 6 Mar 2013, julien.plu@redaction-developpez.com wrote:
Hi,
Thanks for your answer.
I have the same problem than the person on the trac with his code and If I add "--compileflags=-DMPICH_SKIP_MPICXX" or "--linkflags=-DMPICH_SKIP_MPICXX " to the boost compile command line I have exactly the same error.
Are you sure those flags are getting through to your compiler? The "mpicxx.h" file should not be included at all if that macro is defined. Also, is there some #define of UNSIGNED_SHORT anywhere in your MinGW header directory? -- Jeremiah Willcock
-----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Jeremiah Willcock Envoyé : mardi 5 mars 2013 23:41 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Compiled Boost with MPI
On Tue, 5 Mar 2013, julien.plu@redaction-developpez.com wrote:
Hi,
For my project I saw today that I needed MPI too. So I installed MPICH2 and Changed my « user-config.jam » file like that :
import toolset : using ;
using python : 2.7 : "C:/Python273" : "C:/Python273/include" : "C:/Python273/libs" ;
using mpi : :
<find-static-library>mpi
<library-path>"C:/librairies/MPICH2-3.0.2/lib"
<include>"C:/librairies/MPICH2-3.0.2/include"
:
"\"C:\\librairies\\MPICH2-3.0.2\\bin\\mpiexec\""
;
So I compile Boost with this command line : b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam install
And the error is in the out.txt file in attachment.
Anyone know whatʼs happenned ?
It looks like mpicxx.h is having problems. Try to download http://www.usqcd.org/fnal/example/cpi.c, rename it to a .cpp file, and try to compile it with mpic++. If you get similar errors, it is a bug in MPICH and you should report it there (you might be hitting http://trac.mpich.org/projects/mpich/ticket/1582 which mentions the same line number as in your error messages). If that ends up being the problem, adding -DMPICH_SKIP_MPICXX to your compile flags might act as a workaround. If you do hit the existing bug, you might want to post a comment on that bug saying that it breaks compiling Boost.MPI with MPICH 3.0.2.
-- Jeremiah Willcock
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi, Sorry for my late reply I was away.
Are you sure those flags are getting through to your compiler?
No the flag "-DMPICH_SKIP_MPICXX" doesn't appear in the in the compilation lines.
Also, is there some #define of UNSIGNED_SHORT anywhere in your MinGW header directory?
I don't know, how I can check that ? because I have a lot of headers in the MinGW header directory. Cheers. Julien. -----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Jeremiah Willcock Envoyé : jeudi 7 mars 2013 00:24 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Compiled Boost with MPI On Wed, 6 Mar 2013, julien.plu@redaction-developpez.com wrote:
Hi,
Thanks for your answer.
I have the same problem than the person on the trac with his code and If I add "--compileflags=-DMPICH_SKIP_MPICXX" or "--linkflags=-DMPICH_SKIP_MPICXX " to the boost compile command line I have exactly the same error.
Are you sure those flags are getting through to your compiler? The "mpicxx.h" file should not be included at all if that macro is defined. Also, is there some #define of UNSIGNED_SHORT anywhere in your MinGW header directory? -- Jeremiah Willcock
-----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Jeremiah Willcock Envoyé : mardi 5 mars 2013 23:41 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Compiled Boost with MPI
On Tue, 5 Mar 2013, julien.plu@redaction-developpez.com wrote:
Hi,
For my project I saw today that I needed MPI too. So I installed MPICH2 and Changed my « user-config.jam » file like that :
import toolset : using ;
using python : 2.7 : "C:/Python273" : "C:/Python273/include" : "C:/Python273/libs" ;
using mpi : :
<find-static-library>mpi
<library-path>"C:/librairies/MPICH2-3.0.2/lib"
<include>"C:/librairies/MPICH2-3.0.2/include"
:
"\"C:\\librairies\\MPICH2-3.0.2\\bin\\mpiexec\""
;
So I compile Boost with this command line : b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam install
And the error is in the out.txt file in attachment.
Anyone know whatʼs happenned ?
It looks like mpicxx.h is having problems. Try to download http://www.usqcd.org/fnal/example/cpi.c, rename it to a .cpp file, and try to compile it with mpic++. If you get similar errors, it is a bug in MPICH and you should report it there (you might be hitting http://trac.mpich.org/projects/mpich/ticket/1582 which mentions the same line number as in your error messages). If that ends up being the problem, adding -DMPICH_SKIP_MPICXX to your compile flags might act as a workaround. If you do hit the existing bug, you might want to post a comment on that bug saying that it breaks compiling Boost.MPI with MPICH 3.0.2.
-- Jeremiah Willcock
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Sat, 9 Mar 2013, julien.plu@redaction-developpez.com wrote:
Hi,
Sorry for my late reply I was away.
Are you sure those flags are getting through to your compiler?
No the flag "-DMPICH_SKIP_MPICXX" doesn't appear in the in the compilation lines.
Could you please try to build Boost with that flag? I think it would likely work around the problem.
Also, is there some #define of UNSIGNED_SHORT anywhere in your MinGW header directory?
I don't know, how I can check that ? because I have a lot of headers in the MinGW header directory.
I couldn't find anything about it online. Using the #define that excludes mpicxx.h would likely fix the issue, though. -- Jeremiah Willcock
-----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Jeremiah Willcock Envoyé : jeudi 7 mars 2013 00:24 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Compiled Boost with MPI
On Wed, 6 Mar 2013, julien.plu@redaction-developpez.com wrote:
Hi,
Thanks for your answer.
I have the same problem than the person on the trac with his code and If I add "--compileflags=-DMPICH_SKIP_MPICXX" or "--linkflags=-DMPICH_SKIP_MPICXX " to the boost compile command line I have exactly the same error.
Are you sure those flags are getting through to your compiler? The "mpicxx.h" file should not be included at all if that macro is defined. Also, is there some #define of UNSIGNED_SHORT anywhere in your MinGW header directory?
-- Jeremiah Willcock
-----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Jeremiah Willcock Envoyé : mardi 5 mars 2013 23:41 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Compiled Boost with MPI
On Tue, 5 Mar 2013, julien.plu@redaction-developpez.com wrote:
Hi,
For my project I saw today that I needed MPI too. So I installed MPICH2 and Changed my « user-config.jam » file like that :
import toolset : using ;
using python : 2.7 : "C:/Python273" : "C:/Python273/include" : "C:/Python273/libs" ;
using mpi : :
<find-static-library>mpi
<library-path>"C:/librairies/MPICH2-3.0.2/lib"
<include>"C:/librairies/MPICH2-3.0.2/include"
:
"\"C:\\librairies\\MPICH2-3.0.2\\bin\\mpiexec\""
;
So I compile Boost with this command line : b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam install
And the error is in the out.txt file in attachment.
Anyone know whatʼs happenned ?
It looks like mpicxx.h is having problems. Try to download http://www.usqcd.org/fnal/example/cpi.c, rename it to a .cpp file, and try to compile it with mpic++. If you get similar errors, it is a bug in MPICH and you should report it there (you might be hitting http://trac.mpich.org/projects/mpich/ticket/1582 which mentions the same line number as in your error messages). If that ends up being the problem, adding -DMPICH_SKIP_MPICXX to your compile flags might act as a workaround. If you do hit the existing bug, you might want to post a comment on that bug saying that it breaks compiling Boost.MPI with MPICH 3.0.2.
-- Jeremiah Willcock
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi,
Still the same error :-(
Command line : : b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam install
Result :
Performing configuration checks
- 32-bit : yes
- x86 : yes
- has_icu builds : no
- iconv (libc) : no
- iconv (separate) : yes
- icu : no
- icu (lib64) : no
- gcc visibility : yes
- long double support : yes
Component configuration:
- atomic : building
- chrono : building
- context : building
- date_time : building
- exception : building
- filesystem : building
- graph : building
- graph_parallel : building
- iostreams : building
- locale : building
- math : building
- mpi : building
- program_options : building
- python : building
- random : building
- regex : building
- serialization : building
- signals : building
- system : building
- test : building
- thread : building
- timer : building
- wave : building
...patience...
...patience...
...patience...
...patience...
...found 31767 targets...
...updating 19 targets...
gcc.compile.c++ bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\link-static\threading-multi\mpi_datatype_oarchive.o
In file included from C:\librairies\MPICH2-3.0.2\include/mpi.h:1214:0,
from ./boost/mpi/config.hpp:20,
from ./boost/mpi/detail/mpi_datatype_primitive.hpp:12,
from ./boost/mpi/detail/mpi_datatype_oarchive.hpp:18,
from libs\mpi\src\mpi_datatype_oarchive.cpp:12:
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Datatype::NULL_COPY_FN(const MPI::Datatype&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:130: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:138: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:142: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:151: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:161: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Datatype::NULL_DELETE_FN(MPI::Datatype&, int, void*, void*)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:410:90: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:410:98: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:410:104: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:410:108: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Datatype::DUP_FN(const MPI::Datatype&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:411:124: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:411:132: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:411:136: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Comm::NULL_COPY_FN(const MPI::Comm&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:126: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:134: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:138: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:147: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:157: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Comm::NULL_DELETE_FN(MPI::Comm&, int, void*, void*)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1472:86: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1472:94: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1472:100: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1472:104: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Comm::DUP_FN(const MPI::Comm&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1473:120: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1473:128: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1473:132: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Win::NULL_COPY_FN(const MPI::Win&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:123: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:131: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:135: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:144: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:154: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Win::NULL_DELETE_FN(MPI::Win&, int, void*, void*)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1905:83: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1905:91: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1905:97: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1905:101: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Win::DUP_FN(const MPI::Win&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1906:117: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1906:125: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1906:129: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: At global scope:
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:2495:17: erreur: dÚclaration ne dÚclarant rien du tout [-fpermissive]
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -mthreads -DBOOST_ALL_NO_LIB=1 -DBOOST_MPI_SOURCE=1 -DNDEBUG -I"." -I"C:\librairies\MPICH2-3.0.2\include" -c -o "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\link-static\threading-multi\mpi_datatype_oarchive.o" "libs\mpi\src\mpi_datatype_oarchive.cpp"
...failed gcc.compile.c++ bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\link-static\threading-multi\mpi_datatype_oarchive.o...
gcc.compile.c++ bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\mpi_datatype_oarchive.o
In file included from C:\librairies\MPICH2-3.0.2\include/mpi.h:1214:0,
from ./boost/mpi/config.hpp:20,
from ./boost/mpi/detail/mpi_datatype_primitive.hpp:12,
from ./boost/mpi/detail/mpi_datatype_oarchive.hpp:18,
from libs\mpi\src\mpi_datatype_oarchive.cpp:12:
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Datatype::NULL_COPY_FN(const MPI::Datatype&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:130: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:138: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:142: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:151: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:161: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Datatype::NULL_DELETE_FN(MPI::Datatype&, int, void*, void*)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:410:90: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:410:98: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:410:104: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:410:108: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Datatype::DUP_FN(const MPI::Datatype&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:411:124: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:411:132: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:411:136: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Comm::NULL_COPY_FN(const MPI::Comm&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:126: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:134: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:138: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:147: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:157: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Comm::NULL_DELETE_FN(MPI::Comm&, int, void*, void*)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1472:86: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1472:94: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1472:100: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1472:104: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Comm::DUP_FN(const MPI::Comm&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1473:120: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1473:128: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1473:132: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Win::NULL_COPY_FN(const MPI::Win&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:123: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:131: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:135: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:144: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:154: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Win::NULL_DELETE_FN(MPI::Win&, int, void*, void*)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1905:83: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1905:91: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1905:97: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1905:101: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Win::DUP_FN(const MPI::Win&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1906:117: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1906:125: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1906:129: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: At global scope:
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:2495:17: erreur: dÚclaration ne dÚclarant rien du tout [-fpermissive]
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -mthreads -DBOOST_ALL_NO_LIB=1 -DBOOST_MPI_DYN_LINK=1 -DBOOST_MPI_SOURCE=1 -DNDEBUG -I"." -I"C:\librairies\MPICH2-3.0.2\include" -c -o "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\mpi_datatype_oarchive.o" "libs\mpi\src\mpi_datatype_oarchive.cpp"
...failed gcc.compile.c++ bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\mpi_datatype_oarchive.o...
gcc.compile.c++ bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\text_skeleton_oarchive.o
In file included from C:\librairies\MPICH2-3.0.2\include/mpi.h:1214:0,
from ./boost/mpi/config.hpp:20,
from ./boost/mpi/datatype.hpp:20,
from ./boost/mpi/detail/ignore_oprimitive.hpp:13,
from ./boost/mpi/detail/text_skeleton_oarchive.hpp:15,
from libs\mpi\src\text_skeleton_oarchive.cpp:10:
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Datatype::NULL_COPY_FN(const MPI::Datatype&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:130: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:138: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:142: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:151: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:409:161: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Datatype::NULL_DELETE_FN(MPI::Datatype&, int, void*, void*)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:410:90: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:410:98: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:410:104: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:410:108: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Datatype::DUP_FN(const MPI::Datatype&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:411:124: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:411:132: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:411:136: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Comm::NULL_COPY_FN(const MPI::Comm&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:126: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:134: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:138: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:147: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1471:157: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Comm::NULL_DELETE_FN(MPI::Comm&, int, void*, void*)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1472:86: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1472:94: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1472:100: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1472:104: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Comm::DUP_FN(const MPI::Comm&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1473:120: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1473:128: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1473:132: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Win::NULL_COPY_FN(const MPI::Win&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:123: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:131: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:135: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:144: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1904:154: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Win::NULL_DELETE_FN(MPI::Win&, int, void*, void*)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1905:83: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1905:91: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1905:97: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1905:101: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: In static member function 'static int MPI::Win::DUP_FN(const MPI::Win&, int, void*, void*, void*, bool&)':
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1906:117: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1906:125: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:1906:129: attention : statement has no effect [-Wunused-value]
C:\librairies\MPICH2-3.0.2\include/mpicxx.h: At global scope:
C:\librairies\MPICH2-3.0.2\include/mpicxx.h:2495:17: erreur: dÚclaration ne dÚclarant rien du tout [-fpermissive]
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -mthreads -DBOOST_ALL_NO_LIB=1 -DBOOST_MPI_DYN_LINK=1 -DBOOST_MPI_SOURCE=1 -DNDEBUG -I"." -I"C:\librairies\MPICH2-3.0.2\include" -c -o "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\text_skeleton_oarchive.o" "libs\mpi\src\text_skeleton_oarchive.cpp"
...failed gcc.compile.c++ bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\text_skeleton_oarchive.o...
...skipped
Hi,
Sorry for my late reply I was away.
Are you sure those flags are getting through to your compiler?
No the flag "-DMPICH_SKIP_MPICXX" doesn't appear in the in the compilation lines.
Could you please try to build Boost with that flag? I think it would likely work around the problem.
Also, is there some #define of UNSIGNED_SHORT anywhere in your MinGW header directory?
I don't know, how I can check that ? because I have a lot of headers in the MinGW header directory.
I couldn't find anything about it online. Using the #define that excludes mpicxx.h would likely fix the issue, though. -- Jeremiah Willcock
-----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Jeremiah Willcock Envoyé : jeudi 7 mars 2013 00:24 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Compiled Boost with MPI
On Wed, 6 Mar 2013, julien.plu@redaction-developpez.com wrote:
Hi,
Thanks for your answer.
I have the same problem than the person on the trac with his code and If I add "--compileflags=-DMPICH_SKIP_MPICXX" or "--linkflags=-DMPICH_SKIP_MPICXX " to the boost compile command line I have exactly the same error.
Are you sure those flags are getting through to your compiler? The "mpicxx.h" file should not be included at all if that macro is defined. Also, is there some #define of UNSIGNED_SHORT anywhere in your MinGW header directory?
-- Jeremiah Willcock
-----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Jeremiah Willcock Envoyé : mardi 5 mars 2013 23:41 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Compiled Boost with MPI
On Tue, 5 Mar 2013, julien.plu@redaction-developpez.com wrote:
Hi,
For my project I saw today that I needed MPI too. So I installed MPICH2 and Changed my « user-config.jam » file like that :
import toolset : using ;
using python : 2.7 : "C:/Python273" : "C:/Python273/include" : "C:/Python273/libs" ;
using mpi : :
<find-static-library>mpi
<library-path>"C:/librairies/MPICH2-3.0.2/lib"
<include>"C:/librairies/MPICH2-3.0.2/include"
:
"\"C:\\librairies\\MPICH2-3.0.2\\bin\\mpiexec\""
;
So I compile Boost with this command line : b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam install
And the error is in the out.txt file in attachment.
Anyone know whatʼs happenned ?
It looks like mpicxx.h is having problems. Try to download http://www.usqcd.org/fnal/example/cpi.c, rename it to a .cpp file, and try to compile it with mpic++. If you get similar errors, it is a bug in MPICH and you should report it there (you might be hitting http://trac.mpich.org/projects/mpich/ticket/1582 which mentions the same line number as in your error messages). If that ends up being the problem, adding -DMPICH_SKIP_MPICXX to your compile flags might act as a workaround. If you do hit the existing bug, you might want to post a comment on that bug saying that it breaks compiling Boost.MPI with MPICH 3.0.2.
-- Jeremiah Willcock
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi,
Ok, now I succeeded to add the "-DMPICH_SKIP_MPICXX" with this command line :
b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam cxxflags=- DMPICH_SKIP_MPICXX install
But, there is still an error (different than the previous one) :
gcc.link.dll bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libmpi.dll.a
bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\skeleton_and_content.o:skeleton_and_content.cpp:(.text+0x718): undefined reference to `_imp___ZN5boost3mpi6python6detail24skeleton_proxy_base_typeE'
collect2.exe: error: ld returned 1 exit status
"g++" -L"C:\Python273\libs" -L"C:\librairies\MPICH2-3.0.2\lib" -Wl,-R -Wl,"C:\Python273\libs" "-Wl,--out-implib,bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libmpi.dll.a" -o "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\mpi.pyd" -shared -Wl,--start-group "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\collectives.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_communicator.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\datatypes.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\documentation.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_environment.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_nonblocking.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_exception.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\module.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_request.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\skeleton_and_content.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\status.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_timer.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libboost_mpi_python.dll.a" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\threading-multi\libboost_python.dll.a" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libboost_mpi.dll.a" "bin.v2\libs\serialization\build\gcc-mingw-4.7.2\release\threading-multi\libboost_serialization.dll.a" -Wl,-Bstatic -lmpi -Wl,-Bdynamic -lpython27 -Wl,--end-group -mthreads
...failed gcc.link.dll bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libmpi.dll.a bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\mpi.pyd...
...removing bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libmpi.dll.a
...skipped pC:\librairies\boost-1.53.0\libmpi.pyd for lack of
Hi,
Sorry for my late reply I was away.
Are you sure those flags are getting through to your compiler?
No the flag "-DMPICH_SKIP_MPICXX" doesn't appear in the in the compilation lines.
Could you please try to build Boost with that flag? I think it would likely work around the problem.
Also, is there some #define of UNSIGNED_SHORT anywhere in your MinGW header directory?
I don't know, how I can check that ? because I have a lot of headers in the MinGW header directory.
I couldn't find anything about it online. Using the #define that excludes mpicxx.h would likely fix the issue, though. -- Jeremiah Willcock
-----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Jeremiah Willcock Envoyé : jeudi 7 mars 2013 00:24 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Compiled Boost with MPI
On Wed, 6 Mar 2013, julien.plu@redaction-developpez.com wrote:
Hi,
Thanks for your answer.
I have the same problem than the person on the trac with his code and If I add "--compileflags=-DMPICH_SKIP_MPICXX" or "--linkflags=-DMPICH_SKIP_MPICXX " to the boost compile command line I have exactly the same error.
Are you sure those flags are getting through to your compiler? The "mpicxx.h" file should not be included at all if that macro is defined. Also, is there some #define of UNSIGNED_SHORT anywhere in your MinGW header directory?
-- Jeremiah Willcock
-----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Jeremiah Willcock Envoyé : mardi 5 mars 2013 23:41 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Compiled Boost with MPI
On Tue, 5 Mar 2013, julien.plu@redaction-developpez.com wrote:
Hi,
For my project I saw today that I needed MPI too. So I installed MPICH2 and Changed my « user-config.jam » file like that :
import toolset : using ;
using python : 2.7 : "C:/Python273" : "C:/Python273/include" : "C:/Python273/libs" ;
using mpi : :
<find-static-library>mpi
<library-path>"C:/librairies/MPICH2-3.0.2/lib"
<include>"C:/librairies/MPICH2-3.0.2/include"
:
"\"C:\\librairies\\MPICH2-3.0.2\\bin\\mpiexec\""
;
So I compile Boost with this command line : b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam install
And the error is in the out.txt file in attachment.
Anyone know whatʼs happenned ?
It looks like mpicxx.h is having problems. Try to download http://www.usqcd.org/fnal/example/cpi.c, rename it to a .cpp file, and try to compile it with mpic++. If you get similar errors, it is a bug in MPICH and you should report it there (you might be hitting http://trac.mpich.org/projects/mpich/ticket/1582 which mentions the same line number as in your error messages). If that ends up being the problem, adding -DMPICH_SKIP_MPICXX to your compile flags might act as a workaround. If you do hit the existing bug, you might want to post a comment on that bug saying that it breaks compiling Boost.MPI with MPICH 3.0.2.
-- Jeremiah Willcock
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi,
Ok, now I succeeded to add the "-DMPICH_SKIP_MPICXX" with this command line :
b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam cxxflags=- DMPICH_SKIP_MPICXX install
But, there is still an error (different than the previous one) :
gcc.link.dll bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libmpi.dll.a bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\skeleton_and_content.o:skeleton_and_content.cpp:(.text+0x718): undefined reference to `_imp___ZN5boost3mpi6python6detail24skeleton_proxy_base_typeE' collect2.exe: error: ld returned 1 exit status
"g++" -L"C:\Python273\libs" -L"C:\librairies\MPICH2-3.0.2\lib" -Wl,-R -Wl,"C:\Python273\libs" "-Wl,--out-implib,bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libmpi.dll.a" -o "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\mpi.pyd" -shared -Wl,--start-group "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\collectives.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_communicator.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\datatypes.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\documentation.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_environment.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_nonblocking.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_exception.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\module.o" "bin.v2\!
On Sun, 10 Mar 2013, julien.plu@redaction-developpez.com wrote: libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_request.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\skeleton_and_content.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\status.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_timer.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libboost_mpi_python.dll.a" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\threading-multi\libboost_python.dll.a" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libboost_mpi.dll.a" "bin.v2\libs\serialization\build\gcc-mingw-4.7.2\release\threading-multi\libboost_serialization.dll.a" -Wl,-Bstatic -lmpi -Wl,-Bdynamic -lpython27 -Wl,--end-group -mthreads
...failed gcc.link.dll bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libmpi.dll.a bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\mpi.pyd... ...removing bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libmpi.dll.a ...skipped pC:\librairies\boost-1.53.0\libmpi.pyd for lack of
mpi.pyd... ...skipped pC:\librairies\boost-1.53.0\liblibmpi.dll.a for lack of libmpi.dll.a... Anyone know what's happen now ?
Can you please make sure that your new compile flag hasn't overridden the ones that are already there (defined by libs/mpi/build/Jamfile.v2)? In particular, your linker error seems like you might be missing several -D options that are put in during normal builds of these libraries. -- Jeremiah Willcock
Hi,
I re-build everything from the beginning with this command line :
b2 toolset=gcc --j4 --layout=system release
--prefix=C:\librairies\boost-**1.53.0
--user-config=user-config.jam cxxflags=- DMPICH_SKIP_MPICXX install
After many minutes, the compilation stop with exactly the same error :-(
What are the -D options that are missing ?
Julien.
2013/3/11 Jeremiah Willcock
On Sun, 10 Mar 2013, julien.plu@redaction-**developpez.com
wrote: Hi,
Ok, now I succeeded to add the "-DMPICH_SKIP_MPICXX" with this command line :
b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost- **1.53.0 --user-config=user-config.jam cxxflags=- DMPICH_SKIP_MPICXX install
But, there is still an error (different than the previous one) :
gcc.link.dll bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\libmpi.dll.a bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\skeleton_and_**content.o:skeleton_and_**content.cpp:(.text+0x718): undefined reference to `_imp___**ZN5boost3mpi6python6detail24sk** eleton_proxy_base_typeE' collect2.exe: error: ld returned 1 exit status
"g++" -L"C:\Python273\libs" -L"C:\librairies\MPICH2-3.0.2\**lib" -Wl,-R -Wl,"C:\Python273\libs" "-Wl,--out-implib,bin.v2\libs\** mpi\build\gcc-mingw-4.7.2\**release\threading-multi\**libmpi.dll.a" -o "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-**multi\mpi.pyd" -shared -Wl,--start-group "bin.v2\libs\mpi\build\gcc-** mingw-4.7.2\release\threading-**multi\python\collectives.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\py_communicator.**o" "bin.v2\libs\mpi\build\gcc-** mingw-4.7.2\release\threading-**multi\python\datatypes.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-**multi\python\documentation.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-**multi\python\py_environment.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-**multi\python\py_nonblocking.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-**multi\python\py_exception.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-**multi\python\module.o" "bin.v2\!
libs\mpi\build\gcc-mingw-4.7.**2\release\threading-multi\**python\py_request.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\skeleton_and_**content.o" "bin.v2\libs\mpi\build\gcc-** mingw-4.7.2\release\threading-**multi\python\status.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-**multi\python\py_timer.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\libboost_mpi_python.dll.**a" "bin.v2\libs\python\build\gcc-** mingw-4.7.2\release\threading-**multi\libboost_python.dll.a" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-**multi\libboost_mpi.dll.a" "bin.v2\libs\serialization\**build\gcc-mingw-4.7.2\release\** threading-multi\libboost_**serialization.dll.a" -Wl,-Bstatic -lmpi -Wl,-Bdynamic -lpython27 -Wl,--end-group -mthreads
...failed gcc.link.dll bin.v2\libs\mpi\build\gcc-** mingw-4.7.2\release\threading-**multi\libmpi.dll.a bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\mpi.pyd... ...removing bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\libmpi.dll.a ...skipped pC:\librairies\boost-1.53.0\**libmpi.pyd for lack of
mpi.pyd... ...skipped pC:\librairies\boost-1.53.0\**liblibmpi.dll.a for lack of libmpi.dll.a... Anyone know what's happen now ?
Can you please make sure that your new compile flag hasn't overridden the ones that are already there (defined by libs/mpi/build/Jamfile.v2)? In particular, your linker error seems like you might be missing several -D options that are put in during normal builds of these libraries.
-- Jeremiah Willcock _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Tue, 12 Mar 2013, Julien Plu wrote:
Hi, I re-build everything from the beginning with this command line :
b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam cxxflags=- DMPICH_SKIP_MPICXX install
After many minutes, the compilation stop with exactly the same error :-(
What are the -D options that are missing ?
Can you maybe try using define=MPICH_SKIP_MPICXX instead of cxxflags? See http://www.boost.org/boost-build2/doc/html/bbv2/overview/invocation.html#bbv... for the full list; I don't see an easy way to add flags without overriding the existing ones (you might want to ask on the Boost.Build list about that). At least some of the current flags come from libs/mpi/build/Jamfile.v2. -- Jeremiah Willcock
2013/3/11 Jeremiah Willcock
On Sun, 10 Mar 2013, julien.plu@redaction-developpez.com wrote: Hi,
Ok, now I succeeded to add the "-DMPICH_SKIP_MPICXX" with this command line :
b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam cxxflags=- DMPICH_SKIP_MPICXX install
But, there is still an error (different than the previous one) :
gcc.link.dll bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libmpi.dll.a bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\skeleton_and_content.o:skeleton_and_content.cpp:(.text+0x718): undefined reference to `_imp___ZN5boost3mpi6python6detail24skeleton_proxy_base_typeE' collect2.exe: error: ld returned 1 exit status
"g++" -L"C:\Python273\libs" -L"C:\librairies\MPICH2-3.0.2\lib" -Wl,-R -Wl,"C:\Python273\libs" "-Wl,--out-implib,bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libmpi.dll.a" -o "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\mpi.pyd" -shared -Wl,--start-group "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\collectives.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_communicator.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\datatypes.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\documentation.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_environment.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_nonblocking.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_exception.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\module.o" "bin.v2\!
libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_request.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\skeleton_and_content.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\status.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\python\py_timer.o" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libboost_mpi_python.dll.a" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\threading-multi\libboost_python.dll.a" "bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libboost_mpi.dll.a" "bin.v2\libs\serialization\build\gcc-mingw-4.7.2\release\threading-multi\libboost_serialization.dll.a" -Wl,-Bstatic -lmpi -Wl,-Bdynamic -lpython27 -Wl,--end-group -mthreads
...failed gcc.link.dll bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libmpi.dll.a bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\mpi.pyd... ...removing bin.v2\libs\mpi\build\gcc-mingw-4.7.2\release\threading-multi\libmpi.dll.a ...skipped pC:\librairies\boost-1.53.0\libmpi.pyd for lack of
mpi.pyd... ...skipped pC:\librairies\boost-1.53.0\liblibmpi.dll.a for lack of libmpi.dll.a... Anyone know what's happen now ?
Can you please make sure that your new compile flag hasn't overridden the ones that are already there (defined by libs/mpi/build/Jamfile.v2)? In particular, your linker error seems like you might be missing several -D options that are put in during normal builds of these libraries.
-- Jeremiah Willcock _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Exactly the same thing with "define=MPICH_SKIP_MPICXX" :-(
I will post my problem on the boost.build mailing list.
Thanks a lot for your help :-)
Julien.
2013/3/12 Jeremiah Willcock
On Tue, 12 Mar 2013, Julien Plu wrote:
Hi,
I re-build everything from the beginning with this command line :
b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost- **1.53.0 --user-config=user-config.jam cxxflags=- DMPICH_SKIP_MPICXX install
After many minutes, the compilation stop with exactly the same error :-(
What are the -D options that are missing ?
Can you maybe try using define=MPICH_SKIP_MPICXX instead of cxxflags? See http://www.boost.org/boost-**build2/doc/html/bbv2/overview/** invocation.html#bbv2.overview.**invocation.propertieshttp://www.boost.org/boost-build2/doc/html/bbv2/overview/invocation.html#bbv...for the full list; I don't see an easy way to add flags without overriding the existing ones (you might want to ask on the Boost.Build list about that). At least some of the current flags come from libs/mpi/build/Jamfile.v2.
-- Jeremiah Willcock
2013/3/11 Jeremiah Willcock
On Sun, 10 Mar 2013, julien.plu@redaction-**developpez.com wrote: Hi,
Ok, now I succeeded to add the "-DMPICH_SKIP_MPICXX" with this command line :
b2 toolset=gcc --j4 --layout=system release --prefix=C:\librairies\boost-**1.53.0 --user-config=user-config.jam cxxflags=- DMPICH_SKIP_MPICXX install
But, there is still an error (different than the previous one) :
gcc.link.dll bin.v2\libs\mpi\build\gcc-** mingw-4.7.2\release\threading-**multi\libmpi.dll.a bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\skeleton_and_**content.o:skeleton_and_**content.cpp:(.text+0x718): undefined reference to `_imp___**ZN5boost3mpi6python6detail24sk** eleton_proxy_base_typeE' collect2.exe: error: ld returned 1 exit status
"g++" -L"C:\Python273\libs" -L"C:\librairies\MPICH2-3.0.2\**lib" -Wl,-R -Wl,"C:\Python273\libs" "-Wl,--out-implib,bin.v2\libs\**mpi\build\gcc-mingw-4.7.2\** release\threading-multi\**libmpi.dll.a" -o "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-**multi\mpi.pyd" -shared -Wl,--start-group "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\collectives.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\py_communicator.**o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\datatypes.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\documentation.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\py_environment.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\py_nonblocking.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\py_exception.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-**multi\python\module.o" "bin.v2\!
libs\mpi\build\gcc-mingw-4.7.**2\release\threading-multi\** python\py_request.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\skeleton_and_**content.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\status.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\python\py_timer.o" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\libboost_mpi_python.dll.**a" "bin.v2\libs\python\build\gcc-**mingw-4.7.2\release\threading-** multi\libboost_python.dll.a" "bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\libboost_mpi.dll.a" "bin.v2\libs\serialization\**build\gcc-mingw-4.7.2\release\** threading-multi\libboost_**serialization.dll.a" -Wl,-Bstatic -lmpi -Wl,-Bdynamic -lpython27 -Wl,--end-group -mthreads
...failed gcc.link.dll bin.v2\libs\mpi\build\gcc-** mingw-4.7.2\release\threading-**multi\libmpi.dll.a bin.v2\libs\mpi\build\gcc-**mingw-4.7.2\release\threading-** multi\mpi.pyd... ...removing bin.v2\libs\mpi\build\gcc-** mingw-4.7.2\release\threading-**multi\libmpi.dll.a ...skipped pC:\librairies\boost-1.53.0\**libmpi.pyd for lack of
mpi.pyd... ...skipped pC:\librairies\boost-1.53.0\**liblibmpi.dll.a for lack of libmpi.dll.a... Anyone know what's happen now ?
Can you please make sure that your new compile flag hasn't overridden the ones that are already there (defined by libs/mpi/build/Jamfile.v2)? In particular, your linker error seems like you might be missing several -D options that are put in during normal builds of these libraries.
-- Jeremiah Willcock ______________________________**_________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/**mailman/listinfo.cgi/boost-**usershttp://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (5)
-
Damien
-
Jeremiah Willcock
-
Julien Plu
-
julien.plu@redaction-developpez.com
-
Matthieu Brucher