On Sat, Jul 23, 2011 at 12:51:02PM +0200, Aurelien Jarno wrote:
> Package: binutils
> Version: 2.21.53.20110720-1
> Severity: important
> Tags: patch
> Justification: fails to build from source
> User: debian-s...@lists.debian.org
> Usertags: s390x
> 
> binutils FTBFS on s390x due do relocation issues:
> 
> | /home/aurel32/binutils/bfd/../libiberty/pic/libiberty.a(hashtab.o): In 
> function `htab_create':
> | 
> /home/aurel32/binutils/libiberty/../../libiberty/hashtab.c:408:(.text+0x5e4): 
> relocation truncated to fit: R_390_GOT12 against symbol `xcalloc' defined in 
> .text section in 
> /home/aurel32/binutils/bfd/../libiberty/pic/libiberty.a(xmalloc.o)
> | /home/aurel32/binutils/bfd/../libiberty/pic/libiberty.a(hashtab.o): In 
> function `htab_try_create':
> | 
> /home/aurel32/binutils/libiberty/../../libiberty/hashtab.c:414:(.text+0x61c): 
> relocation truncated to fit: R_390_GOT12 against symbol `calloc@@GLIBC_2.2' 
> defined in .text section in /lib/s390x-linux-gnu/libc.so.6
> | collect2: ld returned 1 exit status
> 
> The patch below (already submitted upstream), fixes the issue.
> 

While this patch is not need to fix the build failure, it should be
included to correctly support biarch on s390x:

diff -u binutils-2.21.53.20110720/debian/rules 
binutils-2.21.53.20110720/debian/rules
--- binutils-2.21.53.20110720/debian/rules
+++ binutils-2.21.53.20110720/debian/rules
@@ -208,6 +208,9 @@
 ifeq ($(DEB_HOST_ARCH),s390)
        CONFARGS += --enable-targets=s390x-linux-gnu
 endif
+ifeq ($(DEB_HOST_ARCH),s390x)
+       CONFARGS += --enable-targets=s390-linux-gnu
+endif
 ifeq ($(DEB_HOST_ARCH),i386)
        CONFARGS += --enable-targets=x86_64-linux-gnu
 endif



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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to