Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erreur de compilation sur Fedora 37 #223

Open
webosfredo opened this issue Apr 13, 2023 · 0 comments
Open

Erreur de compilation sur Fedora 37 #223

webosfredo opened this issue Apr 13, 2023 · 0 comments

Comments

@webosfredo
Copy link

la commande make echoue à 13% avec le message d'erreur suivant:

[ 13%] Building CXX object src/CMakeFiles/elise.dir/geom2d/basic.cpp.o
Dans le fichier inclus depuis /home/fwrlp/micmac/include/StdAfx.h:73:
Dans la fonction membre « Pt2d& Pt2d::operator=(const Pt2d&) [avec Type = double] »,
mis en ligne depuis « void ElFifo::incr_capa() [avec Type = Pt2d] » à /home/fwrlp/micmac/include/ext_stl/fifo.h:202:28,
mis en ligne depuis « void ElFifo::push_back(const Type&) [avec Type = Pt2d] » à /home/fwrlp/micmac/include/ext_stl/fifo.h:367:41,
mis en ligne depuis « void ElFifo::pushlast(const Type&) [avec Type = Pt2d] » à /home/fwrlp/micmac/include/ext_stl/fifo.h:370:50,
mis en ligne depuis « void PtsOfSquare(ElFifo<Pt2d >&, Pt2dr, Pt2dr) » à /home/fwrlp/micmac/src/geom2d/basic.cpp:54:17:
/home/fwrlp/micmac/include/general/ptxd.h:278:15: erreur: l'indice du tableau 0 est en dehors des limites de « void [0] » [-Werror=array-bounds]
278 | x = p2.x;
| ~~^~~~~~
Dans le fichier inclus depuis /home/fwrlp/micmac/include/StdAfx.h:82:
Dans la fonction membre « void ElFifo::incr_capa() [avec Type = Pt2d] »,
mis en ligne depuis « void ElFifo::push_back(const Type&) [avec Type = Pt2d] » à /home/fwrlp/micmac/include/ext_stl/fifo.h:367:41,
mis en ligne depuis « void ElFifo::pushlast(const Type&) [avec Type = Pt2d] » à /home/fwrlp/micmac/include/ext_stl/fifo.h:370:50,
mis en ligne depuis « void PtsOfSquare(ElFifo<Pt2d >&, Pt2dr, Pt2dr) » à /home/fwrlp/micmac/src/geom2d/basic.cpp:54:17:
/home/fwrlp/micmac/include/ext_stl/fifo.h:200:28: note: l'objet de taille 0 alloué par « operator new [] »
200 | Type * NewTab = new Type [2*_capa];
| ^~~~~~~~~~~~~~~~~~
Dans la fonction membre « Pt2d& Pt2d::operator=(const Pt2d&) [avec Type = double] »,
mis en ligne depuis « void ElFifo::incr_capa() [avec Type = Pt2d] » à /home/fwrlp/micmac/include/ext_stl/fifo.h:202:28,
mis en ligne depuis « void ElFifo::push_back(const Type&) [avec Type = Pt2d] » à /home/fwrlp/micmac/include/ext_stl/fifo.h:367:41,
mis en ligne depuis « void ElFifo::pushlast(const Type&) [avec Type = Pt2d] » à /home/fwrlp/micmac/include/ext_stl/fifo.h:370:50,
mis en ligne depuis « void PtsOfSquare(ElFifo<Pt2d >&, Pt2dr, Pt2dr) » à /home/fwrlp/micmac/src/geom2d/basic.cpp:54:17:
/home/fwrlp/micmac/include/general/ptxd.h:279:15: erreur: l'indice du tableau 0 est en dehors des limites de « void [0] » [-Werror=array-bounds]
279 | y = p2.y;
| ~~^~~~~~
Dans la fonction membre « void ElFifo::incr_capa() [avec Type = Pt2d] »,
mis en ligne depuis « void ElFifo::push_back(const Type&) [avec Type = Pt2d] » à /home/fwrlp/micmac/include/ext_stl/fifo.h:367:41,
mis en ligne depuis « void ElFifo::pushlast(const Type&) [avec Type = Pt2d] » à /home/fwrlp/micmac/include/ext_stl/fifo.h:370:50,
mis en ligne depuis « void PtsOfSquare(ElFifo<Pt2d >&, Pt2dr, Pt2dr) » à /home/fwrlp/micmac/src/geom2d/basic.cpp:54:17:
/home/fwrlp/micmac/include/ext_stl/fifo.h:200:28: note: l'objet de taille 0 alloué par « operator new [] »
200 | Type * NewTab = new Type [2*_capa];
| ^~~~~~~~~~~~~~~~~~
cc1plus : tous les avertissements sont traités comme des erreurs
make[2]: *** [src/CMakeFiles/elise.dir/build.make:1653 : src/CMakeFiles/elise.dir/geom2d/basic.cpp.o] Erreur 1
make[1]: *** [CMakeFiles/Makefile2:400 : src/CMakeFiles/elise.dir/all] Erreur 2
make: *** [Makefile:136 : all] Erreur 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant