binutils-multiarch trying to overwrite '/usr/bin/ld.bfd', which is also in package binutils 2.21-1ubuntu2

Bug #688497 reported by Marcin Juszkiewicz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
binutils (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: binutils

11:01 root@home:archives# LC_ALL=C dpkg -i binutils-multiarch_2.21-1ubuntu2_amd64.deb
(Reading database ... 281261 files and directories currently installed.)
Preparing to replace binutils-multiarch 2.20.90.20101121-0ubuntu1 (using binutils-multiarch_2.21-1ubuntu2_amd64.deb) ...
Unpacking replacement binutils-multiarch ...
dpkg: error processing binutils-multiarch_2.21-1ubuntu2_amd64.deb (--install):
 trying to overwrite '/usr/bin/ld.bfd', which is also in package binutils 2.21-1ubuntu2
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 binutils-multiarch_2.21-1ubuntu2_amd64.deb

I am working on it now to provide fix.

Tags: patch

Related branches

Marcin Juszkiewicz (hrw)
Changed in binutils (Ubuntu):
status: New → In Progress
Marcin Juszkiewicz (hrw)
Changed in binutils (Ubuntu):
assignee: nobody → Marcin Juszkiewicz (hrw)
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

fix for a problem

tags: added: patch
Revision history for this message
Loïc Minier (lool) wrote :

Looks like an upstream bug, binutils will now install a ld.bfd by default, when absolutely no configure switch for gold/ld have been used:
../configure --enable-shared --enable-plugins --prefix=/usr --build=x86_64-linux-gnu --host=x86_64-linux-gnu --with-pkgversion="GNU Binutils for Ubuntu" --disable-werror \
  --with-sysroot=/ \
  --disable-werror \
  --enable-targets=alpha-linux-gnu,arm-linux-gnu,armel-linux-gnu,hppa-linux-gnu,i686-linux-gnu,ia64-linux-gnu,m68k-linux-gnu,m68k-rtems,mips-linux-gnu,mipsel-linux-gnu,mips64-linux-gnu,mips64el-linux-gnu,powerpc-linux-gnu,powerpc64-linux-gnu,s390-linux-gnu,s390x-linux-gnu,sh-linux-gnu,sh64-linux-gnu,sparc-linux-gnu,sparc64-linux-gnu,x86_64-linux-gnu,m32r-linux-gnu,spu
[...]
  /bin/bash ./libtool --mode=install /usr/bin/install -c ld-new '/build/buildd/binutils-2.21/debian/binutils-multiarch/usr/bin/./ld.bfd'

# Handle --enable-gold, --enable-ld.
# --disable-gold [--enable-ld]
# Build only ld. Default option.

So either the configure.ac comments or the behavior of binutils should be fixed to not install a ld.bfd when gold is not enabled at all.

I'm fine with your workaorund in any case, in fact you could remove ld.gold as well.

Revision history for this message
Loïc Minier (lool) wrote :

This is also broken in Debian and we don't seem to have any delta, so I'll let Matthias sponsor this.

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

You are right Loic. I added --disable-ld --disable-gold into multiarch configure flags and it works even better.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package binutils - 2.21-1ubuntu3

---------------
binutils (2.21-1ubuntu3) natty; urgency=low

  * Don't install ld.bfd in binutils-multiarch. LP: #688497.
  * Fix assembler bug blocking Thumb-2 kernel builds (CS issue #8775).
 -- Matthias Klose <email address hidden> Fri, 10 Dec 2010 15:35:54 +0100

Changed in binutils (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.