1

J'essaye de compiler un logiciel (Paraview) sur Suse Linux.
Je configure, je lance le make. Et la il me sort:
In file included from /work/toto/ParaView3/Utilities/mpi4py/Library/MPI.c:3:
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c: In function â__pyx_f_6mpi4py_3MPI__new_Opâ:
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:10013: error: âMPI_REPLACEâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:10013: error: (Each undeclared identifier is reported only once
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:10013: error: for each function it appears in.)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c: In function â__pyx_f_6mpi4py_3MPI__del_Opâ:
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:10305: error: âMPI_REPLACEâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c: In function â__pyx_f_6mpi4py_3MPI_10_p_msg_cco_for_bcastâ:
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:13937: error: âMPI_ROOTâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c: In function â__pyx_f_6mpi4py_3MPI_10_p_msg_cco_for_gatherâ:
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:14307: error: âMPI_ROOTâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c: In function â__pyx_f_6mpi4py_3MPI_10_p_msg_cco_for_scatterâ:
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:14623: error: âMPI_ROOTâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c: In function â__pyx_f_6mpi4py_3MPI_10_p_msg_cco_for_reduceâ:
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:15288: error: âMPI_ROOTâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c: In function â__pyx_f_6mpi4py_3MPI_PyMPI_bcastâ:
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:19601: error: âMPI_ROOTâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c: In function â__pyx_f_6mpi4py_3MPI_PyMPI_gatherâ:
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:20083: error: âMPI_ROOTâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c: In function â__pyx_f_6mpi4py_3MPI_PyMPI_scatterâ:
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:20613: error: âMPI_ROOTâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c: In function â__pyx_pf_6mpi4py_3MPI_8Grequest_Completeâ:
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:34167: warning: passing argument 1 of âMPI_Grequest_completeâ makes pointer from integer without a cast
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c: In function â__pyx_pf_6mpi4py_3MPI_4Comm_Get_attrâ:
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:47179: error: âMPI_LASTUSEDCODEâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c: In function âinitMPIPythonâ:
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:73804: error: âMPI_TYPECLASS_INTEGERâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:73818: error: âMPI_TYPECLASS_REALâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:73832: error: âMPI_TYPECLASS_COMPLEXâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:74033: error: âMPI_WCHARâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:74050: error: âMPI_SIGNED_CHARâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:74390: error: âMPI_UNSIGNED_LONG_LONGâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:75415: error: âMPI_REPLACEâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:76767: error: âMPI_ROOTâ undeclared (first use in this function)
/work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c:76897: error: âMPI_LASTUSEDCODEâ undeclared (first use in this function)
make[2]: *** [Utilities/mpi4py/Library/CMakeFiles/MPIPython.dir/MPI.c.o] Error 1
make[1]: *** [Utilities/mpi4py/Library/CMakeFiles/MPIPython.dir/all] Error 2
make: *** [all] Error 2
Je me dis ok, d'ou il sort ses â, je vais les enlever a coup de sed. Sauf que:
$ grep -n --color âMPI_REPLACEâ /work/toto/ParaView3/Utilities/mpi4py/Library/mpi4py_MPI.c $
Pourquoi il invente des â alors qu'il n'y en a pas?

2

rotfl sed pour virer les â - c'est sûr ça va aider à la compilation trioui
1 - là c'est pas make qui te fait chier mais gcc
2 - les â ils sortent de ta console UTF-8 alors que ta locale est latin1 ou l'inverse. Ils sont produits par le message localisé produit par gcc.

si ton terminal était bien réglé tu verrais
error: «MPI_LASTUSEDCODE» undeclared (first use in this function)

et au passage il manque sans doute un #include "mpi.h" quelque part ou alors il est mal configuré.
parfois ça suffit pas de lancer ./configure tout sec
essaye ./configure --help pour savoir si il faut pas lui donner ./configure --with-mpi=/path/to/mpi sinon ça fait des conneries.
et si ça a pas donné de message d'erreur alors que ça aurait dû, faut pas s'étonner, c'est autoconf, c'est gnu, c'est préhistorique, c'est utilisé partout.
et un ./configure mal fait qui va dire "ah j'ai pas trouvé mpi tant pis je vais dire qu'il est dans /usr" c'est pas rare triso

je dis ça en rigolant mais c'est souvent la configuration des sources qui pose plus de problèmes que les fichiers sources eux mêmes tsss

3

(pour utf-8 vs latin1 : le « en utf-8 forme un seul caractère de 2 octets, et il est traduit en deux caractères de 1 octet en latin1, dont un des deux est â )
avatar
<<< Kernel Extremis©®™ >>> et Inventeur de la différence administratif/judiciaire ! (©Yoshi Noir)

<Vertyos> un poil plus mais elle suce bien quand même la mienne ^^
<Sabrina`> tinkiete flan c juste qu'ils sont jaloux que je te trouve aussi appétissant