Hello, 2007/7/26, Matthias Klose <[EMAIL PROTECTED]>:
> Investigating futher on this issue. I have tested proposed changes > (attached patch), but i get the following error:
Using subst in makefiles is better than using shell + tr ;-) In binutils cross-targets I read p_cross = $(subst _,-,binutils-$(TARGET)) d_cross = debian/$(p_cross) Let's do the same. I've joined a new patch.
> gcc -I../../src/gcc/. -I../../src/gcc/../include > -I../../src/gcc/../libcpp/include -I../../src/gcc/../libdecnumber > -I../libdecnumber -m32 -DL_fixunssfsi -fvisibility=hidden > -DHIDE_EXPORTS -c ../../src/gcc/libgcc2.c -o libgcc/32/_fixunssfsi.o > In file included from /usr/x86_64-linux-gnu/include/features.h:345, > from /usr/x86_64-linux-gnu/include/limits.h:27, > from > /home/toolchain/trunk/amd64/gcc-4.2-4.2.1-0/build/./gcc/include/limits.h:122, > from > /home/toolchain/trunk/amd64/gcc-4.2-4.2.1-0/build/./gcc/include/syslimits.h:7, > from > /home/toolchain/trunk/amd64/gcc-4.2-4.2.1-0/build/./gcc/include/limits.h:11, > from ../../src/gcc/libgcc2.c:1665: > /usr/x86_64-linux-gnu/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: > No such file or directory tries to build a multilibbed compiler, and it's missing the cross equivalent of libc6-i386-dev.
I've been able to build a cross compiler non-multilibed, I'm going to retry now. Have a nice day, Arthur.
--- rules.defs.orig 2007-07-26 11:29:55.000000000 +0200 +++ rules.defs 2007-07-26 11:36:41.000000000 +0200 @@ -105,9 +105,9 @@ # LS: Library Suffix. Used primarily at the end of cross compiler # library package names (e.g. libgcc-powerpc-cross). DEB_TARGET_ALIAS ?= $(DEB_TARGET_GNU_TYPE) - TP = $(DEB_TARGET_GNU_TYPE)- - TS = -$(DEB_TARGET_ALIAS) - LS = -$(DEB_TARGET_ARCH)-cross + TP = $(subst _,-,$(DEB_TARGET_GNU_TYPE))- + TS = -$(subst _,-,$(DEB_TARGET_ALIAS)) + LS = -$(subst _,-,$(DEB_TARGET_ARCH))-cross endif ifeq ($(DEB_CROSS),yes) @@ -152,8 +152,8 @@ endif ifdef DEB_CROSS - cross_bin_arch := -$(TARGET_ALIAS) - cross_lib_arch := -$(DEB_TARGET_ARCH)-cross + cross_bin_arch := -$(subst _,-,$(TARGET_ALIAS)) + cross_lib_arch := -$(subst _,-,$(DEB_TARGET_ARCH))-cross endif ifndef DEB_CROSS --- rules2.orig 2007-07-26 11:30:01.000000000 +0200 +++ rules2 2007-07-26 11:36:39.000000000 +0200 @@ -1065,10 +1065,10 @@ p_lgcc = libgcc$(GCC_SONAME) else # only triggered if DEB_CROSS set - p_base = gcc$(pkg_ver)$(cross_bin_arch)-base - p_cpp = cpp$(pkg_ver)$(cross_bin_arch) - p_gcc = gcc$(pkg_ver)$(cross_bin_arch) - p_cxx = g++$(pkg_ver)$(cross_bin_arch) + p_base = $(subst _,-,gcc$(pkg_ver)$(cross_bin_arch)-base) + p_cpp = $(subst _,-,cpp$(pkg_ver)$(cross_bin_arch)) + p_gcc = $(subst _,-,gcc$(pkg_ver)$(cross_bin_arch)) + p_cxx = $(subst _,-,g++$(pkg_ver)$(cross_bin_arch)) endif p_hppa64 = gcc$(pkg_ver)-hppa64