GiGi : Compilation failed.

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
Lukc
Space Floater
Posts: 19
Joined: Thu Jun 24, 2010 9:45 pm
Location: France

GiGi : Compilation failed.

#1 Post by Lukc »

Code: Select all

+svn co https://gigi.svn.sourceforge.net/svnroot/gigi/trunk gigi
+ cd gigi/GG
+ ls
CMakeLists.txt	GG		GiGiSDL.pc.in  README		build_support.py  libltdl		      preset_button_pressed.png    reveal_up.png  tutorial
COPYING		GiGi.pc.in	INSTALLING     SConstruct	cmake		  link_icon.png		      preset_button_unpressed.png  src
Config.h.in	GiGiOgre.pc.in	PACKAGING      build_config.py	doc		  preset_button_disabled.png  reveal_down.png		   test
+ cmake -DCMAKE_INSTALL_PREFIX=/usr .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build platform: linux
-- Boost version: 1.42.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   signals
--   system
--   thread
-- Found JPEG: /usr/lib/libjpeg.so
-- Found ZLIB: /lib/libz.a
-- Found PNG: /usr/lib/libpng.so
-- Found TIFF: /usr/lib/libtiff.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Found Freetype: /usr/lib/libfreetype.so
-- Configuring libltdl using "libltdl/configure" ...
-- Configuring GiGi
-- Configuring GiGiSDL
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring GiGiOgre
-- checking for one of the modules 'OGRE'
--   found OGRE, version 1.7.1
--   libraries : OgreMain;pthread from /usr/lib
--   includes  : /usr/include/OGRE
-- Configuring Ogre OIS Input Plugin
-- checking for one of the modules 'OIS'
--   found OIS, version 1.2.0
--   libraries : OIS from /usr/lib
--   includes  : /usr/include/OIS
-- Configuring Tutorials
-- Boost version: 1.42.0
-- Found the following Boost libraries:
--   serialization
-- Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)
   Warning: Doxygen could not be found.  Disabling the documentation build.
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/work-gigi/src/gigi/GG
+ make
Scanning dependencies of target GiGi
[  1%] Building CXX object src/CMakeFiles/GiGi.dir/AdamGlue.cpp.o
[  2%] Building CXX object src/CMakeFiles/GiGi.dir/AlignmentFlags.cpp.o
[  4%] Building CXX object src/CMakeFiles/GiGi.dir/Base.cpp.o
[  5%] Building CXX object src/CMakeFiles/GiGi.dir/BrowseInfoWnd.cpp.o
[  6%] Building CXX object src/CMakeFiles/GiGi.dir/Button.cpp.o
[  8%] Building CXX object src/CMakeFiles/GiGi.dir/Clr.cpp.o
[  9%] Building CXX object src/CMakeFiles/GiGi.dir/Control.cpp.o
[ 11%] Building CXX object src/CMakeFiles/GiGi.dir/Cursor.cpp.o
[ 12%] Building CXX object src/CMakeFiles/GiGi.dir/DrawUtil.cpp.o
[ 13%] Building CXX object src/CMakeFiles/GiGi.dir/DropDownList.cpp.o
[ 15%] Building CXX object src/CMakeFiles/GiGi.dir/DynamicGraphic.cpp.o
[ 16%] Building CXX object src/CMakeFiles/GiGi.dir/Edit.cpp.o
[ 18%] Building CXX object src/CMakeFiles/GiGi.dir/EventPump.cpp.o
[ 19%] Building CXX object src/CMakeFiles/GiGi.dir/Font.cpp.o
In file included from /usr/include/boost/xpressive/detail/static/grammar.hpp:20:0,
                 from /usr/include/boost/xpressive/detail/static/compile.hpp:27,
                 from /usr/include/boost/xpressive/regex_primitives.hpp:32,
                 from /usr/include/boost/xpressive/xpressive_static.hpp:24,
                 from /usr/include/boost/xpressive/xpressive.hpp:18,
                 from /tmp/work-gigi/src/gigi/GG/src/Font.cpp:38:
/usr/include/boost/xpressive/detail/static/is_pure.hpp: In instantiation of 'boost::xpressive::detail::use_simple_repeat<boost::proto::_child_c<0>, char>':
/usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp:85:5:   instantiated from 'const int boost::mpl::aux::template_arity_impl<boost::xpressive::detail::use_simple_repeat<boost::proto::_child_c<0>, char>, 1>::value'
/usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp:93:5:   instantiated from 'const int boost::mpl::aux::template_arity<boost::xpressive::detail::use_simple_repeat<boost::proto::_child_c<0>, char> >::value'
/usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp:98:30:   instantiated from 'boost::mpl::aux::template_arity<boost::xpressive::detail::use_simple_repeat<boost::proto::_child_c<0>, char> >'
/usr/include/boost/proto/traits.hpp:104:9:   instantiated from 'boost::proto::is_callable<boost::xpressive::detail::use_simple_repeat<boost::proto::_child_c<0>, char> >'
/usr/include/boost/proto/transform/make.hpp:243:84:   instantiated from 'boost::proto::make<boost::xpressive::detail::use_simple_repeat<boost::proto::_child_c<0>, char> >::impl<const boost::proto::exprns_::expr<boost::proto::tag::unary_plus, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::complement, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::subscript, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<boost::xpressive::detail::set_initializer>, 0l>&, const boost::proto::exprns_::expr<boost::proto::tag::bitwise_or, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<boost::xpressive::detail::posix_charset_placeholder>, 0l>&, boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<const char&>, 0l> >, 2l>&>, 2l>&>, 1l>&>, 1l>&, boost::xpressive::detail::static_xpression<boost::xpressive::detail::end_matcher, boost::xpressive::detail::no_next>, boost::xpressive::detail::xpression_visitor<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char> >, mpl_::bool_<false>, boost::xpressive::cpp_regex_traits<char> >&>'
/usr/include/boost/proto/matches.hpp:692:21:   [ skipping 6 instantiation contexts ]
/usr/include/boost/xpressive/detail/static/compile.hpp:50:9:   instantiated from 'void boost::xpressive::detail::static_compile_impl2(const Xpr&, const boost::shared_ptr<boost::xpressive::detail::regex_impl<BidiIter> >&, const Traits&) [with Xpr = boost::proto::exprns_::expr<boost::proto::tag::negate, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::unary_plus, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::complement, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::subscript, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<boost::xpressive::detail::set_initializer>, 0l>&, const boost::proto::exprns_::expr<boost::proto::tag::bitwise_or, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<boost::xpressive::detail::posix_charset_placeholder>, 0l>&, boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<const char&>, 0l> >, 2l>&>, 2l>&>, 1l>&>, 1l>&>, 1l>, BidiIter = __gnu_cxx::__normal_iterator<const char*, std::basic_string<char> >, Traits = boost::xpressive::cpp_regex_traits<char>]'
/usr/include/boost/xpressive/detail/static/compile.hpp:79:9:   instantiated from 'typename boost::disable_if<boost::proto::result_of::matches<Xpr, boost::xpressive::detail::XpressiveLocaleModifier> >::type boost::xpressive::detail::static_compile_impl1(const Xpr&, const boost::shared_ptr<boost::xpressive::detail::regex_impl<BidiIter> >&) [with Xpr = boost::proto::exprns_::expr<boost::proto::tag::negate, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::unary_plus, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::complement, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::subscript, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<boost::xpressive::detail::set_initializer>, 0l>&, const boost::proto::exprns_::expr<boost::proto::tag::bitwise_or, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<boost::xpressive::detail::posix_charset_placeholder>, 0l>&, boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<const char&>, 0l> >, 2l>&>, 2l>&>, 1l>&>, 1l>&>, 1l>, BidiIter = __gnu_cxx::__normal_iterator<const char*, std::basic_string<char> >, typename boost::disable_if<boost::proto::result_of::matches<Xpr, boost::xpressive::detail::XpressiveLocaleModifier> >::type = void]'
/usr/include/boost/xpressive/detail/static/compile.hpp:99:9:   instantiated from 'void boost::xpressive::detail::static_compile(const Xpr&, const boost::shared_ptr<boost::xpressive::detail::regex_impl<BidiIter> >&) [with Xpr = boost::proto::exprns_::expr<boost::proto::tag::negate, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::unary_plus, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::complement, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::subscript, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<boost::xpressive::detail::set_initializer>, 0l>&, const boost::proto::exprns_::expr<boost::proto::tag::bitwise_or, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<boost::xpressive::detail::posix_charset_placeholder>, 0l>&, boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<const char&>, 0l> >, 2l>&>, 2l>&>, 1l>&>, 1l>&>, 1l>, BidiIter = __gnu_cxx::__normal_iterator<const char*, std::basic_string<char> >]'
/usr/include/boost/xpressive/basic_regex.hpp:252:9:   instantiated from 'void boost::xpressive::basic_regex<BidiIter>::compile_(const Expr&, mpl_::true_) [with Expr = boost::proto::exprns_::expr<boost::proto::tag::negate, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::unary_plus, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::complement, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::subscript, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<boost::xpressive::detail::set_initializer>, 0l>&, const boost::proto::exprns_::expr<boost::proto::tag::bitwise_or, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<boost::xpressive::detail::posix_charset_placeholder>, 0l>&, boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<const char&>, 0l> >, 2l>&>, 2l>&>, 1l>&>, 1l>&>, 1l>, BidiIter = __gnu_cxx::__normal_iterator<const char*, std::basic_string<char> >, mpl_::true_ = mpl_::bool_<true>]'
/usr/include/boost/xpressive/basic_regex.hpp:118:9:   instantiated from 'boost::xpressive::basic_regex<BidiIter>::basic_regex(const Expr&) [with Expr = boost::proto::exprns_::expr<boost::proto::tag::negate, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::unary_plus, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::complement, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tag::subscript, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<boost::xpressive::detail::set_initializer>, 0l>&, const boost::proto::exprns_::expr<boost::proto::tag::bitwise_or, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<boost::xpressive::detail::posix_charset_placeholder>, 0l>&, boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<const char&>, 0l> >, 2l>&>, 2l>&>, 1l>&>, 1l>&>, 1l>, BidiIter = __gnu_cxx::__normal_iterator<const char*, std::basic_string<char> >]'
/tmp/work-gigi/src/gigi/GG/src/Font.cpp:743:28:   instantiated from here
/usr/include/boost/xpressive/detail/static/is_pure.hpp:201:5: error: no type named 'proto_tag' in 'struct boost::proto::_child_c<0>'
/usr/include/boost/xpressive/detail/static/is_pure.hpp:203:9: error: no type named 'proto_tag' in 'struct boost::proto::_child_c<0>'
/usr/include/boost/xpressive/detail/static/is_pure.hpp:203:9: error: no type named 'proto_tag' in 'struct boost::proto::_child_c<0>'
/usr/include/boost/xpressive/detail/static/is_pure.hpp:203:9: error: creating pointer to member of non-class type '<type error>'
make[2]: *** [src/CMakeFiles/GiGi.dir/Font.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/GiGi.dir/all] Error 2
make: *** [all] Error 2
With Boost 1.42.0.

I don't speak english really well, so be tolerant if I say a mistake, please. \o/

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

Re: GiGi : Compilation failed.

#2 Post by Geoff the Medio »

I may not be able to help, but I imagine someone who can would like to know what version of GCC you're using...

Lukc
Space Floater
Posts: 19
Joined: Thu Jun 24, 2010 9:45 pm
Location: France

Re: GiGi : Compilation failed.

#3 Post by Lukc »

I'm using gcc 4.5.0. ^_^"

Anything else ?

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

Re: GiGi : Compilation failed.

#4 Post by Geoff the Medio »

I don't think I've ever seen anyone writing about any version beyond 4.3. There might be some problems with 4.5 specifically.

Lukc
Space Floater
Posts: 19
Joined: Thu Jun 24, 2010 9:45 pm
Location: France

Re: GiGi : Compilation failed.

#5 Post by Lukc »

Ouch… and I don't want to downgrade my C compiler because I've no binary packages for it. (I have maybe a package of GCC 4.4 I think, but nothing older)

Uhm… is there something I can do — except waiting — ?

User avatar
tezeriusz
Space Squid
Posts: 75
Joined: Mon May 24, 2010 10:22 am
Location: Poland

Re: GiGi : Compilation failed.

#6 Post by tezeriusz »

Hello I'm new too so I will be rude ;]
after little googlnig i found something like that
http://www.mail-archive.com/gcc-bugs@gc ... 85973.html
You can try to install version 4.4 or write a patch as instruction provided in post.
http://gcc.gnu.org/faq.html#multiple
I'm using it and it is working fine(too be specific 4.4.1).

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

Re: GiGi : Compilation failed.

#7 Post by Geoff the Medio »

I was about to post this, but it sounds like tezeriusz has already done as I suggested...
Lukc wrote:is there something I can do — except waiting — ?
It would be very helpful if you could do some troubleshooting for this crash. Typically I'd start with googling parts of the error message(s), "boost" and "gcc" and the version of gcc you've got. Probably someone else has seen similar problems and posted about it. You might get lucky and find a page with a fix. If you know how to implement that fix yourself, you could try it, or you could post back here with the page and someone else could try, if they felt like getting a new version of GCC... (I'm using Windows, so can't do so myself).

Lukc
Space Floater
Posts: 19
Joined: Thu Jun 24, 2010 9:45 pm
Location: France

Re: GiGi : Compilation failed.

#8 Post by Lukc »

If I remember well, most of GNU tools have been ported to Windows, so GCC should be available (but I don't remember where).

After a quick search (I don't have much time) :

/usr/include/boost/xpressive/detail/static/is_pure.hpp: In instantiation of 'boost::xpressive::detail::use_simple_repeat<boost::proto::_child_c<0>, char>':
https://svn.boost.org/trac/boost/ticket/4061

As tezeriusz proposed, using GCC 4.4.1 may be a temporary solution, and I'm going to try that :)

Lukc
Space Floater
Posts: 19
Joined: Thu Jun 24, 2010 9:45 pm
Location: France

Re: GiGi : Compilation failed.

#9 Post by Lukc »

It works with the old and inoptimizable GCC 4.4.1. :'(

Post Reply