Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 612324

Summary: cross-avr/binutils-2.26.1 stabilization breaks global update
Product: Gentoo Linux Reporter: jorgicio <jpizarrocallejas>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alexander, netbox253
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description jorgicio 2017-03-11 15:52:52 UTC
Hi!

the sys-devel/binutils hit the stable version with 2.26.1. However, it seems to be some breakage when having installed the toolchain for avr (Arduino). It needs a recent version of binutils-libs, and this happens:

hackenherr:~# USE="-openmp -hardened -sanitize -vtv" crossdev -t avr --stage4 -S --without-headers -oO /usr/local/portage-crossdev --show-fail-log             [11:30:41]
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 * crossdev version:      20151026
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   *
 * Target System:         avr
 * Stage:                 4 (C/C++ compiler)
 * ABIs:                  default

 * binutils:              binutils-[stable]
 * gcc:                   gcc-[stable]
 * libc:                  avr-libc-[stable]

 * CROSSDEV_OVERLAY:      /usr/local/portage-crossdev
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:    
 * Portage flags:         
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  
 * leaving sys-devel/binutils in /usr/local/portage-crossdev
 * leaving sys-devel/gcc in /usr/local/portage-crossdev
 * leaving dev-embedded/avr-libc in /usr/local/portage-crossdev
 * leaving sys-devel/gdb in /usr/local/portage-crossdev
 * leaving metadata/layout.conf alone in /usr/local/portage-crossdev
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  
 * Log: /var/log/portage/cross-avr-binutils.log
 * Emerging cross-binutils ...
Calculating dependencies  ... ... ... done!

The following packages are causing rebuilds:

  (sys-libs/binutils-libs-2.28:0/2.28::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (dev-lang/ocaml-4.04.0:0/4.04.0::gentoo, ebuild scheduled for merge)
    (x11-libs/cairo-1.14.8:0/0::gentoo, ebuild scheduled for merge)
[ebuild  r  U  ] sys-libs/binutils-libs-2.28 [2.25.1-r2]
[ebuild  NS    ] cross-avr/binutils-2.26.1 [2.25.1-r1] USE="cxx nls -multitarget -static-libs {-test} -vanilla" 
[ebuild  rR    ] dev-lang/ocaml-4.04.0 
[ebuild  rR    ] x11-libs/cairo-1.14.8 

The following keyword changes are necessary to proceed:
 (see "package.accept_keywords" in the portage(5) man page for more details)
# required by x11-libs/cairo-1.14.8::gentoo
# required by @__auto_slot_operator_replace_installed__ (argument)
=sys-libs/binutils-libs-2.28 ~amd64

Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.

 * binutils failed :(
 * 
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-avr-info.log
 * /var/log/portage/cross-avr-binutils.log.xz
 * /var/tmp/portage/cross-avr/binutils*/temp/binutils-config.logs.tar.xz


Reproducible: Always
Comment 1 Alexander Tsoy 2017-03-12 01:13:51 UTC
This causes problem on every system with cross-toolchain installed. From toolchain-binutils.eclass:

if is_cross ; then
    # The build assumes the host has libiberty and such when cross-compiling
    # its build tools.  We should probably make binutils itself build a local
    # copy to use, but until then, be lazy.
    DEPEND+=" >=sys-libs/binutils-libs-${PV}"
fi
Comment 2 jorgicio 2017-03-12 01:35:56 UTC
(In reply to Alexander Tsoy from comment #1)
> This causes problem on every system with cross-toolchain installed. From
> toolchain-binutils.eclass:
> 
> if is_cross ; then
>     # The build assumes the host has libiberty and such when cross-compiling
>     # its build tools.  We should probably make binutils itself build a local
>     # copy to use, but until then, be lazy.
>     DEPEND+=" >=sys-libs/binutils-libs-${PV}"
> fi

That explains lot of things... wow.

As a workaround, I had to mask the cross-avr/binutils-2.26.1 version meanwhile this issue may be fixed. I think there must be a 2.26.1 version of binutils-libs too. Just saying....
Comment 3 Fab 2017-03-12 19:05:10 UTC
Duplicate : bug #612436
Comment 4 SpanKY gentoo-dev 2017-03-12 21:38:41 UTC

*** This bug has been marked as a duplicate of bug 612436 ***