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

Bug#1017771: gridengine: ftbfs on riscv64 ("Unsupported architecture UNSUPPORTED-lx-riscv64")



Source: gridengine
Version: 8.1.9+dfsg-10
Severity: normal
Tags: ftbfs, patch
User: debian-riscv@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv@lists.debian.org

Dear gridengine Maintainer,

The package has a ftbfs issue on riscv64 due to missing support riscv64:

```
...
Unsupported architecture UNSUPPORTED-lx-riscv64
Now run ./aimk with any appropriate options (see ./aimk -help)
Unsupported architecture UNSUPPORTED-lx-riscv64
make[1]: *** [debian/rules:37: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:34: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
```

The patch attached is trying to add support for riscv64 and I can
confirm it is ok to build on my locally real riscv64 hardware.Could 
you apply it in the next upload?

Any issues please let me know, thanks.

-- 
Regards,
--
  Bo YU

Description: add support riscv64
Author: Bo YU <tsu.yubo@gmail.com>
Forwarded: no
Last-Update: 2022-08-20 
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/source/aimk
+++ b/source/aimk
@@ -1974,6 +1974,9 @@
                 set JAVA_LIB_ARCH = aarch64
              endif
              breaksw
+	 case lx-riscv64:
+	      set JAVA_LIB_ARCH = riscv64
+	      breaksw
 	 case lx-mips64:
 	      set JAVA_LIB_ARCH = mips64el
 	      breaksw
--- a/source/dist/util/arch
+++ b/source/dist/util/arch
@@ -219,6 +219,9 @@
    powerpc64le | powerpc64el)
       lxmachine=ppc64el
       ;;
+   riscv64)
+      lxmachine=riscv64
+      ;;
    *)
       unsupported="UNSUPPORTED-"
       lxmachine=$osmachine
--- a/source/scripts/compilearch
+++ b/source/scripts/compilearch
@@ -220,6 +220,11 @@
       COMPILE_ARCH=LINUXPPC64EL
       TARGET_BITS=TARGET_64BIT
       ;;
+   lx-riscv64)
+      BUILDARCH=LINUXRISCV64
+      COMPILE_ARCH=LINUXRISCV64
+      TARGET_BITS=TARGET_64BITT
+      ;;
    lx-s390)
       BUILDARCH=LINUXS390
       COMPILE_ARCH=LINUXS390

Attachment: signature.asc
Description: PGP signature


Reply to: