gentoo gigi problem

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
renihs
Space Floater
Posts: 35
Joined: Fri Feb 10, 2006 12:14 pm

gentoo gigi problem

#1 Post by renihs »

hi!
i am currently to get the svn version of gigi to compile with scons but without success.
the configure part seems to work without erros:

livedvd GG # scons configure
scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.33.1... yes
Looking for boost lib boost_signals...
Checking for boost::signals::connection() in C++ library boost_signals... yes
Looking for boost lib boost_filesystem...
Checking for boost::filesystem::initial_path() in C++ library boost_filesystem... yes
Boost configuration... ok
Checking for C header file pthread.h... yes
Checking for pthread_create() in C library pthread... yes
Checking for C header file GL/gl.h... yes
Checking for C header file GL/glu.h... yes
Checking for glBegin() in C library GL... yes
Checking for gluLookAt() in C library GLU... yes
Checking for sdl-config... yes
Checking SDL version >= 1.2.7... yes
Linking SDL/OpenGL test app... ok
SDL configuration... ok
Checking for pkg-config... ok
Checking for freetype2 >= 9.0.0... ok
Checking for C header file ft2build.h... yes
Checking for FT_Init_FreeType() in C library freetype... yes
Checking DevIL version >= 1.6.1... yes
Checking for C header file IL/il.h... yes
Checking for C header file IL/ilu.h... yes
Checking for C header file IL/ilut.h... yes
Checking for ilInit() in C library IL... yes
Checking for iluInit() in C library ILU... yes
Checking for ilutInit() in C library ILUT... yes
Checking for DevIL OpenGL support... yes
Checking for DevIL Allegro support... no (That's good!)
Generating libltdl/config.h using libltdl/configure... ok
Creating GG/Config.h from GG/Config.h.in... ok
Configuration successful... yes
Copy("GG/ltdl.h", "libltdl/ltdl.h")
Copy("GG/ltdl_config.h", "libltdl/config.h")


however if i run scons:
livedvd GG # scons
scons: Reading SConscript files ...
Using previous successful configuration; if you want to re-run the configuration step, run "scons configure".
scons: done reading SConscript files.
scons: Building targets ...
g++ -pthread -D_REENTRANT -Wall -O2 -fPIC -I/usr/include/SDL -I/usr/include/freetype2 -I. -Ilibltdl -c -o src/StyleFactory.os src/StyleFactory.cpp
In file included from src/StyleFactory.cpp:38:
GG/Spin.h: In member function `virtual void
GG::Spin<T>::DefineAttributes(GG::WndEditor*)':
GG/Spin.h:503: error: syntax error before `>' token
GG/Spin.h:504: error: syntax error before `>' token
GG/Spin.h:506: error: syntax error before `>' token
GG/Spin.h:508: error: syntax error before `>' token
GG/Spin.h:511: error: syntax error before `>' token
scons: *** [src/StyleFactory.os] Error 1
scons: building terminated because of errors.


i also tried with the gentoo gigi ebuild (posted somewhere here) also without success.
does anybody have a clue to what kind of error (wrong lib? wrong compiler? wrong???) this could point?

thx in advance :)

harm
Space Floater
Posts: 28
Joined: Wed Feb 01, 2006 9:54 pm
Location: Finland, Helsinki

#2 Post by harm »

I don't think the compiler matters. I compiled it with gcc4.0 but most do it with 3.x. What does matter quite a bit is where you got the source of GiGi. try getting the source from SVN:

Code: Select all

svn co https://svn.sourceforge.net/svnroot/gigi/trunk gigi
Hope that helps.

Harm

renihs
Space Floater
Posts: 35
Joined: Fri Feb 10, 2006 12:14 pm

#3 Post by renihs »

yap thats where i got the source from, from svn :(

any other things i could try? or other information i should provide?

thx in advance

harm
Space Floater
Posts: 28
Joined: Wed Feb 01, 2006 9:54 pm
Location: Finland, Helsinki

#4 Post by harm »

I'm not to big on this. But:
1. What version compiler do you use?
2. Make sure you have the latest svn ('svn up')
3. Try 'scons configure' again

These things prob won\t help but the first one should provide some more info for the greater gods. :)

renihs
Space Floater
Posts: 35
Joined: Fri Feb 10, 2006 12:14 pm

#5 Post by renihs »

gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)

the other recommondations i already tried

renihs
Space Floater
Posts: 35
Joined: Fri Feb 10, 2006 12:14 pm

#6 Post by renihs »

Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.15-gentoo-r4.embnet.livedvd i686)
=================================================================
System uname: 2.6.15-gentoo-r4.embnet.livedvd i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [disabled]
dev-lang/python: 2.3.5-r2, 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS

maybe this can provider additionial help

svn says it checks out revision 522.

thx in advance

harm
Space Floater
Posts: 28
Joined: Wed Feb 01, 2006 9:54 pm
Location: Finland, Helsinki

#7 Post by harm »

The error is then unlikely to originate from Gigi. The errors consitantly come from lines after a reference to boost. My best stab is that's the problem. I can not, however, give you any solution. Perhaps explicitly point to your boost install, include and libdir? I'm very sorry.

toxodont
Space Krill
Posts: 6
Joined: Mon Feb 20, 2006 3:06 pm

#8 Post by toxodont »

I'm getting the exact same problem using gcc-3.3.5 with Gentoo. I don't think it's the lib paths though, because it processes most of the other cpp files before failing.

The weird thing is that gigi will compile with gcc-3.4.4 but not gcc-3.3.5. Has anybody else had this experience?

If I try to compile all my FO deps with 3.4.4 I'll seg fault when I go to execute the FO binary, but if I use my standard delivered gcc I can't compile gigi.

Any ideas?

harm
Space Floater
Posts: 28
Joined: Wed Feb 01, 2006 9:54 pm
Location: Finland, Helsinki

#9 Post by harm »

Are you absolutely sure you compiled all involved lib with the same gcc version? I had excatly the same problem and that was because some lib (log4cpp in my case) was compiled with an other version of gcc. After compiling everything with the same version it stoped seg faulting.

toxodont
Space Krill
Posts: 6
Joined: Mon Feb 20, 2006 3:06 pm

#10 Post by toxodont »

Yup, I just did it again, for the 5th time at least. gcc-3.3.5 won't compile gigi.

Edit: I'm going to try 3.3.6 and see how that goes.

toxodont
Space Krill
Posts: 6
Joined: Mon Feb 20, 2006 3:06 pm

#11 Post by toxodont »

Rebuilt with GCC-3.4.4 no prob. I don't know why GCC-3.3.5 and GCC-3.3.6 won't work...

renihs
Space Floater
Posts: 35
Joined: Fri Feb 10, 2006 12:14 pm

#12 Post by renihs »

hmm does the binary run with gcc 3.3.4? or does it segfault or otherwise?

renihs
Space Floater
Posts: 35
Joined: Fri Feb 10, 2006 12:14 pm

#13 Post by renihs »

with gcc 3.4.4 it compiles flawless, however now i am having a graphviz problem when trying to compile freeorion ... it complains about a missing render.h (which is not true)

i point scons to the right directories (/usr/include/graphviz/render.h does exist) but it still says its missing (however, stracing scons shows that it actually finds the file...)

with_graphviz_include
with_graphviz_libdir

scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for pkg-config... ok
Checking for GiGiSDL >= 0.6.0... ok
Checking for fmod >= 3.74... failed
Checking fmod version >= 3.74... yes
Checking for C header file fmod.h... yes
Checking for FSOUND_GetVersion() in C library fmod-3.74... yes
Checking for graphviz >= 0.15.0... failed
Checking for C header file graphviz/render.h... no
Checking for C header file render.h... no

any ideas?

thanx in advance

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

#14 Post by Geoff the Medio »

There are some rather specific version requirements for graphviz. See here. Do you have one of the usable versions?

Post Reply