[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#255667: gcc-snapshot: FTBFS amd64: No multilib on pure64



Package: gcc-snapshot
Severity: important
Tags: patch
Justification: fails to build from source

Hi,

there is no multilib support on pure64 and gcc-snapshot fails to find
a 32bit libc if you try to compile it.

MfG
	Goswin

-- System Information:
Debian Release: testing/unstable
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.5-amd64
Locale: LANG=C, LC_CTYPE=C
diff -Nurd gcc-snapshot-20040620.deb/debian/changelog gcc-snapshot-20040620/debian/changelog
--- gcc-snapshot-20040620.deb/debian/changelog	2004-06-22 10:17:34.583368978 +0000
+++ gcc-snapshot-20040620/debian/changelog	2004-06-21 23:06:20.000000000 +0000
@@ -1,3 +1,9 @@
+gcc-snapshot (20040620-1.0.0.1.pure64) unstable; urgency=low
+
+  * No multilib for pure64
+
+ -- Goswin von Brederlow <brederlo@informatik.uni-tuebingen.de>  Tue, 22 Jun 2004 01:06:32 +0200
+
 gcc-snapshot (20040620-1) unstable; urgency=low
 
   * CVS 20040620, taken from HEAD (gcc-3.5).
diff -Nurd gcc-snapshot-20040620.deb/debian/rules2 gcc-snapshot-20040620/debian/rules2
--- gcc-snapshot-20040620.deb/debian/rules2	2004-06-22 10:17:34.584368810 +0000
+++ gcc-snapshot-20040620/debian/rules2	2004-06-21 23:05:33.000000000 +0000
@@ -66,6 +66,10 @@
 	--without-included-gettext \
 	--disable-werror
 
+ifeq ($(DEB_TARGET_ARCH),amd64)
+  CONFARGS += --disable-multilib
+endif
+
 ifeq ($(with_cxa_atexit),yes)
   CONFARGS += --enable-__cxa_atexit
 else
@@ -477,6 +481,14 @@
 
 	mkdir -p $(d)/lib $(d)/$(PF)/share/{doc,info,man/man1}
 
+ifeq ($(DEB_TARGET_ARCH),amd64)
+	: # link lib to lib64 and usr/lib to usr/lib64
+	: # (this works when CONFARGS contains '--disable-multilib')
+	ln -s lib $(d)/lib64
+	mkdir -p $(d)/usr/lib
+	ln -s lib $(d)/usr/lib64
+endif
+
 	: # Install everything
 	PATH=$(PWD)/bin:$$PATH \
 	  $(MAKE) -C $(builddir) \

Reply to: