Subject: distributed.net client for linuxppc works on NetBSD/macppc
To: None <port-macppc@netbsd.org, port-powerpc@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-powerpc
Date: 04/07/2001 23:14:02
The distributed.net client for linuxppc
ftp://ftp.distributed.net/pub/dcti/v2.8007/dnetc458-linux-ppc-static-mt.tar.gz
is now working on my Apus2000 (603e/200MHz) running NetBSD/macppc 1.5T
updated around 20010402 with COMPAT_LINUX:

---
% uname -a
NetBSD lancer 1.5T NetBSD 1.5T (LANCER) #767: Fri Apr  6 01:01:54 JST 2001 \
    tsutsui@lancer:/usr/src/sys/arch/macppc/compile/LANCER macppc
% ktrace ./dnetc

distributed.net client for Linux Copyright 1997-2000, distributed.net
RC5 PowerPC and AltiVec assembly by Dan Oetting
Please visit http://www.distributed.net/ for up-to-date contest information.


dnetc v2.8007-458-CTR-00020716 for Linux (Linux 2.0.38).
Please provide the *entire* version descriptor when submitting bug reports.
The distributed.net bug report pages are at http://www.distributed.net/bugs/
Using email address (distributed.net ID) 'tsutsui@ceres.dti.ne.jp'

[Apr 07 13:56:26 UTC] Linux does not support SMP or
                      does not support processor count detection.
                      A single processor machine is assumed.
[Apr 07 13:56:29 UTC] Connected to distributed.net 145.89.128.136:2064...
[Apr 07 13:56:29 UTC] The keyserver says: "Why is a cow ? Mu. (Ommmmmmmmmm)"
[Apr 07 13:56:35 UTC] Retrieved RC5 work unit 26 of 26 (100.00% transferred) 
[Apr 07 13:56:35 UTC] Automatic processor type detection failed.
[Apr 07 13:56:35 UTC] RC5: Running micro-bench to select fastest core...
[Apr 07 13:56:44 UTC] RC5: using core #1 (lintilla).
[Apr 07 13:56:44 UTC] Loaded RC5 4*2^28 packet 20F6731F:40000000
[Apr 07 13:56:44 UTC] 6 RC5 packets (22 work units) remain in buff-in.rc5
[Apr 07 13:56:44 UTC] Projected ideal time to completion: 0.02:25:34.00
[Apr 07 13:56:44 UTC] 0 RC5 packets (0 work units) are in buff-out.rc5
[Apr 07 13:56:45 UTC] 1 cruncher has been started.
.^C
[Apr 07 13:57:07 UTC] *Break* Shutting down...
[Apr 07 13:57:07 UTC] Shutting down...
[Apr 07 13:57:07 UTC] Waiting for crunchers to stop...
[Apr 07 13:57:07 UTC] Saved packet 20F6731F:40000000 (0.70% complete)
[Apr 07 13:57:07 UTC] Summary: 0 RC5 packets (0*2^28 keys)
                      0.00:00:00.00
[Apr 07 13:57:07 UTC] 7 RC5 packets (26 work units) are in buff-in.rc5
[Apr 07 13:57:07 UTC] Projected ideal time to completion: 0.02:52:02.00
[Apr 07 13:57:07 UTC] 0 RC5 packets (0 work units) are in buff-out.rc5
% kdump
  1382 ktrace   EMUL  "netbsd"
  1382 ktrace   RET   ktrace 0
  1382 ktrace   CALL  execve(0x7fffec23,0x7fffeb78,0x7fffeb80)
  1382 ktrace   NAMI  "./dnetc"
  1382 dnetc    EMUL  "linux"
  1382 dnetc    RET   execve JUSTRETURN
  1382 dnetc    CALL  personality(0)
  1382 dnetc    RET   personality 0
 :
---

The public source code of dnetc client
http://www.distributed.net/source/
compiles on NetBSD/macppc, but it dumps core..
(maybe compiler optimization problem?)
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp