Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310279 - sys-devel/binutils-2.20.1 fails to patch 78_all_use-relro.patch for mips because 77_all_generate-gnu-hash.patch is skipped
Summary: sys-devel/binutils-2.20.1 fails to patch 78_all_use-relro.patch for mips beca...
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:
: 313135 (view as bug list)
Depends on:
Blocks: 298571
  Show dependency tree
 
Reported: 2010-03-19 19:59 UTC by Stuart Longland (RETIRED)
Modified: 2010-05-09 08:09 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,3.20 KB, text/plain)
2010-03-19 20:01 UTC, Stuart Longland (RETIRED)
Details
78_all_use-relro.patch.out (78_all_use-relro.patch.out,4.75 KB, text/plain)
2010-03-19 20:02 UTC, Stuart Longland (RETIRED)
Details
mips toolchain compilation fix workaround (toolchain-binutils.eclass.mips.patch,510 bytes, patch)
2010-04-29 20:51 UTC, Maksim 'max_posedon' Melnikau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Longland (RETIRED) gentoo-dev 2010-03-19 19:59:41 UTC
The latest binutils ebuild appears to fail on this patch:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS   ] sys-devel/binutils-2.20.1 [2.19.1-r50, 2.19.51.0.14-r1, 2.20] USE="multislot nls test -multitarget -vanilla" 0 kB [0]                                                                                                                   
[ebuild     U ] sys-kernel/linux-headers-2.6.33 [2.6.30-r1] 0 kB [0]                                                        
[ebuild   R   ] sys-libs/glibc-2.9_p20090420  USE="debug* gd nls -glibc-omitfp (-hardened) (-multilib) -profile (-selinux) -vanilla" 0 kB [1]                                                                                                           
[ebuild  NS   ] sys-devel/gcc-4.4.3 [4.1.2, 4.3.3-r1, 4.3.4] USE="doc fortran gcj gtk libffi mudflap multislot nls nptl openmp test (-altivec) -bootstrap -build -fixed-point -graphite (-hardened) (-multilib) -n32 -n64 -nocxx -objc -objc++ -objc-gc -vanilla" 0 kB [0]                                                                                                          

Total: 4 packages (1 upgrade, 2 in new slots, 1 reinstall), Size of downloads: 0 kB
Portage tree and overlays:                                                         
 [0] /usr/portage                                                                  
 [1] /home/portage/overlays/gentoo-cn                                              

>>> Creating Manifest for /usr/portage/sys-devel/binutils
>>> Creating Manifest for /usr/portage/sys-kernel/linux-headers
>>> Creating Manifest for /home/portage/overlays/gentoo-cn/sys-libs/glibc
>>> Creating Manifest for /usr/portage/sys-devel/gcc                     

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 4) sys-devel/binutils-2.20.1
 * binutils-2.20.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                           [ ok ]
 * binutils-2.20.1-patches-1.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                               [ ok ]
 * checking ebuild checksums ;-) ...                                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                                               [ ok ]
 * CPV:  sys-devel/binutils-2.20.1                                                                                         
 * REPO: gentoo                                                                                                            
 * USE:  elibc_glibc kernel_linux mips multislot nls test userland_GNU                                                     
>>> Unpacking source...                                                                                                    
>>> Unpacking binutils-2.20.1.tar.bz2 to /tmp/portage/sys-devel/binutils-2.20.1/work                                       
>>> Unpacking binutils-2.20.1-patches-1.0.tar.bz2 to /tmp/portage/sys-devel/binutils-2.20.1/work                           
 * Applying various patches (bugfixes/updates) ...                                                                         
 *   03_all_binutils-2.15.92.0.2-ppc64-pie.patch ...                                                                  [ ok ]
 *   05_all_binutils-2.20-bfd-plugins.patch ...                                                                       [ ok ]
 *   08_all_binutils-RPATH_ENVVAR-smack.patch ...                                                                     [ ok ]
 *   10_all_binutils-2.20-mips-pie.patch ...                                                                          [ ok ]
 *   11_all_binutils-2.20-ia64-ld-relax.patch ...                                                                     [ ok ]
 *   12_all_sh-targets.patch ...                                                                                      [ ok ]
 *   20_all_ld-sysroot.patch ...                                                                                      [ ok ]
 *   30_all_binutils-2.20-flexible-tests.patch ...                                                                    [ ok ]
 *   63_all_binutils-2.20-pt-pax-flags-20090909.patch ...                                                             [ ok ]
 *   65_all_binutils-2.20-amd64-32bit-path.patch ...                                                                  [ ok ]
 *   66_all_binutils-2.18.50.0.2-warn-textrel.patch ...                                                               [ ok ]
 *   76_all_use-new-ld-dtags.patch ...                                                                                [ ok ]
 *   77_all_document-new-dtags-behaviour.patch ...                                                                    [ ok ]
 *   78_all_use-relro.patch ...                                                                                             

 * Failed Patch: 78_all_use-relro.patch !
 *  ( /tmp/portage/sys-devel/binutils-2.20.1/work/patch/78_all_use-relro.patch )
 *                                                                              
 * Include in your bugreport the contents of:                                   
 *                                                                              
 *   /tmp/portage/sys-devel/binutils-2.20.1/temp/78_all_use-relro.patch.out     

 * ERROR: sys-devel/binutils-2.20.1 failed:
 *   Failed Patch: 78_all_use-relro.patch! 
 *                                         
 * Call stack:                             
 *     ebuild.sh, line   54:  Called src_unpack
 *   environment, line 3317:  Called toolchain-binutils_src_unpack
 *   environment, line 4065:  Called tc-binutils_apply_patches    
 *   environment, line 3461:  Called epatch                       
 *   environment, line 1779:  Called die                          
 * The specific snippet of code:                                  
 *               die "Failed Patch: ${patchname}!";               
 *                                                                
 * If you need support, post the output of 'emerge --info =sys-devel/binutils-2.20.1',
 * the complete build log and the output of 'emerge -pqv =sys-devel/binutils-2.20.1'. 
 * The complete build log is located at '/tmp/portage/sys-devel/binutils-2.20.1/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/sys-devel/binutils-2.20.1/temp/environment'.
 * S: '/tmp/portage/sys-devel/binutils-2.20.1/work/binutils-2.20.1'                                    

>>> Failed to emerge sys-devel/binutils-2.20.1, Log file:

>>>  '/tmp/portage/sys-devel/binutils-2.20.1/temp/build.log'

sh-4.0# emerge --info
Portage 2.1.8.3 (default/linux/mips/10.0/cobalt/developer, gcc-4.3.4, glibc-2.9_p20090420-r0, 2.6.33-lm2f-nb mips64)
=================================================================                                                   
System uname: Linux-2.6.33-lm2f-nb-mips64-ICT_Loongson-2_V0.3_FPU_V0.1-with-gentoo-2.0.1                            
Timestamp of tree: Fri, 19 Mar 2010 19:15:01 +0000                                                                  
distcc 3.1 mipsel-unknown-linux-gnu [disabled]                                                                      
ccache version 2.4 [enabled]                                                                                        
app-shells/bash:     4.0_p28                                                                                        
dev-java/java-config: 2.1.8-r1                                                                                      
dev-lang/python:     2.5.4-r3, 2.6.2-r1, 3.1.1                                                                      
dev-util/ccache:     2.4-r8                                                                                         
dev-util/cmake:      2.6.4-r2                                                                                       
sys-apps/baselayout: 2.0.1                                                                                          
sys-apps/openrc:     0.4.3-r3                                                                                       
sys-apps/sandbox:    2.0                                                                                            
sys-devel/autoconf:  2.13, 2.63-r1                                                                                  
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                                        
sys-devel/binutils:  2.19.1-r50, 2.19.51.0.14-r1, 2.20                                                              
sys-devel/gcc:       4.1.2, 4.3.3-r1, 4.3.4                                                                         
sys-devel/gcc-config: 1.4.1                                                                                         
sys-devel/libtool:   2.2.6b                                                                                         
virtual/os-headers:  2.6.30-r1                                                                                      
ACCEPT_KEYWORDS="mips ~mips"                                                                                        
ACCEPT_LICENSE="* -@EULA"                                                                                           
CBUILD="mipsel-unknown-linux-gnu"                                                                                   
CFLAGS="-O2 -mabi=32 -pipe -mips3 -g"                                                                               
CHOST="mipsel-unknown-linux-gnu"                                                                                    
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"                                                     
CXXFLAGS="-O2 -mabi=32 -pipe -mips3 -g"                                                                                     
DISTDIR="/home/portage/distfiles"                                                                                           
FEATURES="assume-digests buildpkg ccache collision-protect cvs digest distlocks fixpackages multilib-strict news nostrip parallel-fetch protect-owned sfperms sign splitdebug strict stricter test test-fail-continue unmerge-logs unmerge-orphans userfetch userpriv usersandbox"                                                                                                  
GENTOO_MIRRORS="                http://mirror.aarnet.edu.au/pub/gentoo                  http://mirror.isp.net.au/ftp/pub/gentoo/            http://ftp.swin.edu.au/gentoo/"                                                                             
LDFLAGS="-Wl,-O1"                                                                                                           
LINGUAS="en_GB en_AU en"                                                                                                    
PKGDIR="/home/portage/packages/mipsel/mips3"                                                                                
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="/tmp"                                                                                                       
PORTDIR="/usr/portage"                                                                                                      
PORTDIR_OVERLAY="/home/portage/overlays/local /home/portage/overlays/shared /home/portage/overlays/gentoo-cn /home/portage/layman/mozilla /home/portage/layman/java-overlay /home/portage/layman/gentoo-china"                                          
SYNC="rsync://192.168.5.1/gentoo-portage"                                                                                   
USE="X Xaw3d a52 aac aalib accessibility ads aiglx aio akode alisp alsa amrnb amrwb ao aotuv apache2 apm arts audiofile autoipd avahi bash-completion bcmath berkdb bidi bitmap-fonts bl bluetooth bonobo bookmarks boost bzip2 cairo calendar capi ccache cdparanoia cgi chardet chm cjk cle266 cli clucene cluster consolekit coverage cracklib crypt ctype cups curl cviewer cvs cxx daap dbase dbus debug decibel dedicated demo device-mapper dia disk-partition divx djvu dns doc dtmf dts dvb dvd dvdread encode etcproposals examples exif exiv2 fam fame fax fbcon ffmpeg fftw filepicker filter firefox fits flac flatfile font-server fontconfig fortran fpx ftdi ftp gcj gd gdbm gif gimp gimpprint gitsendemail gjdoc glib gmedia gmp gnutls gpm gps graphviz gs gtk gtk2 gtk2-perl h224 h281 hal hash howl-compat http-server hyperestraier iax iconv id3tag idn imagemagick imap imlib inifile inkjar inotify ipod iproute2 ipv6 ivr ixj jabber jadetex java6 javascript jbig jingle jpeg json kde kig-scripting kontact ksolver lcms ldap libcaca libclamav libffi lid log lzma lzo mbrola md5sum mdnsresponder-compat mikmod mips mjpeg mmap mng mnt modplug modules mozbranding mozsha1 mp3 mp3rtp mp3tunes mp4 mplayer mssql mtp mudflap multislot multiuser musepack mysql nas ncurses netpbm network network_manager networkmanager newxkb nis njb nls nptl nptlonly nsplugin ntp oav odbc ogg opengl openmp oss pam pango parport passwordsave pch pcntl pcre pdf pdflib perl pipechan plotutils plugin png pnm policykit postscript povray ppds pppd python qmax qt qt3support qt4 quicktime raw rdesktop readline realmedia reflection replytolist restrict-javascript rfc4175 rogue rplay samba samba4 sametime sbc sdl server session sharedext sid simplexml sipim slp smp sms sndfile snmp soap sockets softmmu speex spell spl sqlite sqlite3 srtp ssl startup-notification stats stroke subversion suhosin svg swig symlink sysfs sysvipc taglib tcl tcltk tcpd teletext tetex theora threads thunar tidy tiff tk tokenizer tpctl truetype truetype-fonts type1-fonts unicode usb userlocales userpriv utf8 v4l v4l2 vcd vdpau vidix vim-syntax visualization vnc vorbis vorbis-psy vpb vxml wav wavpack wddx webdav webkit winbind wma wmf wmp wpg wxgtk1 xanim xatrix xattr xcb xcomposite xerces-c xforms xine xinetd xml xmlreader xmlrpc xmlwriter xmms xorg xpm xprint xscreensaver xsl xulrunner xv xvid xvmc yaz zeroconf zip zlib" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en_AU en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="siliconmotion"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Stuart Longland (RETIRED) gentoo-dev 2010-03-19 20:01:38 UTC
Created attachment 224273 [details]
build.log

Build log of failed ebuild
Comment 2 Stuart Longland (RETIRED) gentoo-dev 2010-03-19 20:02:41 UTC
Created attachment 224275 [details]
78_all_use-relro.patch.out

Patch output
Comment 3 Alex Buell 2010-04-02 13:35:21 UTC
I'm experiencing the same problem; 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) cross-mipsel-linux-uclibc/binutils-2.20.1 from rion
 * binutils-2.20.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...               [ ok ]
 * binutils-2.20.1-patches-1.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...   [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * CPV:  cross-mipsel-linux-uclibc/binutils-2.20.1
 * REPO: rion
 * USE:  elibc_glibc kernel_linux nls userland_GNU x86
>>> Unpacking source...
>>> Unpacking binutils-2.20.1.tar.bz2 to /var/tmp/cross/mipsel-linux-uclibc/port
age/cross-mipsel-linux-uclibc/binutils-2.20.1/work
>>> Unpacking binutils-2.20.1-patches-1.0.tar.bz2 to /var/tmp/cross/mipsel-linux
-uclibc/portage/cross-mipsel-linux-uclibc/binutils-2.20.1/work
 * Applying various patches (bugfixes/updates) ...
 *   03_all_binutils-2.15.92.0.2-ppc64-pie.patch ...
  [ ok ]
 *   05_all_binutils-2.20-bfd-plugins.patch ...
  [ ok ]
 *   08_all_binutils-RPATH_ENVVAR-smack.patch ...
  [ ok ]
 *   10_all_binutils-2.20-mips-pie.patch ...
  [ ok ]
 *   11_all_binutils-2.20-ia64-ld-relax.patch ...
  [ ok ]
 *   12_all_sh-targets.patch ...
  [ ok ]
 *   20_all_ld-sysroot.patch ...
  [ ok ]
 *   30_all_binutils-2.20-flexible-tests.patch ...
  [ ok ]
 *   63_all_binutils-2.20-pt-pax-flags-20090909.patch ...
  [ ok ]
 *   65_all_binutils-2.20-amd64-32bit-path.patch ...
  [ ok ]
 *   66_all_binutils-2.18.50.0.2-warn-textrel.patch ...
  [ ok ]
 *   76_all_use-new-ld-dtags.patch ...
  [ ok ]
 *   77_all_document-new-dtags-behaviour.patch ...
  [ ok ]
 *   78_all_use-relro.patch ...

 * Failed Patch: 78_all_use-relro.patch !
 *  ( /var/tmp/cross/mipsel-linux-uclibc/portage/cross-mipsel-linux-uclibc/binut
ils-2.20.1/work/patch/78_all_use-relro.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/cross/mipsel-linux-uclibc/portage/cross-mipsel-linux-uclibc/binuti
ls-2.20.1/temp/78_all_use-relro.patch.out

 * ERROR: cross-mipsel-linux-uclibc/binutils-2.20.1 failed:
 *   Failed Patch: 78_all_use-relro.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   48:  Called src_unpack
 *   environment, line 3351:  Called toolchain-binutils_src_unpack
 *   environment, line 4099:  Called tc-binutils_apply_patches
 *   environment, line 3495:  Called epatch
 *   environment, line 1809:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of 'emerge --info =cross-mipsel-linux-uc
libc/binutils-2.20.1',
 * the complete build log and the output of 'emerge -pqv =cross-mipsel-linux-ucl
ibc/binutils-2.20.1'.
 * This ebuild is from an overlay named 'rion': '/var/lib/layman/rion/'
 * The complete build log is located at '/var/tmp/cross/mipsel-linux-uclibc/port
age/cross-mipsel-linux-uclibc/binutils-2.20.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/cross/mipsel-linux-uclibc
/portage/cross-mipsel-linux-uclibc/binutils-2.20.1/temp/environment'.
 * S: '/var/tmp/cross/mipsel-linux-uclibc/portage/cross-mipsel-linux-uclibc/binu
tils-2.20.1/work/binutils-2.20.1'

Comment 4 Andreas K. Hüttel archtester gentoo-dev 2010-04-04 22:01:13 UTC
*** Bug 313135 has been marked as a duplicate of this bug. ***
Comment 5 Maksim 'max_posedon' Melnikau 2010-04-29 20:51:14 UTC
Created attachment 229733 [details, diff]
mips toolchain compilation fix workaround

EPATCH_EXCLUDE="77_all_generate-gnu-hash.patch" from bug 233233
makes 78_all_use-relro.patch fail too, so disable relro too.