Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58013 - kdevelop 3.1_beta2 fails to build on amd64 with gcc 3.4.1
Summary: kdevelop 3.1_beta2 fails to build on amd64 with gcc 3.4.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 58236 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-22 23:18 UTC by Andrew Williams
Modified: 2004-08-23 09:31 UTC (History)
3 users (show)

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


Attachments
3.1_beta2-mutex.h.diff (3.1_beta2-mutex.h.diff,656 bytes, patch)
2004-07-24 12:48 UTC, Alberto Garcia Hierro (Skyhusker)
Details | Diff
kdevelop-3.1_beta2.ebuild.diff (kdevelop-3.1_beta2.ebuild.diff,315 bytes, patch)
2004-07-24 12:52 UTC, Alberto Garcia Hierro (Skyhusker)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Williams 2004-07-22 23:18:31 UTC
It configures and starts to compile but fails almost immediately with errors. Since it's a beta should it be unmasked? 

Reproducible: Always
Steps to Reproduce:
1. emerge -u dev-util/kdevelop
2.
3.
Actual Results:  
Good - your configure finished. Start make now 
 
make  all-recursive 
make[1]: Entering directory 
`/data/port_tmp/portage/kdevelop-3.1_beta2/work/kdevelop-3.0.92' 
Making all in bdb 
make[2]: Entering directory 
`/data/port_tmp/portage/kdevelop-3.1_beta2/work/kdevelop-3.0.92/bdb' 
Making all in build_unix 
make[3]: Entering directory 
`/data/port_tmp/portage/kdevelop-3.1_beta2/work/kdevelop-3.0.92/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 
-march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args 
-fomit-frame-pointer -fweb -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 
-march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args 
-fomit-frame-pointer -fweb -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 
-march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args 
-fomit-frame-pointer -fweb -Wformat-security -Wmissing-format-attribute 
-fPIC ../.././bdb/dist/../btree/bt_conv.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 
-march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args 
-fomit-frame-pointer -fweb -Wformat-security -Wmissing-format-attribute 
-fPIC ../.././bdb/dist/../btree/bt_curadj.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 `__l' 
make[3]: *** [mut_tas.o] Error 1 
make[3]: *** Waiting for unfinished jobs.... 
make[3]: Leaving directory 
`/data/port_tmp/portage/kdevelop-3.1_beta2/work/kdevelop-3.0.92/bdb/build_unix' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory 
`/data/port_tmp/portage/kdevelop-3.1_beta2/work/kdevelop-3.0.92/bdb' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory 
`/data/port_tmp/portage/kdevelop-3.1_beta2/work/kdevelop-3.0.92' 
make: *** [all] Error 2 
 
!!! ERROR: dev-util/kdevelop-3.1_beta2 failed. 
!!! Function kde_src_compile, Line 129, Exitcode 2 
!!! died running emake, kde_src_compile:make 
 

Expected Results:  
compiled correctly 

Machine is an Athlon64 using Gentoo-dev-sources-2.6.7-r10 with 
ACCEPT_KEYWORDS="~amd64" 
 
emerge info: 
 
Portage 2.0.50-r9 (gcc34-amd64-2004.1, gcc-3.4.1, glibc-2.3.4.20040619-r0, 
2.6.7-gentoo-r10) 
================================================================= 
System uname: 2.6.7-gentoo-r10 x86_64 4 
Gentoo Base System version 1.5.1 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5-r1 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args 
-fomit-frame-pointer -fweb" 
CHOST="x86_64-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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 -march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args 
-fomit-frame-pointer -fweb" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache" 
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk 
http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/data/port_tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="X aalib alsa amd64 apache2 apm arts ati avi berkdb bonobo breakme cdr 
crypt cups dga dga2 doc dvd dvdr encode esd foomaticdb gdbm ggi gif gimpprint 
gnome gnome2 gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imap imlib jpeg kde 
ldap libg++ libwww maildir mikmod motif mozilla mpeg mysql nas ncurses nls 
oggvorbis opengl oss pam pdflib perl png python qt quicktime radeon readline 
sdl slang spell ssl tcltk tcpd tetex theora truetype unicode v4l v4l2 wmf xml 
xml2 xmms xv xvid zlib"
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2004-07-23 04:51:43 UTC
It's not unmasked - it's not hard masked. "~arch" means testing, hard masked means it is known to be broken. It compiles fine on my x86 hardware.

@aliz: Any chance you're intereseted to investigate here? The -fPIC patch from beta1 should apply, the other one isn't necessesary.
Comment 2 Alberto Garcia Hierro (Skyhusker) 2004-07-24 07:04:29 UTC
Fails on ppc as well.

Emerge info output:
fiam@americana 89% fiam $ emerge info
Portage 2.0.50-r9 (default-ppc-2004.1, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 ppc 7455, altivec supported
Gentoo Base System version 1.5.1
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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 -pipe -mcpu=7450 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache fixpackages"
GENTOO_MIRRORS="http://ftp.caliu.info/pub/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.232.1/portage"
USE="X aalib alsa altivec arts berkdb cdr crypt cscope cups dga dvd encode fbcon flash foomaticdb gd gdbm gif gphoto2 gpm gtk gtk2 imagemagick imap imlib innodb ipv6 java javascript joystick jpeg kde lcms libwww linguas_es mad maildir mitshm motif mpeg ncurses net nls oggvorbis opengl oss pam perl png ppc python qt radeon readline ruby samba sdl slang socks5 spell ssl tcpd tetex tiff truetype usb vim-with-x xml xml2 xv xvid zlib"
Comment 3 Alberto Garcia Hierro (Skyhusker) 2004-07-24 12:48:00 UTC
Created attachment 36088 [details, diff]
3.1_beta2-mutex.h.diff

This patch fixes the problem with mutex.c. Works fine on my pcc and should work
on amd64 aswell, but I can't test it. So please, try it as soon as possible. It
shouldn't hurt other arches, since #define directives prevent the patch code to
be used in them.
Comment 4 Alberto Garcia Hierro (Skyhusker) 2004-07-24 12:52:19 UTC
Created attachment 36090 [details, diff]
kdevelop-3.1_beta2.ebuild.diff

This patch against the ebuild adds 
"epatch ${FILESDIR}/kdevelop-3.1_beta2.ebuild.diff" inconditionally.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2004-07-24 14:53:38 UTC
applied; a little feedback would be fine as I have only x86 hardware
Comment 6 Andrew Williams 2004-07-24 23:40:36 UTC
Works fine on my amd64 now - thanks very much.

Should be hard masked though, since it depends on KDE 3.3 beta. It's not a new release for testing - it's a beta for goodness sake. Every other KDE prerelease has been hard masked.
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2004-07-25 05:29:53 UTC
It doesn't depend on KDE 3.3, Andrew (e.g kdepim and kdewebdev 3.3 would work wih KDE 3.2 too, if the currently used kde-dist.eclass wouldn't disallow it btw.). Masking kde-base/* stuff makes sense, because we would get too much bug reports, but when you don't use the stable tree, you should know that you can run into problems. Since KDE 3.3 is not far away from going stable (Wednesday August 18th, 2004: Targeted Release date), it makes sense to widen the testing audience, imho.
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2004-07-25 05:35:51 UTC
*** Bug 58236 has been marked as a duplicate of this bug. ***
Comment 9 Andreas Pokorny 2004-07-26 09:03:23 UTC
I am on amd64 - i applied the changes discribed in the patches and the build succeeded.

When starting kdevelop i get this output on stdout:

QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
kbuildsycoca running...
ICE default IO error handler doing an exit(), pid = 24651, errno = 0
Connecting kdevelop-24657/KDevCore/projectClosed()
PyDCOP connect kdevelop-24657/KDevCore/projectClosed()/f1() has result true
Connecting kdevelop-24657/KDevCore/projectOpened()
PyDCOP connect kdevelop-24657/KDevCore/projectOpened()/f2() has result true
QObject::connect: No such slot subversionPart::slotActionAdd()
QObject::connect:  (sender name:   'subversion_add')
QObject::connect:  (receiver name: 'Subversion')
QObject::connect: No such slot subversionPart::slotActionRemove()
QObject::connect:  (sender name:   'subversion_remove')
QObject::connect:  (receiver name: 'Subversion')
QObject::connect: No such slot subversionPart::slotActionAddToIgnoreList()
QObject::connect:  (sender name:   'subversion_ignore')
QObject::connect:  (receiver name: 'Subversion')
QObject::connect: No such slot subversionPart::slotActionRemoveFromIgnoreList()
QObject::connect:  (sender name:   'subversion_donot_ignore')
QObject::connect:  (receiver name: 'Subversion')
QObject::connect: No such slot subversionPart::slotStopButtonClicked(KDevPlugin*)
QObject::connect:  (sender name:   'unnamed')
QObject::connect:  (receiver name: 'Subversion')
kdevelop: symbol lookup error: /usr/lib/kde3/libkdevdoctreeview.so: undefined symbol: _ZN17ConfigWidgetProxy22createGlobalConfigPageERK7QStringj

The application dies after the splash screen appeared.

I still have kdevelop-3.0.4 and kde-3.2 installed next to the current kde-3.3_beta stuff. 
Comment 10 Andreas Pokorny 2004-07-26 10:20:58 UTC
The Problem is gone .. i somehow did not emerge kdevelop completely.. 
so i overlooked the update of the new kdevelop rc file. After running etc-update the application works
Comment 11 Malcolm Lashley (RETIRED) gentoo-dev 2004-08-06 14:43:05 UTC
Carsten, Works for me on amd64 (tested with hello.c project)
Comment 12 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-06 15:00:35 UTC
:)
Comment 13 Benjamin Schindler (RETIRED) gentoo-dev 2004-08-23 00:44:47 UTC
This patch is required for kdevelop-3.1.0 final too. It wouldn't compile on amd64 otherwise.
Comment 14 Alberto Garcia Hierro (Skyhusker) 2004-08-23 09:31:01 UTC
Please, don't reuse closed bugs. I've already reported this issue again, take a look at bug 61291