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

Bug#804475: fails to build cross compiler for i386: libmpx not covered



Package: cross-gcc-dev
Version: 55
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

When building gcc-5 cross compilers with the cross-gcc-dev patchset for
i386, the build fails. See e.g.
https://jenkins.debian.net/job/rebootstrap_i386_gcc5_nobiarch/43/console

The reason is that i386 is one of the few architectures that builds
libmpx, but libmpx is not covered by cross-ma-install-location.diff.

I am attaching a patch to src:cross-gcc that makes
cross-ma-install-location.diff also cover the libmpx folder.

Helmut
--- a/patches/gcc-5/0004-added-multi-arch-specific-install-location-patch.patch
+++ a/patches/gcc-5/0004-added-multi-arch-specific-install-location-patch.patch
@@ -16,7 +16,7 @@
 index 0000000..6ce481c
 --- /dev/null
 +++ b/debian/patches/cross-ma-install-location.diff
-@@ -0,0 +1,402 @@
+@@ -0,0 +1,422 @@
 +Index: b/src/boehm-gc/configure.ac
 +===================================================================
 +--- a/src/boehm-gc/configure.ac
@@ -419,6 +419,26 @@
 +     multi_os_directory=`$CC -print-multi-os-directory`
 +     case $multi_os_directory in
 +       .) ;; # Avoid trailing /.
++--- a/src/libmpx/configure.ac
+++++ b/src/libmpx/configure.ac
++@@ -70,15 +70,8 @@
++     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
++     ;;
++   no)
++-    if test -n "$with_cross_host" &&
++-       test x"$with_cross_host" != x"no"; then
++-      # Install a library built with a cross compiler in tooldir, not libdir.
++-      toolexecdir='$(exec_prefix)/$(target_alias)'
++-      toolexeclibdir='$(toolexecdir)/lib'
++-    else
++-      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
++-      toolexeclibdir='$(libdir)'
++-    fi
+++    toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
+++    toolexeclibdir='$(libdir)'
++     multi_os_directory=`$CC -print-multi-os-directory`
++     case $multi_os_directory in
++       .) ;; # Avoid trailing /.
 diff --git a/debian/rules.patch b/debian/rules.patch
 index 617b096..e953063 100644
 --- a/debian/rules.patch

Reply to: