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

Re: gcc - wrong package name (x86_64) when cross compiling make ftbfs



Hello,

Investigating futher on this issue. I have tested proposed changes
(attached patch), but i get the following error:

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


2007/7/23, Matthias Klose <doko@cs.tu-berlin.de>:
> forwarding a cross compiler related bug report:
> https://bugs.launchpad.net/ubuntu/+source/gcc-4.1/+bug/121834
>
>
> --
> To UNSUBSCRIBE, email to debian-embedded-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>


-- 
 Héctor Orón
diff -urN gcc-4.2-4.2.1/debian/rules.defs gcc-4.2-4.2.1.cross/debian/rules.defs
--- gcc-4.2-4.2.1/debian/rules.defs	2007-07-26 01:13:10.000000000 +0200
+++ gcc-4.2-4.2.1.cross/debian/rules.defs	2007-07-26 01:22:11.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 =  $(shell echo $(DEB_TARGET_GNU_TYPE) | tr '_' '-')-
+  TS = -$(shell echo $(DEB_TARGET_ALIAS)    | tr '_' '-')
+  LS = -$(shell echo $(DEB_TARGET_ARCH)     | tr '_' '-')-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 := -$(shell echo $(TARGET_ALIAS) | tr '_' '-')
+  cross_lib_arch := -$(shell echo $(DEB_TARGET_ARCH) | tr '_' '-')-cross
 endif
 
 ifndef DEB_CROSS
diff -urN gcc-4.2-4.2.1/debian/rules2 gcc-4.2-4.2.1.cross/debian/rules2
--- gcc-4.2-4.2.1/debian/rules2	2007-07-26 01:13:10.000000000 +0200
+++ gcc-4.2-4.2.1.cross/debian/rules2	2007-07-26 01:19:05.000000000 +0200
@@ -1067,7 +1067,7 @@
   # 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_gcc  = $(shell echo gcc$(pkg_ver)$(cross_bin_arch) | tr '_' '-')
   p_cxx  = g++$(pkg_ver)$(cross_bin_arch)
 endif
 p_hppa64 = gcc$(pkg_ver)-hppa64

Reply to: