Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

can't emerge

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
nyowe
n00b
n00b
Posts: 30
Joined: Sat Mar 13, 2004 10:09 pm

can't emerge

  • Quote

Post by nyowe » Mon Dec 06, 2004 7:09 pm

This is rather disturbing... i can not seem to get anything emerged. I noticed the problem after mozilla-firefox complained about not being able to see libgtk-x11-2.0.so.0. I decided to run revdep-rebuild which shows multiple packages to be rebuilt (mainly gnome libs). unfortunately revdep-rebuild failed to rebuild any of the packages. I tried to do it manually but every package i tried to emerge exited immediately after building the package with an error in exactly the same place with the same error as below

Code: Select all

>>> Merging x11-libs/gtk+-2.4.13-r1 to /
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3023, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1856, in merge
    retval=portage.pkgmerge(mytbz2,x[1],self.pkgsettings)
  File "/usr/lib/portage/pym/portage.py", line 6800, in pkgmerge
    mylink.merge(pkgloc,infloc,myroot,myebuild,cleanup=1)
  File "/usr/lib/portage/pym/portage.py", line 6701, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
  File "/usr/lib/portage/pym/portage.py", line 6299, in treewalk
    counter = db["/"]["vartree"].dbapi.counter_tick(self.myroot,mycpv=self.mycpv)
  File "/usr/lib/portage/pym/portage.py", line 4185, in counter_tick
    return self.counter_tick_core(myroot,incrementing=1,mycpv=mycpv)
  File "/usr/lib/portage/pym/portage.py", line 4215, in counter_tick_core
    cfile=open(cpath, "r")
IOError: [Errno 21] Is a directory
I get the same error with every single package i have tried to emerge even when i have used binary packages previously created on another machine... see the result of an attempted emerge of portage below:

Code: Select all

kangarame gtk+ # emerge portage
Calculating dependencies  ...done!
>>> emerge (1 of 1) sys-apps/portage-2.0.51-r8 to /
>>> md5 src_uri ;-) portage-2.0.51-r8.tar.bz2
>>> Unpacking source...
>>> Unpacking portage-2.0.51-r8.tar.bz2 to /var/tmp/portage/portage-2.0.51-r8/work
>>> Source unpacked.
./create-localdecls
Checking truncate argument type... off_t
Checking libc version... libc.so.6
Checking glibc subversion... 2.3

cc -march=i386 -O1 -pipe  -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c libsandbox.c
cc -march=i386 -O1 -pipe  -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c sandbox_futils.c -o sandbox_futils.o
cc libsandbox.o sandbox_futils.o -shared  -fPIC -ldl -lc -nostdlib -lgcc -o libsandbox.so
cc -march=i386 -O1 -pipe  -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c sandbox.c -o sandbox.o
cc -march=i386 -O1 -pipe  -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall sandbox.osandbox_futils.o getcwd.c -ldl -lc -o sandbox
>>> Test phase [not enabled]: sys-apps/portage-2.0.51-r8

>>> Install portage-2.0.51-r8 into /var/tmp/portage/portage-2.0.51-r8/image/ category sys-apps
QA Notice: USE Flag 'macos' not in IUSE for sys-apps/portage-2.0.51-r8
install -d -m 0755 /var/tmp/portage/portage-2.0.51-r8/image//lib
install -d -m 0755 /var/tmp/portage/portage-2.0.51-r8/image//usr/lib/portage/bin
install -d -m 0755 /var/tmp/portage/portage-2.0.51-r8/image//usr/lib/portage/lib
install -m 0755 libsandbox.so /var/tmp/portage/portage-2.0.51-r8/image//lib
install -m 0755 sandbox /var/tmp/portage/portage-2.0.51-r8/image//usr/lib/portage/bin
install -m 0644 sandbox.bashrc /var/tmp/portage/portage-2.0.51-r8/image//usr/lib/portage/lib
man:
prepallstrip:
strip:
strip:
   usr/lib/portage/bin/tbz2tool
   usr/lib/portage/bin/sandbox
   lib/libsandbox.so
making executable: /lib/libsandbox.so
>>> Completed installing portage-2.0.51-r8 into /var/tmp/portage/portage-2.0.51-r8/image/

>>> Merging sys-apps/portage-2.0.51-r8 to /
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3023, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1836, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
  File "/usr/lib/portage/pym/portage.py", line 2588, in doebuild
    return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysettings["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"])
  File "/usr/lib/portage/pym/portage.py", line 2721, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/portage/pym/portage.py", line 6701, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
  File "/usr/lib/portage/pym/portage.py", line 6299, in treewalk
    counter = db["/"]["vartree"].dbapi.counter_tick(self.myroot,mycpv=self.mycpv)
  File "/usr/lib/portage/pym/portage.py", line 4185, in counter_tick
    return self.counter_tick_core(myroot,incrementing=1,mycpv=mycpv)
  File "/usr/lib/portage/pym/portage.py", line 4215, in counter_tick_core
    cfile=open(cpath, "r")
IOError: [Errno 21] Is a directory
Below is my emerge info:

Code: Select all

kangarame gtk+ # emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20041021-r0,2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 AMD Athlon(TM) XP 2400+
Gentoo Base System version 1.6.6
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Sep  2 2004, 20:40:19)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r2, 1.6.3, 1.9.3, 1.7.9, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X alsa apache2 avi berkdb bitmap-fonts cdr crypt cups divx4linux dvb dvd encode esd f77 fam flac flash foomaticdb fortran gd gdbm gif gphoto2 gpm gtk gtk2 gtkhtml imagemagick imlib java jpeg kde lcms ldap libg++ libwww mad mikmod mmx mng motif mpeg mysql mysqli ncurses nls oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline sdl slang spell sse ssl svg svga tcpd theora tiff truetype v4l2 wmf x86 xine xml2 xmms xpm xv xvid zlib"
Please, please help. I am at my wits end and i can't seem to work out where i have erred...
Top
The_Master
n00b
n00b
Posts: 14
Joined: Mon Feb 23, 2004 2:12 am

  • Quote

Post by The_Master » Mon Dec 06, 2004 9:42 pm

Try rebuilding your portage cache using emerge sync or emerge metadata. If that fails, try using portage-rescue. For information on portage-rescue refer to README.RESCUE which should be located at /usr/portage/sys-apps/portage/files/README.RESCUE by default.
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Tue Dec 07, 2004 1:56 am

Code: Select all

ls -l /var/cache/edb/counter
If that is a directory you have a (probably serious) problem.
Top
gentoo_lan
l33t
l33t
User avatar
Posts: 891
Joined: Wed Sep 08, 2004 12:45 am
Location: Charles Town, WV

  • Quote

Post by gentoo_lan » Tue Dec 07, 2004 3:46 am

Genone wrote:

Code: Select all

ls -l /var/cache/edb/counter
If that is a directory you have a (probably serious) problem.
I have that as a directory and everything works fine. So why is it a problem?
Top
rhill
Retired Dev
Retired Dev
User avatar
Posts: 1629
Joined: Fri Oct 22, 2004 9:58 am
Location: sk.ca

  • Quote

Post by rhill » Tue Dec 07, 2004 3:57 am

should be a file

Code: Select all

# cat /var/db/cache/counter
2290
aha. now i know where the number that precedes the logs in /var/log/portage comes from. that was driving me nuts.

:o
Top
nyowe
n00b
n00b
Posts: 30
Joined: Sat Mar 13, 2004 10:09 pm

  • Quote

Post by nyowe » Tue Dec 07, 2004 6:24 pm

Thanks guys for the quick replies... now here is the deal:
emerge sync, emerge metadata and portage-rescue have not helped.
See below also:

Code: Select all

kangarame pbazira # ls -l /var/cache/edb/counter
total 24
-rw-r--r--  1 root root   71 Dec  5 15:56 digest-linesrv-2.1.20
-rw-r--r--  1 root root   70 Dec  5 15:56 digest-linesrv-2.1.6-r1
-rw-r--r--  1 root root  394 Dec  5 15:56 lcshutdown.pam
-rw-r--r--  1 root root  420 Dec  5 15:56 linecontrol.pam
-rw-r--r--  1 root root 1282 Dec  5 15:56 linesrv.conf
-rwxr-xr-x  1 root root  741 Dec  5 15:56 linesrv.rc6
Now what should i do .... Genone... why is this a serious problem and how can i reverse it.....??? Help... anyone????!!!
Top
The_Master
n00b
n00b
Posts: 14
Joined: Mon Feb 23, 2004 2:12 am

  • Quote

Post by The_Master » Tue Dec 07, 2004 7:16 pm

Move the directory elsewhere and see what happens.

Code: Select all

mv /var/cache/edb/counter ~
Top
nyowe
n00b
n00b
Posts: 30
Joined: Sat Mar 13, 2004 10:09 pm

  • Quote

Post by nyowe » Tue Dec 07, 2004 8:42 pm

The_Master.... Thanks, moving /var/cache/edb/counter worked just fine.
Thank you all....
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Tue Dec 07, 2004 9:05 pm

Now you just have to hope that portage won't start unmerging random things ...
Top
irf2003
Veteran
Veteran
Posts: 1078
Joined: Wed Sep 10, 2003 12:57 pm

  • Quote

Post by irf2003 » Tue Dec 07, 2004 9:30 pm

Genone wrote:Now you just have to hope that portage won't start unmerging random things ...
@Genone,
what caused /var/cache/edb/counter to be a directory, was it a portage bug?
what is a safe course of action should one encounter such problem?
just curious...
TIA
Top
nyowe
n00b
n00b
Posts: 30
Joined: Sat Mar 13, 2004 10:09 pm

  • Quote

Post by nyowe » Tue Dec 07, 2004 9:39 pm

just so you know... the file has been recreated after an emerge sync

Code: Select all

kangarame portage # ls -l /var/cache/edb/counter
-rw-r--r--  1 root root 4 Dec  7 21:28 /var/cache/edb/counter
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Tue Dec 07, 2004 9:49 pm

irf2003 wrote:
Genone wrote:Now you just have to hope that portage won't start unmerging random things ...
@Genone,
what caused /var/cache/edb/counter to be a directory, was it a portage bug?
what is a safe course of action should one encounter such problem?
just curious...
TIA
If it is a bug it would be a new one, and I haven't seen any other reports about this so I doubt it.I'm not sure if the counter is still critical (I'm not completely familiar with the relevant code) but you better but a large number in there (10000 should be high enough).
Top
nyowe
n00b
n00b
Posts: 30
Joined: Sat Mar 13, 2004 10:09 pm

  • Quote

Post by nyowe » Wed Dec 08, 2004 7:28 pm

more problems here....
same computer now spits out errors and fails to complete when i run emerge sync... see code below

Code: Select all

>>> Starting retry 3 of 3 with rsync://195.238.1.14/gentoo-portage
>>> checking server timestamp ...
welcome to rsync2.skynet.be / rsync2.be.gentoo.org

Contact: Cedric Gavage <rsync@skynet.be>
http://ftp.skynet.be - http://www.belgacom.be
This server is located in Brussels, Belgium, Earth


receiving file list ...
1 file to consider

Number of files: 1
Number of files transferred: 0
Total file size: 32 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 32
Total bytes sent: 171
Total bytes received: 260

sent 171 bytes  received 260 bytes  862.00 bytes/sec
total size is 32  speedup is 0.07
welcome to rsync2.skynet.be / rsync2.be.gentoo.org

Contact: Cedric Gavage <rsync@skynet.be>
http://ftp.skynet.be - http://www.belgacom.be
This server is located in Brussels, Belgium, Earth


receiving file list ...
101192 files to consider
rsync: stat "/usr/portage/net-dialup/linesrv/files" failed: Input/output error (5)
rsync: stat "/usr/portage/net-dialup/linesrv/files" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/Devel-Cycle/files/digest-Devel-Cycle-1.02" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/Devel-Cycle/ChangeLog" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/Devel-Cycle/Manifest" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/Devel-Cycle/metadata.xml" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/Devel-Cycle/Devel-Cycle-1.02.ebuild" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/Test-Memory-Cycle/files/digest-Test-Memory-Cycle-0.02" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/Test-Memory-Cycle/ChangeLog" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/Test-Memory-Cycle/Manifest" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/Test-Memory-Cycle/metadata.xml" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/Test-Memory-Cycle/Test-Memory-Cycle-0.02.ebuild" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/XML-DTDParser/files/digest-XML-DTDParser-2.01" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/XML-DTDParser/ChangeLog" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/XML-DTDParser/Manifest" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/XML-DTDParser/metadata.xml" failed: Input/output error (5)
rsync: readlink "/usr/portage/dev-perl/XML-DTDParser/XML-DTDParser-2.01.ebuild" failed: Input/output error (5)
rsync: readlink "/usr/portage/net-dialup/linesrv/files" failed: Input/output error (5)
rsync: readlink "/usr/portage/net-dialup/linesrv/ChangeLog" failed: Input/outputerror (5)
rsync: readlink "/usr/portage/net-dialup/linesrv/Manifest" failed: Input/output error (5)
rsync: readlink "/usr/portage/sys-devel/gcc-config/files/gcc-config-1.3.7" failed: Input/output error (5)
rsync: readlink "/usr/portage/sys-kernel/openmosix-sources/Manifest" failed: Input/output error (5)
rsync: readlink "/usr/portage/x11-themes/reinhardtstyle/reinhardtstyle-0.8.2.ebuild" failed: Input/output error (5)
 101100 files...
Number of files: 101192
Number of files transferred: 0
Total file size: 78712448 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 2332871
Total bytes sent: 149
Total bytes received: 2333099

sent 149 bytes  received 2333099 bytes  32632.84 bytes/sec
total size is 78712448  speedup is 33.74
rsync error: some files could not be transferred (code 23) at main.c(1146)

!!! Rsync has not successfully finished. It is recommended that you keep
!!! trying or that you use the 'emerge-webrsync' option if you are unable
!!! to use rsync due to firewall or other restrictions. This should be a
!!! temporary problem unless complications exist with your network
!!! (and possibly your system's filesystem) configuration.
Any hints... anyone... i would really like to avoid starting a new install from scratch.
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Thu Dec 09, 2004 1:43 am

Try checking your harddisc and/or filesystem, I/O errors are usually and indicator for hardware failure.
Top
Massimo B.
Veteran
Veteran
User avatar
Posts: 1940
Joined: Wed Feb 09, 2005 3:05 pm
Location: PB, Germany

  • Quote

Post by Massimo B. » Mon Jun 12, 2006 7:38 am

I can't emerge reinhardtstyle:

Code: Select all

checking for mcopidl... not found
configure: error: The important program mcopidl was not found!
Please check whether you installed aRts correctly.


!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/reinhardtstyle-0.8.2/work/reinhardtstyle-0.8.2/config.log

!!! ERROR: x11-themes/reinhardtstyle-0.8.2 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called kde_src_compile
  kde.eclass, line 144:   Called kde_src_compile 'all'
  kde.eclass, line 279:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 261:   Called econf '--with-x' '--enable-mitshm' '--without-xinerama' '--with-qt-dir=/usr/qt/3' '--enable-mt' '--with-qt-libraries=/usr/qt/3/lib' '--disable-dependency-tracking' '--disable-debug' '--without-debug' '--without-arts' '--with-extra-includes=/usr/kde/3.5/include' '--with-extra-libs=/usr/kde/3.5/lib'
  ebuild.sh, line 541:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
I don't use arts and have USE="-arts".
HP ZBook Power G9 i7-12700H,64GB DDR5|HP ProDesk 600 G5 i7-9700,128GB DDR4
Top
Post Reply

15 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic