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

Fwd: Bug#1021584: ldc: add support for riscv64



Hi,

FYI.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021584

Maybe the patch file size exceeds the limit of the mail list again~

----- Forwarded message from Bo YU <tsu.yubo@gmail.com> -----

Date: Tue, 11 Oct 2022 19:57:52 +0800
From: Bo YU <tsu.yubo@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Bug#1021584: ldc: add support for riscv64

Source: ldc
Version: 1:1.30.0-1
Severity: wishlist
Tags: ftbf,  patch
User: debian-riscv@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv@lists.debian.org

Dear Maintainer,

Now ldc does not support riscv64 either upstream or Debian. Fortunately,
The Arch linux has porting the riscv64 support[0] for ldc. And I try to
build ldc on Debian riscv64 arch with their patch. Despite the twists
and turns of the process, in the end the build was successfully. I also
got the support from upstream[1].

The patch attached is to add support for riscv64 on Debian. I have
tested it on my riscv machines.

The mirror issue in the patch here is I have to disable check D_COMPILER_FLAGS
from CMake. I am not sure if this is the inappropriate
DADDITIONAL_DEFAULT_LDC_SWITCHES flag I added in the d/rules. Anyway, it
works.

The next version of ldc from upstream will have better support for
riscv64 as upstream said. I think this is good start to add support riscv64
build about D language packages if apply the change on Debian.

Please let me know if there is any issues.


[0]: https://github.com/felixonmars/archriscv-packages/blob/master/ldc/riscv64.patch
[1]: https://github.com/ldc-developers/ldc/issues/4046
--
Regards,
--
  Bo YU

Attachment: signature.asc
Description: PGP signature


Reply to: