Bug#483906: Adding amd64 - i486 cross compiler
Hello Arthur, Why do we need cross-compilers between biarched archs ? ``gcc -m32'' on amd64 and ``gcc -m64'' on i386 are fine. Also, please rebase your patch on current SVN. It looked like somebody was using those kind of compilers https://bugs.launchpad.net/ubuntu/+source/gcc-4.1/+bug/121834 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466422 Why don't fix that bug? Maybe is a useless toolchain, but it should behave as the other builds. Also, now i'm building on a amd64 machine, but what about powerpc host builds? That could fix powerpc - i386 toolchain as well. I send you a rebased patches for gcc-4.1 and gcc-4.2 svn code (it looked like somebody already added powerpc lines), but it'd be better for me to sent current sources diffs for now long. Cheers ;-) -- Héctor Orón diff -urN gcc-4.1/debian/rules.d/binary-libstdcxx-cross.mk gcc-4.1.cross/debian/rules.d/binary-libstdcxx-cross.mk --- gcc-4.1/debian/rules.d/binary-libstdcxx-cross.mk 2008-06-03 09:14:25.0 + +++ gcc-4.1.cross/debian/rules.d/binary-libstdcxx-cross.mk 2008-06-03 09:43:35.0 + @@ -18,6 +18,9 @@ ifeq ($(DEB_TARGET_GNU_TYPE),powerpc-linux-gnu) AUX_DEB_TARGET_GNU_TYPE := powerpc64-linux-gnu endif + ifeq ($(DEB_TARGET_GNU_TYPE),i486-linux-gnu) +AUX_DEB_TARGET_GNU_TYPE := x86_64-linux-gnu + endif endif libstdc_ext = -$(BASE_VERSION) diff -urN gcc-4.2/debian/rules.d/binary-libstdcxx-cross.mk gcc-4.2.cross/debian/rules.d/binary-libstdcxx-cross.mk --- gcc-4.2/debian/rules.d/binary-libstdcxx-cross.mk 2008-06-03 09:14:41.0 + +++ gcc-4.2.cross/debian/rules.d/binary-libstdcxx-cross.mk 2008-06-03 09:42:06.0 + @@ -18,6 +18,9 @@ ifeq ($(DEB_TARGET_GNU_TYPE),powerpc-linux-gnu) AUX_DEB_TARGET_GNU_TYPE := powerpc64-linux-gnu endif + ifeq ($(DEB_TARGET_GNU_TYPE),i486-linux-gnu) +AUX_DEB_TARGET_GNU_TYPE := x86_64-linux-gnu + endif endif libstdc_ext = -$(BASE_VERSION)
Bug#483906: Adding amd64 - i486 cross compiler
Hector Oron writes: Hello Arthur, Why do we need cross-compilers between biarched archs ? ``gcc -m32'' on amd64 and ``gcc -m64'' on i386 are fine. Also, please rebase your patch on current SVN. It looked like somebody was using those kind of compilers https://bugs.launchpad.net/ubuntu/+source/gcc-4.1/+bug/121834 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466422 Why don't fix that bug? Maybe is a useless toolchain, but it should behave as the other builds. Also, now i'm building on a amd64 machine, but what about powerpc host builds? That could fix powerpc - i386 toolchain as well. I send you a rebased patches for gcc-4.1 and gcc-4.2 svn code (it looked like somebody already added powerpc lines), but it'd be better for me to sent current sources diffs for now long. maybe you just want to use $(biarch_cpu)-$(DEB_TARGET_GNU_SYSTEM) instead of having a conditional for every architecture? Matthias -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#483906: Adding amd64 - i486 cross compiler
maybe you just want to use $(biarch_cpu)-$(DEB_TARGET_GNU_SYSTEM) instead of having a conditional for every architecture? Up to you.. i'm afraid of breaking stuff, those patches are already tested. -- Héctor Orón -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#483906: Adding amd64 - i486 cross compiler
Hello, This patch also fixes amd64-i486, plus it includes the above patch for powerpc. Cheers -- Héctor Orón diff -urN gcc-4.2-4.2.4/debian/rules.d/binary-libstdcxx-cross.mk gcc-4.2-4.2.4.cross/debian/rules.d/binary-libstdcxx-cross.mk --- gcc-4.2-4.2.4/debian/rules.d/binary-libstdcxx-cross.mk 2008-06-02 10:51:20.0 + +++ gcc-4.2-4.2.4.cross/debian/rules.d/binary-libstdcxx-cross.mk 2008-06-02 13:43:04.0 + @@ -8,6 +8,16 @@ arch_binaries := $(arch_binaries) lib32stdcxx endif +ifeq ($(biarch),yes) +AUXDEB := $(DEB_TARGET_GNU_TYPE) +ifeq ($(DEB_TARGET_GNU_TYPE),powerpc-linux-gnu) +AUXDEB := powerpc64-linux-gnu +endif +ifeq ($(DEB_TARGET_GNU_TYPE),i486-linux-gnu) +AUXDEB := x86_64-linux-gnu +endif +endif + ifeq ($(with_cxxdev),yes) arch_binaries := $(arch_binaries) libstdcxx-dev endif @@ -280,7 +290,7 @@ -find $(d) -type d -name '*.gch' | xargs rm -rf ifeq ($(biarch),yes) - mv $(d)/$(PF)/$(DEB_TARGET_GNU_TYPE)/lib64/lib*c++*.a $(d)/$(gcc_lib_dir)/$(biarchsubdir)/. + mv $(d)/$(PF)/$(AUXDEB)/lib64/lib*c++*.a $(d)/$(gcc_lib_dir)/$(biarchsubdir)/. ln -sf ../../../../../lib64/libstdc++.so.$(CXX_SONAME) \ $(d)/$(gcc_lib_dir)/$(biarchsubdir)/libstdc++.so endif
Bug#483906: Adding amd64 - i486 cross compiler
On Mon, Jun 02, 2008 at 07:19:41PM +0100, Hector Oron wrote: Hello, This patch also fixes amd64-i486, plus it includes the above patch for powerpc. Cheers Why do we need cross-compilers between biarched archs ? ``gcc -m32'' on amd64 and ``gcc -m64'' on i386 are fine. Also, please rebase your patch on current SVN. signature.asc Description: Digital signature