Bug#632671: upgrading binutils causes trouble on kfreebsd-amd64

July 04th, 2011 - 02:40 pm ET by Christoph Egger | Report spam
Package: binutils
Version: 2.21.52.20110703-1
Severity: serious

Bug can e.g. be seen when building pdfgrep:

dpkg-shlibdeps: error: couldn't find library libpoppler.so.13 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
dpkg-shlibdeps: error: couldn't find library libstdc++.so.6 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
dpkg-shlibdeps: error: couldn't find library libm.so.1 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
dpkg-shlibdeps: error: couldn't find library libgcc_s.so.1 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
dpkg-shlibdeps: error: couldn't find library libc.so.0.1 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
dpkg-shlibdeps: error: Cannot continue due to the errors listed above.
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.

% /lib/ld-kfreebsd-x86-64.so.1 --verify debian/pdfgrep/usr/bin/pdfgrep
% echo $?
1


after downgrading and rebuilding

% /lib/ld-kfreebsd-x86-64.so.1 --verify debian/pdfgrep/usr/bin/pdfgrep
% echo $?

0


It's perfectly reproducible (happend on the buildd fano and after
upgrading my private vm it is visible there as well)

Regards

Christoph

Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.2-1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages binutils depends on:
ii libc0.1 2.13-8 Embedded GNU C Library: Shared lib
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime

binutils recommends no packages.

Versions of packages binutils suggests:
pn binutils-doc <none> (no description available)




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 2 repliesReplies Make a reply

Similar topics

Replies

#1 Aurelien Jarno
July 04th, 2011 - 05:40 pm ET | Report spam
On Mon, Jul 04, 2011 at 08:31:32PM +0200, Christoph Egger wrote:
Package: binutils
Version: 2.21.52.20110703-1
Severity: serious

Bug can e.g. be seen when building pdfgrep:

dpkg-shlibdeps: error: couldn't find library libpoppler.so.13 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
dpkg-shlibdeps: error: couldn't find library libstdc++.so.6 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
dpkg-shlibdeps: error: couldn't find library libm.so.1 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
dpkg-shlibdeps: error: couldn't find library libgcc_s.so.1 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
dpkg-shlibdeps: error: couldn't find library libc.so.0.1 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
dpkg-shlibdeps: error: Cannot continue due to the errors listed above.
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.

% /lib/ld-kfreebsd-x86-64.so.1 --verify debian/pdfgrep/usr/bin/pdfgrep
% echo $?
1

>
after downgrading and rebuilding

% /lib/ld-kfreebsd-x86-64.so.1 --verify debian/pdfgrep/usr/bin/pdfgrep
% echo $?
0

>
It's perfectly reproducible (happend on the buildd fano and after
upgrading my private vm it is visible there as well)




The issue comes from this bfd commit:

2011-06-25 H.J. Lu

* elf64-x86-64.c (elf_backend_post_process_headers): Don't
define for FreeBSD/x86-64 nor FreeBSD/L1OM. Define for L1OM.

Now I don't what's the purpose of this commit.

Aurelien Jarno GPG: 1024D/F1BCDB73
http://www.aurel32.net



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
#2 Aurelien Jarno
July 05th, 2011 - 05:50 pm ET | Report spam
tag 632671 + patch
thanks

On Mon, Jul 04, 2011 at 11:31:36PM +0200, Aurelien Jarno wrote:
On Mon, Jul 04, 2011 at 08:31:32PM +0200, Christoph Egger wrote:
> Package: binutils
> Version: 2.21.52.20110703-1
> Severity: serious
>
> Bug can e.g. be seen when building pdfgrep:
>
> dpkg-shlibdeps: error: couldn't find library libpoppler.so.13 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
> dpkg-shlibdeps: error: couldn't find library libstdc++.so.6 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
> dpkg-shlibdeps: error: couldn't find library libm.so.1 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
> dpkg-shlibdeps: error: couldn't find library libgcc_s.so.1 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
> dpkg-shlibdeps: error: couldn't find library libc.so.0.1 needed by debian/pdfgrep/usr/bin/pdfgrep (ELF format: 'elf64-x86-64'; RPATH: '').
> dpkg-shlibdeps: error: Cannot continue due to the errors listed above.
> Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
>
> % /lib/ld-kfreebsd-x86-64.so.1 --verify debian/pdfgrep/usr/bin/pdfgrep
> % echo $?
> 1
>
> > >
> after downgrading and rebuilding
>
> % /lib/ld-kfreebsd-x86-64.so.1 --verify debian/pdfgrep/usr/bin/pdfgrep
> % echo $?
> 0
>
> > >
> It's perfectly reproducible (happend on the buildd fano and after
> upgrading my private vm it is visible there as well)
>

The issue comes from this bfd commit:

2011-06-25 H.J. Lu

* elf64-x86-64.c (elf_backend_post_process_headers): Don't
define for FreeBSD/x86-64 nor FreeBSD/L1OM. Define for L1OM.




The following patch, from upstream, fixes the problem:

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6d9f246..2fc3d26 100644
a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-05 H.J. Lu
+
+ * elf64-x86-64.c (elf_backend_post_process_headers): Always
+ define to _bfd_elf_set_osabi.
+
2011-07-03 Samuel Thibault
Thomas Schwinge

diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index ca480ab..12748d8 100644
a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -4940,7 +4940,6 @@ static const struct bfd_elf_special_section
#define elf_backend_hash_symbol \
elf_x86_64_hash_symbol

-#undef elf_backend_post_process_headers
#define elf_backend_post_process_headers _bfd_elf_set_osabi

#include "elf64-target.h"
@@ -4958,8 +4957,6 @@ static const struct bfd_elf_special_section
#undef elf64_bed
#define elf64_bed elf64_x86_64_fbsd_bed

-#undef elf_backend_post_process_headers
-
#include "elf64-target.h"

/* Solaris 2 support. */
@@ -5018,9 +5015,6 @@ elf64_l1om_elf_object_p (bfd *abfd)
#undef elf_backend_object_p
#define elf_backend_object_p elf64_l1om_elf_object_p

-#undef elf_backend_post_process_headers
-#define elf_backend_post_process_headers _bfd_elf_set_osabi
-
#undef elf_backend_static_tls_alignment

#undef elf_backend_want_plt_sym
@@ -5041,8 +5035,6 @@ elf64_l1om_elf_object_p (bfd *abfd)
#undef elf64_bed
#define elf64_bed elf64_l1om_fbsd_bed

-#undef elf_backend_post_process_headers
-
#include "elf64-target.h"

/* 32bit x86-64 support. */
@@ -5079,9 +5071,6 @@ elf32_x86_64_elf_object_p (bfd *abfd)

#undef ELF_OSABI

-#undef elf_backend_post_process_headers
-#define elf_backend_post_process_headers _bfd_elf_set_osabi
-
#undef elf_backend_object_p
#define elf_backend_object_p \
elf32_x86_64_elf_object_p


Aurelien Jarno GPG: 1024D/F1BCDB73
http://www.aurel32.net



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search