On 05.11.2015 22:50, Helmut Grohne wrote:
Source: gcc-5
Version: 5.2.1-22
Severity: wishlist
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

Hi Matthias,

It would be nice if gcc supported cross compiler builds without relying
on binutils multiarch. When bootstrapping new architectures it may be
the case that the new architecture is not yet covered by
binutils-multiarch. Furthermore it seems odd that the cross compiler
builds would require both cross binutils and binutils-multiarch.

In practise, the only reason why gcc needs binutils-multiarch is because
dh_strip invokes binutils without a target triplet prefix. Other than
that binutils-multiarch is not used at all. So I am proposing the
attached patch that tells all relevant dh_strip invocations about the
target triplet such that it works with cross binutils.

Do you agree with the reasoning and the patch?

 - please update the patch to apply to the current VCS
 - the patch is incomplete.  It still calls the binutils tools
   for the host unprefixed.
 - the patch doesn't work for cross building cross compilers
   with host != target.
 - maybe make it clear which tools are used (target_strip, host_strip
   instead of cross_strip).

I think that the rather simplistic view of dh_strip should be addressed in this context too, always using the non-prefixed binutils tools. In GCC you don't have binary packages anymore with both host and target objects within the same binary package, however this is not guaranteed for other binary packages. So you need to find a way to strip host and target objects in the same binary package.


Matthias

Reply via email to