Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185571 - ebuild using gdc for aba-game "gunroar"
Summary: ebuild using gdc for aba-game "gunroar"
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement with 2 votes (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: EBUILD
: 118038 (view as bug list)
Depends on:
Blocks: 118209
  Show dependency tree
 
Reported: 2007-07-16 19:00 UTC by Account removed
Modified: 2009-04-08 09:32 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild as tgz for games-action (gunroar.tar.gz,6.96 KB, text/plain)
2007-07-16 19:01 UTC, Account removed
Details
games-action/gunroar/gunroar-0.15.ebuild (gunroar-0.15.ebuild,1.34 KB, text/plain)
2007-07-16 20:07 UTC, Account removed
Details
games-action/gunroar/files/gunroar-0.15.diff (gunroar-0.15.diff,20.66 KB, patch)
2007-07-16 20:07 UTC, Account removed
Details | Diff
games-action/gunroar/gunroar-0.15.ebuild (gunroar-0.15.ebuild,1.39 KB, text/plain)
2007-07-21 19:50 UTC, Account removed
Details
games-action/gunroar/gunroar-0.15.ebuild (gunroar-0.15.ebuild,1.55 KB, text/plain)
2007-08-19 10:39 UTC, Account removed
Details
games-action/gunroar/gunroar-0.15.ebuild (gunroar-0.15.ebuild,1.81 KB, text/plain)
2007-08-22 21:07 UTC, Account removed
Details
games-action/gunroar/files/gunroar-0.15.diff (gunroar-0.15.diff,18.71 KB, patch)
2007-08-22 21:07 UTC, Account removed
Details | Diff
games-action/gunroar/files/gunroar-0.15.diff (gunroar-0.15.diff,20.24 KB, patch)
2007-09-20 16:04 UTC, Account removed
Details | Diff
games-action/gunroar/gunroar-0.15.ebuild (gunroar-0.15.ebuild,1.87 KB, text/plain)
2007-10-11 18:16 UTC, Account removed
Details
games-action/gunroar/files/gunroar.png (gunroar.png,3.07 KB, image/png)
2007-11-18 12:18 UTC, Account removed
Details
games-action/gunroar/gunroar-0.15.ebuild (gunroar-0.15.ebuild,1.94 KB, text/plain)
2007-11-18 12:19 UTC, Account removed
Details
games-action/gunroar/gunroar-0.15.ebuild (gunroar-0.15.ebuild,1.92 KB, text/plain)
2009-02-11 12:04 UTC, Account removed
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Account removed 2007-07-16 19:00:28 UTC
works on x86 and ppc
Comment 1 Account removed 2007-07-16 19:01:26 UTC
Created attachment 125065 [details]
ebuild as tgz for games-action
Comment 2 Santiago M. Mola (RETIRED) gentoo-dev 2007-07-16 19:28:52 UTC
Please, when attaching ebuilds, do it in plain text, uncompressed and in separate files.
If you attach a tarball, don't set it as plain/test. 
Btw, great work!
Comment 3 Account removed 2007-07-16 19:44:23 UTC
ok - sorry!
was my 1st work on making/uploading ebuilds...
won't tgz them next time :)
Comment 4 Account removed 2007-07-16 20:07:03 UTC
Created attachment 125093 [details]
games-action/gunroar/gunroar-0.15.ebuild
Comment 5 Account removed 2007-07-16 20:07:36 UTC
Created attachment 125094 [details, diff]
games-action/gunroar/files/gunroar-0.15.diff
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2007-07-16 20:14:22 UTC
comments:

use the header from skel.ebuild

pkg_setup should call games_pkg_setup.  Look at the other games ebuilds to see how it should look.

games should be last on the inherit line

sort KEYWORDS

more quoting is needed for user-supplied variables (like $GAMES_DATADIR and $D)

quoting is *not* needed on the initial MY_ variables, nor on the S= line.

src_compile isn't needed for this ebuild.

more error checking is needed in src_install

use doins instead of cp in src_install

pkg_postinst should not create directories.  They should be created in src_install.
Comment 7 Account removed 2007-07-16 20:31:43 UTC
(In reply to comment #6)
> comments:
> 
> use the header from skel.ebuild
> 
> pkg_setup should call games_pkg_setup.  Look at the other games ebuilds to see
> how it should look.
> 
> games should be last on the inherit line
> 
> sort KEYWORDS
> 
> more quoting is needed for user-supplied variables (like $GAMES_DATADIR and $D)
> 
> quoting is *not* needed on the initial MY_ variables, nor on the S= line.
> 
> src_compile isn't needed for this ebuild.
> 
> more error checking is needed in src_install
> 
> use doins instead of cp in src_install
> 
> pkg_postinst should not create directories.  They should be created in
> src_install.
> 

ok, thx for friendly help
when i find some time i'll try to improve the ebuilds
(if a more experienced ebuilder wasn't faster)
Comment 8 Account removed 2007-07-21 19:50:33 UTC
Created attachment 125580 [details]
games-action/gunroar/gunroar-0.15.ebuild

several ebuild-fixes
Comment 9 Account removed 2007-08-19 10:39:14 UTC
Created attachment 128554 [details]
games-action/gunroar/gunroar-0.15.ebuild
Comment 10 Account removed 2007-08-22 21:07:05 UTC
Created attachment 128901 [details]
games-action/gunroar/gunroar-0.15.ebuild

fixed new ebuild using ${GAMES_DATADIR} and ${GAMES_STATEDIR} correctly
Comment 11 Account removed 2007-08-22 21:07:37 UTC
Created attachment 128903 [details, diff]
games-action/gunroar/files/gunroar-0.15.diff

fixed patch for new ebuild
Comment 12 Account removed 2007-09-20 16:04:52 UTC
Created attachment 131389 [details, diff]
games-action/gunroar/files/gunroar-0.15.diff

minor fixes for gdc-0.24
Comment 13 Account removed 2007-10-11 18:16:10 UTC
Created attachment 133177 [details]
games-action/gunroar/gunroar-0.15.ebuild

privileges fixes
Comment 14 Anton Romanov 2007-11-05 09:04:59 UTC
*** Bug 118038 has been marked as a duplicate of this bug. ***
Comment 15 Account removed 2007-11-18 12:18:31 UTC
Created attachment 136242 [details]
games-action/gunroar/files/gunroar.png

desktop icon
Comment 16 Account removed 2007-11-18 12:19:24 UTC
Created attachment 136243 [details]
games-action/gunroar/gunroar-0.15.ebuild

installing icon now
Comment 17 Shane Sofos 2008-01-12 04:21:07 UTC
Compilation of gunroar completes with no problems but I get a runtime error when executing gunroar:

Error: circular initialization dependency with module abagames.gr.particle

Here is my emerge --info:
 
Portage 2.1.3.19 (default-linux/x86/dev/2007.1, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Fri, 11 Jan 2008 07:00:02 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/berkano /usr/portage/local/layman/roslin"
SYNC="rsync://beta_router/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa berkdb bitmap-fonts bzip2 cli cracklib crypt cups dbus dri fortran gdbm gpm gtk hal iconv ipv6 isdnlog jpeg midi mmx mmxext mtrr mudflap ncurses nls nptl nptlonly opengl openmp oss pam pcre perl png pppd python qt4 readline reflection sdl session spl sse sse2 ssl startup-notification tcpd threads tiff truetype truetype-fonts type1-fonts unicode x86 xcb xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 18 Account removed 2008-01-12 09:25:27 UTC
hm, i can't reproduce your error here.
you maybe might want to try with distcc disabled.
Comment 19 Shane Sofos 2008-01-14 02:21:47 UTC
Just tried compiling gunroar with DISCTCC portage feature turned off. I got the same error after starting gunroar. 
Comment 20 Account removed 2008-01-14 18:30:37 UTC
Damn! Would have been too easy.
I have no clue atm as i can't reproduce the error here.
If you like you could CTRL-C the emerge somewhere between,
edit /var/tmp/portage/games-action/gunroar-0.15/work/gr/Makefile
to use the commented-out debug line instead of the release one
and start the result through valgrind or gdb.
Its should give you the line then where it crashes.
Can't promise though that i can fix it then, but i'll try...
Comment 21 Shane Sofos 2008-01-19 23:46:06 UTC
Marcel -
 
I really would like to run gdb and give you the output but the problem I am having is I do not know how to resume the merge process after editing /var/tmp/portage/games-action/gunroar-0.15/work/gr/Makefile without portage overwriting the Makefile. Note I ran make in the /gr directory but that seems to fail. Also is there a specific point at which I should CTRL-C the merge process?

Thanks 
Comment 22 Account removed 2008-01-20 12:47:07 UTC
Hi Shane!

Just directly after emerge unpacked gunroar sources and applied patches you could "CTRL-Z".
Then edit the Makefile to use the debug build and
"fg"
to continue the emerge.
good luck so far! 
Comment 23 Shane Sofos 2008-01-21 07:22:15 UTC
Marcel -- 
 I did exactly what you said but when I resume the compile I get the following error: 

src/abagames/gr/bullet.d:180: Error: shadowing declaration
abagames.gr.bullet.Bullet.checkShotHit.s is deprecated
make: *** [src/abagames/gr/bullet.o] Error 1
make: *** Waiting for unfinished jobs....
 * 
 * ERROR: games-action/gunroar-0.15 failed.
 * Call stack:
 *      ebuild.sh, line 1701:  Called dyn_compile
 *      ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *      ebuild.sh, line   44:  Called src_compile
 *      ebuild.sh, line 1383:  Called games_src_compile
 *   games.eclass, line  160:  Called die
 * The specific snippet of code:
 *      [ -e [Mm]akefile ] && { emake || die "emake failed"; }
 *  The die message:
 *   emake failed
Comment 24 Account removed 2008-01-21 11:27:08 UTC
argh, seems i never tried the debug parameters in the makefile.
please add a -d to allow deprecated features of gdc.
this should work.

>  I did exactly what you said but when I resume the compile I get the following
> error: 
 
Comment 25 Shane Sofos 2008-01-21 21:33:21 UTC
Marcel - 

 Unfortunately just after gdmd finishes compiling the source I get this new error: 

src/abagames/gr/enemy.d: In member function ‘__invariant’:
src/abagames/gr/enemy.d:175: error: void value not ignored as it ought to be
make: *** [src/abagames/gr/enemy.o] Error 1
make: *** Waiting for unfinished jobs....
 * 
 * ERROR: games-action/gunroar-0.15 failed.
 * Call stack:
 *      ebuild.sh, line 1701:  Called dyn_compile
 *      ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *      ebuild.sh, line   44:  Called src_compile
 *      ebuild.sh, line 1383:  Called games_src_compile
 *   games.eclass, line  160:  Called die
 * The specific snippet of code:
 *      [ -e [Mm]akefile ] && { emake || die "emake failed"; }
 *  The die message:
 *   emake failed
Comment 26 Account removed 2008-01-25 14:57:13 UTC
Shane!

Commenting out line 175 from enemy.d solves this here.
resulting binary is still useable, but i don't get an error in particle.d here...
good luck!
Comment 27 Shane Sofos 2008-01-25 22:33:25 UTC
Marcel - 

Thank you! Gunroar finally compiled with debug options. I ran it through gdb but really did not receive that much more information than before.


This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/games/bin/gunroar 
[Thread debugging using libthread_db enabled]
[New Thread 0xb6c3c6f0 (LWP 14552)]
Error: circular initialization dependency with module abagames.gr.particle

Program exited with code 01.
(gdb) bt
No stack.

I really do not know what is wrong. I think we need to find the difference between the a system gunroar runs on and one it doesn't to find any inconsistencies. 

I posted my emerge --info before in comment #17 but I want to post my GCC info because the d compiler is in that package. 

gcc --version 
gcc (GCC) 4.1.2 20070214 (  (gdc 0.24, using dmd 1.020)) (Gentoo 4.1.2 p1.0.2)

I noticed that there is a package called dev-lang/dmd-bin in portage that includes a dmd compiler with a newer revision (2.008-r1) than the one with gcc. Is there anyway to compile the package with the newer compiler? And would that even make a difference? I just want to thank you again for all you help. Hopefully we can track down the source of this problem.  

Sincerely, 
Shane 
Comment 28 Account removed 2008-01-26 09:14:15 UTC
hey Shane!

if you like you could try to use valgrind for debugging.
this should give in any case more output.
it even does with my working gunroar-binary, so chances are
good that it tells in which line of particle.d the error is.

> gcc --version 
> gcc (GCC) 4.1.2 20070214 (  (gdc 0.24, using dmd 1.020)) (Gentoo 4.1.2 p1.0.2)

gcc --version
gcc (GCC) 4.1.2 20070214 (  (gdc 0.24, using dmd 1.020))   (Gentoo 4.1.2 p1.0.1)                         
 
here. should the 0.1 versus 0.2 matter?

dmd-bin is the official digital mars compiler - it's closed source and only
runs on x86 arch - gdc is opensource and does also work on non-x85 arch.

very likely that gunroar doesn't build without modifications in the source
with a newer dmd-bin, as they changed lots of stuff compared to older dmds.

in case you don't know - there are gunroar-binaries built with old dmd available on http://www.emhsoft.com/gunroar/ .

have a nice weekend! :)
Comment 29 Account removed 2008-01-26 10:58:55 UTC
just updated gcc to patchlevel 1.0.2 
and gunroar still builds/works - so problem is elsewhere

gcc (GCC) 4.1.2 20070214 (  (gdc 0.24, using dmd 1.020)) (Gentoo 4.1.2 p1.0.2)
Comment 30 Ben Leggett 2008-06-02 19:14:30 UTC
Tested successfully on ~amd64 with gcc 4.1.2
Comment 31 Account removed 2009-02-11 12:04:54 UTC
Created attachment 181624 [details]
games-action/gunroar/gunroar-0.15.ebuild

cosmetics for repoman
Comment 32 Account removed 2009-04-08 09:32:08 UTC
requires unsupported gdc compiler