gigi build error

Questions, problems and discussion about compiling FreeOrion.

Moderators: Oberlus, Oberlus

Post Reply
Message
Author
guini
Space Krill
Posts: 5
Joined: Tue Oct 18, 2011 2:08 am

gigi build error

#1 Post by guini » Fri Mar 30, 2012 12:33 pm

Hi,

I get the following error when building gigi from svn (with boost 1.49 in arch linux)

Code: Select all

In file included from /home/anton/tmp/gigi-svn/src/gigi-build/GG/adobe/array.hpp:18:0,
                 from /home/anton/tmp/gigi-svn/src/gigi-build/src/adobe/virtual_machine.cpp:20:
/home/anton/tmp/gigi-svn/src/gigi-build/GG/adobe/vector.hpp: In member function ‘T* adobe::version_1::vector<T, A>::insert(adobe::version_1::vector<T, A>::iterator, adobe::version_1::vector<T, A>::size_type, const T&) [with T = adobe::version_1::any_regular_t, A = adobe::version_1::capture_allocator<adobe::version_1::any_regular_t>, adobe::version_1::vector<T, A>::iterator = adobe::version_1::any_regular_t*, adobe::version_1::vector<T, A>::size_type = long unsigned int]’:
/home/anton/tmp/gigi-svn/src/gigi-build/GG/adobe/vector.hpp:484:10:   instantiated from ‘void adobe::version_1::vector<T, A>::resize(adobe::version_1::vector<T, A>::size_type) [with T = adobe::version_1::any_regular_t, A = adobe::version_1::capture_allocator<adobe::version_1::any_regular_t>, adobe::version_1::vector<T, A>::size_type = long unsigned int]’
/home/anton/tmp/gigi-svn/src/gigi-build/src/adobe/virtual_machine.cpp:654:54:   instantiated from here
/home/anton/tmp/gigi-svn/src/gigi-build/GG/adobe/vector.hpp:457:13: error: call of overloaded ‘move_backward(adobe::version_1::any_regular_t*&, adobe::version_1::vector<adobe::version_1::any_regular_t>::iterator, adobe::version_1::any_regular_t*&)’ is ambiguous
/home/anton/tmp/gigi-svn/src/gigi-build/GG/adobe/vector.hpp:457:13: note: candidates are:
/home/anton/tmp/gigi-svn/src/gigi-build/GG/adobe/move.hpp:425:3: note: O adobe::move_backward(I, I, O) [with I = adobe::version_1::any_regular_t*, O = adobe::version_1::any_regular_t*]
/usr/include/boost/move/move.hpp:919:6: note: O boost::move_backward(I, I, O) [with I = adobe::version_1::any_regular_t*, O = adobe::version_1::any_regular_t*]
make[2]: *** [src/CMakeFiles/GiGi.dir/adobe/virtual_machine.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/GiGi.dir/all] Error 2
make: *** [all] Error 2
Replacing

Code: Select all

move_backward
with

Code: Select all

::adobe::move_backward
fixes it for me. I attached a patch in case some else has the same problem.

Greetings, Anton
Attachments

[The extension patch has been deactivated and can no longer be displayed.]


User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12475
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: gigi build error

#2 Post by Geoff the Medio » Fri Mar 30, 2012 3:45 pm

Thanks. I'll forward to tzlaine, and hopefully he'll take a look soon.

metallurge
Space Floater
Posts: 20
Joined: Tue Mar 08, 2011 9:55 pm

Re: gigi build error

#3 Post by metallurge » Fri Jun 01, 2012 1:55 am

Seems to work here also.

gcc 4.7.0
boost 1.49
ogre 1.8.0
bullet 2.80 rev 2531
kernel 3.4.0
Linux Mint 13 (derivative of Ubuntu Precise Pangolin 12.04 LTS)

Post Reply