Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387855 - cross-arm-linux-gnueabi/binutils-2.21.1-r1 - elibtoolize: die "Portage patch requested, but failed to apply!"
Summary: cross-arm-linux-gnueabi/binutils-2.21.1-r1 - elibtoolize: die "Portage patch ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-20 11:31 UTC by Alex Buell
Modified: 2011-10-30 02:24 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Buell 2011-10-20 11:31:02 UTC
Issuing any of those commands will always result in a failure to patch binutils 2.21.1-r1 as required for the ARM architecture on x86 platforms. 

crossdev -S arm
crossdev -t arm-linux-gnueabi

Calculating dependencies  ..... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) cross-arm-linux-gnueabi/binutils-2.21.1-r1 from local
 * binutils-2.21.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...               [ ok ]
 * binutils-2.21.1-patches-1.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...   [ ok ]
>>> Unpacking source...
>>> Unpacking binutils-2.21.1.tar.bz2 to /var/tmp/portage/cross-arm-linux-gnueabi/binutils-2.21.1-r1/work
>>> Unpacking binutils-2.21.1-patches-1.3.tar.bz2 to /var/tmp/portage/cross-arm-linux-gnueabi/binutils-2.21.1-r1/work
 * Applying various patches (bugfixes/updates) ...
 *   03_all_binutils-2.15.92.0.2-ppc64-pie.patch ...
 [ ok ]
 *   08_all_binutils-RPATH_ENVVAR-smack.patch ...
 [ ok ]
 *   12_all_sh-targets.patch ...
 [ ok ]
 *   15_all_alpha-relax-pr12608.patch ...
 [ ok ]
 *   16_all_mips-link-segv-pr12845.patch ...
 [ ok ]
 *   20_all_ld-sysroot.patch ...
 [ ok ]
 *   30_all_binutils-2.20-flexible-tests.patch ...
 [ ok ]
 *   40_all_binutils-ld-gcc-4.6-tests.patch ...
 [ ok ]
 *   63_all_binutils-2.21.1-pt-pax-flags-20110918.patch ...
 [ ok ]
 *   66_all_binutils-2.18.50.0.2-warn-textrel.patch ...
 [ ok ]
 *   75_all_binutils-default-test-flags.patch ...
 [ ok ]
 *   76_all_use-new-ld-dtags.patch ...
 [ ok ]
 *   77_all_generate-gnu-hash.patch ...
 [ ok ]
 *   78_all_use-relro.patch ...
 [ ok ]
 *   91_all_libiberty-pic.patch ...
 [ ok ]
 * Done with patching
 * Fixing misc issues in configure files
 * Using GNU config files from /usr/share/gnuconfig
 *   Updating config.sub
 [ ok ]
 *   Updating config.guess
 [ ok ]
 * Running elibtoolize in: binutils-2.21.1/

 * Portage patch requested, but failed to apply!
 * Please file a bug report to add a proper patch.
 * ERROR: cross-arm-linux-gnueabi/binutils-2.21.1-r1 failed (unpack phase):
 *   Portage patch requested, but failed to apply!
 * 
 * Call stack:
 *     ebuild.sh, line   91:  Called src_unpack
 *   environment, line 3255:  Called toolchain-binutils_src_unpack
 *   environment, line 4065:  Called tc-binutils_apply_patches
 *   environment, line 3430:  Called elibtoolize '--portage' '--no-uclibc'
 *   environment, line 1280:  Called die
 * The specific snippet of code:
 *                                   die "Portage patch requested, but failed to apply!";
 * 
 * If you need support, post the output of 'emerge --info =cross-arm-linux-gnueabi/binutils-2.21.1-r1',
 * the complete build log and the output of 'emerge -pqv =cross-arm-linux-gnueabi/binutils-2.21.1-r1'.
 * This ebuild is from an overlay named 'local': '/var/lib/layman/'
 * The complete build log is located at '/var/tmp/portage/cross-arm-linux-gnueabi/binutils-2.21.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-arm-linux-gnueabi/binutils-2.21.1-r1/temp/environment'.
 * S: '/var/tmp/portage/cross-arm-linux-gnueabi/binutils-2.21.1-r1/work/binutils-2.21.1'

>>> Failed to emerge cross-arm-linux-gnueabi/binutils-2.21.1-r1, Log file:

>>>  '/var/tmp/portage/cross-arm-linux-gnueabi/binutils-2.21.1-r1/temp/build.log'

 * Messages for package cross-arm-linux-gnueabi/binutils-2.21.1-r1:

 * Portage patch requested, but failed to apply!
 * Please file a bug report to add a proper patch.
 * ERROR: cross-arm-linux-gnueabi/binutils-2.21.1-r1 failed (unpack phase):
 *   Portage patch requested, but failed to apply!
 * 
 * Call stack:
 *     ebuild.sh, line   91:  Called src_unpack
 *   environment, line 3255:  Called toolchain-binutils_src_unpack
 *   environment, line 4065:  Called tc-binutils_apply_patches
 *   environment, line 3430:  Called elibtoolize '--portage' '--no-uclibc'
 *   environment, line 1280:  Called die
 * The specific snippet of code:
 *                                   die "Portage patch requested, but failed to apply!";
 * 
 * If you need support, post the output of 'emerge --info =cross-arm-linux-gnueabi/binutils-2.21.1-r1',
 * the complete build log and the output of 'emerge -pqv =cross-arm-linux-gnueabi/binutils-2.21.1-r1'.
 * This ebuild is from an overlay named 'local': '/var/lib/layman/'
 * The complete build log is located at '/var/tmp/portage/cross-arm-linux-gnueabi/binutils-2.21.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-arm-linux-gnueabi/binutils-2.21.1-r1/temp/environment'.
 * S: '/var/tmp/portage/cross-arm-linux-gnueabi/binutils-2.21.1-r1/work/binutils-2.21.1'


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-10-20 16:00:17 UTC
You forgot a few things:

 * If you need support, post the output of 'emerge --info
=cross-arm-linux-gnueabi/binutils-2.21.1-r1',
 * the complete build log and the output of 'emerge -pqv
=cross-arm-linux-gnueabi/binutils-2.21.1-r1'.
Comment 2 William Roberts 2011-10-30 02:24:20 UTC
I am experiencing the same problem.  I have tried previous versions of crossdev and binutils with no luck.  

I posted in the gentoo.org forums http://forums.gentoo.org/viewtopic-t-899954.html and additionally, I am providing the requested emerge's above.


====================  

roberts@banshee ~ $ emerge --info =cross-arm-linux-gnueabi/binutils-2.21.1-r1
Portage 2.1.10.31 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 2.6.39-gentoo-r4 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.39-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9000_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Sat, 29 Oct 2011 19:45:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x-portage rion sunrise proaudio gentoo-arm
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs buildpkg candy ccache digest distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/rion /usr/local/portage/sunrise /usr/local/portage/pro-audio /usr/local/portage/gentoo-arm"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 apm avi bash-completion berkdb branding bzip2 caps cddb cdparanoia cdr cli consolekit cracklib crypt css curl custom-cflags cxx daap dbus device-mapper divx dri dts dv dvb dvdread embedded encode exif expat faac faad fam fbcondecor ffmpeg fftw firefox flac fontconfig gdbm gif glitz gpm gstreamer hd iconv ieee1394 imlib imlib2 iphone ipod ithreads java joystick jpeg laptop libcaca lm_sensors mad mdnsresponder-compat mjpeg mmx modules mp3 mpeg mplayer mtp mudflap multilib musicbrainz mysql ncurses networkmanager nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png policykit posix pppd pulseaudio qt3support quicktime readline rss samba sdl session sndfile speex sse sse2 ssl static-libs subtitles svg sysfs theora threads tiff transcode truetype udev unicode usb v4l vcd video vlc vorbis wifi wma x264 xcomposite xine xinerama xml xml2 xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=========================

banshee portage # emerge -pqv =cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1
[ebuild  N    ] cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1  USE="static-libs -multislot -multitarget -nls -test -vanilla" 

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

banshee portage # emerge =cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1
 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

 * 
 * The FEATURES=digest setting can prevent corruption from being noticed.
 * The `repoman manifest` command is the preferred way to generate
 * manifests and it is capable of doing an entire repository or category at
 * once.
 * 
Calculating dependencies              ... done!
>>> Creating Manifest for /usr/local/portage/cross-armv7a-unknown-linux-gnueabi/binutils

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1 from x-portage

!!! Directory does not exist: '/usr/lib64/ccache/bin'
!!! Disabled FEATURES='ccache'
 * binutils-2.21.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...               [ ok ]
 * binutils-2.21.1-patches-1.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...   [ ok ]
>>> Unpacking source...
>>> Unpacking binutils-2.21.1.tar.bz2 to /var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/work
>>> Unpacking binutils-2.21.1-patches-1.3.tar.bz2 to /var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/work
 * Applying various patches (bugfixes/updates) ...
 *   03_all_binutils-2.15.92.0.2-ppc64-pie.patch ...                     [ ok ]
 *   08_all_binutils-RPATH_ENVVAR-smack.patch ...                        [ ok ]
 *   12_all_sh-targets.patch ...                                         [ ok ]
 *   15_all_alpha-relax-pr12608.patch ...                                [ ok ]
 *   16_all_mips-link-segv-pr12845.patch ...                             [ ok ]
 *   20_all_ld-sysroot.patch ...                                         [ ok ]
 *   30_all_binutils-2.20-flexible-tests.patch ...                       [ ok ]
 *   40_all_binutils-ld-gcc-4.6-tests.patch ...                          [ ok ]
 *   63_all_binutils-2.21.1-pt-pax-flags-20110918.patch ...              [ ok ]
 *   66_all_binutils-2.18.50.0.2-warn-textrel.patch ...                  [ ok ]
 *   75_all_binutils-default-test-flags.patch ...                        [ ok ]
 *   76_all_use-new-ld-dtags.patch ...                                   [ ok ]
 *   77_all_generate-gnu-hash.patch ...                                  [ ok ]
 *   78_all_use-relro.patch ...                                          [ ok ]
 *   91_all_libiberty-pic.patch ...                                      [ ok ]
 * Done with patching
 * Fixing misc issues in configure files
 * Using GNU config files from /usr/share/gnuconfig
 *   Updating config.sub                                                 [ ok ]
 *   Updating config.guess                                               [ ok ]
 * Running elibtoolize in: binutils-2.21.1/

 * Portage patch requested, but failed to apply!
 * Please file a bug report to add a proper patch.
 * ERROR: cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1 failed (unpack phase):
 *   Portage patch requested, but failed to apply!
 * 
 * Call stack:
 *     ebuild.sh, line   91:  Called src_unpack
 *   environment, line 3261:  Called toolchain-binutils_src_unpack
 *   environment, line 4070:  Called tc-binutils_apply_patches
 *   environment, line 3435:  Called elibtoolize '--portage' '--no-uclibc'
 *   environment, line 1300:  Called die
 * The specific snippet of code:
 *                                   die "Portage patch requested, but failed to apply!";
 * 
 * If you need support, post the output of 'emerge --info =cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1',
 * the complete build log and the output of 'emerge -pqv =cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1'.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/temp/environment'.
 * S: '/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/work/binutils-2.21.1'

>>> Failed to emerge cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1, Log file:

>>>  '/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/temp/build.log'

 * Messages for package cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1:

 * Portage patch requested, but failed to apply!
 * Please file a bug report to add a proper patch.
 * ERROR: cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1 failed (unpack phase):
 *   Portage patch requested, but failed to apply!
 * 
 * Call stack:
 *     ebuild.sh, line   91:  Called src_unpack
 *   environment, line 3261:  Called toolchain-binutils_src_unpack
 *   environment, line 4070:  Called tc-binutils_apply_patches
 *   environment, line 3435:  Called elibtoolize '--portage' '--no-uclibc'
 *   environment, line 1300:  Called die
 * The specific snippet of code:
 *                                   die "Portage patch requested, but failed to apply!";
 * 
 * If you need support, post the output of 'emerge --info =cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1',
 * the complete build log and the output of 'emerge -pqv =cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1'.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/temp/environment'.
 * S: '/var/tmp/portage/cross-armv7a-unknown-linux-gnueabi/binutils-2.21.1-r1/work/binutils-2.21.1'

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.