Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33033 - Emerge returns [Errno 17] with xfs-sources-2.4.22
Summary: Emerge returns [Errno 17] with xfs-sources-2.4.22
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Bob Johnson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 42085
  Show dependency tree
 
Reported: 2003-11-08 13:05 UTC by mail
Modified: 2004-02-19 07:51 UTC (History)
0 users

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 mail 2003-11-08 13:05:47 UTC
I've just installed Gentoo 1.4 from CD 1 and startet with stage 1. After      
bootstrapping, emerge system, compiling the kernel (2.4.22-xfs), etc. I      
finished the installation procedure successfully.      
But when I booted my new system an wanted to emerge some software, I had to      
recognize, that I can't emerge anything. The emerge process aborts with these     
symptoms (here I tried to emerge Zile, logged in as root):    
      
[HDD LED flashing in regular periods]     
     
Calculating dependencies  ...done!      
>>> emerge (1 of 1) app-editors/zile-1.7_alpha6 to /      
!!! File system problem. (ReadOnly? Out of space?)      
!!! Perhaps: rm -Rf /var/tmp/portage      
!!! [Errno 17] File exists: '/var/tmp/portage/zile-1.7_alpha6'      
      
What I have already checked is:      
- I have tons of free gigs available on /dev/hda2      
- I tried rm -rR /var/tmp/portage but that didn't help      
- I checked if a user and a group "portage" exisits, and if they own      
/var/tmp/portage      
- /dev/hda2 and especially /var/tmp isn't write protected to any user or group     
- I couldn't find "Errno 17" on google or in the forum :(      
      
Hint: I booted from the Gentoo CD again and chrooted into my system. From the      
chroot-environment, emerge works like it should without any errors!      
    
    
Here is some information about my system:    
    
  
My /etc/fstab:   
   
/dev/hda1               /boot           ext2            noauto,noatime            
1 1   
/dev/hda2               /               ext3            noatime                   
0 0   
/dev/hda3               none            swap            sw                        
0 0   
/dev/hdb1               /home           xfs             noatime                   
0 0   
   
/dev/cdroms/cdrom0      /mnt/dvd        iso9660         noauto,ro                 
0 0   
/dev/cdroms/cdrom1      /mnt/cdrecorder iso9660         noauto,ro                 
0 0   
   
/dev/floppy/0           /mnt/floppy     vfat            noauto,user               
0 0   
   
Mounted file systems:   
   
/dev/hda2 on / type ext3 (rw,noatime)   
none on /dev type devfs (rw)   
none on /proc type proc (rw)   
/dev/hdb1 on /home type xfs (rw,noatime)   
none on /dev/shm type tmpfs (rw)   
none on /proc/bus/usb type usbfs (rw)   
/dev/floppy/0 on /mnt/floppy type vfat (rw,noexec,nosuid,nodev)   
   
   
$ emerge --version   
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-xfs)   
   
My Kernel: 2.4.22-xfs   
   

Reproducible: Always
Steps to Reproduce:
1. Finish installation, umount file systems like the installation guide says 
2. Boot your new Gentoo Box 
3. Login as root 
4. cd /usr/portage 
5. emerge $PROGRAMM 
6. [See error message above, errno 17] 
Actual Results:  
HDD LED is flashing 
 
Calculating dependencies  ...done!     
>>> emerge (1 of 1) app-editors/zile-1.7_alpha6 to /     
!!! File system problem. (ReadOnly? Out of space?)     
!!! Perhaps: rm -Rf /var/tmp/portage     
!!! [Errno 17] File exists: '/var/tmp/portage/zile-1.7_alpha6' 
 
Emerge only works, when I boot from CD and chroot into my box. 

Expected Results:  
Download package, untar and unzip, compile 

$ emerge info    
Gentoo Base System version 1.4.3.10   
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-xfs)   
=================================================================   
System uname: 2.4.22-xfs i686 Intel(R) Pentium(R) 4 CPU 2.66GHz   
ACCEPT_KEYWORDS="x86"   
AUTOCLEAN="yes"   
CFLAGS="-O6 -march=pentium4 -pipe"   
CHOST="i686-pc-linux-gnu"   
COMPILER="gcc3"   
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config   
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"   
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"   
CXXFLAGS="-O6 -march=pentium4 -pipe"   
DISTDIR="/usr/portage/distfiles"   
FEATURES="sandbox ccache autoaddcvs"   
GENTOO_MIRRORS="http://gentoo.oregonstate.edu   
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"   
MAKEOPTS="-j2"   
PKGDIR="/usr/portage/packages"   
PORTAGE_TMPDIR="/var/tmp"   
PORTDIR="/usr/portage"   
PORTDIR_OVERLAY=""   
SYNC="rsync://rsync.gentoo.org/gentoo-portage"   
USE="x86 oss crypt 3dfx 3dnow aalib acpi alsa apache2 apm arts avi atlas   
berkdb bonobo cdr cscope cups curl dedicated dga directfb dvb dvd dvdr emacs   
emacs-w3 encode evo fastcgi fbcon firebird foomaticdb freetds gb gd gdbm ggi   
gif gnome gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile imap imlib innodb   
java jpeg kde lcms ldap leim libg++ libgda libwww lirc mad maildir mbox mcal   
mikmod mmx motif mozilla mpeg mpi mule mysql ncurses nls odbc oggvorbis opengl   
pam pda ppds pdflib perl plotutils png postgres python qt quicktime readline   
ruby samba sasl scanner sdl slang slp snmp spell sse ssl svga tcltk tcpd tetex   
tiff truetype usb videos wmf wxwindows X Xaw3d xosd xml xml2 xmms xv zlib"   
  
Additional Information:  
  
- /dev/hda2 is ext3, about 32 gigs free.  
- PIV 2.66, 512 MB Ram, Seagate HDD  
- Got some results an my search after "ReadOnly? Out of space?" in the forum  
which says I should patch emerge.py - but since it wasn't about my special  
problem, I don't think that'll help much.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-11-08 15:01:18 UTC
Hmm, if it works in the chroot it sounds like a kernel problem. Can you try
it with a different kernel ?
Comment 2 mail 2003-11-09 05:44:13 UTC
I've downgraded to 2.4.20-xfs and it seems to work now:

- Booting CD 1:

$ mount /dev/hda2 /mnt/gentoo
$ mount /dev/hda1 /mnt/gentoo/boot
$ mount -t proc proc /mnt/gentoo/proc
$ chroot /mnt/gentoo /bin/bash
$ cd /usr/src/linux/
$ cp .config /root/oldconfig
$ emerge --unmerge xfs-sources-2.4.22
--> is there anything else I have to do to clean my entire system from 2.4.22
files?
$ emerge xfs-sources
--> portage automatically selects xfs-sources-2.4.20-r3(?) for emerging.
$ cp /root/oldconfig /usr/src/linux

As you can see, I complied 2.4.20 with the same configuration file like 2.4.22
(I think new/invalid options are just ignored by the old kernel). And now,
it works.

The last thing I want to know is, if emerge --unmerge really unmerges EVERYTHING
related to the kernel version 2.4.22, so that I can be sure, that's not a
kernel conflict if something similar happens in the future...
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-11-09 18:45:01 UTC
re-assigning as I just saw another report with the same problem and xfs-sources-2.4.22,
really seems to be a kernel problem in that version.
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2003-11-10 08:48:30 UTC
... Does this happen only with app-editors/zile or other items as well?
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2003-11-17 23:54:13 UTC
I package.mask'ed 2.4.22 for now until this is resolved, I've seen at least 3 other reports about this problem, all with this kernel version.
Comment 6 Andrea Luzzardi 2003-12-04 07:57:20 UTC
I've rolled up xfs-sources-2.4.23 which is based on a new XFS release (1.3.1), could you give it a try and let me know if that fixes the problem ?
Comment 7 Andrea Luzzardi 2004-01-07 10:24:56 UTC
Fixed on xfs-sources-2.4.23-r1
Comment 8 m mir 2004-02-19 07:51:08 UTC
**PLEASE READ**

I am using XFS and I went from linux-2.4.20-xfs-r4 to linux-2.4.24-xfs-r1 I started getting exact error....IT IS NOT FIXED see this forum http://forums.gentoo.org/viewtopic.php?t=130786