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

Re: Bug#1034756: dpkg: please add support for riscv32



Hi!
On Tue, Apr 25, 2023 at 04:22:49AM +0200, Guillem Jover wrote:
Hi!

support this.

Is your intention to create such port (unofficially or officially in
Debian)?

Yeah, I am trying to do such port and I guess riscv32 ends up in the
debian-port given the troubles that 32-bit systems present to packages
maintainer.


I thought the riscv32 has met the request[2] also.

I assume the ABI is set in stone and well defined.

Please let me know if there is any issue.

I think at the time when we added riscv64 we didn't also add riscv32
because it was not clear whether there was then interest or demand,
and I don't recall whether there were concerns about what ISA baseline
to choose? (But I guess this would use the default baseline specified
currently by the compiler.)

There is no doubt that the porting of riscv64 is our first priority and
it's already in a good shape -- except for the official port.:(

For riscv32 case, I think it'd be pretty helpful to let users to setup
rv32 Debian rootfs or to let rv32 Debain run on RISC-V 32 bit hardware that will be emerged in the near future.

Here I simply assume that rv32 compiler with `--with-arch=rv32gc
--with-abi=ilp32d`[0] is enough?


Thanks for the patch, I've adapted it slightly for the test suite (now
it passes «make authorcheck», and added the missing ABI tracking support,
but I think I'll split that into its own commit as that is affecting
riscv64 too.

(I'm in the process of preparing another upload to sid, ideally before
the release, and if this looks all good, I'd be inclined to include
part of this (probably not the ABI tracking bits) into that release,
to make adding such port possible in the near future.)

Many thanks here. In fact in either case, the first step is to enable
rebootstrap[1] work. This process will be accelerated if dpkg can support this I think.
[0]: https://github.com/riscv-collab/riscv-gnu-toolchain#installation-linux
[1]: https://salsa.debian.org/helmutg/rebootstrap

Thanks,
Guillem



--
Regards,
--
  Bo YU

Attachment: signature.asc
Description: PGP signature


Reply to: