View Full Version: Ivan won't compile on various linux systems - gcc related?

ivan >>Trouble Shooting and Bugs >>Ivan won't compile on various linux systems - gcc related?


<< Prev | Next >>

dolny- 10-31-2005
Ivan won't compile on various linux systems - gcc related?
mrplant@milkshake:~/gry/ivan$ sudo sh configure checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of gcc... none checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking for sdl-config... /usr/bin/sdl-config checking for SDL - version >= 1.2.0... yes checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib configure: creating ./config.status config.status: creating Makefile config.status: creating FeLib/Makefile config.status: creating FeLib/Include/Makefile config.status: creating FeLib/Source/Makefile config.status: creating Script/Makefile config.status: creating Graphics/Makefile config.status: creating Main/Makefile config.status: creating Main/Include/Makefile config.status: creating Main/Resource/Makefile config.status: creating Main/Source/Makefile config.status: executing depfiles commands mrplant@milkshake:~/gry/ivan$ sudo make Making all in FeLib make[1]: Wejście do katalogu `/home/mrplant/gry/ivan/FeLib' Making all in Source make[2]: Wejście do katalogu `/home/mrplant/gry/ivan/FeLib/Source' g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c bitmap.cpp ../../FeLib/Include/fearray.h:37: error: invalid use of constructor as a template ../../FeLib/Include/fearray.h:37: note: use ‘fearray<type>::fearray’ instead of ‘fearray<type>::fearray<type>’ to name the constructor in a qualified name ../../FeLib/Include/fearray.h:45: error: invalid use of constructor as a template ../../FeLib/Include/fearray.h:45: note: use ‘fearray<type>::fearray’ instead of ‘fearray<type>::fearray<type>’ to name the constructor in a qualified name make[2]: *** [bitmap.o] Błąd 1 make[2]: Opuszczenie katalogu `/home/mrplant/gry/ivan/FeLib/Source' make[1]: *** [all-recursive] Błąd 1 make[1]: Opuszczenie katalogu `/home/mrplant/gry/ivan/FeLib' make: *** [all-recursive] Błąd 1 mrplant@milkshake:~/gry/ivan$ Erm, help?

unknown_entity- 10-31-2005

...What is your question? >_>

Atomic- 10-31-2005

Technically this should be in the Programming forum. As it is... I can't help you :\ I don't think there are a lot of people compiling on Linux here, though I do seem to recall a thread about compiling on Linux somewhere...

dolny- 10-31-2005

Well I compiled it on Ubuntu Hoary. With no problems. Some time ago I reinstalled Linux from scratch (newer version) and I can't compile :/

DarkAngel- 11-30-2005

I don't think anyone with an up to date compiler is going to be able to compile Ivan anymore (without changes).. My output on debian mirrors yours. /usr/src/ivan-0.50> make Making all in FeLib make<1>: Entering directory `/usr/src/ivan-0.50/FeLib' Making all in Source make<2>: Entering directory `/usr/src/ivan-0.50/FeLib/Source' g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c bitmap.cpp In file included from bitmap.cpp:17: ../../FeLib/Include/graphics.h:17:17: error: SDL.h: No such file or directory ../../FeLib/Include/graphics.h:53: error: ISO C++ forbids declaration of 'SDL_Surface' with no type ../../FeLib/Include/graphics.h:53: error: expected ';' before '*' token ../../FeLib/Include/fearray.h:37: error: invalid use of constructor as a template ../../FeLib/Include/fearray.h:37: note: use 'fearray<type>::fearray' instead of 'fearray<type>::fearray<type>' to name the constructor in a qualified name ../../FeLib/Include/fearray.h:45: error: invalid use of constructor as a template ../../FeLib/Include/fearray.h:45: note: use 'fearray<type>::fearray' instead of 'fearray<type>::fearray<type>' to name the constructor in a qualified name make<2>: *** Error 1 make<2>: Leaving directory `/usr/src/ivan-0.50/FeLib/Source' make<1>: *** Error 1 make<1>: Leaving directory `/usr/src/ivan-0.50/FeLib' make: *** Error 1 /usr/src/ivan-0.50>

DarkAngel- 11-30-2005

I have modified the topic. Anyone who has compilation problems, please type: $ gcc -v ..and paste the output here. I am going to presume this is a problem related to newer versions of GCC not being backwards compatible with all code from previous releases. Perhaps. Anyway, in the meantime I'll try to chat with hex about this.

Atomic- 12-05-2005

Could this thread be moved to the programming forum?

DarkAngel- 12-11-2005

This problem has been fixed in cvs This means that the next release will seee an end to this compilation problem. Unfortunately, it isn't likely that we'll received a patch, and the next release may take many months or years, if ever. Our best bet is to hope a hacker on the forums with spare time releases a hotfix diff for us.

Dref le Ladi- 01-29-2006
Workaround?
I started another topic on the same subject in the programming section and tried to find a workaround http://ivan.greatboard.com/viewtopic.php?t=604 ---- Dref le Ladi http://fdemesmay.dyndns.org

Zet- 02-08-2006

I tried to compile the source I pulled from CVS a while ago: $ make cd . && /bin/sh /home/zet/src/ivan/ivan/missing --run autoconf /bin/sh ./config.status --recheck running /bin/sh ./configure CC=gcc-2.95 CXX=g++-2.95 --no-create --no-recursion checking for gcc... gcc-2.95 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc-2.95 accepts -g... yes checking for gcc-2.95 option to accept ANSI C... none needed checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of gcc-2.95... gcc checking for gcc... (cached) gcc-2.95 checking whether we are using the GNU C compiler... (cached) yes checking whether gcc-2.95 accepts -g... (cached) yes checking for gcc-2.95 option to accept ANSI C... (cached) none needed checking whether we are using the GNU C++ compiler... yes checking whether g++-2.95 accepts -g... yes checking dependency style of g++-2.95... gcc checking for sdl-config... /usr/bin/sdl-config checking for SDL - version >= 1.2.0... yes checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib configure: creating ./config.status /bin/sh ./config.status config.status: creating Makefile config.status: creating FeLib/Makefile config.status: creating FeLib/Include/Makefile config.status: creating FeLib/Source/Makefile config.status: creating Script/Makefile config.status: creating Graphics/Makefile config.status: creating Main/Makefile config.status: creating Main/Include/Makefile config.status: creating Main/Resource/Makefile config.status: creating Main/Source/Makefile config.status: executing depfiles commands Making all in FeLib make[1]: Entering directory `/home/zet/src/ivan/ivan/FeLib' Making all in Source make[2]: Entering directory `/home/zet/src/ivan/ivan/FeLib/Source' source='bitmap.cpp' object='bitmap.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o bitmap.o bitmap.cpp source='config.cpp' object='config.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o config.o config.cpp source='error.cpp' object='error.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o error.o error.cpp source='feio.cpp' object='feio.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o feio.o feio.cpp source='felist.cpp' object='felist.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o felist.o felist.cpp source='femain.cpp' object='femain.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o femain.o femain.cpp source='femath.cpp' object='femath.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o femath.o femath.cpp source='festring.cpp' object='festring.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o festring.o festring.cpp source='fetime.cpp' object='fetime.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o fetime.o fetime.cpp source='graphics.cpp' object='graphics.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o graphics.o graphics.cpp source='hscore.cpp' object='hscore.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o hscore.o hscore.cpp source='save.cpp' object='save.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o save.o save.cpp source='rawbit.cpp' object='rawbit.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o rawbit.o rawbit.cpp source='whandler.cpp' object='whandler.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o whandler.o whandler.cpp rm -f libFeLib.a ar cru libFeLib.a bitmap.o config.o error.o feio.o felist.o femain.o femath.o festring.o fetime.o graphics.o hscore.o save.o rawbit.o whandler.o ranlib libFeLib.a make[2]: Leaving directory `/home/zet/src/ivan/ivan/FeLib/Source' Making all in Include make[2]: Entering directory `/home/zet/src/ivan/ivan/FeLib/Include' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/zet/src/ivan/ivan/FeLib/Include' make[2]: Entering directory `/home/zet/src/ivan/ivan/FeLib' make[2]: Nothing to be done for `all-am'. make[2]: Leaving directory `/home/zet/src/ivan/ivan/FeLib' make[1]: Leaving directory `/home/zet/src/ivan/ivan/FeLib' Making all in Main make[1]: Entering directory `/home/zet/src/ivan/ivan/Main' Making all in Include make[2]: Entering directory `/home/zet/src/ivan/ivan/Main/Include' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/zet/src/ivan/ivan/Main/Include' Making all in Source make[2]: Entering directory `/home/zet/src/ivan/ivan/Main/Source' source='actset.cpp' object='actset.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I../../Main/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o actset.o actset.cpp source='areaset.cpp' object='areaset.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I../../Main/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o areaset.o areaset.cpp source='charset.cpp' object='charset.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ g++-2.95 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ivan\" -DVERSION=\"0.50\" -I. -I. -I../../FeLib/Include -I../../Main/Include -I/usr/include/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\"/usr/local/var/ivan\" -DDATADIR=\"/usr/local/share\" -DUSE_SDL -DGCC -g -O2 -c -o charset.o charset.cpp In file included from charset.cpp:56: char.cpp: In method `truth character::ForgetRandomThing()': char.cpp:9677: no matching function for call to `vector<god *,allocator<god *> >::at (long int)' char.cpp:9679: no matching function for call to `vector<god *,allocator<god *> >::at (int &)' make[2]: *** [charset.o] Error 1 make[2]: Leaving directory `/home/zet/src/ivan/ivan/Main/Source' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/zet/src/ivan/ivan/Main' make: *** [all-recursive] Error 1 My system is Debian GNU/Linux testing. The 0.50 release version compiled ok when I set CC=gcc-2.95 and CXX=g++-2.95. Without setting those, the compilation gave the same error that was reported in the original post of this thread (with gcc (GCC) 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)). edit: And by "a while ago", I mean 15 minutes ago. edit2: I tried the obvious, that is, to compile the CVS version with GCC 4.0.3. It worked grrreat.

Dref le Ladi- 02-08-2006

what is your CPU architecture? 32bits or 64 bits? ---- Dref le Ladi http://fdemesmay.dyndns.org

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.