Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 66821

Summary: KDevelop 3.1.0 fails on PPC
Product: Gentoo Linux Reporter: Frank Hollenbach <frank.hollenbach>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fix for KDevelop to build on PPC machines

Description Frank Hollenbach 2004-10-08 16:17:13 UTC
KDevelop 3.1.0 Build failed with :
Making all in build_unix
make[3]: Entering directory `/var/tmp/portage/kdevelop-3.1.0/work/kdevelop-3.1.0/bdb/build_unix'
gcc -c -I. -I../.././bdb/dist/../include -D_REENTRANT  -D_GNU_SOURCE -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -O2 -mcpu=7400 -maltivec -mabi=altivec -pipe -Wformat-security -Wmissing-format-attribute -fPIC ../.././bdb/dist/../mutex/mut_tas.c
gcc -c -I. -I../.././bdb/dist/../include -D_REENTRANT  -D_GNU_SOURCE -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -O2 -mcpu=7400 -maltivec -mabi=altivec -pipe -Wformat-security -Wmissing-format-attribute -fPIC ../.././bdb/dist/../btree/bt_compare.c
gcc -c -I. -I../.././bdb/dist/../include -D_REENTRANT  -D_GNU_SOURCE -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -O2 -mcpu=7400 -maltivec -mabi=altivec -pipe -Wformat-security -Wmissing-format-attribute -fPIC ../.././bdb/dist/../btree/bt_conv.c
../.././bdb/dist/../mutex/mut_tas.c: In function `__db_tas_mutex_lock':
../.././bdb/dist/../mutex/mut_tas.c:108: error: `asm' undeclared (first use in this function)
../.././bdb/dist/../mutex/mut_tas.c:108: error: (Each undeclared identifier is reported only once
../.././bdb/dist/../mutex/mut_tas.c:108: error: for each function it appears in.)
../.././bdb/dist/../mutex/mut_tas.c:108: error: parse error before "volatile"
../.././bdb/dist/../mutex/mut_tas.c:108: warning: unused variable `__one'
../.././bdb/dist/../mutex/mut_tas.c:108: warning: unused variable `__l'
make[3]: *** [mut_tas.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/kdevelop-3.1.0/work/kdevelop-3.1.0/bdb/build_unix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdevelop-3.1.0/work/kdevelop-3.1.0/bdb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdevelop-3.1.0/work/kdevelop-3.1.0'
make: *** [all] Error 2

emerge info
Portage 2.0.51_rc7 (default-ppc-2004.1, gcc-3.4.1, glibc-2.3.4.20040808-r1, 2.6.7-gentoo-r7 ppc)
=================================================================
System uname: 2.6.7-gentoo-r7 ppc 7400, altivec supported
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.3-r3
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=7400 -maltivec -mabi=altivec -pipe"
CHOST="powerpc-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /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 -mcpu=7400 -maltivec -mabi=altivec -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mir.zyrianes.net/gentoo/ http://mir.zyrianes.net/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://www.gigaload.org/gentoo.org/ http://194.149.10.102/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://195.56.77.10/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apache arts berkdb cdr cups dvd esd f77 foomaticdb gdbm gif gnome-libs gpm gtk imlib jpeg kde libwww motif mozilla mysql nas nls oggvorbis ooo-kde opengl oss pam perl php php_mod png ppc ppds python qt readline ruby scanner sdlslang ssl tcpd truetype usb video_cards_ati128 linguas_de"
Comment 1 Andrew Coleman 2004-10-13 09:14:36 UTC
Created attachment 41734 [details, diff]
Fix for KDevelop to build on PPC machines

I have a similar problem with GCC 3.4.1. This patch should correct gcc's
expectation of inline assembly.
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2004-10-14 16:19:24 UTC

*** This bug has been marked as a duplicate of 61291 ***