Bug#1054524: vtk9: FTBFS: add support for loongarch64

zhangdandan zhangdandan at loongson.cn
Wed Oct 25 03:18:04 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
cd /<<PKGBUILDDIR>>/debian/build/Wrapping/Java && 
../../bin/vtkParseJava-9.1 
@/<<PKGBUILDDIR>>/debian/build/Wrapping/Java/CMakeFiles/vtkCommonCoreJava/vtkCommonCore-java.RelWithDebInfo.args 
-o /<<PKGBUILDDIR>>/debian/build/Wrapping/Java/vtk/vtkBreakPoint.java 
/<<PKGBUILDDIR>>/Common/Core/vtkBreakPoint.h
In file included from /<<PKGBUILDDIR>>/Utilities/KWIML/vtkkwiml/abi.h:2,
                  from /<<PKGBUILDDIR>>/Utilities/KWIML/vtk_kwiml.h:19,
                  from /<<PKGBUILDDIR>>/Common/Core/vtkType.h:21,
                  from /<<PKGBUILDDIR>>/Common/Core/vtkSystemIncludes.h:43,
                  from /<<PKGBUILDDIR>>/Common/Core/vtkIndent.h:28,
                  from /<<PKGBUILDDIR>>/Common/Core/vtkObjectBase.h:53,
                  from /<<PKGBUILDDIR>>/Common/Core/vtkObject.h:45,
                  from /<<PKGBUILDDIR>>/Common/Core/vtkArrayIterator.h:47,
                  from 
/<<PKGBUILDDIR>>/Common/Core/vtkArrayIteratorTemplate.h:29,
                  from 
/<<PKGBUILDDIR>>/Common/Core/vtkArrayIteratorTemplate.txx:18,
                  from 
/<<PKGBUILDDIR>>/Common/Core/vtkArrayIteratorTemplateInstantiate.cxx:17:
/<<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/changelog vtk9-9.1.0+really9.1.0+dfsg2/debian/changelog
--- vtk9-9.1.0+really9.1.0+dfsg2/debian/changelog	2023-08-21 22:27:20.000000000 +0000
+++ vtk9-9.1.0+really9.1.0+dfsg2/debian/changelog	2023-10-24 14:35:29.000000000 +0800
@@ -1,3 +1,9 @@
+vtk9 (9.1.0+really9.1.0+dfsg2-7+loong64) unreleased; urgency=medium
+
+  * Add support for loongarch64.
+
+ -- Dandan Zhang <zhangdandan at loongson.cn>  Tue, 24 Oct 2023 14:35:29 +0800
+
 vtk9 (9.1.0+really9.1.0+dfsg2-7) unstable; urgency=medium
 
   * Team upload.
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 
+ .
+ vtk9 (9.1.0+really9.1.0+dfsg2-7+loong64) unreleased; urgency=medium
+ .
+   * Add support for loongarch64.
+Author: Dandan Zhang <zhangdandan at loongson.cn>
+
+---
+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
diff -Nru vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/series vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/series
--- vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/series	2023-08-21 19:02:08.000000000 +0000
+++ vtk9-9.1.0+really9.1.0+dfsg2/debian/patches/series	2023-10-24 14:35:29.000000000 +0800
@@ -13,3 +13,4 @@
 99_fix_ftbfs.patch
 110_vtk9_netcdf.patch
 120_fix_shader_crash.patch
+Add-support-for-loongarch64.patch


More information about the debian-science-maintainers mailing list