I've been getting this error for a few weeks now. I sync'd today, removed the tarball several times and changed download mirrors, and I've run the perl-clean script with the all option. Calculating world dependencies ...done! >>> emerge (1 of 1) perl-core/File-Spec-0.87 to / >>> Downloading http://mirror.datapipe.net/gentoo/distfiles/File-Spec-0.87.tar.gz --13:16:19-- http://mirror.datapipe.net/gentoo/distfiles/File-Spec-0.87.tar.gz => `/usr/portage/distfiles/File-Spec-0.87.tar.gz' Resolving mirror.datapipe.net... 64.27.65.115 Connecting to mirror.datapipe.net[64.27.65.115]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 31,610 [application/x-gzip] 100%[================================================================================>] 31,610 141.90K/s 13:16:19 (141.75 KB/s) - `/usr/portage/distfiles/File-Spec-0.87.tar.gz' saved [31,610/31,610] >>> md5 files ;-) File-Spec-0.87.ebuild >>> md5 files ;-) File-Spec-0.84-r1.ebuild >>> md5 files ;-) File-Spec-3.06.ebuild >>> md5 files ;-) File-Spec-3.01.ebuild >>> md5 files ;-) metadata.xml >>> md5 files ;-) ChangeLog >>> md5 files ;-) files/digest-File-Spec-0.87 >>> md5 files ;-) files/digest-File-Spec-3.06 >>> md5 files ;-) files/digest-File-Spec-3.01 >>> md5 files ;-) files/digest-File-Spec-0.84-r1 >>> md5 src_uri ;-) File-Spec-0.87.tar.gz >>> Unpacking source... >>> Unpacking File-Spec-0.87.tar.gz to /var/tmp/portage/File-Spec-0.87/work >>> Source unpacked. Can't locate Module/Build.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.8.5/i686-linux /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i686-linux /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.5/i686-linux /usr/lib/perl5/5.8.5 /usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux .). BEGIN failed--compilation aborted. Can't locate Module/Build.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.8.5/i686-linux /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i686-linux /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.5/i686-linux /usr/lib/perl5/5.8.5 /usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux .). BEGIN failed--compilation aborted. * * Please post a bug on http://bugs.gentoo.org assigned to * perl@gentoo.org - File-Spec-0.87 was added without a dependancy * on dev-perl/module-build * * Reproducible: Always Steps to Reproduce: 1. emerge File-Spec 2. 3. Actual Results: It stops with the error reported in the details and tells me to file this bug. Expected Results: It should install dev-perl/File-Spec-0.87 Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.6.12 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.5 [2.3.5 (#1, May 2 2005, 09:43:30)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.2.3-r5, 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.9.5, 1.8.5-r3, 1.6.3, 1.4_p6, 1.7.9-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict userpriv" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aalib alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups curl emboss encode esd fam flac foomaticdb fortran gd gdbm gif gpm gtk gtk2 imagemagick imlib ipv6 java jpeg junit kde libwww motif mp3 mpeg mysql ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline samba sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts vhosts vorbis xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
No, it was not, the dependency is there; re-emerge dev-perl/module-build and try again.
Something indeed appears to be wrong with my module-build package. Portage indicates I have dev-perl/module-build-0.25 installed, but when I try to re-emerge it, perl pegs my CPU and eats up memory indefinitely until I kill it (before it brings my machine to its knees). Same thing happens when I try to emerge dev-perl/module-build-0.26.10.
don't suppose the recent unmasking of 5.8.6 helped any? not that it comes with module-build, but it should help clean up and point out any cruft you have in your current install (though I'm impressed you have an @INC going back so far)
(In reply to comment #3) > don't suppose the recent unmasking of 5.8.6 helped any? Unfortunately the problem still exists after upgrading to 5.8.6 and running the 'perl-cleaner all' script (I rebuilt everything except module-build and File-Spec). One thing I was curious about - the File-Spec package has module-build as a dependancy, yet the Build.PL script for module-build uses File-Spec? Regarding the @INC list, I guess I haven't cleaned out my old perl versions...is that a potential problem?
Please post the output of perl -V as well as what you see on the screen when you attempt to emerge module-build. Please try unmerging it first (just to be safe - we might be entering a loop here since the detection of the Build.pl script could invoke a loop).
bigalb ~ # emerge -C module-build --- Couldn't find module-build to unmerge. >>> unmerge: No packages selected for removal. bigalb ~ # emerge module-build Calculating dependencies ...done! >>> emerge (1 of 1) dev-perl/module-build-0.25 to / >>> md5 files ;-) module-build-0.25.ebuild >>> md5 files ;-) module-build-0.26.10.ebuild >>> md5 files ;-) files/digest-module-build-0.26.10 >>> md5 files ;-) files/digest-module-build-0.25 >>> md5 src_uri ;-) Module-Build-0.25.tar.gz >>> Unpacking source... >>> Unpacking Module-Build-0.25.tar.gz to /var/tmp/portage/module-build-0.25/work >>> Source unpacked. I have to kill the process after a bit because it just keeps eating up more memory. This is the last thing I see. I'm pretty sure it's the Build.PL script that hangs and it's possibly related to the Config hash. I found a thread in the forums that had a little script in it that did lock up my system. http://forums.gentoo.org/viewtopic-t-311402-start-0-postdays-0-postorder-asc-highlight-.html use Config; foreach my $key (keys %Config) { if (defined $Config{$key}) { print "$key => $Config{$key}\n"; } } bigalb ~ # perl -V Summary of my perl5 (revision 5 version 8 subversion 6) configuration: Platform: osname=linux, osvers=2.6.11-gentoo-r11, archname=i686-linux uname='linux bigalb 2.6.11-gentoo-r11 #2 smp fri jun 24 14:15:24 est 2005 i686 intel(r) pentium(r) 4 cpu 2.40ghz genuineintel gnulinux ' config_args='-des -Darchname=i686-linux -Dcccdlflags=-fPIC -Dccdlflags=-rdynamic -Dcc=i686-pc-linux-gnu-gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth= -Doptimize=-march=pentium4 -O2 -pipe -Duselargefiles -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1 -Dinstallman3dir=/var/tmp/portage/perl-5.8.6-r5/image//usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm -Dinc_version_list=5.8.0 5.8.0/i686-linux 5.8.2 5.8.2/i686-linux 5.8.4 5.8.4/i686-linux 5.8.5 5.8.5/i686-linux -Dcf_by=Gentoo -Ud_csh -Di_ndbm -Di_gdbm -Di_db' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='i686-pc-linux-gnu-gcc', ccflags ='-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-march=pentium4 -O2 -pipe', cppflags='-DPERL5 -fno-strict-aliasing -pipe' ccversion='', gccversion='3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='i686-pc-linux-gnu-gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.3.4' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under linux Compiled at Jul 5 2005 09:33:20 @INC: /etc/perl /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i686-linux /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i686-linux /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.5/i686-linux /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i686-linux .
which -r of libperl and perl is emerged? Your compile time is within hours of my posting an update to the ebuild to fix a bad libperl (which had a deceptively quiet typo killer). Just covering bases (our 2 perls are nearly identical in compile options, hence my being fluxomed). It should be libperl-5.8.6-r1 and perl-5.8.6-r5, Thanks, mike
I have those same versions of libperl and perl installed too. sys-devel/libperl-5.8.6-r1 dev-lang/perl-5.8.6-r5
Looking at the forum post, does perl -MConfig -e ' print $Config{'cf_email'},"\n" ;\ print $Config{'perladmin'},"\n" ;' produce viable output? I confess, I'm as fluxomed as anyone. I'll poke into my Config.pm to see if I can dup this at all If you find yourself on irc.freenode.net, msg mcummings - if I can, I'll respond
while i'm at it - can you attach a copy of Config.pm and Config_heavy.pm from /usr/lib/perl5/5.8.*/i686-linux ? There should be only the one copy under your current perl - please let me know if you find other copies of it under /usr/lib/perl5/5*/i686-linux
Config_heavy.pl that is
final spam from mcummings for now (promise) - can you also post your /etc/mtab (looking to see if /var/tmp is a seperate mount, and if so, what options).
Created attachment 63800 [details] Config.pm file from perl install Here is the Config.pm file found in /usr/lib/perl5/5.8.6/i686-linux/Config.pm. I did not find it in any other versions of Perl. I also not find Config_heavy.pl anywhere (only *heavy* files I can find under /usr/lib/perl5 are utf8_heavy.pl and bytes_heavy.pl).
(In reply to comment #9) > Looking at the forum post, does > > perl -MConfig -e ' print $Config{'cf_email'},"\n" ;\ > print $Config{'perladmin'},"\n" ;' > > produce viable output? I confess, I'm as fluxomed as anyone. I'll poke into my > Config.pm to see if I can dup this at all Produces empty output, however on a different (working) box it does work. > > If you find yourself on irc.freenode.net, msg mcummings - if I can, I'll respond Thanks, I appreciate it. I'll see if I can try that later. I don't really know how to use IRC, is there a preferred/standard client?
(In reply to comment #12) > final spam from mcummings for now (promise) - can you also post your /etc/mtab > (looking to see if /var/tmp is a seperate mount, and if so, what options). /var/tmp isn't separate, but /var is: bigalb perl5 # cat /etc/mtab /dev/hda5 / ext3 rw,noatime 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 udev /dev tmpfs rw,nosuid 0 0 devpts /dev/pts devpts rw 0 0 /dev/hda2 /u3 ext3 rw,noatime 0 0 /dev/hda6 /u1 ext3 rw,noatime 0 0 /dev/hda7 /u2 ext3 rw,noatime 0 0 /dev/sda1 /home ext3 rw,noatime 0 0 /dev/sda2 /var ext3 rw,noatime 0 0 /dev/sda3 /usr/local ext3 rw,noatime 0 0 none /dev/shm tmpfs rw 0 0 usbfs /proc/bus/usb usbfs rw 0 0 nfsd /proc/fs/nfs nfsd rw 0 0 //easydev/easydev-web /mnt/easydev/web smbfs 0 0 //easydev/Linux /mnt/easydev/Linux smbfs 0 0 //srv1/Alec_Dev /mnt/srv1/alec_dev smbfs 0 0 //srv1/Public /mnt/srv1/public smbfs 0 0 192.168.254.207:/usb2/p1 /mnt/usb2/p1 nfs rw,addr=192.168.254.207,addr=192.168.254.207 0 0 192.168.254.207:/usb1 /mnt/usb1 nfs rw,addr=192.168.254.207,addr=192.168.254.207 0 0 Permissions on /var/tmp: drwxrwxrwt 10 root root 4096 Jul 19 08:52 tmp
(In reply to comment #15) > /var/tmp isn't separate, but /var is: > > /dev/sda2 /var ext3 rw,noatime 0 0 bah, that looks good though (I see bugs with noatime not being used a lot) (In reply to comment #14) > Produces empty output, however on a different (working) box it does work. which is consistent with what the forums folks saw when they had problems... > > Thanks, I appreciate it. I'll see if I can try that later. I don't really know > how to use IRC, is there a preferred/standard client? > No biggie. I think IRC clients are like window managers and editors - each one has a die hard following ;) No biggie, just makes for real time, less mikey spam :) (In reply to comment #13) > I also not find > Config_heavy.pl anywhere (only *heavy* files I can find under /usr/lib/perl5 > are utf8_heavy.pl and bytes_heavy.pl). Not good, not good at all. Config_heavy should have been generated during the install and is what provides all sorts of cool variables like installvendordirs, etc. That is isn't there doesn't speak well for this install of perl (and no, I don't know why it isn't there...). Hmmmm....just noticed you had distcc enabled (I've had bad experience with that not returning from jobs correctly - just me, I know). If you have the cycles to spare, could you re-emerge perl without ccache or distcc enabled? At worst it should just lie on top of your current install (not erase anything you've merged afterwards). Thanks for your patience, mike
actually, please disable distcc and set -j down to cpu's+1 - ccache shouldn't be the obstacle (shouldn't)
I reemerged perl with the following changes in my make.conf (I disabled ccache and distcc) FEATURES="sandbox userpriv" MAKEOPTS="-j2" I also went ahead and reemerged libperl. Still don't have a Config_heavy.pl file anywhere. Also, on my other working machine, I don't seem to have this file either. Just to be sure I'm searching correctly - here is the command I used to check: bigalb perl5 # find /usr/lib/perl5/ -name "*[Hh]eavy*" /usr/lib/perl5/5.8.6/Carp/Heavy.pm /usr/lib/perl5/5.8.6/Exporter/Heavy.pm /usr/lib/perl5/5.8.6/utf8_heavy.pl /usr/lib/perl5/5.8.6/bytes_heavy.pl module-build still croaks on the emerge. thanks for taking the time to dig into this.
bah, i should have quit while i was head. Looks like Config_heavy.pl is shipped with 5.8.7 and up, not 5.8.6 - which means it should be pulling it from the Config.pm - break - OK, fix the following line pairs in your Config.pm: 178/179 896/897 934/935 And while we have a 'test' case here - what's your hosts file look like for the easystreet entries? (trying to think of where it would have pulled this bad data from - fixing the running perl is fine, but I want to avoid this in the future, or at least know what to point a finger at). and no thanks should be given until you have a functional perl (again)(for the first time even).
> OK, fix the following line pairs in your Config.pm: > > 178/179 > 896/897 > 934/935 I deleted the extra lines and added the ' marks back around each config val. Now emerge module-build works, as well as the original ebuild that started all this - File-Spec. I should have paid more attention when messing around with my hosts file - it didn't do anything becuase I never regenerated the Config.pm file after stripping out the extra entries. I suppose later when I re-emerged perl several times it was after I restored my original hosts file back. > And while we have a 'test' case here - what's your hosts file look like for the > easystreet entries? (trying to think of where it would have pulled this bad data > from - fixing the running perl is fine, but I want to avoid this in the future, > or at least know what to point a finger at). Here's the relevant hosts file info: 127.0.0.1 localhost 192.168.254.206 bigalb.easystreet.int bigalb bigalb.easystreetrealty.com www.chumpland.org chumpland.org Probably a bad habit - I have these extra entries in my hosts file so I don't have to figure out how to get resolved back to an internal IP when I'm inside the LAN.
Just happy to see it fixed :) I'm going to go ahead and close this bug out for now, keeping it in mind though for future "perl runs rampant and then dies" bugs (actually think there's one out there now...). Have fun, -mike
> and no thanks should be given until you have a functional perl (again)(for the > first time even). ok, sorry for the extra "spam" here, but now I can say thanks for helping me resolve it.
I've just added a comment to http://forums.gentoo.org/viewtopic-t-311402-start-0-postdays-0-postorder-asc-highlight-.html that the real cause of the problem is (most likely) having multiple search (or domain) entries in /etc/resolv.conf.
hmmmm...but from what I saw, the problem was having more than three fields in an /etc/hosts file entry for your local machine (not localhost, but the machine your on)
Dont think it matters if there are more than 3 fields for an ip address in /etc/hosts - they are aliases? Configure looks in /etc/hosts first to work out domain from a FQDN. Just tried putting multiple entries in /etc/hosts. If Configure finds multiple FQDNs then it warns and goes on to look into /etc/resolv.conf for the domain - as it does if it cant find any FQDNs. But it ignores multiple entries if they arent fully qualified.
bah, technicalities :)