swarm-support
[Top][All Lists]
Advanced

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

Re: [Swarm-Support] pretest 9 / Sun JDK


From: Pietro Terna
Subject: Re: [Swarm-Support] pretest 9 / Sun JDK
Date: Thu, 04 Sep 2003 14:24:23 +0200

        Hi Marcus.

        I've installed pretest 9, but I've still a lot of problems.

        Cygwin is uptodate.

        ATB, Pietro

--- with gcj

address@hidden ~/swarmApps/jheatbugs-2001-03-28
$ LTDL_LIBRARY_PATH=/Swarm-2.2/lib

address@hidden ~/swarmApps/jheatbugs-2001-03-28
$ CLASSPATH=/Swarm-2.2/share/swarm/swarm.jar gcj -O2 -g
--main=StartHeatbugs -L
/Swarm-2.2/lib *.class /Swarm-2.2/lib/gcj_{swarm,gnubytecode}.o
-o jheatbugs
gcj: /Swarm-2.2/lib/gcj_swarm.o: No such file or directory
gcj: /Swarm-2.2/lib/gcj_gnubytecode.o: No such file or directory

address@hidden ~/swarmApps/jheatbugs-2001-03-28
$ jheatbugs
Exception caught: javaswarm: file not found
Exception in thread "main" java.lang.UnsatisfiedLinkError: createBegin
   <<No stacktrace available>>

--- with jdk

address@hidden ~/swarmApps/jheatbugs-2001-03-28
$ jdkcswarm *.java

address@hidden ~/swarmApps/jheatbugs-2001-03-28
$ jdkswarm StartHeatbugs
BLT support file `bltGraph.tcl' not found
If the directory `/Swarm-2.2/share/blt2.4' not the intended location for the BLT support files,
please adjust BLT_LIBRARY to the right place.

--- in plain way

address@hidden ~/swarmApps/jheatbugs-2001-03-28
$ javaswarm StartHeatbugs
BLT support file `bltGraph.tcl' not found
If the directory `/Swarm-2.2/share/blt2.4' not the intended location for the BLT support files,
please adjust BLT_LIBRARY to the right place.

--- using Obj C

address@hidden ~/swarmApps/swarmapps-2.1.1/heatbugs
$ make
/bin/sh.exe /Swarm-2.2/bin/libtool-swarm --mode link gcc -g -O2 -L/Swarm-2.2/lib
 -rpath /Swarm-2.2/lib  -o heatbugs.exe Heatbug.o HeatSpace.o main.o HeatbugMode
lSwarm.o HeatbugObserverSwarm.o HeatbugBatchSwarm.o  -lswarm
gcc -g -O2 -o heatbugs.exe Heatbug.o HeatSpace.o main.o HeatbugModelSwarm.o Heat
bugObserverSwarm.o HeatbugBatchSwarm.o  -L/Swarm-2.2/lib /Swarm-2.2/lib/libswarm
.dll.a -L/build/swarm-nobounds/src/space -L/build/swarm-nobounds/src/analysis -L
/build/swarm-nobounds/src/simtoolsgui -L/build/swarm-nobounds/src/simtools -L/bu
ild/swarm-nobounds/src/random -L/build/swarm-nobounds/src/tkobjc -L/build/swarm-
nobounds/src/tclobjc -L/build/swarm-nobounds/src/objectbase -L/build/swarm-nobou
nds/src/activity -L/build/swarm-nobounds/src/defobj -L/build/swarm-nobounds/src/
collections -L/build/swarm-nobounds/src/misc -L/build/swarm-nobounds/libobjc -L/
usr/lib /Swarm-2.2/lib/libswarmobjc.dll.a -lBLT24 -ltk84 -ltcl84 -lXpm -lpng -lz
 -luser32 -lgdi32 -L/build/swarm-nobounds/avcall -Wl,--rpath -Wl,/Swarm-2.2/lib
-Wl,--rpath -Wl,/Swarm-2.2/lib
/usr/bin/ld: cannot find -lBLT24
collect2: ld returned 1 exit status
make: *** [heatbugs.exe] Error 1

---

At 10.08 03/09/2003 -0600, you wrote:
Hi all,

Swarm is working with Sun JDK again.

The problem was with Tcl.  Tcl does a stack probe to ensure that recursive calls can be completed, but this stack probe causes problems in the JVM environment.  So I disabled the probe, and put a variant Tcl DLL in
/Swarm-2.2/bin to override the Cygwin version.
The previous problem of Cygwin laying down shared memory space for its bookkeeping no longer causes problems with Sun JDK 1.4.2.  So, rather than adding a feature to Cygwin to make it the virtual memory address of that area configurable, or changing the value, I will simply say that if you want to use Swarm and Java under Windows, use the latest version of Sun JDK (1.4.2).  In my limited testing, 1.4.2 and pretest 9 are working reliabily together.

The new pretest at ftp://ftp.santafe.edu/pub/swarm/binaries/w32/latest/Swarm-2.2-pretest-9.tar.gz.

Before using this pretest, run the Cygwin setup program and update your Cygwin DLL and anything else the installer suggests.  You don't need `experimental' versions of the Cygwin stuff or anything like that.  If you had a Cygwin install that worked with earlier Swarm pretest (e.g. you were using it for Objective C only), simply have it grab the standard updates.  Cygwin developers are doing a mass upgrade of packages lately to accomodate new 64 bit file access features in the Cygwin.  I realize that this isn't yet advertised on the Cygwin website, but it's true.

Finally, this pretest doesn't have a working Kaffe (standalone free Java JVM).  I will probably withdraw Kaffe support from the next release because 1) it doesn't work with Cygwin (and I don't have time to fix it), and 2) most Java folks find Kaffe weird anyway and prefer to use commercial development tools.    For folks that want freely redistributable Java support, there will be gcj.  I noticed that gcj broke with my last round of Cygwin/GCC upgrades, but it probably just requires a rebuild of libgcj (something that takes about all day).  So, if you want GCJ support use pretest 8.  If you want Sun JDK support, use pretest 9.  If you want both, lend a hand.  :-)

_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support

reply via email to

[Prev in Thread] Current Thread [Next in Thread]