Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136599 - gcc emerge fails to install fixlafiles.awk with cross-compilers
Summary: gcc emerge fails to install fixlafiles.awk with cross-compilers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-12 17:33 UTC by Andrew Gaffney (RETIRED)
Modified: 2006-06-20 11:40 UTC (History)
1 user (show)

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


Attachments
Failed to install fixlafiles.awk (gcc4-cat2-boom1.txt,6.02 KB, text/plain)
2006-06-20 11:01 UTC, Joshua Kinard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gaffney (RETIRED) gentoo-dev 2006-06-12 17:33:26 UTC
I first ran into this issue this morning trying to build a hppa2.0 cross-toolchain on my sparc. Solar informed me that it seems to be an issue for installing *any* toolchain from a binpkg (I have FEATURES=buildpkg). I was just able to reproduce it locally on my amd64 box with 'emerge -1k sys-devel/gcc'. I could be entirely wrong (it's been known to happen), but it looks like the problem was introduced with this commit:

http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain.eclass?r1=1.288&r2=1.289

Here's the revelant output:

--- !empty dir /usr
--- !empty dir /sbin
--- !empty dir /lib/rcscripts/awk
--- !empty dir /lib/rcscripts
--- !empty dir /lib
--- !empty dir /etc/env.d/gcc
--- !empty dir /etc
>>> Original instance of package unmerged safely.
 * The current gcc config appears valid, so it will not be
 * automatically switched for you.  If you would like to
 * switch to the newly installed gcc version, do the
 * following:

 * eselect compiler set <profile>


 * If you have issues with packages unable to locate libstdc++.la,
 * then try running 'fix_libtool_files.sh' on the old gcc versions.

cp: cannot stat `///usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/fixlafiles.awk': No such file or directory

!!! ERROR: sys-devel/gcc-4.1.1 failed.
Call stack:
  ebuild.sh, line 1520:   Called pkg_postinst
  ebuild.sh, line 1248:   Called toolchain_pkg_postinst
  toolchain.eclass, line 36:   Called gcc-compiler_pkg_postinst
  toolchain.eclass, line 875:   Called die

!!! installing fixlafiles.awk
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2006-06-12 18:05:25 UTC
CC'ing release as this likely b0rks catalyst builds using pkgcache.
Comment 2 SpanKY gentoo-dev 2006-06-14 21:09:06 UTC
well, i can add a check to the eclass to only copy the file if it exists to work around old binary packages, but that lets in the chance of people installing a newer gcc incorrectly
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2006-06-15 07:30:14 UTC
It doesn't appear to just be older binpkgs. I just did another crossdev run on my sparc, and it failed on cross-gcc-stage2 (which I'd never gotten to before, so no binpkg) with the same error.
Comment 4 SpanKY gentoo-dev 2006-06-15 21:17:13 UTC
has nothing to do with normal releases

fixed in cvs
Comment 5 Joshua Kinard gentoo-dev 2006-06-20 11:00:22 UTC
Bumped into this on a catalyst run when it tried to re-merge gcc-4.1.1 from binpkg.  The snapshot is current as of 20060618.
Comment 6 Joshua Kinard gentoo-dev 2006-06-20 11:01:36 UTC
Created attachment 89648 [details]
Failed to install fixlafiles.awk
Comment 7 SpanKY gentoo-dev 2006-06-20 11:40:08 UTC
your binpkg is out of date

>>> /tmp/stage1root/lib/rcscripts/awk/fixlafiles.awk
>>> /tmp/stage1root/sbin/fix_libtool_files.sh