View previous topic :: View next topic |
Author |
Message |
Pafnoutios n00b
Joined: 24 Dec 2004 Posts: 15 Location: Spokane, WA
|
Posted: Tue Jul 25, 2006 6:21 pm Post subject: My GemRB ebuild isn't working |
|
|
I put the following gemrb-0.2.6.ebuild into my Portage overlay at /usr/local/portage/games-rpg/gemrb:
Code: | inherit games
DESCRIPTION="Infinity Game Engine to play Black Isle RPGs"
HOMEPAGE="http://gemrb.sourceforge.net/"
SRC_URI="mirror://sourceforge/gemrb/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND=">=media-libs/libsdl-1.2
media-libs/jpeg
sys-libs/zlib
media-libs/libpng
>=dev-lang/python-2.3
media-libs/openal
media-libs/sdl-image
media-libs/sdl-net
media-libs/sdl-mixer
|| ( x11-libs/libX11 virtual/x11 )"
DEPEND="${RDEPEND}
|| ( x11-libs/libXt virtual/x11 )"
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog NEWS README TODO
prepgamesdirs
}
|
I copied and modified the freedroidrpg ebuild.
When I try to install it I get:
Code: | cc1plus: warnings being treated as errors
Actions.cpp: In static member function 'static void GameScript::JumpToSavedLocation(Scriptable*, Action*)':
Actions.cpp:406: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp:407: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp: In static member function 'static void GameScript::SaveLocation(Scriptable*, Action*)':
Actions.cpp:690: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp:691: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp: In static member function 'static void GameScript::SaveObjectLocation(Scriptable*, Action*)':
Actions.cpp:708: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp:709: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp: In static member function 'static void GameScript::MoveToSavedLocation(Scriptable*, Action*)':
Actions.cpp:834: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp:835: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp: In static member function 'static void GameScript::MoveToSavedLocationDelete(Scriptable*, Action*)':
Actions.cpp:855: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp:856: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp: In static member function 'static void GameScript::StorePartyLocation(Scriptable*, Action*)':
Actions.cpp:919: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp:920: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp: In static member function 'static void GameScript::RestorePartyLocation(Scriptable*, Action*)':
Actions.cpp:936: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp:937: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp: In static member function 'static void GameScript::FaceSavedLocation(Scriptable*, Action*)':
Actions.cpp:1169: warning: dereferencing type-punned pointer will break strict-aliasing rules
Actions.cpp:1169: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[4]: *** [Actions.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/gemrb-0.2.6/work/gemrb-0.2.6/gemrb/plugins/Core'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/gemrb-0.2.6/work/gemrb-0.2.6/gemrb/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gemrb-0.2.6/work/gemrb-0.2.6/gemrb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gemrb-0.2.6/work/gemrb-0.2.6'
make: *** [all] Error 2
!!! ERROR: games-rpg/gemrb-0.2.6 failed.
Call stack:
ebuild.sh, line 1545: Called dyn_compile
ebuild.sh, line 940: Called src_compile
ebuild.sh, line 1254: Called games_src_compile
games.eclass, line 136: Called die
!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! This ebuild is from an overlay: '/usr/local/portage'
|
What is this cc1plus?
How can I fix this ebuild? |
|
Back to top |
|
|
hiyuh n00b
Joined: 18 Jan 2006 Posts: 11 Location: Japan
|
Posted: Tue Jul 25, 2006 7:22 pm Post subject: |
|
|
Well, that means these warnings which you got was treated as errors,
just C++ preprocessor/compiler said.
Maybe, your CFLAGS or that app's default CFLAGS use -W* flags make
it failed.
IMHO, two ways are.
1. Sanitize these annoyed -W* flags from its configure/Makefile or so.
It's easy to work around JUST to compiling.
But it means it may or may not work properly.
Because, if -W* flags are contained by upstream devs,
that means devs wouldn't expected it was compiled that tweaked condition.
2. Sanitize these annoyed crap codes.
Some old style C++ code has crap code, it's PITA to port new version gcc.
invalid static declarations, ton of strict aliasings, unthoughtful scopes...
So, it should fix, if you really want to use it. |
|
Back to top |
|
|
Pafnoutios n00b
Joined: 24 Dec 2004 Posts: 15 Location: Spokane, WA
|
Posted: Fri Sep 29, 2006 5:39 pm Post subject: |
|
|
I got it to compile by suppressing warnings. It ran fine, but the developers are right when they say it's not yet playable. Though now with 0.2.7, with combat implemented, I'm surprised they didn't go to 0.3.
Code: | CXXFLAGS="-w" emerge -u gemrb |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|