Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107218 (enable-final-cflags) - kcheckpass-3.5_beta1 fails
Summary: kcheckpass-3.5_beta1 fails
Status: RESOLVED FIXED
Alias: enable-final-cflags
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL: http://bugs.kde.org/show_bug.cgi?id=1...
Whiteboard:
Keywords:
: 107420 109826 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-25 15:25 UTC by Neil Bothwick
Modified: 2005-10-20 04:06 UTC (History)
4 users (show)

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


Attachments
emerge log (7482-kcheckpass-3.5_beta1.log,23.00 KB, text/plain)
2005-09-25 15:27 UTC, Neil Bothwick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Bothwick 2005-09-25 15:25:42 UTC
kcheckpass will not emerge on my AMD64 box. This package is a dependency of 
kdesktop. It is described as a 'KDE pam client' yet I have -pam in USE, so why 
is it even required? 
 

Reproducible: Always
Steps to Reproduce:
1. emerge kcheckpass  
2.  
3.  
  
Actual Results:  
make  all-recursive 
make[1]: Entering directory 
`/mnt/scratch/portage/kcheckpass-3.5_beta1/work/kcheckpass-3.5_beta1' 
Making all in kcheckpass 
make[2]: Entering directory 
`/mnt/scratch/portage/kcheckpass-3.5_beta1/work/kcheckpass-3.5_beta1/kcheckpass' 
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include 
-I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -std=iso9899:1990 
-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes 
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -march=athlon64 
-O2 -pipe -fomit-frame-pointer -funit-at-a-time -Wformat-security 
-Wmissing-format-attribute -c `test -f 'kcheckpass.c' || echo './'`kcheckpass.c 
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include 
-I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -std=iso9899:1990 
-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes 
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -march=athlon64 
-O2 -pipe -fomit-frame-pointer -funit-at-a-time -Wformat-security 
-Wmissing-format-attribute -c `test -f 'checkpass_etcpasswd.c' || echo 
'./'`checkpass_etcpasswd.c 
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include 
-I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -std=iso9899:1990 
-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes 
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -march=athlon64 
-O2 -pipe -fomit-frame-pointer -funit-at-a-time -Wformat-security 
-Wmissing-format-attribute -c `test -f 'checkpass_pam.c' || echo 
'./'`checkpass_pam.c 
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include 
-I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -std=iso9899:1990 
-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes 
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -march=athlon64 
-O2 -pipe -fomit-frame-pointer -funit-at-a-time -Wformat-security 
-Wmissing-format-attribute -c `test -f 'checkpass_shadow.c' || echo 
'./'`checkpass_shadow.c 
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include 
-I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -std=iso9899:1990 
-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes 
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -march=athlon64 
-O2 -pipe -fomit-frame-pointer -funit-at-a-time -Wformat-security 
-Wmissing-format-attribute -c `test -f 'checkpass_osfc2passwd.c' || echo 
'./'`checkpass_osfc2passwd.c 
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include 
-I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -std=iso9899:1990 
-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes 
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -march=athlon64 
-O2 -pipe -fomit-frame-pointer -funit-at-a-time -Wformat-security 
-Wmissing-format-attribute -c `test -f 'checkpass_aix.c' || echo 
'./'`checkpass_aix.c 
/bin/sh ../libtool --silent --mode=link x86_64-pc-linux-gnu-gcc  
-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith 
-Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG 
-O2  -march=athlon64 -O2 -pipe -fomit-frame-pointer -funit-at-a-time 
-Wformat-security -Wmissing-format-attribute  -Wl,-O1 -o kcheckpass -pie 
-L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64    kcheckpass.o 
checkpass_etcpasswd.o checkpass_pam.o checkpass_shadow.o 
checkpass_osfc2passwd.o checkpass_aix.o  -lkdefakes -lcrypt 
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: 
kcheckpass.o: relocation R_X86_64_32 against `a local symbol' can not be used 
when making a shared object; recompile with -fPIC 
kcheckpass.o: could not read symbols: Bad value 
collect2: ld returned 1 exit status 
make[2]: *** [kcheckpass] Error 1 
make[2]: Leaving directory 
`/mnt/scratch/portage/kcheckpass-3.5_beta1/work/kcheckpass-3.5_beta1/kcheckpass' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory 
`/mnt/scratch/portage/kcheckpass-3.5_beta1/work/kcheckpass-3.5_beta1' 
make: *** [all] Error 2 
 
!!! ERROR: kde-base/kcheckpass-3.5_beta1 failed. 
!!! Function kde_src_compile, Line 170, Exitcode 2 
!!! died running emake, kde_src_compile:make 
!!! If you need support, post the topmost build error, NOT this status message. 
 
 


Portage 2.0.52-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 
2.6.13-gentoo-r2 x86_64) 
================================================================= 
System uname: 2.6.13-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3200+ 
Gentoo Base System version 1.12.0_pre8 
ccache version 2.4 [enabled] 
dev-lang/python:     2.4.1-r1 
sys-apps/sandbox:    1.2.13 
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 
sys-devel/binutils:  2.16.1 
sys-devel/libtool:   1.5.20 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -funit-at-a-time" 
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.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/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -funit-at-a-time" 
DISTDIR="/mnt/portage/distfiles" 
FEATURES="autoconfig buildpkg ccache distlocks parallel-fetch sandbox sfperms 
strict" 
GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/ 
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ 
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/ 
ftp://ftp.easynet.nl/mirror/gentoo/" 
LANG="en_GB" 
LDFLAGS="-Wl,-O1" 
LINGUAS="en_GB" 
MAKEOPTS="-j3" 
PKGDIR="/mnt/portage/packages/hactar" 
PORTAGE_TMPDIR="/mnt/scratch" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/mnt/portage/local" 
SYNC="rsync://desiato/gentoo" 
USE="amd64 X aalib alsa apache2 arts artswrappersuid avi berkdb bitmap-fonts 
bonobo cddb cdr crypt cups curl directfb dv dvd dvdr dvdread emboss encode fam 
flac foomaticdb fortran gd gdbm gif gimpprint gphoto2 gpm gstreamer gtk gtk2 
gtkhtml guile hal ieee1394 imagemagick imlib jabber java jbig jpeg jpeg2k kde 
kdeenablefinal lesstif libwww lirc lm_sensors lzw lzw-tiff mad mailwrapper 
mikmod mozilla mp3 mpeg mysql ncurses nptl nptlonly nsplugin offensive ogg 
oggvorbis opengl oss pdflib perl pic png ppds python qt quicktime readline 
samba scanner sdl slang spell sqlite ssl tcltk tcpd tetex theora tiff truetype 
truetype-fonts type1-fonts usb userlocales vorbis xfs xml xml2 xmms xpm xprint 
xv xvid zlib video_cards_nvidia linguas_en_GB userland_GNU kernel_linux 
elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LC_ALL
Comment 1 Neil Bothwick 2005-09-25 15:27:53 UTC
Created attachment 69237 [details]
emerge log
Comment 2 Georges Toth 2005-09-28 12:44:47 UTC
Same for me  
Comment 3 Christian Malerbakken 2005-09-28 15:25:03 UTC
Confirmed.
Getting the exact same error:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/
usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -std=iso9899:1990 -W -
Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-
strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -march=athlon64 -O2 -
pipe -fomit-frame-pointer -msse3 -ffast-math -Wformat-security -Wmissing-format-
attribute -c `test -f 'checkpass_aix.c' || echo './'`checkpass_aix.c
/bin/sh ../libtool --silent --mode=link x86_64-pc-linux-gnu-gcc  -std=iso9899:
1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -
Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -march=athlon64 -
O2 -pipe -fomit-frame-pointer -msse3 -ffast-math -Wformat-security -Wmissing-
format-attribute   -o kcheckpass -pie -L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/
usr/lib64   kcheckpass.o checkpass_etcpasswd.o checkpass_pam.o checkpass_shadow.
o checkpass_osfc2passwd.o checkpass_aix.o  -lkdefakes -lpam -ldl 
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: 
kcheckpass.o: relocation R_X86_64_32 against `a local symbol' can not be used 
when making a shared object; recompile with -fPIC
kcheckpass.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [kcheckpass] Error 1
make[2]: Leaving directory `/var/tmp/portage/kcheckpass-3.5_beta1/work/
kcheckpass-3.5_beta1/kcheckpass'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kcheckpass-3.5_beta1/work/
kcheckpass-3.5_beta1'
make: *** [all] Error 2

on this system:
Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.
6.13-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
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
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3 -ffast-math"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /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/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="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3 -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.gentoo.no http://distfiles.gentoo.org http://www.
ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.no/gentoo-portage"
USE="amd64 X a52 aalib acpi alsa audiofile avi berkdb bitmap-fonts bzip2 cdr 
crypt cups curl dbus dvd dvdr ecc eds emboss encode esd exif fam fbcon firefox 
flac foomaticdb fortran gif glitz gnokii gnome gnutls gphoto2 gpm gstreamer gtk 
gtk2 hal howl idea imlib ipv6 java jpeg jpeg2k junit kde kdeenablefinal libwww 
logitech-mouse lzw lzw-tiff mad mikmod mp3 mpeg mpi ncurses new-login nls nptl 
nptlonly offensive ogg oggvorbis openexr opengl pam pda pdflib perl pic png 
povray ppds python qt quicktime rdesktop readline samba scanner sdl sndfile snmp 
speex spell sqlite ssl tcpd tetex theora tidy tiff truetype truetype-fonts 
type1-fonts unicode usb userlocales vorbis wifi xine xml2 xmms xpm xscreensaver 
xv zeroconf zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 4 Gregorio Guidi (RETIRED) gentoo-dev 2005-09-29 01:08:36 UTC
Can you try to downgrade binutils? This could be bug 106193. 
 
Comment 5 Gregorio Guidi (RETIRED) gentoo-dev 2005-09-29 01:16:23 UTC
*** Bug 107420 has been marked as a duplicate of this bug. ***
Comment 6 Neil Bothwick 2005-09-29 01:58:37 UTC
I downgraded binutils from 2.16.1 to 2.15.90.0.1.1-r5 and got exactly the same  
error. 
 
Why do I even need a PAM client on a system that does not use PAM. Shouldn't  
the kdesktop ebuild be respecting the pam USE flag on this? 
 
Comment 7 Gregorio Guidi (RETIRED) gentoo-dev 2005-09-29 02:57:10 UTC
kcheckpass is used in both PAM and non-PAM systems, I just corrected the 
description. 
 
Then the problem is probably related to the fact that the KDE build system 
adds -pie when linking kcheckpass. Probably toolchain people know more about 
it... 
 
Comment 8 Darian Stargazer 2005-09-29 03:06:42 UTC
Well since my bug was marked a duplicate of this one, I will post this here. I
worked around my problem by compling kde-base first with -fPIC infront of it,
then  continueing the KDE meta emerge. Since this solved my problem (and KDE is
running quiet nicely ;) thought oyu might should know.
Comment 9 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-10-01 10:17:40 UTC
Something seems to have changed. I compiled kcheckpass on my new laptop a day 
or so before the betas were committed to the tree and had no problems at all 
(amd64 laptop). Today I was upgrading my desktop to the betas and I had this 
exact same failure. Passing CFLAGS="-march=k8 -O2 -fPIC" when compiling 
kcheckpass allowed it to compile successfully. Everything else was compiled 
without any -fPIC in my CFLAGS (doing that globally is bad in general). 
 
I don't get what has changed though - I will try to look into this further if I 
get time tomorrow and compare versions of gcc, binutils etc and see if I can 
spot anything. I am using pam on this system. 
Comment 10 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-10-15 15:06:35 UTC
Same with kcheckpass-3.5.0_beta2 on my desktop system (emerge info included), 
and my laptop (GCC 4.0.2-r1 and other p.masked stuff...) 
 
Portage 2.0.53_rc5 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 
2.6.13-gentoo-r3 x86_64) 
================================================================= 
System uname: 2.6.13-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 
3800+ 
Gentoo Base System version 1.12.0_pre9 
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.5-r2, 2.4.2 
sys-apps/sandbox:    1.2.13 
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.15.92.0.2-r2, 2.16.1 
sys-devel/libtool:   1.5.20 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=k8 -O2 -pipe" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=k8 -O2 -pipe" 
DISTDIR="/mnt/gentoo/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig buildpkg ccache collision-protect cvs digest 
distlocks multilib-strict sandbox sfperms sign" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/linux/distributions/gentoo" 
LINGUAS="en_GB" 
MAKEOPTS="-j5" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/mnt/gentoo/var/tmp/portage" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="amd64 X aalib aim alsa apache2 arts audiofile avi bash-completion berkdb 
bitmap-fonts blas bonobo bootsplash bzlib cdparanoia cdr crypt cscope cups curl 
dbus directfb doc dvd dvdr dvdread eds emboss encode esd ethereal evo fam fbcon 
fftw flac flash foomaticdb fortran gb gd gdbm ggi gif gimpprint ginac gmp gnome 
gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal icq imagemagick imap 
imlib innodb ipv6 jabber java jikes joystick jpeg jpeg2k junit kde 
kdeenablefinal kerberos lcms ldap libg++ libwww lm_sensors lzw lzw-tiff mad 
mcal motif mp3 mpeg mpi msn mysql ncurses netcdf nls nptl nvidia octave odbc 
offensive ogg oggvorbis openexr opengl oscar pam pcre pdflib perl plotutils png 
postgres povray ppds python qt quicktime readline rtc ruby samba sasl scanner 
sdl snmp spell sqlite ssl svg tcltk tcpd tetex theora tiff truetype-fonts 
type1-fonts unicode usb vhosts videos vorbis wmf wxwindows xine xinerama xml 
xml2 xmms xpm xscreensaver xv xvid yahoo zeroconf zlib linguas_en_GB 
userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS 
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-15 15:11:14 UTC
My emerge info follows... I can't reproduce the bug here 
 
Portage 2.0.53_rc5 (default-linux/amd64/2005.1, gcc-4.0.2, 
glibc-2.3.5.20050722-r0, 2.6.13-gentoo-r3 x86_64) 
================================================================= 
System uname: 2.6.13-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3500+ 
Gentoo Base System version 1.12.0_pre9 
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.4 [disabled] 
dev-lang/python:     2.4.2 
sys-apps/sandbox:    1.2.13 
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 
sys-devel/libtool:   1.5.20 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=athlon64 -Os -fomit-frame-pointer -ftracer -pipe 
-ftree-vectorize -Wformat=2 -Wno-pointer-sign " 
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.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-march=athlon64 -Os -fomit-frame-pointer -ftracer -pipe 
-ftree-vectorize -Wformat=2" 
DISTDIR="/var/portage/distfiles" 
FEATURES="autoaddcvs autoconfig collision-protect cvs digest distlocks noinfo 
sandbox sfperms sign" 
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/         
http://gentoo.osuosl.org/" 
LANG="en_US.UTF-8" 
LDFLAGS="-Wl,-O1" 
LINGUAS="en it" 
MAKEOPTS="-j2 -s" 
PKGDIR="/var/portage/pkg-enterprise" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/var/portage/cvs/gentoo-x86" 
PORTDIR_OVERLAY="/var/portage/crossoverlay /var/portage/cvs/gentoo-alt/overlay /var/portage/cvs/flame-portage /var/portage/cvs/gentoo-java-experimental" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="amd64 3dnowex S3TC X a52 aac acpi4linux alsa apm avi bash-completion 
berkdb bzip2 bzlib cdda cddb cdio cdr cjk crypt css cups curl dnd dpms dts dvd 
dvdr dvdread eds emboss fam fame ffmpeg flac foomaticdb gd gdbm gif gnutls 
gpgme gphoto2 gtk2 hal idn ieee1394 imagemagick imlib imlib2 ipv6 ithreads 
joystick jpeg kde latex libwww lirc lm_sensors lzw lzw-tiff mad maildir 
matroska mmap mng mozsvg mp3 mpeg mpeg4 mpm-threadpool native ncurses 
no_wxgtk1 noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nodrm 
nojdepend nojsch nojython nolog4j nomotif nooro noregexp norhino noxalan 
noxerces nptl nvidia ogg oggvorbis opengl pam pdf pdflib pic png ppds python 
qemu-fast qt rtc ruby samba scanner slang snmp speex spell sqlite ssl 
stencil-buffer subversion svg svgz symlink sysfs syslog tetex theora threads 
tiff truetype truetype-fonts type1 type1-fonts unicode usb userlocales utf8 
v4l v4l2 vhosts vorbis wxwindows x11vnc xine xml2 xpm xv xvid xvmc zlib zvbi 
linguas_en linguas_it userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LC_ALL 
 
 
Comment 12 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-10-15 15:29:37 UTC
Here is my laptop emerge info - more like flameeye's, but kcheckpass still  
fails here,  
  
Portage 2.0.53_rc5 (default-linux/amd64/2005.1, gcc-4.0.2, 
glibc-2.3.5.20050722-r0, 2.6.13-gentoo-r4 x86_64) 
================================================================= 
System uname: 2.6.13-gentoo-r4 x86_64 AMD Turion(tm) 64 Mobile Technology 
ML-37 
Gentoo Base System version 1.12.0_pre9 
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.4 [disabled] 
dev-lang/python:     2.3.5-r2, 2.4.2 
sys-apps/sandbox:    1.2.13 
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 
sys-devel/libtool:   1.5.20 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=k8 -O2 -pipe" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /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/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-march=k8 -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig buildpkg digest distlocks sandbox sfperms" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/linux/distributions/gentoo" 
LINGUAS="en_GB" 
MAKEOPTS="-j2" 
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 aalib aim alsa ati audiofile avi bash-completion berkdb 
bitmap-fonts bootsplash bzlib cdparanoia cdr crypt cscope cups curl dbus 
directfb doc dri dvd dvdr dvdread eds emboss encode esd ethereal fam fbcon 
fftw foomaticdb fortran gd gdbm gif gimpprint gmp gphoto2 gpm gstreamer hal 
icq ieee1394 imagemagick imap imlib ipv6 jabber java jikes jpeg jpeg2k kde 
kdeenablefinal kerberos lcms libwww lm_sensors lzw lzw-tiff mad madwifi motif 
mp3 mpeg ncurses netcdf nls nptl nptlonly odbc offensive ogg oggvorbis openexr 
opengl pam pcre pdflib perl plotutils png povray python qt quicktime readline 
rtc samba sasl scanner sdl speedo spell sqlite ssl subversion svg tcltk tcpd 
tetex tiff truetype truetype-fonts type1-fonts unicode usb userlocales videos 
vorbis wmf xine xinerama xml2 xpm xv xvid zeroconf zlib linguas_en_GB 
userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS 
Comment 13 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-10-15 16:00:52 UTC
Thanks to a suggestion from flameeyes I tried emerging sys-apps/shadow-4.0.13,  
with this installed kde-base/kcheckpass-3.5.0_beta2 emerges fine without any  
-fPIC appended to its CFLAGS. Neither version has any lib files - I have left 
my desktop "broken" for now in case more tests are required. 
Comment 14 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-10-15 16:26:19 UTC
Sorry - still fails in both cases. Stale ebuild where I had added append-flags 
-fPIC so of course it works :/ 
Comment 15 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-15 16:32:15 UTC
Ok the problem is that linkage is done with -pie but it's not compiled with 
-fpie ... looking forward for this right now. 
Comment 16 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-15 17:12:10 UTC
The problem is caused by kdeenablefinal. 
 
When using final mode kde relies on internal make rules to build .o files, 
instead of using the special automake rules, this way kcheckpass_CFLAGS 
variable (that is set to KDE_USE_FPIE) is ignored. 
 
As to link a PIE executable you need PIC on amd64, the sources have to be 
built with -fpie, this leads to the failure. 
 
Going to report this upstream. 
Comment 17 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-15 17:19:48 UTC
Upstream url added. 
Comment 18 SpanKY gentoo-dev 2005-10-15 19:30:33 UTC
removing toolchain since this appears to be a broken KDE issue and unrelated to
toolchain stability
Comment 19 Dan Armak (RETIRED) gentoo-dev 2005-10-16 09:51:19 UTC
Reproduced.  
Still there in 3.4.0_beta2.  
Diego, do you want to add a workaround to the ebuild until upstream decides  
what the correct fix is? (Since you seem to already have one working.)  
Comment 20 Thomas Kear 2005-10-18 04:15:53 UTC
(In reply to comment #19)
> Reproduced.  
> Still there in 3.4.0_beta2.  
> Diego, do you want to add a workaround to the ebuild until upstream decides  
> what the correct fix is? (Since you seem to already have one working.)  


If by "3.4.0_beta2" you really mean 3.5.0_beta2, then the problem is the same
here (amd64).

Fixed (temporarily) by adding -fPIC to CFLAGS, emerging kcheckpass, then
resuming emerge of kdebase-meta
Comment 21 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-19 09:22:42 UTC
*** Bug 109826 has been marked as a duplicate of this bug. ***
Comment 22 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-20 04:06:00 UTC
I've applied Dirk's patch (that is basically the same as my workaround but  
done on a different level) to 3.5.0_beta2 ebuilds for kdebase and kcheckpass,  
this should fix it entirely.  
Finally we can close this up.. 
 
Unfortunately the root problem (--enable-final ignoring CFLAGS set per-target) 
is not even considered, this means we might encounter other similar problems 
in the future with external apps. I've aliased the bug to find it quickly.