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

Bug#1015924: pvm: ftbfs on riscv64("Unknown architecture!")



Source: pvm
Version: 3.4.6-3.2
Severity: minor
Tags: ftbfs, patch
User: debian-riscv@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv@lists.debian.org

Dear pvm Maintainer,

The pvm package has a ftbfs issue on riscv64:
```
...
dh clean
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Unknown architecture!
Unknown architecture!
echo "#!/bin/sh" > lib/pvmgetarch
echo "echo " > lib/pvmgetarch
chmod +x lib/pvmgetarch
chmod +x debian/getpvmarch
make PVM_ROOT=`pwd` clean
...
```

The full buildd log is here:

https://buildd.debian.org/status/fetch.php?pkg=pvm&arch=riscv64&ver=3.4.6-3.2&stamp=1636477315&raw=0


The patch attached is to fix the issue and I can build it on 
riscv64 arch with it, so please consider to apply it to fix the 
issue, thanks.

-- 
Regards,
--
  Bo YU

diff -Nru pvm-3.4.6/debian/getpvmarch pvm-3.4.6/debian/getpvmarch
--- pvm-3.4.6/debian/getpvmarch	2018-07-24 22:31:14.000000000 +0800
+++ pvm-3.4.6/debian/getpvmarch	2021-11-10 00:16:02.000000000 +0800
@@ -48,6 +48,9 @@
 	sh4)
 		echo LINUXSH
 		;;
+	riscv64)
+		echo LINUXRISCV
+		;;
 	*)
 		echo 'Unknown architecture!' 1>&2
 		exit 1;
diff -Nru pvm-3.4.6/debian/patches/27-add-riscv64-support.patch pvm-3.4.6/debian/patches/27-add-riscv64-support.patch
--- pvm-3.4.6/debian/patches/27-add-riscv64-support.patch	1970-01-01 07:30:00.000000000 +0730
+++ pvm-3.4.6/debian/patches/27-add-riscv64-support.patch	2021-11-10 00:16:02.000000000 +0800
@@ -0,0 +1,36 @@
+--- /dev/null
++++ b/conf/LINUXRISCV.def
+@@ -0,0 +1,10 @@
++ARCHCFLAGS     =       -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\"/usr/bin/rsh\" \
++                       -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS \
++                       -DCTIMEISTIMET -DSYSERRISCONST -DHASREADLINE
++ARCHDLIB       =
++ARCHDOBJ       =
++ARCHLIB                =       -lreadline
++HASRANLIB      =       t
++AR             =       ar
++PVM_ARCH       =       LINUXRISCV
++MAKE           =       make
+--- /dev/null
++++ b/conf/LINUXRISCV.m4
+@@ -0,0 +1,20 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
++
diff -Nru pvm-3.4.6/debian/patches/series pvm-3.4.6/debian/patches/series
--- pvm-3.4.6/debian/patches/series	2020-08-19 22:48:23.000000000 +0800
+++ pvm-3.4.6/debian/patches/series	2021-11-10 00:16:02.000000000 +0800
@@ -27,3 +27,4 @@
 26-groff-quote.patch
 -fallow-argument-mismatch-in-examples-Makefile.aimk
 -fallow-argument-mismatch-in-gexamples-Makefile.aimk
+27-add-riscv64-support.patch

Attachment: signature.asc
Description: PGP signature


Reply to: