Helmut Grohne <hel...@subdivi.de> 于2020年6月26日周五 上午5:11写道： > > On Thu, Jun 25, 2020 at 09:49:01AM +0800, YunQiang Su wrote: > > Helmut Grohne <hel...@subdivi.de> 于2020年6月24日周三 上午6:30写道： > > > On Sun, Jun 21, 2020 at 09:10:48PM +0800, YunQiang Su wrote: > > > > The major problem is Depends: libgcc-10-dev-i386-cross:amd64 (>= > > > > 10.1.0-3cross1) but it is not installable > > > > we need to mark gcc-10-i686-linux-gnu depends on > > > > libgcc-10-dev-i386-cross:all to solve this problem. > > > > > > Can you try applying the attached patch? > > > > I don't think that mark gcc-N-triple as MA: foreign is a good idea. > > It may confuse some user lot: will they try to install gcc-N-triple > > from non-compliance arch? > > Can you elaborate on why you think this is not a good idea? In > particular, #666743 will also include this change. The patch set has > been there for quite a while. It would be high time comment on such an > important aspect. > > I'm also confused about which users would be confused by the change. The > idea is that it doesn't matter which gcc you install. apt will prefer > the native one. What does "non-compliance" mean in this context? > > Did you actually try the patch to see whether it solves your problem?
You patch cannot work: root@sid-i386:/build# dpkg -i gcc-10-i686-linux-gnu_10.1.0-4cross1_amd64.deb libgcc-10-dev-i386-cross_10.1.0-4cross1_all.deb Selecting previously unselected package gcc-10-i686-linux-gnu:amd64. (Reading database ... 42731 files and directories currently installed.) Preparing to unpack gcc-10-i686-linux-gnu_10.1.0-4cross1_amd64.deb ... Unpacking gcc-10-i686-linux-gnu:amd64 (10.1.0-4cross1) ... Selecting previously unselected package libgcc-10-dev-i386-cross. Preparing to unpack libgcc-10-dev-i386-cross_10.1.0-4cross1_all.deb ... Unpacking libgcc-10-dev-i386-cross (10.1.0-4cross1) ... dpkg: dependency problems prevent configuration of gcc-10-i686-linux-gnu:amd64: gcc-10-i686-linux-gnu:amd64 depends on libgcc-10-dev-i386-cross (>= 10.1.0-4cross1). dpkg: error processing package gcc-10-i686-linux-gnu:amd64 (--install): dependency problems - leaving unconfigured Setting up libgcc-10-dev-i386-cross (10.1.0-4cross1) ... Errors were encountered while processing: gcc-10-i686-linux-gnu:amd64 > > Helmut > -- YunQiang Su