Bug#630101: gdc-4.4: FTBFS: tries to build 32bit executable on 64bit system
tag 630101 + patch
thanks
On Sat, Jun 11, 2011 at 03:30:07AM +0200, Matthias Klose wrote:
> On 06/11/2011 12:04 AM, Christoph Egger wrote:
> > If you have further questions please mail debian-bsd@lists.debian.org
>
> yes, please attach a patch.
>
The problem is that a biarch gdc is built by default, while the
gcc-multiarch+biarch32.diff patch is not applied. As a consequence gcc
is not able to find the directory for the 32-bit libraries.
As in the final package only contains the native gdc and not the native
one, the best is to just disable biarch on kfreebsd-amd64, as it is
already done on plain amd64. The patch below does that.
diff -u gdc-4.4-1.063-4.4.6/debian/rules2 gdc-4.4-1.063-4.4.6/debian/rules2
--- gdc-4.4-1.063-4.4.6/debian/rules2
+++ gdc-4.4-1.063-4.4.6/debian/rules2
@@ -277,7 +277,7 @@
endif
endif
-ifneq (,$(filter $(DEB_TARGET_GNU_TYPE), x86_64-linux-gnu))
+ifneq (,$(filter $(DEB_TARGET_GNU_TYPE), x86_64-linux-gnu x86_64-kfreebsd-gnu))
ifneq ($(biarch32),yes)
CONFARGS += --disable-multilib
endif
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
Reply to: