Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201630 - games-board/crafty-21.6 failed
Summary: games-board/crafty-21.6 failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-07 23:46 UTC by Chris Smith
Modified: 2007-12-09 10:30 UTC (History)
2 users (show)

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


Attachments
Patch for typo #define CPUS=1 (defineCPUS.patch,196 bytes, patch)
2007-12-08 11:50 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2007-12-07 23:46:49 UTC
cannot emerge games-board/crafty-21.6

Reproducible: Always

Steps to Reproduce:
1.emerge games-board/crafty
2.
3.

Actual Results:  
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/games-board/crafty-21.6/work/crafty-21.6 ...
make[1]: Entering directory `/var/tmp/portage/games-board/crafty-21.6/work/crafty-21.6'
cc -march=nocona -mtune=generic -O2 -fomit-frame-pointer -pipe -DPOSIX  -DLINUX -c crafty.c
In file included from searchr.c:4,
                 from crafty.c:1:
chess.h:30:17: warning: missing whitespace after the macro name
In file included from chess.h:129,
                 from searchr.c:4,
                 from crafty.c:1:
lock.h:1:6: error: token "=" is not valid in preprocessor expressions
In file included from searchr.c:4,
                 from crafty.c:1:
chess.h:392: error: expected expression before ‘=’ token
chess.h:428: error: expected expression before ‘=’ token
chess.h:429: error: expected ‘;’ before ‘TREE’
In file included from crafty.c:1:
searchr.c: In function ‘SearchRoot’:
searchr.c:172: error: ‘SHARED’ has no member named ‘draw_score’
searchr.c: In function ‘SearchOutput’:
searchr.c:218: error: ‘SHARED’ has no member named ‘root_print_ok’
searchr.c:218: error: ‘SHARED’ has no member named ‘root_print_ok’
searchr.c:219: error: ‘SHARED’ has no member named ‘noise_level’
searchr.c:222: error: ‘SHARED’ has no member named ‘kibitz_depth’
searchr.c:256: error: ‘SHARED’ has no member named ‘local’
searchr.c: In function ‘SearchTrace’:
searchr.c:281: error: ‘SHARED’ has no member named ‘max_threads’
In file included from crafty.c:2:
search.c: In function ‘Search’:
search.c:57: error: ‘SHARED’ has no member named ‘next_time_check’
<snip>
time.c:367: error: ‘SHARED’ has no member named ‘tc_time_remaining’
time.c:369: error: ‘SHARED’ has no member named ‘tc_time_remaining’
time.c:371: error: ‘SHARED’ has no member named ‘tc_time_remaining’
time.c:387: error: ‘SHARED’ has no member named ‘booking’
time.c:392: error: ‘SHARED’ has no member named ‘tc_sudden_death’
time.c:393: error: ‘SHARED’ has no member named ‘tc_time’
time.c:393: error: ‘SHARED’ has no member named ‘tc_moves’
time.c:394: error: ‘SHARED’ has no member named ‘tc_time’
time.c:394: error: ‘SHARED’ has no member named ‘tc_moves’
time.c:396: error: ‘SHARED’ has no member named ‘tc_sudden_death’
make[1]: *** [crafty.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-board/crafty-21.6/work/crafty-21.6'
make: *** [crafty-make] Error 2



emerge --info
Portage 2.1.4_rc8 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r0, 2.6.23-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r3 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Fri, 07 Dec 2007 22:46:02 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.4.4-r4, 2.5.1-r4
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.4_p6, 1.5, 1.6.3, 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-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -mtune=generic -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-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/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -mtune=generic -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://gentoo.mirrors.tds.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://prometheus.cs.wmich.edu/gentoo http://gentoo.chem.wisc.edu/gentoo/"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j1"
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/local/portage /usr/local/overlays/xeffects/trunk"
SYNC="rsync://davinci.mw.realcomputerguy.com/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 amr apache2 audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo caps cdparanoia cdr cli cracklib crypt cups curl dbus dri dts dv dvb dvd dvdr dvdread encode exif fam ffmpeg flac fortran gdbm gif glitz gphoto2 gpm gstreamer gtk2 hal iconv imagemagick imap imlib ipv6 isdnlog jack java jpeg jpeg2k kde kdeenablefinal lame lcd lcms ldap mad midi mmap mmx mozcalendar mozilla mp3 mudflap musicbrainz ncurses nls nodrm nptl nptlonly nsplugin nvidia ofx ogg oggvorbis openexr opengl openmp pam pcre pda pdf perl png pppd pulseaudio python qt3 qt4 quicktime readline reflection samba sasl scanner sdl session slp sndfile spell spl sse sse2 ssl subversion svg tcltk tcpd theora threads tiff tk transparency truetype truetype-fonts type1-fonts unicode usb utf8 v4l v4l2 vcd vorbis wav wavpack wmf x264 xattr xcomposite xine xml xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel hdsp" 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" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev vmware v4l"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Martin Väth 2007-12-08 11:50:13 UTC
Created attachment 138010 [details, diff]
Patch for typo #define CPUS=1

This happens only on amd64, not on x86.
Obviously, there is a typo in upstream's code. The above patch fixes this
(it can also be fixed by passing -DCPUS=1 in CFLAGS).

Unfortunately, after this there occurs another error:
egtb.cpp:84: error: 'lock_t' does not name a type

I guess that on amd64 somewhere a wrong #if-branch is taken in chess.h. However, I have no time for closer inspection of this bug.
Comment 2 Tupone Alfredo gentoo-dev 2007-12-09 10:30:34 UTC
Should be fixed. Thanks