Menu

#52 fails to compile with gcc 3.4.2 <me@lordhelmchen.net>

closed-fixed
nobody
game (12)
5
2004-11-29
2004-11-21
Anonymous
No

compiling with gcc 3.4.2 gave me
-----
make[2]: Entering directory
`/var/tmp/portage/ivan-0.430/work/ivan-0.430/Main/Source'
source='actset.cpp' object='actset.o' libtool=no \
depfile='.deps/actset.Po' tmpdepfile='.deps/actset.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\"
-DVERSION=\"0.430\" -I. -I. -I../../FeLib/Include
-I../../Main/Include -I/usr/include/SDL -D_REENTRANT
-DLINUX
-DLOCAL_STATE_DIR=\"/var/games/ivan/\"-DDATADIR=\"/usr/share/games\"
-DUSE_SDL -DGCC -march=k8 -O2 -pipe -c -o actset.o
`test -f 'actset.cpp' || echo './'`actset.cpp
source='areaset.cpp' object='areaset.o' libtool=no \
depfile='.deps/areaset.Po' tmpdepfile='.deps/areaset.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\"
-DVERSION=\"0.430\" -I. -I. -I../../FeLib/Include
-I../../Main/Include -I/usr/include/SDL -D_REENTRANT
-DLINUX
-DLOCAL_STATE_DIR=\"/var/games/ivan/\"-DDATADIR=\"/usr/share/games\"
-DUSE_SDL -DGCC -march=k8 -O2 -pipe -c -o areaset.o
`test -f 'areaset.cpp' || echo './'`areaset.cpp
In file included from actset.cpp:3:
../../Main/Include/proto.h: In function `outputfile&
operator<<(outputfile&, const type*)':
../../Main/Include/proto.h:80: error: no match for
'operator<<' in 'SaveFile << (ushort)(0)'
../../Main/Include/proto.h: In function `inputfile&
operator>>(inputfile&, type*&)':
../../Main/Include/proto.h:88: error: no match for
'operator>>' in 'SaveFile >> Type'
actset.cpp: At global scope:
actset.cpp:6: error: too few template-parameter-lists
actset.cpp:7: error: too few template-parameter-lists
actset.cpp:8: error: too few template-parameter-lists
In file included from ../../Main/Include/char.h:9,
from actset.cpp:15:
../../Main/Include/script.h:201: error: an explicit
specialization must be preceded by 'template <>'
../../Main/Include/script.h:217: error: an explicit
specialization must be preceded by 'template <>'
../../Main/Include/script.h:241: error: an explicit
specialization must be preceded by 'template <>'
../../Main/Include/script.h:253: error: an explicit
specialization must be preceded by 'template <>'
make[2]: *** [actset.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../../Main/Include/char.h:9,
from areaset.cpp:2:
../../Main/Include/script.h:201: error: an explicit
specialization must be preceded by 'template <>'
../../Main/Include/script.h:217: error: an explicit
specialization must be preceded by 'template <>'
../../Main/Include/script.h:241: error: an explicit
specialization must be preceded by 'template <>'
../../Main/Include/script.h:253: error: an explicit
specialization must be preceded by 'template <>'
In file included from areaset.cpp:8:
../../Main/Include/proto.h: In function `outputfile&
operator<<(outputfile&, const type*)':
../../Main/Include/proto.h:80: error: ambiguous
overload for 'operator<<' in 'SaveFile << (ushort)(0)'
../../Main/Include/level.h:162: note: candidates are:
outputfile& operator<<(outputfile&, const level*) <near
match>
../../Main/Include/dungeon.h:49: note:
outputfile& operator<<(outputfile&, const dungeon*)
<near match>
../../Main/Include/script.h:451: note:
outputfile& operator<<(outputfile&, const gamescript*)
<near match>
../../Main/Include/team.h:47: note:
outputfile& operator<<(outputfile&, const team*) <near
match>
../../Main/Include/game.h:51: note:
outputfile& operator<<(outputfile&, const homedata*)
<near match>
../../FeLib/Include/bitmap.h:189: note:
outputfile& operator<<(outputfile&, const bitmap*)
<near match>
../../Main/Include/proto.h: In function `inputfile&
operator>>(inputfile&, type*&)':
../../Main/Include/proto.h:88: error: no match for
'operator>>' in 'SaveFile >> Type'
../../FeLib/Include/femath.h:77: note: candidates are:
inputfile& operator>>(inputfile&, interval&)
../../FeLib/Include/femath.h:79: note:
inputfile& operator>>(inputfile&, region&)
../../Main/Include/igraph.h:50: note:
inputfile& operator>>(inputfile&, graphicid&)
../../Main/Include/level.h:163: note:
inputfile& operator>>(inputfile&, level*&)
../../Main/Include/dungeon.h:50: note:
inputfile& operator>>(inputfile&, dungeon*&)
../../Main/Include/lsquare.h:39: note:
inputfile& operator>>(inputfile&, emitter&)
../../Main/Include/slot.h:119: note:
inputfile& operator>>(inputfile&, slot&)
../../Main/Include/script.h:117: note:
inputfile& operator>>(inputfile&, script&)
../../Main/Include/script.h:452: note:
inputfile& operator>>(inputfile&, gamescript*&)
../../Main/Include/team.h:48: note:
inputfile& operator>>(inputfile&, team*&)
../../Main/Include/game.h:52: note:
inputfile& operator>>(inputfile&, homedata*&)
../../Main/Include/game.h:72: note:
inputfile& operator>>(inputfile&, configid&)
../../Main/Include/game.h:84: note:
inputfile& operator>>(inputfile&, dangerid&)
../../FeLib/Include/bitmap.h:190: note:
inputfile& operator>>(inputfile&, bitmap*&)
make[2]: *** [areaset.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/ivan-0.430/work/ivan-0.430/Main/Source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/ivan-0.430/work/ivan-0.430/Main'
make: *** [all-recursive] Error 1
-----
please see also
http://bugs.gentoo.org/show_bug.cgi?id=69416
where, it seems, the same bug has been noted. I thought
I'd ask the developers directly, though, as it looks
like it is not a gentoo-related problem.
I'll try installing gcc3.3 now, and if you don't hear
from me again, it worked that way for me as well.
Thanks for your time,
Christian

Discussion

  • Timo Kiviluoto

    Timo Kiviluoto - 2004-11-29

    Logged In: YES
    user_id=283472

    Thanks. Gcc 3.4.x branch didn't exist when we released
    v0.430 so we didn't notice this problem. It has already been
    fixed in our CVS version and will not reoccur in the soon-to-
    be-released v0.50.

     
  • Timo Kiviluoto

    Timo Kiviluoto - 2004-11-29
    • status: open --> closed-fixed
     
  • Nobody/Anonymous

    Logged In: NO

    Thanks. I have notified the gentoo bugtracker of your answer
    at the aforementioned url.

    Since I have, contrary to my claims, refrained from a
    parallel gcc-install, I'd like to ask if there is already an
    ETA for 0.5. :)
    Christian

     
  • Timo Kiviluoto

    Timo Kiviluoto - 2004-11-30

    Logged In: YES
    user_id=283472

    We usually don't publish our deadlines since we have a
    chronic tendency to miss them. However, since a horribly
    long time has passed since the previous rel, I think users
    have a right to know it: v0.50 will be released ere December
    10th, 23:59 EET. If it doesn't arrive until then, please send a
    bomb or an anthrax letter to the head programmer's (mine)
    physical address.

    Btw, you can browse screenshots of the next version at:

    http://a25a.mtalo.ton.tut.fi/wiki/index.php/Screen_shots

    Is your real name Christian Harms, by any chance? Just for
    the bug reporters list, in the authors' file.

     

Log in to post a comment.

MongoDB Logo MongoDB