Source: pvm Version: 3.4.5-12.1 Severity: wishlist Tags: patch User: debian-...@superh.org Usertags: sh4 X-Debbugs-CC: debian-sup...@lists.debian.org
Hi, I am now trying to run Debian on Renesas SH(sh4) CPU. http://buildd.debian-ports.org/status/architecture.php?suite=unstable&a=sh4 pvm FTBFS on SH4. Because pvm does not support Renesas SH. http://buildd.debian-ports.org/fetch.php?pkg=pvm&arch=sh4&ver=3.4.5-12.1&stamp=1262749319&file=log&as=raw ----- Now at patch 20-fix-kfreebsd-ftbfs.patch touch debian/stamp-patched dh_testdir echo "#! /bin/sh" > lib/pvmgetarch echo "echo `sh debian/getpvmarch`" >> lib/pvmgetarch Unknown architecture! chmod +x lib/pvmgetarch chmod +x debian/getpvmarch FC="gfortran" F77="gfortran" PVM_ROOT=`pwd` ./lib/aimk -here -f ./conf/`sh debian/getpvmarch`.def -f ./Makefile.aimk CFLOPTS='"-g -O2 -DRSHCOMMAND=\\\"/usr/lib/pvm3/bin/rsh\\\" -DPVMDPATH=\\\"pvmd\\\" -DPVMDFILE=\\\"/usr/bin/pvmd\\\" -DPVM_DEFAULT_ROOT=\\\"/usr/lib/pvm3\\\" -DOVERLOADHOST"' PVMDIR=`pwd` all Unknown architecture! aimk: no pvmgetarch - is $PVM_ROOT set correctly? make: *** [build-stamp] Error 1 ----- I made patch to support SH. Could you apply this patch? Best regards, Nobuhiro -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6
--- /dev/null 2010-01-12 23:54:25.813003116 +0000 +++ b/conf/LINUXSH.def 2010-01-15 01:39:28.000000000 +0000 @@ -0,0 +1,10 @@ +ARCHCFLAGS = -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\"/usr/bin/rsh\" \ + -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS \ + -DCTIMEISTIMET -DSYSERRISCONST +ARCHDLIB = +ARCHDOBJ = +ARCHLIB = -lreadline +HASRANLIB = t +AR = ar +PVM_ARCH = LINUXSH +MAKE = make --- /dev/null 2010-01-12 23:54:25.813003116 +0000 +++ b/conf/LINUXSH.m4 2010-01-15 00:38:17.000000000 +0000 @@ -0,0 +1,19 @@ +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)
--- a/debian/getpvmarch 2010-01-15 01:49:13.000000000 +0000 +++ b/debian/getpvmarch 2010-01-15 01:48:59.000000000 +0000 @@ -42,6 +42,9 @@ arm) echo LINUXARM ;; + sh4) + echo LINUXSH + ;; *) echo 'Unknown architecture!' 1>&2 exit 1;