[Pkg-rust-maintainers] Bug#1068232: rust-target: FTBFS: add loongarch64 support

zhangdandan zhangdandan at loongson.cn
Tue Apr 2 11:06:34 BST 2024


Source: rust-target
Version: 2.0.0-1
Severity: wishlist
Tags: ftbfs patch
User: debian-loongarch at lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the rust-target package failed for loong64 in the Debian 
Package Auto-Building environment, the error log is as follows:
```
error[E0308]: mismatched types
   --> src/lib.rs:23:18
    |
23 | pub fn arch() -> &'static str {
    |        ----      ^^^^^^^^^^^^ expected `&str`, found `()`
    |        |
    |        implicitly returns `()` as its body has no tail or `return` 
expression

For more information about this error, try `rustc --explain E0308`.
```

The full build log can be found at 
https://buildd.debian.org/status/logs.php?pkg=rust-target&ver=2.0.0-1&arch=loong64.

The support for LoongArch architecture has been included in rust-target 
upstream, please see https://github.com/casey/target/pull/14.
You can also consider the patch I attached.
Your opinions are welcome.

Thanks,
Dandan Zhang

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rust-target-add-loongarch64-support.patch
Type: text/x-patch
Size: 369 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20240402/3e66edcc/attachment.bin>


More information about the Pkg-rust-maintainers mailing list