Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81236 - kdelibs-3.3.2-r2 tries to use --enable-fast-malloc=full on amd64, build fails
Summary: kdelibs-3.3.2-r2 tries to use --enable-fast-malloc=full on amd64, build fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-08 07:43 UTC by Werner Almesberger
Modified: 2005-08-15 02:55 UTC (History)
0 users

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


Attachments
amd64-fast-malloc.patch (amd64-fast-malloc.patch,624 bytes, patch)
2005-02-08 13:10 UTC, Gregorio Guidi (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Werner Almesberger 2005-02-08 07:43:45 UTC
When trying to emerge kdelibs-3.3.2-r2 on my amd64, configure fails with
configure: error: Fast malloc is not supported on this platform (missing spinlock implementation).
The culprit seems to be the .ebuild file, which sets --enable-fast-malloc=full on
x86. This conflicts with a check in "configure.in", which only allows this option
for i?86.

Reproducible: Always
Steps to Reproduce:
1. emerge -uD kdebase
2.
3.
Actual Results:  
configure: error: Fast malloc is not supported on this platform (missing spinlock 
implementation). 
 

Expected Results:  
It shouldn't have tried to use fast malloc :-)  

Commenting out the line    
use x86 && myconf="$myconf --enable-fast-malloc=full"    
in the ebuild yields a successful build.
Comment 1 Simone Gotti (RETIRED) gentoo-dev 2005-02-08 08:06:03 UTC
Assigning to amd64 herd.

As none reported this problem before I suppose that that option worked on all the AMD64 systems that installed kde.
Comment 2 Werner Almesberger 2005-02-08 08:11:29 UTC
What makes this even more confusing is that this has been around for a
while. Perhaps "use x86" should yield "false" on amd64, but doesn't for
some reason ?
Comment 3 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-08 09:57:56 UTC
What's your 'emerge info'?
Comment 4 Werner Almesberger 2005-02-08 11:20:54 UTC
"emerge info", env, /etc/make.conf, and /etc/make.profile/make.defaults:

-------------------------------------------------------------------------------------------
# emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10 x86_64)
=================================================================
System uname: 2.6.10 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 04:37:12)]
distcc 2.16 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.7.9-r1, 1.6.3, 1.9.4, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://ftp.iasi.roedu.net/mirrors/gentoo.org/ http://gentoo.math.bme.hu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X apm arts avi berkdb bitmap-fonts cdr crypt cups encode esd f77 fam font-server foomaticdb fortran gdbm gif gnome gphoto2 gpm gtk gtk2 imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png python qt quicktime readline sdl slang spell ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

-------------------------------------------------------------------------------------------
#  env | sort
ABISS_AT_DIR=/mnt/h/philips/cvs/src/tests/AT
ABISS_KERNEL=/mnt/h/philips/cvs/src/kernel
ABISS_KSRC=/mnt/h/philips/linux-2.6.10
ABISS_LIB_PATH=/mnt/h/philips/cvs/lib
ABISS_MOUNT_POINT=/mnt/fat
ABISS_PREFIX=/mnt/h/philips/cvs
ABISS_SRC=/mnt/h/philips/cvs/src
ABISS_TESTS=/mnt/h/philips/cvs/src/tests
ABISS_TOOLS=/mnt/h/philips/cvs/src/tools
AUTO_SYMLINK=no
BASE=/root/FSFramework
CLASSPATH=.
CONFIG_PROTECT=/usr/lib/X11/xkb /usr/kde/3.3/share/config /usr/kde/3.3/env /usr/kde/3.3/shutdown /usr/kde/3.2/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/xdvi/ /usr/share/config
CONFIG_PROTECT_MASK=/etc/gconf /etc/terminfo
CVSROOT=:ext:...removed...
CVS_RSH=ssh
DCCC_PATH=/usr/lib/distcc/bin
DISPLAY=localhost:13.0
DISTCC_LOG=
DISTCC_VERBOSE=0
EDITOR=/usr/bin/vim
GCC_SPECS=
GDK_USE_XFT=1
G_BROKEN_FILENAMES=1
HOME=/root
HOSTNAME=cs
INFODIR=/usr/share/info
INFOPATH=/usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.3.5/info
INPUTRC=/etc/inputrc
JAVAC=/opt/blackdown-jdk-1.4.2.01/bin/javac
JAVA_HOME=/opt/blackdown-jdk-1.4.2.01
JDK_HOME=/opt/blackdown-jdk-1.4.2.01
KBUILD_OUTPUT_PREFIX=
KDEDIR=/usr/kde/3.3
KDEDIRS=/usr
KDE_MALLOC=1
LD_LIBRARY_PATH=/mnt/h/philips/cvs/lib
LESS=-R
LESSOPEN=|lesspipe.sh %s
LIBGL_DRIVERS_PATH=/usr/lib/modules/dri
LINUX_PORTAGE_WRITABLE=no
LOGNAME=root
MAIL=/var/mail/root
MANPATH=/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.3.5/man:/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.3.5/man::/opt/blackdown-jdk-1.4.2.01/man:/usr/qt/3/doc/man:/opt/blackdown-jdk-1.4.2.01/man:/usr/qt/3/doc/man
MPAGE=-bLetter
MY_ABISS_KERNELS=/mnt/h/philips
MY_ABISS_PREFIX=/mnt/h/philips/cvs
PAGER=/usr/bin/less
PATH=/root/bin:/usr/local/bin:/usr/lib/ccache/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/3.3.5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin:/usr/kde/3.2/sbin:/usr/kde/3.2/bin:/mnt/h/philips/cvs/bin:/mnt/h/philips/cvs/src/tools/flog
PS1=\h-64:\w\$ 
PWD=/root
QMAKESPEC=linux-g++
QTDIR=/usr/qt/3
REMOTEHOST=gw
RLINUX_UML_KERNEL=/mnt/h/philips/linux-2.6.10/vmlinux
SHELL=/bin/bash
SHLVL=1
SSH_CLIENT=10.0.0.1 56599 22
SSH_CONNECTION=10.0.0.1 56599 10.0.0.6 22
SSH_TTY=/dev/pts/7
TERM=vt100
USER=root
XINITRC=/etc/X11/xinit/xinitrc
_=/bin/env
wherever=/mnt/2/k/

-------------------------------------------------------------------------------------------
# cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built this stage
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
USE="-svga"
CXXFLAGS="${CFLAGS}"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://ftp.iasi.roedu.net/mirrors/gentoo.org/ http://gentoo.math.bme.hu"

-------------------------------------------------------------------------------------------
# cat /etc/make.profile/make.defaults 
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/x86/2004.3/make.defaults,v 1.10 2005/01/19 03:43:48 vapier Exp $

GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb ncurses"

USE="oss apm arts avi berkdb bitmap-fonts crypt cups encode fortran f77 font-server foomaticdb gdbm gif gpm gtk gtk2 imlib jpeg kde gnome libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl pam pdflib png python qt quicktime readline sdl spell ssl svga tcpd truetype truetype-fonts type1-fonts X xml2 xmms xv zlib"
Comment 5 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-08 12:20:45 UTC
Do we support running a x86 profile on a amd64 processor?
Comment 6 Simon Stelling (RETIRED) gentoo-dev 2005-02-08 12:33:03 UTC
no. but if you mean a amd64 box in x86 box, yes, but then it's no longer amd64 arch.
Comment 7 Danny van Dyk (RETIRED) gentoo-dev 2005-02-08 12:45:12 UTC
This is simply no amd64 problem, sorry guys.
Reassigning to KDE herd.
Comment 8 Werner Almesberger 2005-02-08 12:54:41 UTC
Regarding ia32 on amd64:
On my amd64 systems, I also have an ia32 installation, accessed through
linux32 chroot ... The 32 and 64 bit worlds share /usr/portage, /tmp, /root,
and /home locally and all of my systems share /usr/portage through NFS.
I always boot amd64 natively.
Comment 9 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-08 13:10:51 UTC
Created attachment 50778 [details, diff]
amd64-fast-malloc.patch

I don't think I have grasped what we should do.
Maybe something like the attached patch?
I leave it to someone that knows more than me to send the patch upstream in 
case.
Comment 10 Werner Almesberger 2005-02-08 17:11:20 UTC
Gregorio, if I've figured out the use of ebuild correctly, this patch did
indeed yield a successful build, and I could run konqueror using the
new libraries. Thanks !
Comment 11 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-17 03:02:22 UTC
If you're not having any problem with the patch, could you please report it
to http://bugs.kde.org so that they can properly evaulate it?
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-15 02:55:27 UTC
Closing as invalid: when you run an x86 profile on an amd64 box, you must set  
the CHOST as it was an i686 box.