When I try to emerge automake-1.14.1 I receive an error: Can't locate /var/tmp/portage/sys-devel/automake-1.14/work/automake-1.14/bin/aclocal in @INC (@INC contains: /etc/perl /usr/local/lib64/perl5/5.16.3/x86_64-linux /usr/local/lib64/perl5/5.16.3 /usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux /usr/lib64/perl5/vendor_perl/5.16.3 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl/5.16.1 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.16.3/x86_64-linux /usr/lib64/perl5/5.16.3 .) at /var/tmp/portage/sys-devel/automake-1.14/work/automake-1.14/t/wrap/aclocal-1.14 line 29. make: *** [aclocal.m4] Error 2 emake failed * ERROR: sys-devel/automake-1.14::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 2165: Called die * The specific snippet of code: * emake APIVERSION="${SLOT}" pkgvdatadir="/usr/share/${PN}-${SLOT}" || die Reproducible: Always Steps to Reproduce: 1.echo sys-devel/automake >> /etc/portage/package.keywords/automake 2.emerge automake 3.Loss! Actual Results: It looks like the make file is looking for the binary before its actually built it. Expected Results: Install automake-1.14.1
Created attachment 377860 [details] build.log
I suspect you forgot to run `perl-cleaner` after an dev-lang/perl upgrade? Do you have multiple perl directories in /usr/lib/perl5/? If so, run `perl-cleaner --reallyall`, likely multiple times.
Thanks for replying. I ran it once. I'm running it again. I do have more than one directory in /usr/lib/perl. If I happened to install perl modules not found in gentoo portage, could that be the source of the problem? I vaguely remember needing a perl module for something a while back and having to use a perl utility to install it. May not have been this machine though.
I did --reallyall twice and it didn't fix the problem... Help?
I built automake by hand in /usr/src using the configure and make commands found in the failed gentoo emerge. This worked. make install then put it where it's needed and now the system is emerging. I still have no idea why the gentoo make fails and the stock make works. I wish I were more technically savvy so I could help.
PEBCAK. Somehow, someway, I created a new bashrc in /etc/portage that looked like this: post_src_unpack() { cd "${S}" for f in configure.{in,ac}; do sed -i $f -e 's~AM_CONFIG_HEADER~AC_CONFIG_HEADERS~;/AM_PROG_CC_STDC/d' done } I don't remember doing it, but I figure it was some work around for some package I was having problems with. Case closed.