public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Backgammon (GNU) anybody
@ 2015-06-11 16:01 Helmut Jarausch
  2015-06-11 19:19 ` [gentoo-user] " Grant Edwards
  0 siblings, 1 reply; 6+ messages in thread
From: Helmut Jarausch @ 2015-06-11 16:01 UTC (permalink / raw
  To: gentoo-user

Hi,

has anybody any luck in running  games-board/gnubg ?

The installation proceeded just fine, but when I start it, it hangs, i.e. it takes 100% CPU and has to be killed after half an hour.

Has anybody more luck?

Many thanks for a hint,
Helmut.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: Backgammon (GNU) anybody
  2015-06-11 16:01 [gentoo-user] Backgammon (GNU) anybody Helmut Jarausch
@ 2015-06-11 19:19 ` Grant Edwards
  2015-06-11 19:32   ` Grant Edwards
  0 siblings, 1 reply; 6+ messages in thread
From: Grant Edwards @ 2015-06-11 19:19 UTC (permalink / raw
  To: gentoo-user

On 2015-06-11, Helmut Jarausch <jarausch@igpm.rwth-aachen.de> wrote:

> has anybody any luck in running  games-board/gnubg ?

Not recently (within the past year or so), but I played it on and off
for a few years before that.  I don't remember if I used an ebuild or
just installed from CVS sources.

> The installation proceeded just fine, but when I start it, it hangs,
> i.e. it takes 100% CPU and has to be killed after half an hour.
>
> Has anybody more luck?

IIRC, it uses a couple bearoff databases.  I vaguely remember
downloading and installing pre-built bearoff databases when I
installed gnubg a few years ago, but I don't see anyting about doing
that in the current gnubg docs, and there's a vague reference that
implies it might not need those anymore:

 http://www.gnubg.org/documentation/doku.php?id=gnu_backgammon_faq#54

      Databases
      ---------------
      
      What is the Database' menu for?

      Go find a newer build if you still have the database.

You don't see any messages about missing files (either bearoff
databases or neural-net weightings)?

-- 
Grant Edwards               grant.b.edwards        Yow! Are you the
                                  at               self-frying president?
                              gmail.com            



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: Backgammon (GNU) anybody
  2015-06-11 19:19 ` [gentoo-user] " Grant Edwards
@ 2015-06-11 19:32   ` Grant Edwards
  2015-06-12 16:03     ` Helmut Jarausch
  0 siblings, 1 reply; 6+ messages in thread
From: Grant Edwards @ 2015-06-11 19:32 UTC (permalink / raw
  To: gentoo-user

On 2015-06-11, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> On 2015-06-11, Helmut Jarausch <jarausch@igpm.rwth-aachen.de> wrote:
>
>> has anybody any luck in running  games-board/gnubg ?
>
> Not recently (within the past year or so), but I played it on and off
> for a few years before that.  I don't remember if I used an ebuild or
> just installed from CVS sources.

I got curious and just did "emerge -av gnubg". It compiled and
installed fine, and it seems to work.  When invoked from the command
line I see this:

   $ gnubg
   GNU Backgammon 1.04.000  Jun 11 2015
   Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 by Gary Wong.
   Copyright (C) 2014 by Gary Wong and the AUTHORS; for details type show version'.
   This program comes with ABSOLUTELY NO WARRANTY; for details type show warranty'.
   This is free software, and you are welcome to redistribute it under
   certain conditions; type show copying' for details.
   (No game) set gui showids on
   (No game) save settings
   (No game) 

And then the GUI board displays as it should.

-- 
Grant Edwards               grant.b.edwards        Yow! hubub, hubub, HUBUB,
                                  at               hubub, hubub, hubub, HUBUB,
                              gmail.com            hubub, hubub, hubub.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Re: Backgammon (GNU) anybody
  2015-06-11 19:32   ` Grant Edwards
@ 2015-06-12 16:03     ` Helmut Jarausch
  2015-06-13 15:42       ` [gentoo-user] " Stroller
  0 siblings, 1 reply; 6+ messages in thread
From: Helmut Jarausch @ 2015-06-12 16:03 UTC (permalink / raw
  To: gentoo-user

On 06/11/2015 09:32:23 PM, Grant Edwards wrote:

> I got curious and just did "emerge -av gnubg". It compiled and
> installed fine, and it seems to work.  

Many thanks, it turnt out to be a strange problem.

When compiled with gcc-5.1.0 and -O2, gnubg goes into a tight loop within memset 
even before function main is entered.

When compiled with gcc-5.1.0 and -O1, gnubg gets a segment fault from within memset 
even before function main is entered.

When compiled with gcc-5.1.0 and -O0, it works just fine.

Stepping back to gcc-4.9.2 it succeeds even when compiled with -O2.

So, it looks like a compiler error of gcc-5.1.0

Helmut.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Backgammon (GNU) anybody
  2015-06-12 16:03     ` Helmut Jarausch
@ 2015-06-13 15:42       ` Stroller
  2015-06-14  8:53         ` Helmut Jarausch
  0 siblings, 1 reply; 6+ messages in thread
From: Stroller @ 2015-06-13 15:42 UTC (permalink / raw
  To: gentoo-user


On Fri, 12 June 2015, at 5:03 pm, Helmut Jarausch <jarausch@skynet.be> wrote:
> On 06/11/2015 09:32:23 PM, Grant Edwards wrote:
> 
>> I got curious and just did "emerge -av gnubg". It compiled and
>> installed fine, and it seems to work.  
> 
> Many thanks, it turnt out to be a strange problem.
> 
> When compiled with gcc-5.1.0 and -O2, gnubg goes into a tight loop within memset 
> even before function main is entered.
> 
> When compiled with gcc-5.1.0 and -O1, gnubg gets a segment fault from within memset 
> even before function main is entered.
> 
> When compiled with gcc-5.1.0 and -O0, it works just fine.
> 
> Stepping back to gcc-4.9.2 it succeeds even when compiled with -O2.
> 
> So, it looks like a compiler error of gcc-5.1.0

You should report this upstream. To gcc, I think?

Stroller.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Backgammon (GNU) anybody
  2015-06-13 15:42       ` [gentoo-user] " Stroller
@ 2015-06-14  8:53         ` Helmut Jarausch
  0 siblings, 0 replies; 6+ messages in thread
From: Helmut Jarausch @ 2015-06-14  8:53 UTC (permalink / raw
  To: gentoo-user

On 06/13/2015 05:42:10 PM, Stroller wrote:
> 
> On Fri, 12 June 2015, at 5:03 pm, Helmut Jarausch <jarausch@skynet.be>
> wrote:
> > On 06/11/2015 09:32:23 PM, Grant Edwards wrote:
> > 
> >> I got curious and just did "emerge -av gnubg". It compiled and
> >> installed fine, and it seems to work.  
> > 
> > Many thanks, it turnt out to be a strange problem.
> > 
> > When compiled with gcc-5.1.0 and -O2, gnubg goes into a tight loop
> within memset 
> > even before function main is entered.
> > 
> > When compiled with gcc-5.1.0 and -O1, gnubg gets a segment fault
> from within memset 
> > even before function main is entered.
> > 
> > When compiled with gcc-5.1.0 and -O0, it works just fine.
> > 
> > Stepping back to gcc-4.9.2 it succeeds even when compiled with -O2.
> > 
> > So, it looks like a compiler error of gcc-5.1.0
> 
> You should report this upstream. To gcc, I think?
> 
As I found out, it has been fixed already. Not for gcc-5.1 but with a recent snapshot of gcc-5 as well as gcc-6.




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-06-14  8:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-11 16:01 [gentoo-user] Backgammon (GNU) anybody Helmut Jarausch
2015-06-11 19:19 ` [gentoo-user] " Grant Edwards
2015-06-11 19:32   ` Grant Edwards
2015-06-12 16:03     ` Helmut Jarausch
2015-06-13 15:42       ` [gentoo-user] " Stroller
2015-06-14  8:53         ` Helmut Jarausch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox