Re: [Help] pvm: ftbfs with GCC-10

2020-08-12 Thread Étienne Mollier
Control: tags -1 patch

Hi Andreas,

This lead to the trail:
> : error: 'pvmd' undeclared (first use in this function)
> /build/pvm-3.4.6/src/ddpro.c:1031:14: note: in expansion of macro 'PVMDPATH'
>  1031 |   pvmdpath = PVMDPATH;
>   |  ^~~~

Definition of PVMDPATH and friends is cascaded through a tool
chain from debian/rules, but double quotes went missing for some
reason, maybe with the debhelper compatibility level bump.
Thus, the undefined symbol _pvmd_ ended up into the C code,
instead of the string _"pvmd"_.

--8<
diff --git a/debian/rules b/debian/rules
index b1d217b..92a6247 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,7 +11,7 @@ soversion=3
 # yes, I know this will define RSHCOMMAND twice and generate a warning.
 # I'm not modifying gcc. -dld
 #
-export DEB_CPPFLAGS_MAINT_APPEND=-DRSHCOMMAND=\\\"/usr/lib/pvm3/bin/rsh\\\" 
-DPVMDPATH=\\\"pvmd\\\" -DPVMDFILE=\\\"/usr/bin/pvmd\\\" 
-DPVM_DEFAULT_ROOT=\\\"/usr/lib/pvm3\\\" -DOVERLOADHOST
+export 
DEB_CPPFLAGS_MAINT_APPEND=-DRSHCOMMAND=\\\"/usr/lib/pvm3/bin/rsh\\\" 
-DPVMDPATH=\\\"pvmd\\\" -DPVMDFILE=\\\"/usr/bin/pvmd\\\" 
-DPVM_DEFAULT_ROOT=\\\"/usr/lib/pvm3\\\" -DOVERLOADHOST
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 include /usr/share/dpkg/architecture.mk
 export DEB_HOST_MULTIARCH
@@ -80,7 +80,7 @@ override_dh_auto_install:
ln -s libgpvm3.so.$(version) 
debian/libpvm3/usr/lib/$(DEB_HOST_MULTIARCH)/libgpvm3.so.$(soversion)

# pvm-examples package
-   mv bin/$(PVM_ARCH)/gs debian/pvm-examples/usr/bin/gs.pvm
+   #mv bin/$(PVM_ARCH)/gs debian/pvm-examples/usr/bin/gs.pvm
mv bin/$(PVM_ARCH)/hello debian/pvm-examples/usr/bin/hello.pvm
mv bin/$(PVM_ARCH)/srm debian/pvm-examples/usr/bin/srm.pvm
cp bin/$(PVM_ARCH)/* debian/pvm-examples/usr/bin/
-->8

I hope this helps, but I must admit it seems rather fragile.  :(

Kind Regards,
-- 
Étienne Mollier 
Old rsa/3072: 5ab1 4edf 63bb ccff 8b54  2fa9 59da 56fe fff3 882d
New rsa/4096: 8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/pts/4, please excuse my verbosity.


signature.asc
Description: PGP signature


Re: [Help] pvm: ftbfs with GCC-10

2020-08-12 Thread Ansgar
Andreas Tille writes:
> while I do not intend to maintain pvm personally some Debian Med package
> depend from it.  Thus I like to see bug #957717 fixed but I need help.

Do people still use PVM for parallel computing?  I thought it was
replaced by MPI decades ago.

If use of PVM is optional, I would consider disabling use of PVM in
reverse dependencies and just remove the unmaintained PVM package from
Debian.

Ansgar



[Help] pvm: ftbfs with GCC-10

2020-08-11 Thread Andreas Tille
Hi,

while I do not intend to maintain pvm personally some Debian Med package
depend from it.  Thus I like to see bug #957717 fixed but I need help.
I commited some general packaging changes so you can find the last
packaging state in Git[1].  When building this I get the following
output:

cc -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\"/usr/bin/rsh\" -DNEEDENDIAN 
-DFDSETNOTSTRUCT -DHASERRORVARS -DHASSTDLIB -DCTIMEISTIMET -DSYSERRISCONST 
-DNOTMPNAM -DSYSVSTR -DUSESTRERROR  -g -O2 
-fdebug-prefix-map=/build/pvm-3.4.6=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 
-DRSHCOMMAND="/usr/lib/pvm3/bin/rsh" -DPVMDPATH="pvmd" 
-DPVMDFILE="/usr/bin/pvmd" -DPVM_DEFAULT_ROOT="/usr/lib/pvm3" -DOVERLOADHOST 
-Wl,-z,relro -Wl,-z,now -fPIC -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG 
-DSANITY -I/build/pvm-3.4.6/include -DARCHCLASS=\"LINUX64\" -DIMA_LINUX64 -c 
/build/pvm-3.4.6/src/ddpro.c
: warning: "RSHCOMMAND" redefined
: note: this is the location of the previous definition
/build/pvm-3.4.6/src/ddpro.c: In function 'hostfailentry':
/build/pvm-3.4.6/src/ddpro.c:556:3: warning: implicit declaration of function 
'pvmlogprintf' [-Wimplicit-function-declaration]
  556 |   pvmlogprintf("hostfailentry() host %s\n", hp->hd_name);
  |   ^~~~
/build/pvm-3.4.6/src/ddpro.c:561:3: warning: implicit declaration of function 
'pvmlogerror'; did you mean 'pvm_perror'? [-Wimplicit-function-declaration]
  561 |   pvmlogerror("hostfailentry() lost master host, we're screwwwed\n");
  |   ^~~
  |   pvm_perror
/build/pvm-3.4.6/src/ddpro.c:575:3: warning: implicit declaration of function 
'pkint'; did you mean 'printf'? [-Wimplicit-function-declaration]
  575 |   pkint(mp, hosts->ht_serial);
  |   ^
  |   printf
/build/pvm-3.4.6/src/ddpro.c:582:5: warning: implicit declaration of function 
'sendmessage'; did you mean 'sendmsg'? [-Wimplicit-function-declaration]
  582 | sendmessage(mp);
  | ^~~
  | sendmsg
/build/pvm-3.4.6/src/ddpro.c:656:7: warning: implicit declaration of function 
'assign_tasks' [-Wimplicit-function-declaration]
  656 |   assign_tasks(wp);
  |   ^~~~
/build/pvm-3.4.6/src/ddpro.c:682:6: warning: implicit declaration of function 
'free_waitc_add' [-Wimplicit-function-declaration]
  682 |  free_waitc_add((struct waitc_add *)wp->wa_spec);
  |  ^~
/build/pvm-3.4.6/src/ddpro.c:695:5: warning: implicit declaration of function 
'mb_tidy' [-Wimplicit-function-declaration]
  695 | mb_tidy(wp->wa_on);
  | ^~~
/build/pvm-3.4.6/src/ddpro.c:703:5: warning: implicit declaration of function 
'mb_tidy_reset' [-Wimplicit-function-declaration]
  703 | mb_tidy_reset(wp->wa_on);
  | ^
/build/pvm-3.4.6/src/ddpro.c: At top level:
/build/pvm-3.4.6/src/ddpro.c:821:1: warning: return type defaults to 'int' 
[-Wimplicit-int]
  821 | free_waitc_add(wxp)
  | ^~
/build/pvm-3.4.6/src/ddpro.c: In function 'addhosts':
/build/pvm-3.4.6/src/ddpro.c:882:6: warning: implicit declaration of function 
'upkint' [-Wimplicit-function-declaration]
  882 |  if (upkint(mp, &count) || count < 1 || count > maxhostid) {
  |  ^~
/build/pvm-3.4.6/src/ddpro.c:903:7: warning: implicit declaration of function 
'upkstralloc' [-Wimplicit-function-declaration]
  903 |   if (upkstralloc(mp, &buf)) {
  |   ^~~
/build/pvm-3.4.6/src/ddpro.c:907:7: warning: implicit declaration of function 
'parsehost' [-Wimplicit-function-declaration]
  907 |   if (parsehost(buf, hp)) {
  |   ^
/build/pvm-3.4.6/src/ddpro.c:917:5: warning: implicit declaration of function 
'applydefaults' [-Wimplicit-function-declaration]
  917 | applydefaults(hp, hp2);
  | ^
: error: 'pvmd' undeclared (first use in this function)
/build/pvm-3.4.6/src/ddpro.c:1031:14: note: in expansion of macro 'PVMDPATH'
 1031 |   pvmdpath = PVMDPATH;
  |  ^~~~
: note: each undeclared identifier is reported only once for each 
function it appears in
/build/pvm-3.4.6/src/ddpro.c:1031:14: note: in expansion of macro 'PVMDPATH'
 1031 |   pvmdpath = PVMDPATH;
  |  ^~~~
/build/pvm-3.4.6/src/ddpro.c:1039:3: warning: implicit declaration of function 
'pkstr' [-Wimplicit-function-declaration]
 1039 |   pkstr(mp2, hp->hd_sopts ? hp->hd_sopts : "");
  |   ^
/build/pvm-3.4.6/src/ddpro.c:1133:5: warning: implicit declaration of function 
'pvmlogperror'; did you mean 'pvm_perror'? [-Wimplicit-function-declaration]
 1133 | pvmlogperror("addhosts() fork");
  | ^~~~
  | pvm_perror
/build/pvm-3.4.6/src/ddpro.c:1142:4: warning: implicit declaration of function 
'beprime' [-Wimplicit-function-declaration]
 1142 |beprime();
  |^~~
/build/pvm-3.4.6/src/ddpro.c:1144:4: warning: implicit declaration of function 
'hoster' [-Wimplicit-function-declaration]
 1144 |hoster(mp2);
  |^~~~