Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 511870 - sys-devel/automake-1.14.1 - src_compile(): Can't locate .../work/automake-1.14/bin/aclocal in @INC
Summary: sys-devel/automake-1.14.1 - src_compile(): Can't locate .../work/automake-1.1...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-30 16:24 UTC by Brian McKee
Modified: 2014-08-16 18:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,8.55 KB, text/plain)
2014-05-30 16:27 UTC, Brian McKee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian McKee 2014-05-30 16:24:27 UTC
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
Comment 1 Brian McKee 2014-05-30 16:27:38 UTC
Created attachment 377860 [details]
build.log
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2014-05-30 18:48:29 UTC
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.
Comment 3 Brian McKee 2014-05-30 18:54:12 UTC
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.
Comment 4 Brian McKee 2014-05-30 23:11:14 UTC
I did --reallyall twice and it didn't fix the problem...

Help?
Comment 5 Brian McKee 2014-06-01 16:44:54 UTC
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.
Comment 6 Brian McKee 2014-08-16 18:40:50 UTC
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.