Bug#1054525: vtk9: Please add support for loongarch64

zhangdandan zhangdandan at loongson.cn
Wed Oct 25 03:58:40 BST 2023


Source: vtk9
Version: 9.1.0+really9.1.0+dfsg2-7
Severity: wishlist
Tags: ftbfs patch
User: debian-loongarch at lists.debian.org
Usertags: loong64

Dear maintainers,

When compiling the package vtk9 for loong64 in the Debian Package 
Auto-Building environment [1], the error messages are as follows.
......Omit
/<<PKGBUILDDIR>>/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h:476:3: 
error: #error "Byte order of target CPU unknown."
   476 | # error "Byte order of target CPU unknown."
       |   ^~~~~
......Omit

The full compilation log can be found at [2].

Please consider the patch I have attached.
The LoongArch architecture has been supported in the vtk upstream [3].
Would it be possible to include the support for LoongArch in the next 
upload?
If you have any questions, you can contact me at any time.


[1]:https://buildd.debian.org/status/package.php?p=vtk9&suite=sid
[2]:https://buildd.debian.org/status/logs.php?pkg=vtk9&ver=9.1.0%2Breally9.1.0%2Bdfsg2-7&arch=loong64
[3]:https://gitlab.kitware.com/vtk/vtk/-/blob/master/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h

thanks,
Dandan Zhang

-------------- next part --------------
diff -Nru vtk9-9.1.0+really9.1.0+dfsg2/debian/control vtk9-9.1.0+really9.1.0+dfsg2/debian/control
--- vtk9-9.1.0+really9.1.0+dfsg2/debian/control	2023-08-21 19:01:21.000000000 +0000
+++ vtk9-9.1.0+really9.1.0+dfsg2/debian/control	2023-10-24 14:01:55.000000000 +0800
@@ -159,7 +159,7 @@
  that use VTK.
 
 Package: libvtk9-java
-Architecture: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x alpha ia64 m68k powerpc ppc64 riscv64 sh4 sparc64 x32
+Architecture: amd64 arm64 armel armhf i386 loong64 mips64el mipsel ppc64el s390x alpha ia64 m68k powerpc ppc64 riscv64 sh4 sparc64 x32
 Section: java
 Depends: ${java:Depends},
          ${misc:Depends},
diff -Nru vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch
--- vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch	1970-01-01 00:00:00.000000000 +0000
+++ vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/Add-support-for-loongarch64.patch	2023-10-24 14:35:29.000000000 +0800
@@ -0,0 +1,23 @@
+Description: add support for loongarch64 
---
+Last-Update: 2023-10-24
+
+--- vtk9-9.1.0+really9.1.0+dfsg2.orig/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h
++++ vtk9-9.1.0+really9.1.0+dfsg2/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h
+@@ -407,6 +407,10 @@ suppression macro KWIML_ABI_NO_VERIFY wa
+ #elif defined(__hppa) || defined(__hppa__)
+ # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_BIG
+ 
++/* LoongArch */
++#elif defined(__loongarch64) 
++# define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_LITTLE
++
+ /* Motorola 68k */
+ #elif defined(__m68k__) || defined(M68000)
+ # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_BIG


More information about the debian-science-maintainers mailing list