Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230127 - patch for games-board/pouetchess-0.2.0-r1: LibSDL headers are required for this program
Summary: patch for games-board/pouetchess-0.2.0-r1: LibSDL headers are required for th...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-30 04:44 UTC by Steve Pedersen
Modified: 2011-07-27 17:49 UTC (History)
1 user (show)

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


Attachments
Adds generic x86_64 support for pouetChess. (pouetchess-0.2.0-x86_64-headers.patch,680 bytes, patch)
2008-06-30 04:47 UTC, Steve Pedersen
Details | Diff
truncates 'cute' cpu detection (pouetchess-0.2.0-ditch-cpudetect.patch,8.03 KB, patch)
2008-07-18 10:38 UTC, Steve Pedersen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Pedersen 2008-06-30 04:44:07 UTC
During scons configure pouetchess doesn't recognise my 64-bit cpu, and determines that it is i686 compatible.
scons then says: "LibSDL headers are required for this program", even though they are present.

config.log:
	Configure(confdir = .sconf_temp)
scons: Configure: Checking for C header file SDL.h... 
.sconf_temp/conftest_0.c <-
  |
  |#include "SDL.h"
  |
  |
gcc -o .sconf_temp/conftest_0.o -c -O1 -pipe -march=i686 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL .sconf_temp/conftest_0.c
.sconf_temp/conftest_0.c:1: error: CPU you selected does not support x86-64 instruction set
scons: Configure: no

Reproducible: Always

Steps to Reproduce:
1.emerge pouetchess on a 64-bit system
Actual Results:  
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) games-board/pouetchess-0.2.0-r1 to /
 * pouetchess_src_0.2.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...            [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking pouetchess_src_0.2.0.tar.gz ;-) ...                           [ ok ]
 * If you experience problems building pouetchess with nvidia drivers,
 * you can try:
 * eselect opengl set xorg-x11
 * emerge pouetchess
 * eselect opengl set nvidia
>>> Unpacking source...
>>> Unpacking pouetchess_src_0.2.0.tar.gz to /var/tmp/portage/games-board/pouetchess-0.2.0-r1/work
 * Applying pouetchess-0.2.0-sconstruct-sandbox.patch ...                 [ ok ]
 * Applying pouetchess-0.2.0-nvidia_glext.patch ...                       [ ok ]
 * Applying pouetchess-0.2.0-segfaults.patch ...                          [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/games-board/pouetchess-0.2.0-r1/work/pouetchess_src_0.2.0 ...
scons: Reading SConscript files ...

Now configuring.  If something fails, consult `config.log' for details.

Detected platform : linux
Checking gcc version... 4.2.4
profiling NOT enabled, debugging NOT enabled, level 1 optimizing enabled
Detecting processor...
Couldn't detect your CPU, guessing i686 compatible..
Checking for SDL...
  Checking for sdl-config... /usr/bin/sdl-config
  Checking for LibSDL >= 1.2.8... 1.2.13
Checking for C header file SDL.h... no
Checking for C header file SDL/SDL.h... no
Checking for C header file SDL11/SDL.h... no
LibSDL headers are required for this program
 * 
 * ERROR: games-board/pouetchess-0.2.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2344:  Called die
 * The specific snippet of code:
 *       scons configure strip=false prefix="${GAMES_PREFIX}" datadir="${GAMES_DATADIR}"/${PN} $(use debug && echo debug=1) || die "scons configure failed";
 *  The die message:
 *   scons configure failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/games-board/pouetchess-0.2.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-board/pouetchess-0.2.0-r1/temp/environment'.
 * 

 * Messages for package games-board/pouetchess-0.2.0-r1:

 * 
 * ERROR: games-board/pouetchess-0.2.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2344:  Called die
 * The specific snippet of code:
 *       scons configure strip=false prefix="${GAMES_PREFIX}" datadir="${GAMES_DATADIR}"/${PN} $(use debug && echo debug=1) || die "scons configure failed";
 *  The die message:
 *   scons configure failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/games-board/pouetchess-0.2.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-board/pouetchess-0.2.0-r1/temp/environment'.
 * 


Expected Results:  
success

Steve@vhled ~ $ emerge --info
Portage 2.2_rc1 (default/linux/amd64/2008.0/desktop, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.25-tuxonice-r5 x86_64)
=================================================================
System uname: Linux-2.6.25-tuxonice-r5-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-52-with-glibc2.2.5
Timestamp of tree: Sat, 28 Jun 2008 17:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -Os -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/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -msse3 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="nb_NO.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="nb nb_NO"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/desktop-effects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi adns alsa amd64 apm automount avahi bash-completion beagle berkdb bidi bluetooth branding bzip2 cairo cdda cdio cdr cli cracklib crypt cups cursors dav dbus device-mapper directfb disk-partition dri dts dvd dvdr dvdread eds emboss encode esd etc-proposals evo exif fam fastcgi fat fbcon fbcondecor fbsplash ffmpeg firefox flac flash fortran freetype fuse galago gcj gcrypt gdbm gdm gedit gif glitz gnome gnutls gpm gstreamer gtk hal hddtemp hfs httpd icons iconv inotify ipv6 isdnlog java jfs jpeg jpeg2k kerberos laptop ldap libburn libnotify live lm_sensors mad matroska mdnsresponder-compat midi mikmod mmx mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl nptlonly nsplugin ntfs ogg oggvorbis opengl openmp pam pcre pdf perl pmu png postgres ppds pppd python qt3support quicktime readline reflection reiser4 reiserfs samba sasl sdl session sms spell spl sqlite sqlite3 sse sse2 ssl startup-notification stream svg swat tcpd theora thunderbird tiff truetype unicode usb userpriv vcd vlm vorbis wifi wxwindows xcb xfs xine xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="dav" ELIBC="glibc" INPUT_DEVICES="keyboard evdev mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nb nb_NO" USERLAND="GNU" VIDEO_CARDS="fglrx fbdev radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Steve Pedersen 2008-06-30 04:47:34 UTC
Created attachment 158909 [details, diff]
Adds generic x86_64 support for pouetChess.

(My first patch)
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2008-06-30 06:08:43 UTC
Ug.  The code in there that tries to be cute and figure out the CXXFLAGS by looking at /proc/cpuinfo should be ditched althogether.  The users' CXXFLAGS should just be used directly.

I'd take a patch for that, but not more crap on top of the pile that's there already.
Comment 3 Steve Pedersen 2008-06-30 16:04:08 UTC
Actually, portage substitutes the CXXFLAGS after the configuration is complete.
This was just the least intrusive method (i could think of) to make configuration successful.

I guess i could write a patch which ditches the detection, but it would be a lot bigger..
Comment 4 Thomas Capricelli 2008-07-17 21:39:02 UTC
same problem here : the SDL.h is not found although present, and scons thinks i'm on x86, while i'm on ppc : 


......
Detecting processor...
Couldn't detect your CPU, guessing i686 compatible..
Checking for SDL...
  Checking for sdl-config... /usr/bin/sdl-config
  Checking for LibSDL >= 1.2.8... 1.2.13
Checking for C header file SDL.h... no
Checking for C header file SDL/SDL.h... no
Checking for C header file SDL11/SDL.h... no
LibSDL headers are required for this program
 *
 * ERROR: games-board/pouetchess-0.2.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2267:  Called die
 * The specific snippet of code:
 *       scons configure strip=false prefix="${GAMES_PREFIX}" datadir="${GAMES_DATADIR}"/${PN} $(use debug && echo debug=1) || die "scons configure failed";
 *  The die message:
 *   scons configure failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/games-board/pouetchess-0.2.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-board/pouetchess-0.2.0-r1/temp/environment'.
 *

 * Messages for package games-board/pouetchess-0.2.0-r1:

 *
 * ERROR: games-board/pouetchess-0.2.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2267:  Called die
 * The specific snippet of code:
 *       scons configure strip=false prefix="${GAMES_PREFIX}" datadir="${GAMES_DATADIR}"/${PN} $(use debug && echo debug=1) || die "scons configure failed";
 *  The die message:
 *   scons configure failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/games-board/pouetchess-0.2.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-board/pouetchess-0.2.0-r1/temp/environment'.
 *
colibri ~ # ls -l /usr/include/SDL/SDL.h
-rw-r--r-- 1 root root 3133 May 26 14:09 /usr/include/SDL/SDL.h

Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2008-07-17 21:52:34 UTC
resync and try it again without the silly cflags setting code being run.
Comment 6 Steve Pedersen 2008-07-18 10:38:12 UTC
Created attachment 160707 [details, diff]
truncates 'cute' cpu detection

It still won't obey my LDFLAGS, and it passes both CFLAGS & CXXFLAGS.
I'm just not good enough to crack all of this. (I might've tried if SCons was fully documented.. --And I didn't just become a dad!)
Please double-check, Mr. Bones.
Comment 7 Steve Pedersen 2008-07-18 10:41:37 UTC
Comment on attachment 160707 [details, diff]
truncates 'cute' cpu detection

It still won't obey my LDFLAGS, and it passes both CFLAGS & CXXFLAGS.
I'm just not good enough to crack all of this. (I might've tried if SCons was
fully documented.. -- And if I didn't just become a dad!)
Please double-check, Mr. Bones.
Comment 8 Tupone Alfredo gentoo-dev 2011-07-27 17:49:09 UTC
The problem has been fixed by mr_bones on 17-Jul-08