error while compiling 1.0 demo on linux/gcc 4.5.1

Let our staff know what you think about the game and suggest improvements

Moderator: Staff

schuay
Newbie
Posts: 2
Joined: Mon Aug 23, 2010 3:56 pm

error while compiling 1.0 demo on linux/gcc 4.5.1

Postby schuay » Mon Aug 23, 2010 3:59 pm

I can't figure out his error, any ideas?

Code: Select all

make  all-recursive
make[1]: Entering directory `/home/myuser/pkgbuilds/allacrost/src/allacrost-1.0.0'
Making all in txt
make[2]: Entering directory `/home/myuser/pkgbuilds/allacrost/src/allacrost-1.0.0/txt'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/myuser/pkgbuilds/allacrost/src/allacrost-1.0.0/txt'
make[2]: Entering directory `/home/myuser/pkgbuilds/allacrost/src/allacrost-1.0.0'
g++ -DHAVE_CONFIG_H -I. -I/usr/include/SDL -I/usr/include/AL -I/usr/include/lua5.1 -I./src -I./src/engine -I./src/engine/audio -I./src/engine/video -I./src/engine/script -I./src/global -I./src/common -I./src/common/global -I./src/common/gui -I./src/modes -I./src/modes/battle -I./src/modes/boot -I./src/modes/map -I./src/modes/menu -I./src/modes/save -I./src/modes/shop -DDATADIR=\"/usr/share/games/allacrost\" -DLOCALEDIR=\"/usr/share/games/allacrost/txt\" -DPACKAGE=\"allacrost\" -I/usr/X11R6/include -march=core2 -mtune=core2 -O2 -pipe -I/usr/include -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include/QtOpenGL -I/usr/include/Qt3Support -DQT_CLEAN_NAMESPACE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT3_SUPPORT -DQT_SHARED -march=core2 -mtune=core2 -O2 -pipe -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o `test -f 'src/main.cpp' || echo './'`src/main.cpp
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_algobase.h:66:0,
                 from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/char_traits.h:41,
                 from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/ios:41,
                 from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/ostream:40,
                 from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/iostream:40,
                 from src/main.cpp:28:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_pair.h: In instantiation of ‘std::pair<const std::basic_string<char>, hoa_gui::private_gui::MenuSkin>’:
./src/common/gui/gui.h:290:56:   instantiated from here
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_pair.h:77:11: error: ‘std::pair<_T1, _T2>::second’ has incomplete type
src/defs.h:139:9: error: forward declaration of ‘struct hoa_gui::private_gui::MenuSkin’
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/map:61:0,
                 from src/utils.h:62,
                 from src/main.cpp:38:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_map.h: In member function ‘mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::basic_string<char>, _Tp = hoa_gui::private_gui::MenuSkin, _Compare = std::less<std::basic_string<char> >, _Alloc = std::allocator<std::pair<const std::basic_string<char>, hoa_gui::private_gui::MenuSkin> >, mapped_type = hoa_gui::private_gui::MenuSkin, key_type = std::basic_string<char>]’:
./src/common/gui/gui.h:359:107:   instantiated from here
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_map.h:452:16: error: ‘struct std::pair<const std::basic_string<char>, hoa_gui::private_gui::MenuSkin>’ has no member named ‘second’
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_algobase.h:66:0,
                 from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/char_traits.h:41,
                 from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/ios:41,
                 from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/ostream:40,
                 from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/iostream:40,
                 from src/main.cpp:28:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_pair.h: In constructor ‘std::pair<_T1, _T2>::pair(const _T1&, const _T2&) [with _T1 = const std::basic_string<char>, _T2 = hoa_gui::private_gui::MenuSkin]’:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_map.h:451:11:   instantiated from ‘mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::basic_string<char>, _Tp = hoa_gui::private_gui::MenuSkin, _Compare = std::less<std::basic_string<char> >, _Alloc = std::allocator<std::pair<const std::basic_string<char>, hoa_gui::private_gui::MenuSkin> >, mapped_type = hoa_gui::private_gui::MenuSkin, key_type = std::basic_string<char>]’
./src/common/gui/gui.h:359:107:   instantiated from here
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_pair.h:88:31: error: using invalid field ‘std::pair<_T1, _T2>::second’
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/myuser/pkgbuilds/allacrost/src/allacrost-1.0.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/myuser/pkgbuilds/allacrost/src/allacrost-1.0.0'
make: *** [all] Error 2


Thanks!
User avatar
marcavis
Junior Member
Posts: 32
Joined: Wed Jun 10, 2009 12:28 am
Location: Santa Catarina, Brazil
Contact:

Re: error while compiling 1.0 demo on linux/gcc 4.5.1

Postby marcavis » Tue Aug 24, 2010 1:07 am

I'll just post what I had found when talking to schuay on IRC, so we can start from this.
<marcavis> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565075 googling a bit, this *kind* of error has happened to people depending on gcc version (it's a different program being compiled, but still)
<marcavis> ah, and that actually was a problem with someone using a 4.5.x gcc while the 4.4 worked
rujasu
Developer
Posts: 758
Joined: Sun Feb 25, 2007 5:40 am
Location: Maryland, USA

Re: error while compiling 1.0 demo on linux/gcc 4.5.1

Postby rujasu » Tue Aug 24, 2010 1:17 am

Yeah, just found that it doesn't work with 4.5 on mine, as I suspected. If you have 4.4, use that. I'll look into getting this straightened out. Once I get it fixed, then I'll post here and put up a new 1.0.1 version of the source. Thanks.
rujasu
Developer
Posts: 758
Joined: Sun Feb 25, 2007 5:40 am
Location: Maryland, USA

Re: error while compiling 1.0 demo on linux/gcc 4.5.1

Postby rujasu » Tue Aug 24, 2010 3:56 am

Okay, I think this issue is fixed. New source package here:

https://sourceforge.net/projects/allacr ... z/download

Schuay, please give this a try -- it works with g++ 4.5 on my end. Hopefully it will for you as well.
schuay
Newbie
Posts: 2
Joined: Mon Aug 23, 2010 3:56 pm

Re: error while compiling 1.0 demo on linux/gcc 4.5.1

Postby schuay » Tue Aug 24, 2010 12:01 pm

That was quick, thanks rujasu & marcavis. Compiles fine now.

Another question, this time about versions. The current release is 'demo 1.0.0'. Will the 1.0.0 keep being incremented or will there be a '1.0.0' (no demo) version sometime in the future?

Thanks, schuay
rujasu
Developer
Posts: 758
Joined: Sun Feb 25, 2007 5:40 am
Location: Maryland, USA

Re: error while compiling 1.0 demo on linux/gcc 4.5.1

Postby rujasu » Tue Aug 24, 2010 1:15 pm

schuay wrote:That was quick, thanks rujasu & marcavis. Compiles fine now.

Another question, this time about versions. The current release is 'demo 1.0.0'. Will the 1.0.0 keep being incremented or will there be a '1.0.0' (no demo) version sometime in the future?

Thanks, schuay


Well, with the patches to compile on GCC 4.5, it'll be "Demo 1.0.1" now. But from here on out, there won't be any more demo releases except for bugfixes. I'm not sure what the next releases will be called yet.

Return to “User Feedback”

Who is online

Users browsing this forum: No registered users and 1 guest