Ubuntu 10.04 x86_64 compile fail with cmake

Added by TcR1oo565 almost 5 years ago

Hi,

I download fresh version of ryzom today and follow instruction for
"Building NeL and Ryzom Client with CMake on GNU/Linux" http://dev.ryzom.com/wiki/ryzom/BuildForLinuxCmake

I run the follow command to build ryzom:
mkdir $RYHOME/build && cd $RYHOME/build
cmake -G "Unix Makefiles" ..
make -j3

and getting the follow error at the end:
.
.
.
[ 76%] Building CXX object ryzom/client/src/CMakeFiles/ryzom_client.dir/interface_v3/group_html_cs.cpp.o
/srv/src/ryzom/code/ryzom/client/src/interface_v3/dbgroup_build_phrase.cpp: In constructor ‘CParamTreeNode::CParamTreeNode(CParamTreeNode*)’:
/srv/src/ryzom/code/ryzom/client/src/interface_v3/dbgroup_build_phrase.cpp:807: warning: ‘CParamTreeNode::Parent’ will be initialized after
/srv/src/ryzom/code/ryzom/client/src/interface_v3/dbgroup_build_phrase.cpp:805: warning: ‘bool CParamTreeNode::Valid’
/srv/src/ryzom/code/ryzom/client/src/interface_v3/dbgroup_build_phrase.cpp:811: warning: when initialized here
[ 76%] Building CXX object ryzom/client/src/CMakeFiles/ryzom_client.dir/interface_v3/chat_text_manager.cpp.o
[ 76%] Building CXX object ryzom/client/src/CMakeFiles/ryzom_client.dir/interface_v3/lua_ihm.cpp.o
[ 76%] Building CXX object ryzom/client/src/CMakeFiles/ryzom_client.dir/interface_v3/dbview_bar3.cpp.o
[ 76%] Building CXX object ryzom/client/src/CMakeFiles/ryzom_client.dir/interface_v3/interface_parser.cpp.o
[ 76%] Building CXX object ryzom/client/src/CMakeFiles/ryzom_client.dir/interface_v3/interface_group.cpp.o
/srv/src/ryzom/code/ryzom/client/src/interface_v3/lua_ihm.cpp: In static member function ‘static void CLuaIHM::fails(CLuaState&, const std::string&, ...)’:
/srv/src/ryzom/code/ryzom/client/src/interface_v3/lua_ihm.cpp:3028: warning: second parameter of ‘va_start’ not last named argument
Linking CXX executable ../../../bin/ryzom_client
[ 76%] Built target ryzom_client
make: *** [all] Fel 2 <= Fail

Does anyone have similar error or advise to fix this compile fail?

Thanks


Replies (14)

RE: Ubuntu 10.04 x86_64 compile fail with cmake - Added by kervala almost 5 years ago

There is no error there, it surely has been raised before :)

If you type "make" without -j3 you should see more easily your error.

RE: Ubuntu 10.04 x86_64 compile fail with cmake - Added by TcR1oo565 almost 5 years ago

Good advice, now the error shows up :)

[ 72%] Building CXX object ryzom/tools/server/build_world_packed_col/CMakeFiles/build_world_packed_col.dir/build_world_packed_col.cpp.o
/srv/src/ryzom/code/ryzom/tools/server/build_world_packed_col/build_world_packed_col.cpp: In function ‘int main(int, char**)’:
/srv/src/ryzom/code/ryzom/tools/server/build_world_packed_col/build_world_packed_col.cpp:193: error: name lookup of ‘l’ changed for ISO ‘for’ scoping
/srv/src/ryzom/code/ryzom/tools/server/build_world_packed_col/build_world_packed_col.cpp:193: note: (if you use ‘-fpermissive’ G++ will accept your code)
make2: * [ryzom/tools/server/build_world_packed_col/CMakeFiles/build_world_packed_col.dir/build_world_packed_col.cpp.o] Fel 1
make1: *
[ryzom/tools/server/build_world_packed_col/CMakeFiles/build_world_packed_col.dir/all] Fel 2

Thanks

RE: Ubuntu 10.04 x86_64 compile fail with cmake - Added by TcR1oo565 almost 5 years ago

Hi Kervala,

Sorry to say, but I still running into cmake compile error :|

I did the follow steps:

$ cd /srv/src/ryzom
$ hg pull && hg update
$ cd code/build
$ sudo make clean
$ cd ..
$ rm -rf build/ ; mkdir build ; cd build/
$ cmake -G "Unix Makefiles" ..
$ make
.
.
[ 72%] Building CXX object ryzom/tools/server/build_world_packed_col/CMakeFiles/build_world_packed_col.dir/village.cpp.o
/srv/src/ryzom/code/ryzom/tools/server/build_world_packed_col/village.cpp:35:2: warning: "/*" within comment
/srv/src/ryzom/code/ryzom/tools/server/build_world_packed_col/village.cpp:43:2: warning: "/*" within comment
/srv/src/ryzom/code/ryzom/tools/server/build_world_packed_col/village.cpp:54:2: warning: "/*" within comment
/srv/src/ryzom/code/ryzom/tools/server/build_world_packed_col/village.cpp:60:2: warning: "/*" within comment
/srv/src/ryzom/code/ryzom/tools/server/build_world_packed_col/village.cpp:175:2: warning: "/*" within comment
/srv/src/ryzom/code/ryzom/tools/server/build_world_packed_col/village.cpp:235:2: warning: "/*" within comment
/srv/src/ryzom/code/ryzom/tools/server/build_world_packed_col/village.cpp:244:2: warning: "/*" within comment
[ 72%] Building CXX object ryzom/tools/server/build_world_packed_col/CMakeFiles/build_world_packed_col.dir/build_world_packed_col.cpp.o
/srv/src/ryzom/code/ryzom/tools/server/build_world_packed_col/build_world_packed_col.cpp:1: error: expected unqualified-id before ‘<<’ token
make2: * [ryzom/tools/server/build_world_packed_col/CMakeFiles/build_world_packed_col.dir/build_world_packed_col.cpp.o] Fel 1
make1:
[ryzom/tools/server/build_world_packed_col/CMakeFiles/build_world_packed_col.dir/all] Fel 2
make: *
* [all] Fel 2: Word Fel is swedish for Fail :)

RE: Ubuntu 10.04 x86_64 compile fail with cmake - Added by sfb almost 5 years ago

TcR1oo565,

It sounds like you made changes to build_world_packed_col.cpp while trying to troubleshoot this and when you pulled in kervala's changes it failed to merge cleanly. I suggest using hg revert code/ryzom/tools/server/build_world_packed_col/build_world_packed_col.cpp to go back to the version of this file that is in the 'default' repository. It may not allow you to revert it with changes so you may need to use the '-f' command line tag to override it.

Thanks!

sfb
/s

RE: Ubuntu 10.04 x86_64 compile fail with cmake - Added by TcR1oo565 almost 5 years ago

Hi sfb,

Thanks for you advice.
I run the command you suggested and compile pass the fail on 72%, great :)

Next fail appear on 75% and show below:
/srv/src/ryzom/code/ryzom/server/src/ai_service/fx_entity.h:35: warning: no return statement in function returning non-void
[ 75%] Building CXX object ryzom/server/src/ai_service/CMakeFiles/ryzom_ai_service.dir/mirrors.cpp.o
In file included from /srv/src/ryzom/code/ryzom/server/src/ai_service/ai_mgr_pet.h:21,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/ai_grp_pet.h:19,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/owners.h:25,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/ai_bot_npc.h:22,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/mirrors.cpp:26:
/srv/src/ryzom/code/ryzom/server/src/ai_service/ai_bot_pet.h:17: warning: ignoring #pragma warning
In file included from /srv/src/ryzom/code/ryzom/server/src/ai_service/ai_bot_npc.h:25,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/mirrors.cpp:26:
/srv/src/ryzom/code/ryzom/server/src/ai_service/ai_player.h:32: warning: ignoring #pragma warning
In file included from /srv/src/ryzom/code/ryzom/server/src/ai_service/state_instance.h:25,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/ai_outpost.h:28,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/continent.h:32,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/ai_instance.h:28,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/ai_bot.h:23,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/ai_bot_npc.h:21,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/mirrors.cpp:26:
/srv/src/ryzom/code/ryzom/server/src/ai_service/script_vm.h: In member function ‘bool AIVM::CByteCodeEntry::isValid() const’:
/srv/src/ryzom/code/ryzom/server/src/ai_service/script_vm.h:84: warning: comparison between signed and unsigned integer expressions
In file included from /srv/src/ryzom/code/ryzom/server/src/ai_service/fx_entity_manager.h:24,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/ai_bot.h:34,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/ai_bot_npc.h:21,
from /srv/src/ryzom/code/ryzom/server/src/ai_service/mirrors.cpp:26:
/srv/src/ryzom/code/ryzom/server/src/ai_service/fx_entity.h: In member function ‘bool CFxEntity::update()’:
/srv/src/ryzom/code/ryzom/server/src/ai_service/fx_entity.h:35: warning: no return statement in function returning non-void
/srv/src/ryzom/code/ryzom/server/src/ai_service/mirrors.cpp: In static member function ‘static void CMirrors::processMirrorUpdates()’:
/srv/src/ryzom/code/ryzom/server/src/ai_service/mirrors.cpp:292: warning: comparison between signed and unsigned integer expressions
/srv/src/ryzom/code/ryzom/server/src/ai_service/mirrors.cpp: At global scope:
/srv/src/ryzom/code/ryzom/server/src/ai_service/mirrors.cpp:497: warning: type qualifiers ignored on function return type
/srv/src/ryzom/code/ryzom/server/src/ai_service/mirrors.cpp:497: error: prototype for ‘const uint16 CMirrors::getTeamId(const TDataSetRow&)’ does not match any in class ‘CMirrors’
/srv/src/ryzom/code/ryzom/server/src/ai_service/mirrors.h:53: error: candidate is: static uint16 CMirrors::getTeamId(const TDataSetRow&)
make2: * [ryzom/server/src/ai_service/CMakeFiles/ryzom_ai_service.dir/mirrors.cpp.o] Fel 1
make1:
[ryzom/server/src/ai_service/CMakeFiles/ryzom_ai_service.dir/all] Fel 2
make: *
* [all] Fel 2

I attached one file with all cmake compile output and hope this will help, thanks for all help :)

RE: Ubuntu 10.04 x86_64 compile fail with cmake - Added by sfb almost 5 years ago

TcR1oo565,

What version of gcc are you currently using?

Thanks,
sfb
/s

RE: Ubuntu 10.04 x86_64 compile fail with cmake - Added by TcR1oo565 almost 5 years ago

Hi sfb,

The follow versions are used for gcc, linux and cmake.

gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
linux version 2.6.32-24-generic #43-Ubuntu SMP x86_64 GNU/Linux
cmake version 2.8.2

Thanks :)

RE: Ubuntu 10.04 x86_64 compile fail with cmake - Added by sfb almost 5 years ago

TcR1oo565,

Can you run 'hg status' and see if there are any unintentional edits on mirrors.h? The function prototype it claims to have in mirrors.h at line 53 does not match the one that I have from Hg.

Thanks,
sfb
/s

RE: Ubuntu 10.04 x86_64 compile fail with cmake - Added by TcR1oo565 almost 5 years ago

sfb,

The hg status return not output.
/srv/src/ryzom$ hg status
/srv/src/ryzom$

After running hg revert command today I run hg pull && hgupdate.
I can se that the mirrors.h has been changes 20:27 today.

toro@venus:/srv/src/ryzom/code$ ls l /srv/src/ryzom/code/ryzom/server/src/ai_service/mirrors.*
-rw-rw-r-
1 toro toro 21838 2010-09-20 20:19 /srv/src/ryzom/code/ryzom/server/src/ai_service/mirrors.cpp
rw-rw-r- 1 toro toro 4009 2010-09-23 20:07 /srv/src/ryzom/code/ryzom/server/src/ai_service/mirrors.h

mirrors.h is also attached.

Running result for hg pull && hg update is now:
toro@venus:/srv/src/ryzom$ hg pull && hg update
pulling from http://ryzom.hg.sourceforge.net:8000/hgroot/ryzom/ryzom
söker efter ändringar (seeking after changes)
inga ändringar hittades (no changes found)
0 files updated, 0 files merged, 0 files removed, 0 files unresolved

Thanks

mirrors.h (3.9 kB) Magnifier

RE: Ubuntu 10.04 x86_64 compile fail with cmake - Added by sfb almost 5 years ago

TcR1oo565,

I see the problem. I'll chat with a couple people tomorrow about a patch that was applied.

Thank you for bringing this to our attention!

sfb
/s

RE: Ubuntu 10.04 x86_64 compile fail with cmake - Added by kervala almost 5 years ago

Thanks TcR1oo565 for reporting, it's fixed now :) you can hg pull and hg update to get the fix

RE: Ubuntu 10.04 x86_64 compile fail with cmake - Added by TcR1oo565 almost 5 years ago

yay 100% Successful Compiling

[100%] Built target ryzom_shard_unifier_service
Scanning dependencies of target ryzom_tick_service
[100%] Building CXX object ryzom/server/src/tick_service/CMakeFiles/ryzom_tick_service.dir/range_mirror_manager.cpp.o
[100%] Building CXX object ryzom/server/src/tick_service/CMakeFiles/ryzom_tick_service.dir/tick_service.cpp.o
Linking CXX executable ../../../../bin/ryzom_tick_service
[100%] Built target ryzom_tick_service

  • Thanks for all help sfb and kervala, good job :-) ***

RE: Ubuntu 10.04 x86_64 compile fail with cmake - Added by sfb almost 5 years ago

TcR1oo565,

Wooohoo!

sfb
/s

(1-14/14)