Summary: | first "emerge -u system" fails with access denied errors | ||
---|---|---|---|
Product: | Portage Development | Reporter: | James Bowlin <bowlin> |
Component: | Unclassified | Assignee: | Nicholas Jones (RETIRED) <carpaski> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | bowlin, seemant |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
James Bowlin
2003-02-08 09:07:55 UTC
after you emerge sync, please emerge portage, then emerge -u world I just tried: emerge sync emerge portage emerge -u world after starting over from scratch again. Same problem. Nothing changes AFAIK. Same ACCESS DENIED errors. could you paste #emerge info # emerge info Portage 2.0.44 (default-x86-1.4, gcc-sh: line 1: /usr/bin/gcc: No such file or directory, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz USE="oss avi cups encode gpm imlib jpeg libg++ mikmod mmx motif nls oggvorbis qtmt sdl svga xmms xv zlib gdbm slang arts atlas apm berkdb cdr crypt dvd gd ggz gif gtk java jikes libwww mozilla mpeg ncurses opengl pam pcmcia pdflib perl plotutils python png pnp quicktime qt readline spell sse ssl tcpd truetype tcltk usb X x86 xml2 kde tiff -gnome -3dnow" ARCH="x86" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -pipe" CXXFLAGS="-O3 -march=pentium4 -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -pipe" ACCEPT_KEYWORDS="x86" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" MAKEOPTS="-j2" JDK_HOME="/opt/blackdown-jdk-1.3.1" JAVA_HOME="/opt/blackdown-jdk-1.3.1" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" BTW: I had the same problems running with the default CFLAGS/CXXFLAGS seems to be the gcc issue sorry but http://cvs.gentoo.org/~seemant/gcc.html is no more available seemant: where's this document available ? I agree that it is most likely a gcc issue. I *think* gcc may have failed the sanity test. No gcc ended up on my $PATH. I know that cpp consistently fails the sanity check. I think this is related to bug 12699. I have the failed system intact on a partition on my hard drive if that helps. I can chroot into it from a working Gentoo and I am willing to do whatever you suggest to try to track this down. I thank you all for your rapid response. I need go out this after noon (PST), but I will be back tonight ready to experiment. ill tackle each of your issues ;) the access denied is an old portage bug ... update portage to fix it ... point 2: depends on the ebuild, not all packages respect CFLAGS so sometimes we have to hack them ... please open a new bug about any offending packages ... point 3: none of the tbz2's are corrupted, they're portage binary packages, not just bzipped tarballs ... that means we append some data at the end (trailing garbage) point 6: you may have had some directories still mounted (/mnt/gentoo/proc or /mnt/gentoo/dev), or you had some shells sitting in /mnt/gentoo ... oh, and although umount provides a '-f' option, it doesnt work, like ever :) point 7: you cannot currently do multiple portage commands at the sametime and not have them break ... portage does not check to make sure it's not already emerging the package before going ahead and attempting it i think we covered everything ;) *** This bug has been marked as a duplicate of 13013 *** Thanks for all of your help. I emerged gcc (after portage) because the failed sanity checks were the first problem I encountered, I am still having problems with sanity checks while emerging gcc. I think my problem is related to the still open 12699. I will be glad to do whatever you suggest. I did a rm -Rf /mnt/gentoo/* and then: 523 tar -xjpf /mnt/cdrom/gentoo/stage3-pentium3-1.4_rc2.tbz2 524 mount -o bind /proc /mnt/gentoo/proc 526 cp /etc/resolv.conf /mnt/gentoo/etc/ 527 chroot /mnt/gentoo /bin/bash 1 env-update 15 source /etc/profile 16 emerge sync 17 emerge portage 45 emerge -u sys-devel/gcc-config 47 emerge -u sys-devel/gcc I was not watching carefully for error messages on the console window. I think I still have sanity check problems because after emerging gcc: 1) /usr/bin/cpp was converted from a binary to a script. 2) /usr/bin/gcc disappeared before: 94408 Dec 4 19:45 cpp* 93448 Dec 4 19:45 gcc* after: 303 Feb 9 18:47 cpp [no gcc] # emerge info Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://csociety-ftp.ecn.purdue.edu/pub/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss apm arts avi crypt cups gif gpm gtk imlib java jpeg kde libg++ libwww mikmod mmx motif mpeg ncurses nls oggvorbis opengl pdflib png qt qtmt quicktime sdl spell svga truetype X xml2 xmms xv zlib gdbm berkdb slang readline tcpd pam ssl python -3dnow atlas cdr dga dvd -encode gd ggz -gnome jikes mbox mozilla oav pcmcia perl plotutils pnp ruby sse tcltk tiff usb xml" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -falign-functions=4 -pipe" CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -falign-functions=4 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" yeah, gcc moves to a different location -- do: which gcc at a shell prompt to see its new location Things are still broken. After the: # emerge sync # emerge portage # emerge sys-devel/gcc I continued as if nothing were wrong: # emerge -u world I got the following error message when emerge aborted: !!! ERROR: x11-base/xfree-4.2.1-r2 failed. !!! Function src_install, line 211, Exitcode 2 !!! (no error message) In summary, when I: # emerge sync # emerge portage # emerge -u world The following is happening: 1) I get sanity check failure(s) while emerging gcc. 2) I then get ACCESS DENIED errors while emerging TrueType fonts in xfree 3) The xfree emerge finally aborts with the above message The problems are consistent and reproducible. I've done it 3 times now, once without emerge portage and twice with it. can you paste the access errors, as well as emerge --version? # emerge --version Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) One of the previous access errors is in the first report above. My emerges take many hours and I can't sit in front of the screen anymore waiting to capture error messages. Is there a standard way to collect the output of emerge in a file? If so, would you like me to emerge again and capture the output so I can find the error messages? Also, is there a faster way to get the system back into the state just before emerging? Currently I have been doing: # rm -Rf /mnt/gentoo/* # cd /mnt/gentoo # tar xjpf /mnt/cdrom/gentoo/stage3-pentium3-1.4_rc2.tbz2 to log: emerge something &>~/something.emerge.log then just attach those logs (placed in your home dir in this case) to this bug report. still with me jim? Look in make.conf for: PORT_LOGDIR=/var/log/emerge mtimedb/Access-Violation issues are caused by older portage versions. pentium4 is _known_ to cause problems. Don't use it. The script over gcc is intentional. source /etc/profile to fix missing gcc's and use gcc-config to set the one you want. If there's anything that isn't covered or recurs after you remove pentium4, then feel free to reopen. Thank you all for your help. I am now pretty sure that I was suffering from a temperature related hardware problem. I was able to install Gentoo on ext2 but then I had 4 (or more?) failures trying to install on reiserfs. Their website says that rieser can cause significantly more heating (I guess because it is so much faster). Anyway, I get i8k working (on my i8200) and manually set both fans to high. The installation on the reiserfs then worked without a hitch. Thanks again. db fix db fix |