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

Bug#504487: gcc-4.3: build cross toolchain for powerpc fails



Uwe Kleine-König wrote:
> Package: gcc-4.3
> Version: 4.3.2-1
> Severity: wishlist
> 
> Hello,
> 
> I tried building a cross toolchain for powerpc following the steps on
> http://www.emdebian.org/tools/crossdev.html (i.e. installing
> binutils-$arch-linux-gnu and libc6-dev-$arch-cross, then export
> GCC_TARGET=arch, debian/rules control, dpkg-buildpackage -b -rfakeroot).

I see this problem on powerpc, mips and mipsel, but not on i386.
I haven't tested sparc and s390. A workaround (when 64-bit isn't
needed) is to disable multilibs.


Thiemo



Index: gcc-4.3-4.3.1-2/debian/rules.defs
===================================================================
--- gcc-4.3-4.3.1-2.orig/debian/rules.defs	2008-08-09 14:30:01.000000000 +0200
+++ gcc-4.3-4.3.1-2/debian/rules.defs	2008-08-09 17:10:39.000000000 +0200
@@ -934,7 +934,11 @@
 biarch_cpu := $(patsubst $(DEB_TARGET_GNU_CPU)=%,%, \
 			 $(filter $(DEB_TARGET_GNU_CPU)=%,$(biarch_map)))
 
+ifeq ($(DEB_CROSS),yes)
+biarch64_archs := /i386/sparc/s390/
+else
 biarch64_archs := /i386/powerpc/sparc/s390/mips/mipsel/
+endif
 
 ifneq (yes,$(call envfilt, biarch, , ,yes))
   biarch64_archs :=
@@ -1042,7 +1046,11 @@
   export TARGET64_MACHINE
 endif
 
+ifeq ($(DEB_CROSS),yes)
+biarchn32_archs :=
+else
 biarchn32_archs := /mips/mipsel/
+endif
 ifneq (yes,$(call envfilt, biarch, , ,yes))
   biarchn32_archs :=
 endif



Reply to: