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

Bug 51971

Summary: Emerge kdebase 3.2.2 fails
Product: Gentoo Linux Reporter: matt <matt_harrison>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: VERIFIED WORKSFORME    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description matt 2004-05-24 23:53:01 UTC
I've been trying to update for the past two weeks without success....
kdebase keeps failing on me.

The offending item seems to be this:

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../Scrt1.o(.text+0x28): unresolvable relocation against symbol `main'
collect2: ld returned 1 exit status
make[2]: *** [kblankscrn.kss] Error 1

What is Scrt1.o?

Here's the context for the error I'm getting:

emerge -u world

....

Making all in kscreensaver
make[2]: Entering directory `/var/tmp/portage/kdebase-3.2.2/work/kdebase-3.2.2/kscreensaver'
/usr/qt/3/bin/moc ./random.h -o random.moc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include  -UQT_NO_ASCII_CAST -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium4 -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE  -c -o random.o random.cpp
random.cpp: In function `int main(int, char**)':
random.cpp:66: warning: `init' is deprecated (declared at
   /usr/kde/3.2/include/kcmdlineargs.h:258)
/bin/sh ../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium4 -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE  -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib  -R /usr/kde/3.2/lib -R /usr/qt/3/lib -R /usr/X11R6/lib  -o krandom.kss  random.o -lkdeui -lm
/usr/qt/3/bin/moc ./blankscrn.h -o blankscrn.moc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include  -UQT_NO_ASCII_CAST -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium4 -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE  -c -o blankscrn.o blankscrn.cpp
/bin/sh ../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium4 -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE  -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib  -R /usr/kde/3.2/lib -R /usr/qt/3/lib -R /usr/X11R6/lib  -o kblankscrn.kss  blankscrn.o -lkdeui -lkscreensaver -lm
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../Scrt1.o(.text+0x28): unresolvable relocation against symbol `main'
collect2: ld returned 1 exit status
make[2]: *** [kblankscrn.kss] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdebase-3.2.2/work/kdebase-3.2.2/kscreensaver'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdebase-3.2.2/work/kdebase-3.2.2'
make: *** [all] Error 2

!!! ERROR: kde-base/kdebase-3.2.2 failed.
!!! Function kde_src_compile, Line 129, Exitcode 2
!!! died running emake, kde_src_compile:make

mycomputer root #



Reproducible: Always
Steps to Reproduce:
1.emerge sync
2.emerge [-u] world
3.

Actual Results:  
kdebase fails to emerge 

Expected Results:  
kdebase should emerge 

mycomputer root # emerge info 
Portage 2.0.50-r6 (hardened-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 
2.6.4-rc1-mm1) 
================================================================= 
System uname: 2.6.4-rc1-mm1 i686 Intel(R) Pentium(R) 4 CPU 1600MHz 
Gentoo Base System version 1.4.10 
Autoconf: sys-devel/autoconf-2.58-r1 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" 
CHOST="i686-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/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox sfperms strict" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j1" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow X aalib alsa arts avi berkdb cdr crypt cups dga dvd dvdr emacs 
encode esd foomaticdb gdbm gif gnome gphoto2 gtk gtk2 hardened imagemagick 
imlib java joystick jpeg junit kde mmx motif mozilla mpeg mysql nls opengl pam 
pda perl pic pie png postgres python qt quicktime readline samba scanner sdl 
ssl tcpd truetype unicode usb wxwindows x86 xml2 xmms xv zlib" 
 
mycomputer root #
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-05-26 08:50:38 UTC
seems like a borked gcc/glibc issue to me...reassigning (to hopefully the right people).
Comment 2 matt 2004-05-29 11:03:16 UTC
Would upgrading to gcc 3.4 help (or would it break more things)???
Should I re-emerge gcc 3.3???
Any hints???
Comment 3 SpanKY gentoo-dev 2004-11-23 22:07:17 UTC
try latest stable gcc/glibc combo
Comment 4 matt 2004-11-28 16:23:42 UTC
I got around the issue which appeared to stem from the hardened USE flag.  I removed the USE flag (acutally I negated it in /etc/make.conf) and the issue resolved itself.