[From nobody Mon Oct 19 11:37:05 2026
Received: (at submit) by bugs.debian.org; 31 Mar 2026 07:29:39 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.0 required=4.0 tests=BAYES_00,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,
 RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=no
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 25; hammy, 149; neutral, 72; spammy,
 1. spammytokens:0.987-1--vbz hammytokens:0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--werror, 0.000-+--loong64,
 0.000-+--Werror
Return-path: &lt;zhangdandan@loongson.cn&gt;
Received: from mail.loongson.cn ([114.242.206.163]:52020)
 by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;zhangdandan@loongson.cn&gt;) id 1w7TXf-001Fy2-19
 for submit@bugs.debian.org; Tue, 31 Mar 2026 07:29:39 +0000
Received: from loongson.cn (unknown [10.2.10.31])
 by gateway (Coremail) with SMTP id _____8AxScLTd8tp7lYgAA--.26872S3;
 Tue, 31 Mar 2026 15:29:24 +0800 (CST)
Received: from [10.2.10.31] (unknown [10.2.10.31])
 by front1 (Coremail) with SMTP id qMiowJBxSeDAd8tpYndhAA--.55417S3;
 Tue, 31 Mar 2026 15:29:15 +0800 (CST)
To: submit@bugs.debian.org
From: zhangdandan &lt;zhangdandan@loongson.cn&gt;
Subject: libvbz-hdf-plugin: Fix build error for loong64
Message-ID: &lt;c65660e3-af03-85f4-d2d7-545a10b37ed7@loongson.cn&gt;
Date: Tue, 31 Mar 2026 15:29:04 +0800
User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101
 Thunderbird/68.7.0
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;------------B8366EF3011E6F1A0351E873&quot;
Content-Language: en-US
X-CM-TRANSID: qMiowJBxSeDAd8tpYndhAA--.55417S3
X-CM-SenderInfo: x2kd0wxgdqvt3q6o00pqjv00gofq/
X-Coremail-Antispam: 1Uk129KBj93XoW7Kw15uw1rXw1fWFWkZr1UArc_yoW8Ww1fpr
 17urWkXFWkGFWkZ34ak3yUXry0y3s7X34Yka1UKwn8Awn8W3y2gr90gr109asrta1rJF1j
 qrn5JrykZr47GFXCm3ZEXasCq-sJn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7ZEXa
 sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU
 0xBIdaVrnRJUUU9Yb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2
 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v
 e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI
 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv6xkF7I0E14v2
 6r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wASzI0EjI02j7AqF2xKxwAqjxCEc2
 xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_
 Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwI
 xGrwCYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY
 6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17
 CEb7AF67AKxVWUJVWUXwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF
 0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIx
 AIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIev
 Ja73UjIFyTuYvjxUzsqWUUUUU
Delivered-To: submit@bugs.debian.org

This is a multi-part message in MIME format.
--------------B8366EF3011E6F1A0351E873
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Source: libvbz-hdf-plugin
Version: 1.0.2-3.1
Severity: normal
Tags: patch
User: debian-loongarch@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: debian-loongarch@lists.debian.org

Dear maintainers,

Compiling the libvbz-hdf-plugin failed for loong64 in the Debian Package 
Auto-Building environment.
The error log is as follows,
```
[ 33%] Built target hdf_test_utils
In file included from 
/build/reproducible-path/libvbz-hdf-plugin-1.0.2/vbz/v0/vbz_streamvbyte.cpp:2:
In static member function ‘static std::vector&lt;U&gt; StreamVByteWorkerV0&lt;T, 
UseZigZag&gt;::cast(const gsl::span&lt;V&gt;&amp;) [with U = int; V = const int; T = 
int; bool UseZigZag = true]’,
     inlined from ‘static vbz_size_t StreamVByteWorkerV0&lt;T, 
UseZigZag&gt;::compress(gsl::span&lt;const char&gt;, gsl::span&lt;char&gt;) [with T = 
int; bool UseZigZag = true]’ at 
/build/reproducible-path/libvbz-hdf-plugin-1.0.2/vbz/v0/vbz_streamvbyte_impl.h:30:35,
     inlined from ‘vbz_size_t 
vbz_delta_zig_zag_streamvbyte_compress_v0(const void*, vbz_size_t, 
void*, vbz_size_t, int, bool)’ at 
/build/reproducible-path/libvbz-hdf-plugin-1.0.2/vbz/v0/vbz_streamvbyte.cpp:54:73:
/build/reproducible-path/libvbz-hdf-plugin-1.0.2/vbz/v0/vbz_streamvbyte_impl.h:75:23: 
error: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ 
offset [0, 3] is out of the bounds [0, 0] [-Werror=array-bounds=]
    75 |             output[i] = input[i];
```

Please consider the patch attached.
I have built libvbz-hdf-plugin normally on locally.

Best regards,
Dandan Zhang


--------------B8366EF3011E6F1A0351E873
Content-Type: text/x-patch; charset=UTF-8;
 name=&quot;libvbz-hdf-plugin-fix-build-error-for-loong64.patch&quot;
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename=&quot;libvbz-hdf-plugin-fix-build-error-for-loong64.patch&quot;

diff -Nru libvbz-hdf-plugin-1.0.2/debian/rules libvbz-hdf-plugin-1.0.2/debian/rules
--- libvbz-hdf-plugin-1.0.2/debian/rules	2023-07-23 08:52:45.000000000 +0000
+++ libvbz-hdf-plugin-1.0.2/debian/rules	2024-02-28 21:02:18.000000000 +0000
@@ -8,6 +8,10 @@
 #       vbz/vbz.cpp:314:17: error: possibly dangling reference to a temporary
 export DEB_CXXFLAGS_MAINT_APPEND = -Wno-error=dangling-reference
 
+ifeq ($(DEB_HOST_ARCH_CPU),loong64)
+        DEB_CXXFLAGS_MAINT_APPEND += -Wno-error=array-bounds
+endif
+
 include /usr/share/dpkg/default.mk
 
 %:

--------------B8366EF3011E6F1A0351E873--
]