bug-gnu-chess
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Couldn't compile chess-5.00


From: Jeff Lasslett
Subject: Couldn't compile chess-5.00
Date: Sun, 03 Dec 2000 23:14:55 +1100

Greetings,

    I've just grabbed chess-5.00 from the GNU ftp site.  I couldn't
compile it.
It stopped at atak.c line 173 saying something about register spillage.
I had
a bit of a poke around.  Turns out that BitBoard is of type unsigned
long long
and the compiler was being asked to store one of them plus 3 pointers in

registers in the function GenAtaks().  I took away the register keyword
and the
problem persisted.  I made the BitBoard variables and pointers
'volatile' (told
compiler to place them in mem locations, not regs) and the whole thing
compiled
without any more errors.

    Also I got a warning at approx. line 192 of book.c regarding
incompatible arg 4
to qsort.  To get rid of the warning you just need to change the compare
routine
so that it takes 'const void *' args instead of 'leaf *'.  I would
understand
if this was left in knowingly though.

If you want me to send a diff I will.  I have never used diff before so
you might
want to send me the prefered command line options to use when producing
a diff
for submission to you (or any other GNU project for that matter).

cheers for now,

        Jeff Lasslett

--
===============================================================================
Jeff Lasslett






reply via email to

[Prev in Thread] Current Thread [Next in Thread]