compiling 82.7.1-gcc4.6

compiling 82.7.1-gcc4.6

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
device
Posts: 7
Joined: 07 Nov 2011, 02:07

compiling 82.7.1-gcc4.6

Post by device »

I've started to compile on my own on ubuntu oneiric because of sync errors.

In this page http://springrts.com/mantis/view.php?id=2459 it sais :
Ubuntu 11.04 self-built spring with self-built gcc 4.6 does sync (!).
So I decided to build on my own. I have tried to use both gcc 4.5 and 4.6 with this command :
cmake -DCMAKE_INSTALL_PREFIX=~/spring . DCMAKE_C_COMPILER=/usr/bin/gcc-4.5 -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.5
I got these errors :
[ 42%] Building CXX object rts/builds/default/CMakeFiles/engine-default.dir/__/__/Sim/Objects/SolidObject.cpp.o
[ 42%] Building CXX object rts/builds/default/CMakeFiles/engine-default.dir/__/__/Sim/Objects/WorldObject.cpp.o
[ 42%] Building CXX object rts/builds/default/CMakeFiles/engine-default.dir/__/__/Sim/Path/PathFinderDef.cpp.o
[ 42%] Building CXX object rts/builds/default/CMakeFiles/engine-default.dir/__/__/Sim/Path/PathCache.cpp.o
[ 42%] Building CXX object rts/builds/default/CMakeFiles/engine-default.dir/__/__/Sim/Path/PathEstimator.cpp.o
[ 42%] Building CXX object rts/builds/default/CMakeFiles/engine-default.dir/__/__/Sim/Path/PathAllocator.cpp.o
[ 42%] Building CXX object rts/builds/default/CMakeFiles/engine-default.dir/__/__/Sim/Path/PathFinder.cpp.o
[ 42%] Building CXX object rts/builds/default/CMakeFiles/engine-default.dir/__/__/Sim/Path/PathManager.cpp.o
[ 42%] Building CXX object rts/builds/default/CMakeFiles/engine-default.dir/__/__/Sim/Projectiles/ProjectileHandler.cpp.o
/home/device/spring/rts/Sim/Projectiles/ProjectileHandler.cpp:33:1: error: specialization of ‘static void ThreadListSim<C, R, T>::_ConstructInstance(void*) [with C = std::list<CProjectile*>, R = std::set<CProjectile*>, T = CProjectile*]’ after instantiation
/home/device/spring/rts/Sim/Projectiles/ProjectileHandler.cpp:33:1: error: specialization of ‘static void ThreadListSim<C, R, T>::_DestructInstance(void*) [with C = std::list<CProjectile*>, R = std::set<CProjectile*>, T = CProjectile*]’ after instantiation
/home/device/spring/rts/Sim/Projectiles/ProjectileHandler.cpp:38:1: error: specialization of ‘static void ThreadListSimRender<C, R, T>::_ConstructInstance(void*) [with C = std::list<CGroundFlash*>, R = std::set<CGroundFlash*>, T = CGroundFlash*]’ after instantiation
/home/device/spring/rts/Sim/Projectiles/ProjectileHandler.cpp:38:1: error: specialization of ‘static void ThreadListSimRender<C, R, T>::_DestructInstance(void*) [with C = std::list<CGroundFlash*>, R = std::set<CGroundFlash*>, T = CGroundFlash*]’ after instantiation
make[3]: *** [rts/builds/default/CMakeFiles/engine-default.dir/__/__/Sim/Projectiles/ProjectileHandler.cpp.o] Error 1
make[2]: *** [rts/builds/default/CMakeFiles/engine-default.dir/all] Error 2
make[1]: *** [rts/builds/default/CMakeFiles/spring.dir/rule] Error 2
make: *** [spring] Error 2
by the way your wiki is a bit outdated here :

http://springrts.com/wiki/Building_Spring_on_Linux

lots of boots package has now 1.46 in ubuntu

I used to try 0.83 if it compiles and it does... I dont know what to do by now... please help!

All of the 0.82 packages in every repo does not sync and I just cant play online with sync errors.
device
Posts: 7
Joined: 07 Nov 2011, 02:07

Re: compiling 82.7.1-gcc4.6

Post by device »

hmm, gcc-4.6 fails to compile from source, nor 4.7 do.... something is messed up....

make[4]: Leaving directory `/home/device/gcc/build/i686-pc-linux-gnu/libgcc'
DEFINES='' HEADERS='../../../gcc-4.7-20111112/./libgcc/config/i386/value-unwind.h' \
../../../gcc-4.7-20111112/./libgcc/mkheader.sh > tmp-libgcc_tm.h
/bin/bash ../../../gcc-4.7-20111112/./libgcc/../move-if-change tmp-libgcc_tm.h libgcc_tm.h
echo timestamp > libgcc_tm.stamp
/home/device/gcc/build/./gcc/xgcc -B/home/device/gcc/build/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -g -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fpic -I. -I. -I../.././gcc -I../../../gcc-4.7-20111112/./libgcc -I../../../gcc-4.7-20111112/./libgcc/. -I../../../gcc-4.7-20111112/./libgcc/../gcc -I../../../gcc-4.7-20111112/./libgcc/../include -I../../../gcc-4.7-20111112/./libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../gcc-4.7-20111112/./libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
In file included from /usr/include/features.h:388:0,
from /usr/include/stdio.h:28,
from ../../../gcc-4.7-20111112/./libgcc/../gcc/tsystem.h:88,
from ../../../gcc-4.7-20111112/./libgcc/libgcc2.c:29:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: Nincs ilyen fájl vagy könyvtár
compilation terminated.
make[3]: *** [_muldi3.o] Error 1
make[3]: Leaving directory `/home/device/gcc/build/i686-pc-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/home/device/gcc/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/device/gcc/build'
make: *** [all] Error 2
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: compiling 82.7.1-gcc4.6

Post by abma »

0.82.7.1 has some bugs inside, either use already working binary packages from ppas or i guess you won't get it working. this bug is fixed in the next release (but we currently search a different one...)


also 0.82.7.1 doesn't compile with gcc-4.6. with the patches it doesn't sync. so.. use a working ppa or wait for the next release. sorry...
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: compiling 82.7.1-gcc4.6

Post by abma »

84.0 released.... try again :-)
device
Posts: 7
Joined: 07 Nov 2011, 02:07

Re: compiling 82.7.1-gcc4.6

Post by device »

And it works like a charm from repo. Thanks!

(Can be marked as [SOLVED] :) )
Post Reply

Return to “Help & Bugs”