Bug#641082: FTBFS(s390x/sparc64): relocation truncated to fit

Aurelien Jarno aurel32 at debian.org
Sat Sep 10 08:39:43 UTC 2011


Package: ipe
Version: 7.1.0-1
Severity: important
Tags: patch
Justification: fails to build from source
User: debian-s390 at lists.debian.org
Usertags: s390x

ipe fails to build on s390x and sparc64, as on these architectures 
-fpic and -fPIC behaves differently. -fpic has a limit on the size 
of the GOT, while -fPIC doesn't. It's therefore better to use the
latter. The patch below fixes the issue, would it be possible to 
apply it in the next upload? Thanks in advance.


diff -Nru ipe-7.1.0/debian/patches/fPIC.patch ipe-7.1.0/debian/patches/fPIC.patch
--- ipe-7.1.0/debian/patches/fPIC.patch	1970-01-01 01:00:00.000000000 +0100
+++ ipe-7.1.0/debian/patches/fPIC.patch	2011-09-09 23:54:27.000000000 +0200
@@ -0,0 +1,13 @@
+Use -fPIC instead of -fpic.
+
+--- ipe-7.1.0.orig/src/config.mak
++++ ipe-7.1.0/src/config.mak
+@@ -101,7 +101,7 @@ CXX = g++
+ # position independent code  
+ # (it doesn't hurt much on 32bit Linux, although you could comment it
+ # out for slightly faster code)
+-DLL_CFLAGS = -fpic
++DLL_CFLAGS = -fPIC
+ #
+ # --------------------------------------------------------------------
+ #
diff -Nru ipe-7.1.0/debian/patches/series ipe-7.1.0/debian/patches/series
--- ipe-7.1.0/debian/patches/series	2009-12-27 23:52:03.000000000 +0100
+++ ipe-7.1.0/debian/patches/series	2011-09-10 00:30:24.000000000 +0200
@@ -1 +1,2 @@
 build-nostrip.patch
+fPIC.patch

-- System Information:
Debian Release: wheezy/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: s390x

Kernel: Linux 3.0.0-1-s390x (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash





More information about the debian-science-maintainers mailing list