Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34841 - sys-devel/gcc-3.2.3-r3 emerge fails
Summary: sys-devel/gcc-3.2.3-r3 emerge fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-01 11:39 UTC by Stephen Leaf
Modified: 2004-03-11 07:01 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Leaf 2003-12-01 11:39:59 UTC
I run Gentoo on 2 systems a 133mhz Pentium Classic and 900mhz AMD Duron. 
 
my 133 compiled it fine but my 900 fails to compile it. 

Reproducible: Didn't try
Steps to Reproduce:
1. emerge -Uu world 
2. 
3. 
Actual Results:  
/var/tmp/portage/gcc-3.2.3-r3/work/build/gcc/gcj -B/var/tmp/portage/
gcc-3.2.3-r3/work/build/i686-pc-linux-gnu/libjava/ -B/var/tmp/portage/
gcc-3.2.3-r3/work/build/gcc/ --encoding=UTF-8 -fclasspath= -fbootclasspath=/
var/tmp/portage/gcc-3.2.3-r3/work/build/i686-pc-linux-gnu/libjava 
-ffloat-store -g -O2 -MD -MT java/rmi/server/LogStream.lo -MF java/rmi/server/
LogStream.d -c /var/tmp/portage/gcc-3.2.3-r3/work/gcc-3.2.3/libjava/java/rmi/
server/LogStream.java -o java/rmi/server/LogStream.o >/dev/null 2>&1 
make[3]: *** [java/rmi/server/LogStream.lo] Error 1 
make[3]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r3/work/build/
i686-pc-linux-gnu/libjava' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r3/work/build/
i686-pc-linux-gnu/libjava' 
make[1]: *** [all-target-libjava] Error 2 
make[1]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r3/work/build' 
make: *** [bootstrap-lean] Error 2 
 
!!! ERROR: sys-devel/gcc-3.2.3-r3 failed. 
!!! Function src_compile, Line 411, Exitcode 2 
!!! (no error message) 

Expected Results:  
>>> Regenerating /etc/ld.so.cache... 
 * Caching service dependencies...                                     [ ok ] 
>>> sys-devel/gcc-3.2.3-r3 merged. 
 
>>> clean: No packages selected for removal. 
 
>>> Regenerating /etc/ld.so.cache... 
 * Caching service dependencies...                                     [ ok ] 
>>> Auto-cleaning packages ... 
 
>>> No outdated packages were found on your system. 
 
 
 * Regenerating GNU info directory index... 
 * Processed 5 info files. 

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22) 
================================================================= 
System uname: 2.4.22 i686 AMD Duron(tm) Processor 
Gentoo Base System version 1.4.3.10 
ACCEPT_KEYWORDS="x86" 
ACCEPT_LICENSE="" 
ARCH="x86" 
AUTOCLEAN="yes" 
BASH_ENV="/etc/portage/bashrc" 
CC="gcc" 
CFLAGS="-O3 -march=athlon -funroll-loops -pipe" 
CHOST="i686-pc-linux-gnu" 
CLASSPATH="/opt/blackdown-jdk-1.4.1/jre/lib/rt.jar:." 
CLEAN_DELAY="5" 
COLORTERM="" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/
share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/
texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/
config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CVS_RSH="ssh" 
CXX="g++" 
CXXFLAGS="-O3 -march=athlon -funroll-loops -pipe" 
DISPLAY=":0.0" 
DISTDIR="/usr/portage/distfiles" 
EDITOR="/bin/nano" 
FEATURES="sandbox ccache autoaddcvs" 
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}" 
GDK_USE_XFT="1" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/
Linux/distributions/gentoo" 
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl 
ncurses" 
GS_LIB="/home/smileaf/.kde/share/fonts" 
GTK_RC_FILES="/etc/gtk/gtkrc:/home/smileaf/.gtkrc:/home/smileaf/.gtkrc-kde" 
G_BROKEN_FILENAMES="1" 
HOME="/root" 
HOSTNAME="Freya" 
INFODIR="/usr/share/info:/usr/X11R6/info" 
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info" 
INPUTRC="/etc/inputrc" 
JAVAC="/opt/blackdown-jdk-1.4.1/bin/javac" 
JAVA_HOME="/opt/blackdown-jdk-1.4.1" 
JDK_HOME="/opt/blackdown-jdk-1.4.1" 
KDEDIR="/usr/kde/3" 
KDEDIRS="/usr" 
KDE_MULTIHEAD="false" 
KONSOLE_DCOP="DCOPRef(konsole-15796,konsole)" 
KONSOLE_DCOP_SESSION="DCOPRef(konsole-15796,session-1)" 
LESS="-R" 
LESSOPEN="|lesspipe.sh %s" 
LOGNAME="smileaf" 
MAKEOPTS="-j2" 
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/
i686-pc-linux-gnu/3.2/man:/usr/X11R6/man:/opt/blackdown-jdk-1.4.1/man:/usr/
qt/3/man" 
NOCOLOR="false" 
PAGER="/usr/bin/less" 
PATH="/sbin:/bin:/usr/sbin:/usr/bin" 
PKGDIR="/usr/portage/packages" 
PORTAGE_BINHOST_CHUNKSIZE="3000" 
PORTAGE_CACHEDIR="/var/cache/edb/dep/" 
PORTAGE_CALLER="emerge" 
PORTAGE_GID="250" 
PORTAGE_MASTER_PID="26261" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PRELINK_PATH="" 
PRELINK_PATH_MASK="" 
PS1="\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]" 
PWD="/home/smileaf" 
QMAKESPEC="linux-g++" 
QTDIR="/usr/qt/3" 
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}" 
RPMDIR="/usr/portage/rpm" 
RSYNC_RETRIES="3" 
RSYNC_TIMEOUT="180" 
SANE_CONFIG_DIR="/etc/sane.d" 
SESSION_MANAGER="local/Freya:/tmp/.ICE-unix/1702" 
SGML_CATALOG_FILES="/etc/sgml/sgml-docbook.cat:/etc/sgml/openjade-1.3.2.cat:/
etc/sgml/sgml-ent.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-lite.cat:/
etc/sgml/dsssl-docbook-stylesheets.cat" 
SHLVL="4" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
TERM="xterm" 
USE="x86 foomaticdb gif libg++ mikmod ncurses nls pdflib spell truetype xmms 
xv gdbm berkdb slang readline tetex gpm libwww esd imlib motif cdr 3dnow acpi 
alsa apache2 apm arts avi crypt cups dga dvd encode gd -gnome -gtk -gtk2 java 
joystick jpeg kde mad mmx mpeg mysql nocardbus -pcmcia oggvorbis opengl oss 
pam perl png python qt quicktime samba sasl scanner sdl ssl svga tcpd -tiff 
usb X xml xml2 zlib" 
USER="smileaf" 
USERLAND="GNU" 
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS" 
USE_ORDER="env:conf:auto:defaults" 
WANT_AUTOCONF_2_5="1" 
XARGS="xargs -r" 
XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched" 
XINITRC="/etc/X11/xinit/xinitrc" 
XSESSION="kde-3.1.4" 
_="/usr/bin/emerge"
Comment 1 Alias John Doe 2003-12-13 01:31:21 UTC
--<B>MySys</B>:--
Gentoo P4 2GHz
CFLAGS="-O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays "
CHOST="i686-pc-linux-gnu"
USE="mmx dga doc emacs gstreamer ppds samba videos wxwindows cups usb"
CXXFLAGS="${CFLAGS}"
#ACCEPT_KEYWORDS="~arch" is commented
----------



<B>Reproducible</B>: i think it might be possible but portages tree died after merging gcc

[11:14:56][root@HackerBoX]
[/root]$ emerge -pv gcc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2133, in ?
    mydepgraph.display(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1103, in display
    elif (not "--emptytree" in myopts) and portage.db[x[1]]["vartree"].exists_specific_cat(x[2]):
  File "/usr/lib/python2.2/site-packages/portage.py", line 3469, in exists_specific_cat
    self.invalidentry(self.root+"var/db/pkg/"+a[0]+"/"+x)
AttributeError: vartree instance has no attribute 'invalidentry'




<B>Actual Result when updating gcc </B>:

[----deleted stuff----]
>>> Merging sys-devel/gcc-3.2.3-r3 to /
eutils
flag-o-matic
libtool
//sbin/ldconfig: /usr/lib/libstdc++-libc6.1-1.so.2 is not a symbolic link
[----deleted stuff----]
>>> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/java/io/SyncFailedException.h
>>> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/java/io/FileInputStream.h
!!! Failed to move /var/tmp/portage/gcc-3.2.3-r3/image/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/java/io/FileDescriptor.h to /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/java/io/FileDescriptor.h
!!! [Errno 13] Permission denied
Comment 2 Joshua Kinard gentoo-dev 2004-01-22 11:27:14 UTC
can you try gcc-3.3.2-r5 on these systems and see how they go?  gcc-3.3.2-r5 uses the unstable keyword, so you may have to change it to stable first.
Comment 3 Alias John Doe 2004-01-23 08:13:31 UTC
yes.

i wiped out my old gentoo setup.

i think it was juste a :
gcc optimization issue + damaged reiserfs = wired portage issue.

I willl give it a try.

I will try to upgrade step by step and try to lower optimization and try diff gcc version and write and log everythings down.

but now i have 9 days of higth scool graduation test to pass.

i will be back!
Comment 4 Alexander Gabert (RETIRED) gentoo-dev 2004-03-04 05:55:18 UTC
how did your test go ;-)

i hope you passed it, so can we get along with this bug and probably close it?

thanks,

Alex
Comment 5 Alias John Doe 2004-03-04 10:49:13 UTC
You can close it.

Everythings goes well.

This my sugestion to avoid trouble:

Always put on and close your ATX-computer case. (faradey cage)
Make sure are using a stable kernel.
Make sure your RAM-memory-cell is OK.
avoid using to agresi[vf]e  falgs like -mcpu=pentium4 use i386 instead.
run $fscheck /dev/hd* 

finaly emerge gcc & glibc if it fail instead of remerging from the begining ie:
$ebuild /usr/portage/sys-libs/glibc/glibc-2.3.2.ebuild compile install qmerge

Comment 6 Alexander Gabert (RETIRED) gentoo-dev 2004-03-11 07:01:04 UTC
closed on users behalf

thanks