Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77091 - games-util/loki_setupdb: emerge fails due to bad ${ARCH} on amd64
Summary: games-util/loki_setupdb: emerge fails due to bad ${ARCH} on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-07 17:18 UTC by Richard W Doe
Modified: 2005-01-09 07:07 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard W Doe 2005-01-07 17:18:33 UTC
Running `emerge loki_setupdb` on an amd64 system fails in src_compile() with this output:


creating Makefile
creating config.h
Makefile:34: warning: overriding commands for target `AMD'
Makefile:31: warning: ignoring old commands for target `AMD'
Makefile:34: warning: overriding commands for target `Athlon(tm)'
Makefile:31: warning: ignoring old commands for target `Athlon(tm)'
Makefile:34: warning: overriding commands for target `64'
Makefile:31: warning: ignoring old commands for target `64'
Makefile:34: warning: overriding commands for target `Processor'
Makefile:31: warning: ignoring old commands for target `Processor'
Makefile:37: warning: overriding commands for target `AMD'
Makefile:34: warning: ignoring old commands for target `AMD'
Makefile:37: warning: overriding commands for target `Athlon(tm)'
Makefile:34: warning: ignoring old commands for target `Athlon(tm)'
Makefile:37: warning: overriding commands for target `64'
Makefile:34: warning: ignoring old commands for target `64'
Makefile:37: warning: overriding commands for target `Processor'
Makefile:34: warning: ignoring old commands for target `Processor'
make: Circular AMD <- AMD dependency dropped.
make: Circular Athlon(tm) <- AMD dependency dropped.
make: Circular Athlon(tm) <- Athlon(tm) dependency dropped.
make: Circular 64 <- AMD dependency dropped.
make: Circular 64 <- Athlon(tm) dependency dropped.
make: Circular 64 <- 64 dependency dropped.
make: Circular Processor <- AMD dependency dropped.
make: Circular Processor <- Athlon(tm) dependency dropped.
make: Circular Processor <- 64 dependency dropped.
make: Circular Processor <- Processor dependency dropped.
mkdir AMD Athlon(tm) 64 Processor 3000+
/bin/sh: -c: line 1: syntax error near unexpected token `('
/bin/sh: -c: line 1: `mkdir AMD Athlon(tm) 64 Processor 3000+'
make: Circular Processor <- AMD dependency dropped.
make: Circular Processor <- Athlon(tm) dependency dropped.
make: Circular Processor <- 64 dependency dropped.
make: Circular Processor <- Processor dependency dropped.
make: *** [3000+] Error 2


This appears to be a problem in the makefile from the CVS, which doesn't explicitly detect amd64 architecture and resorts to setting the ARCH variable to the output of `uname -p` which on my system is "AMD Athlon(tm) 64 Processor 3000+".

Should this package be marked -amd64?

Reproducible: Always
Steps to Reproduce:





Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5,sys-devel/autoconf-2.13
Automake:
sys-devel/automake-1.8.5-r1,sys-devel/automake-1.8.5-r2,sys-devel/automake-1.4_p6,sys-devel/automake-1.6.3,sys-devel/automake-1.7.9,sys-devel/automake-1.9.3
Binutils: sys-devel/binutils-2.15.92.0.2-r1,sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r2
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon64 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa apache2 avi berkdb bitmap-fonts cd cdr crypt cups
divx4linux doc dvd dvdr evo f77 fam flac foomaticdb fortran gd gdbm gif gnome
gphoto2 gpm gstreamer gtk gtk2 imap imlib ipv6 java jp2 jpeg junit ldap libwww
lzw lzw-tiff mad mikmod motif mozilla mpeg multilib mysql mysqli ncurses nls
oggvorbis opengl pam pdflib perl php png ppds python readline ruby samba sdl
slang ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userlocales
xml xml2 xmms xpm xrandr xv xvid zlib"
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2005-01-09 07:07:46 UTC
Alright, I created a new version of loki_setupdb from today's CVS, then created an amd64 patch.  Sicne the patch only affects amd64, I am taking it straight to stable, as it will work on the other arches identically.  I have also submitted the patch to icculus.org's bugzilla, so hopefully, it'll get added to loki_setupdb upstream.