Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116998 - gnubg-0.14.3 fails to emerge in amd64
Summary: gnubg-0.14.3 fails to emerge in amd64
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High blocker (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-28 08:39 UTC by playmiac
Modified: 2006-02-12 05:02 UTC (History)
0 users

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


Attachments
neuralnet_amd64_atlas_include.patch (neuralnet_amd64_atlas_include.patch,285 bytes, patch)
2006-02-12 05:02 UTC, playmiac
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description playmiac 2005-12-28 08:39:45 UTC
I tried to test gnubg in amd64 but gnubg-0.14.3 fails to emerge - solution for bug 112820 does not help

error:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -march=k8 -pipe -O2 -fomit-frame-pointer -I/usr/include/FTGL -I/usr/include/freetype2 -c `test -f 'mt19937ar.c' || echo './'`mt19937ar.c
neuralnet.c:41:2: warning: #warning "LIBATLAS processing..."
neuralnet.c:42:19: cblas.h: No such file or directory
neuralnet.c: In function `NeuralNetCreateDirect':
neuralnet.c:389: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:390: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:391: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:392: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:394: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:395: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:406: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:408: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:410: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:412: warning: use of cast expressions as lvalues is deprecated
neuralnet.c: In function `Evaluate':
neuralnet.c:503: error: `CblasColMajor' undeclared (first use in this function)
neuralnet.c:503: error: (Each undeclared identifier is reported only once
neuralnet.c:503: error: for each function it appears in.)
neuralnet.c:503: error: `CblasNoTrans' undeclared (first use in this function)
neuralnet.c:524: error: `CblasRowMajor' undeclared (first use in this function)
neuralnet.c: In function `EvaluateFromBase':
neuralnet.c:604: error: `CblasColMajor' undeclared (first use in this function)
neuralnet.c:604: error: `CblasNoTrans' undeclared (first use in this function)
neuralnet.c:620: error: `CblasRowMajor' undeclared (first use in this function)
make[2]: *** [neuralnet.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gnubg-0.14.3/work/gnubg-0.14.3/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnubg-0.14.3/work/gnubg-0.14.3'
make: *** [all] Error 2

!!! ERROR: games-board/gnubg-0.14.3 failed.
!!! Function src_compile, Line 94, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

There are (at least) two separate issues:
1) for some reason cblas.h is not found although it exists in /usr/include/atlas/cblas.h
but even with whole LIBATLAS section cut out from neuralnet.c
2) the undeclared functions in neuralnet.c cause build to fail


emerge info
Portage 2.1_pre2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.6-r0, 2.6.14-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre12
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/alias /var/qmail/control /var/run/dspam /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.mirror.solnet.ch http://mirror.ovh.net/gentoo-distfiles/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.inf.elte.hu/ http://mirror.uni-c.dk/pub/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.pudas.net/gentoo ftp://ftp.solnet.ch/mirror/Gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aac acl alsa amd64 apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cdr crypt cscope cups curl directfb dv dvd dvdr dvdread eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm geoip gif glut gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal idn imagemagick imlib ipv6 jack java jpeg junit kde lcms ldap libwww lua lzw lzw-tiff mad mhash mikmod mng motif mozilla mp3 mpeg mysql ncurses nls nptl nvidia odbc ogg openal opengl pam pcre pdflib perl php plotutils png postgres python qt quicktime readline recode ruby scanner sdl slang snmp speex spell sqlite ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis xine xml xml2 xmms xpm xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-28 08:45:17 UTC
It's specifically keyworded -amd64 (i.e. - does not work on amd64 at all). I don't see why you are filing a bug, let alone a blocker one.
Comment 2 playmiac 2005-12-28 08:59:48 UTC
I did not find any bugs related to why gnubg is not working on amd64, that's why I tested it. If nobody tries, no new software will appear to amd64 arch.

Why rate it as blocker - definition from bugzilla:
Blocker  	Blocks development and/or testing work
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2005-12-30 08:26:02 UTC
Anything that is specifically -arch means it has been tested by the developers (us) and proven to be lacking enough to warrant not fixing it.
Comment 4 ta2002 2006-02-05 07:17:50 UTC
I don't know if this will help anybody or not, but I wanted to
try to put gnubg on my amd64. First, I just downloaded the
source, and it seemed to compile and start, so then I added
"-amd64" to /etc/portage/package.keywords. I then emerged it,
and it compiled and installed without any complaints. Then I
started it, and tested it for several hours, and everything
appeared to work perfectly.

Some info:

[...]
checking for stdint.h... yes
checking for unistd.h... yes
checking cblas.h usability... no
checking cblas.h presence... no
checking for cblas.h... no
checking for ATL_buildinfo in -latlas... no
checking for cblas_sgemm in -lcblas... no
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
[...]
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -march=k8 -O3 -pipe -msse2 -mfpmath=sse -c `test -f 'heap.c' || echo './'`heap.c
source='list.c' object='list.o' libtool=no \
depfile='.deps/list.Po' tmpdepfile='.deps/list.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -march=k8 -O3 -pipe -msse2 -mfpmath=sse -c `test -f 'list.c' || echo './'`list.c
source='neuralnet.c' object='neuralnet.o' libtool=no \
depfile='.deps/neuralnet.Po' tmpdepfile='.deps/neuralnet.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -march=k8 -O3 -pipe -msse2 -mfpmath=sse -c `test -f 'neuralnet.c' || echo './'`neural
net.c
neuralnet.c: In function `NeuralNetCreateDirect':
neuralnet.c:389: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:390: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:391: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:392: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:394: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:395: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:406: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:408: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:410: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:412: warning: use of cast expressions as lvalues is deprecated
source='mt19937ar.c' object='mt19937ar.o' libtool=no \
depfile='.deps/mt19937ar.Po' tmpdepfile='.deps/mt19937ar.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -march=k8 -O3 -pipe -msse2 -mfpmath=sse -c `test -f 'mt19937ar.c' || echo './'`mt1993
7ar.c
source='isaac.c' object='isaac.o' libtool=no \
[...]

$ emerge -p info
Portage 2.0.54 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe -msse2 -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -pipe -msse2 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_NZ.UTF-8"
LINGUAS="en ru"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib acpi alsa apache2 arts audiofile avi berkdb bitmap-fonts bzip2 caps cdparanoia cdr cjk crypt css cups dga directfb divx4linux dvd dvdr emboss encode exif expat faad fam fbcon ffmpeg flac freetype gd ggi gif gmp gphoto2 gpm gstreamer gtk2 idea idn imagemagick imap imlib ipv6 javascript jikes joystick jpeg kde lcms libcaca libwww live lm_sensors lzw lzw-tiff mad matroska mbox memlimit mng motif mp3 mpeg mpi mysql nas ncurses network nls nptl nptlonly ogg opengl pcre pdflib perl png ppds qt quicktime readline real rtc samba scanner sdl silc speex spell ssl tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 vcd vorbis wifi xinerama xml2 xmms xpm xv xvid zlib linguas_en linguas_ru userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS
Comment 5 playmiac 2006-02-07 06:20:33 UTC
(In reply to comment #3)
> Anything that is specifically -arch means it has been tested by the developers
> (us) and proven to be lacking enough to warrant not fixing it.

But this specifically developer added -arch is not readily visible in packages-gentoo.org, all non-supported are just (gray)-. See for example http://packages.gentoo.org/search/?sstring=gnubg.
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2006-02-07 06:52:28 UTC
It doesn't really matter how it shows up on packages.gentoo.org so much as what is in the ebuild.  There's really no point in discussing this.  Now, if you think that packages.gentoo.org should have some method of showing that a package is specifically -arch or masked on a specific architecture, then I think you should file a bug against that site.
Comment 7 playmiac 2006-02-11 10:23:56 UTC
I agree on the no point discussing such trivialities. I haven't been the one wanting to start a flame for this, just tell why this bug was filed (as challenged in comment #1). I agree I am only a n00b+ with gentoo amd64 and that it was very stupid not to look the ebuild directly while relying on packages.gentoo.org search results, but this was the first time I encountered a -arch case. So f..k me, thank you very much.

However, to the main point. Gnubg does not compile cleanly in amd64 in all cases. I would still want to find out why gnubg has been marked -amd64 while it appears that it works out of the box in some cases - like in comment #4. A comment like "proven to be lacking enough to warrant not fixing it" is not very helpful, is it? Isn't voluntary testing and sharing information the strenght of open source development or have I understood something terribly wrong?
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2006-02-11 11:19:44 UTC
No, you haven't...

...and as soon as you "share" the patch to resolve the compilation problems, we'll gladly add it and submit it upstream.  ;]

We do not have the manpower to fix every single application that is broken on every architecture, so we choose to focus on important packages that affect multiple people.  Now, if you really want this "fixed", then you're going to need to do the leg work.  We aren't interested in spending the time necessary.
Comment 9 playmiac 2006-02-12 01:46:24 UTC
That's what I am trying to do. But I also have a paying job to do, so I wouldn't like to waste my time doing something someone else has already tried and failed without knowing what and why. So is anyone aware if someone did actually document the reasons for -amd64 or was it just "it does not compile cleanly out of the box, let's make it -arch". 
Comment 10 playmiac 2006-02-12 05:02:36 UTC
Created attachment 79563 [details, diff]
neuralnet_amd64_atlas_include.patch

Patch to resolve the compile problem described in the beginning of this bug. Problem is ATLAS, for some probably blas-atlas related installation problem the include needs 'atlas/' to point the right header file.

It segfaults now, so once more: Could anyone guide me where to find reasons for -amd64?