Problem for compiling under debian/linux sid

10 replies [Last post]
thuban
User offline. Last seen 13 years 35 weeks ago. Offline
Joined: 2009-12-25
Posts: 27

Hi!
I wanted to try the latest version of hedgewars, in order to reports bugs, but I'm unable to compile. It stops at 99%...
Here is the log of the compilation :

xavier@Sky:~/Jeux/hedgewars-src-0.9.12$ make
[  1%] Generating qrc_hedgewars.cxx
[  2%] Generating moc_game.cxx
[  3%] Generating moc_hats.cxx
[  4%] Generating moc_hwform.cxx
[  4%] Generating moc_teamselect.cxx
[  5%] Generating moc_teamselhelper.cxx
[  6%] Generating moc_frameTeam.cxx
[  7%] Generating moc_vertScrollArea.cxx
[  8%] Generating moc_gameuiconfig.cxx
[  9%] Generating moc_gamecfgwidget.cxx
[  9%] Generating moc_pages.cxx
[ 10%] Generating moc_SquareLabel.cxx
[ 11%] Generating moc_hedgehogerWidget.cxx
[ 12%] Generating moc_hwmap.cxx
[ 13%] Generating moc_mapContainer.cxx
[ 14%] Generating moc_tcpBase.cxx
[ 14%] Generating moc_about.cxx
[ 15%] Generating moc_proto.cxx
[ 16%] Generating moc_fpsedit.cxx
[ 17%] Generating moc_netserver.cxx
[ 18%] Generating moc_newnetclient.cxx
[ 19%] Generating moc_netudpserver.cxx
[ 19%] Generating moc_netudpwidget.cxx
[ 20%] Generating moc_netregister.cxx
[ 21%] Generating moc_netserverslist.cxx
[ 22%] Generating moc_chatwidget.cxx
[ 23%] Generating moc_SDLs.cxx
[ 24%] Generating moc_playrecordpage.cxx
[ 24%] Generating moc_selectWeapon.cxx
[ 25%] Generating moc_itemNum.cxx
[ 26%] Generating moc_input_ip.cxx
[ 27%] Generating moc_igbox.cxx
[ 28%] Generating moc_weaponItem.cxx
[ 29%] Generating moc_statsPage.cxx
[ 29%] Generating moc_misc.cxx
[ 30%] Generating moc_ammoSchemeModel.cxx
[ 31%] Generating moc_togglebutton.cxx
[ 32%] Generating moc_bgwidget.cxx
Scanning dependencies of target hedgewars
[ 32%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/game.cpp.o
[ 33%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/main.cpp.o
[ 34%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/hwform.cpp.o
[ 35%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/team.cpp.o
[ 36%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/namegen.cpp.o
[ 37%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/teamselect.cpp.o
[ 37%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/teamselhelper.cpp.o
[ 38%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/frameTeam.cpp.o
[ 39%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/vertScrollArea.cpp.o
[ 40%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/gameuiconfig.cpp.o
[ 41%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/ui_hwform.cpp.o
[ 42%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/gamecfgwidget.cpp.o
[ 42%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/pages.cpp.o
[ 43%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/SquareLabel.cpp.o
[ 44%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/hats.cpp.o
[ 45%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/hedgehogerWidget.cpp.o
[ 46%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/hwmap.cpp.o
[ 47%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/mapContainer.cpp.o
[ 47%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/tcpBase.cpp.o
[ 48%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/about.cpp.o
[ 49%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/proto.cpp.o
[ 50%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/fpsedit.cpp.o
[ 51%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/netserver.cpp.o
[ 52%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/newnetclient.cpp.o
[ 52%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/netudpserver.cpp.o
[ 53%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/netudpwidget.cpp.o
[ 54%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/netregister.cpp.o
[ 55%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/netserverslist.cpp.o
[ 56%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/chatwidget.cpp.o
[ 57%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/binds.cpp.o
[ 57%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/SDLs.cpp.o
[ 58%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/playrecordpage.cpp.o
[ 59%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/hwconsts.cpp.o
[ 60%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/selectWeapon.cpp.o
[ 61%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/itemNum.cpp.o
[ 62%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/input_ip.cpp.o
[ 62%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/igbox.cpp.o
[ 63%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/weaponItem.cpp.o
[ 64%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/statsPage.cpp.o
[ 65%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/misc.cpp.o
[ 66%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/ammoSchemeModel.cpp.o
[ 67%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/togglebutton.cpp.o
[ 67%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/bgwidget.cpp.o
[ 68%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_game.cxx.o
[ 69%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_hats.cxx.o
[ 70%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_hwform.cxx.o
[ 71%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_teamselect.cxx.o
[ 72%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_teamselhelper.cxx.o
[ 72%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_frameTeam.cxx.o
[ 73%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_vertScrollArea.cxx.o
[ 74%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_gameuiconfig.cxx.o
[ 75%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_gamecfgwidget.cxx.o
[ 76%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_pages.cxx.o
[ 77%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_SquareLabel.cxx.o
[ 77%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_hedgehogerWidget.cxx.o
[ 78%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_hwmap.cxx.o
[ 79%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_mapContainer.cxx.o
[ 80%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_tcpBase.cxx.o
[ 81%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_about.cxx.o
[ 82%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_proto.cxx.o
[ 82%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_fpsedit.cxx.o
[ 83%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_netserver.cxx.o
[ 84%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_newnetclient.cxx.o
[ 85%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_netudpserver.cxx.o
[ 86%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_netudpwidget.cxx.o
[ 87%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_netregister.cxx.o
[ 87%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_netserverslist.cxx.o
[ 88%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_chatwidget.cxx.o
[ 89%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_SDLs.cxx.o
[ 90%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_playrecordpage.cxx.o
[ 91%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_selectWeapon.cxx.o
[ 92%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_itemNum.cxx.o
[ 92%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_input_ip.cxx.o
[ 93%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_igbox.cxx.o
[ 94%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_weaponItem.cxx.o
[ 95%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_statsPage.cxx.o
[ 96%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_misc.cxx.o
[ 97%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_ammoSchemeModel.cxx.o
[ 97%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_togglebutton.cxx.o
[ 98%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/moc_bgwidget.cxx.o
[ 99%] Building CXX object QTfrontend/CMakeFiles/hedgewars.dir/qrc_hedgewars.cxx.o
Linking CXX executable ../bin/hedgewars
[ 99%] Built target hedgewars
Scanning dependencies of target hwengine
[ 99%] Generating ../bin/hwengine
Error: Illegal parameter: -Nu
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)
make[2]: *** [bin/hwengine] Erreur 1
make[1]: *** [hedgewars/CMakeFiles/hwengine.dir/all] Erreur 2
make: *** [all] Erreur 2

Sorry for my bad english...
Smile

Smaxx
Smaxx's picture
User offline. Last seen 12 years 50 weeks ago. Offline
Joined: 2009-04-29
Posts: 391

You Free Pascal compiler is up to date?

thuban
User offline. Last seen 13 years 35 weeks ago. Offline
Joined: 2009-12-25
Posts: 27

Yes I think :

apt-cache policy fpc
fpc:
  Installé : 2.4.0-2
  Candidat : 2.4.0-2

That's enough, according to the INTALL file.

thuban
User offline. Last seen 13 years 35 weeks ago. Offline
Joined: 2009-12-25
Posts: 27

No one know how I can solve the problem?

Smaxx
Smaxx's picture
User offline. Last seen 12 years 50 weeks ago. Offline
Joined: 2009-04-29
Posts: 391

Open hedgewars/makefile inside your source tree and look ofr the "-Nu" - remove it and try again (not sure if that works).

thuban
User offline. Last seen 13 years 35 weeks ago. Offline
Joined: 2009-12-25
Posts: 27

I don't find the -Nu parameter in the Makefile. Where is it? Smile

Smaxx
Smaxx's picture
User offline. Last seen 12 years 50 weeks ago. Offline
Joined: 2009-04-29
Posts: 391

Should be there unless something goes wrong ... tried fpc forums?

bananaoomarang
bananaoomarang's picture
User offline. Last seen 9 years 33 weeks ago. Offline
Joined: 2009-10-16
Posts: 82

Is it really not there? try opening the file in kwrite/gedit or whatever and do a ctrl-F.

Pit has finaly returned. FINALY.

thuban
User offline. Last seen 13 years 35 weeks ago. Offline
Joined: 2009-12-25
Posts: 27

Thats what I did, I opened the Makefile, and did a ctrl+f to look for the -Nu parameter, but nothing.
But,there are different Makefiles in the subdirectories, maybe it is in these? Anyone know?

Smaxx
Smaxx's picture
User offline. Last seen 12 years 50 weeks ago. Offline
Joined: 2009-04-29
Posts: 391

It should be the one within hedgewars where all the .pas files are.

thuban
User offline. Last seen 13 years 35 weeks ago. Offline
Joined: 2009-12-25
Posts: 27

Yes! I found it! It was in the directory hedgewars/CMakeFiles/hwengine.dir/build.make . I removed the -Nu parameter, and it seems to work fine.
It might have worked with gpc?
Thanks a lot for all the help!

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]