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

Re: crossbuild-essential-riscv64:amd64 but it is not installable



Hi Dima,

On Wed, Feb 16, 2022 at 11:44:09PM -0800, Dima Kogan wrote:
> Helmut: do you know why we have crossbuild-essential-$arch at all, and
> why we don't handle all the architectures in the way you suggested in
> your email? I think I used to know, but I don't remember.

My proposed way is a workaround. It breaks as soon as we change
build-essential. (Note: I have various proposals to change
build-essential. The risk is real. ;)

When we resolve Build-Depends, we implicitly add a dependency on
build-essential. When interpreting that dependency as a host
architecture dependency for cross builds, it attempts to pull the native
host architecture compiler (something we cannot run). Instead, we want
the host architecture cross compiler. Bummer. So people figured, we must
depend on something different for cross builds. That something ended up
being build-essential:native, crossbuild-essential-$DEB_HOST_ARCH.

Quite obviously, that situation is less than pleasing for non-release
architectures. I'm in the process of making that better (as the current
setup has more problems), but some things take a litte longer. A
prerequisite for that work is changing the way gcc is being packaged. We
have a pile of patches already #666743, but we need people who review
and test them to move forward. Would you happen to know someone who
could help out here?

Helmut


Reply to: