On Mon, Dec 03, 2018 at 01:30:43AM +0800, YunQiang Su wrote: > YunQiang Su <s...@debian.org> 于2018年12月2日周日 下午11:42写道: > > > > Matthias Klose <d...@debian.org> 于2018年12月2日周日 下午4:51写道: > > > > > > On 02.12.18 09:31, Aron Xu wrote: > > > > Running with Valgrind shows some errors: > > > > > > that might point to the gcc-search-prefixed-as-ld patch. > > yes. with gcc-search-prefixed-as-ld patch removed, it works now.
The patch is necessary for making gcc-for-host happen. It is the second attempt at solving that part of the problem and I don't particularly like the patch (though my previous attempt broke something else). I think there is yet another way of solving that part without patching gcc at all: Supplying /usr/lib/gcc/<triplet>/<version>/{as,ld} as symlinks pointing to the triplet-prefixed binutils should be sufficient. Not having to add another patch should help reduce the maintenance cost. Given that gcc-for-host is not a thing yet and that there still are alternative approaches, I'm in favour of just reverting that patch with no replacement now to unblock your work. Helmut