Current state of affairs

14 views
Skip to first unread message

Manfred Bergmann

unread,
Aug 26, 2017, 3:23:27 AM8/26/17
to jamiga2
Hi.

Joakim, can you please briefly tell what is required to build JamVM/jamiga.
It's not fully clear which parts this is.
I'm not talking about the build-tools.

The link to code.google.com doesn't exist anymore.

So, there is the JamVM repo with customizations to build for Amiga.
What else is required? GNU classpath, OpenJDK?



Manfred

Joakim Nordström

unread,
Aug 28, 2017, 4:18:57 PM8/28/17
to jam...@googlegroups.com
Hi Manfred,

Well, there's the "working" version using JamVM and GNU classpath, which is on os4depot.

Then there's the "new" sources which uses JamVM and OpenJDK. That is however far from done, and can't be run at the moment. I haven't done much lately; have added Amiga-code to OpenJDK trying to make it compile in a Linux cross-compile environment. I think JamVM can be compiled and run on OS4. But it obviously complains on missing library... or perhaps I got as far as making it complain on unimplemented methods?
Repos: 

Sorry I can't give a good "this is exactly how it works" response. I'm also currently rather busy, and won't have access to my Amiga in like two months. 

What are you aiming for? OS 3, OS 4, MOS, Aros?

Best regards,
Joakim
--
You received this message because you are subscribed to the Google Groups "jamiga2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jamiga2+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Manfred Bergmann

unread,
Aug 29, 2017, 1:46:02 PM8/29/17
to jamiga2
Hi.

OK. So I'd like to get involved in the latest JamVM/OpenJDK thingy.
I would target MOS but I would also setup a cross-compiler toolchain on Linux.
But I'd be happy for a common Java for any Amiga platform.

There is code on GitHub as well. Is that the same as on SourceForge?

So both projects have to be build separately I assume?


Manfred

Joakim Nordström

unread,
Aug 29, 2017, 5:55:48 PM8/29/17
to jam...@googlegroups.com
Ok, great! Basically that setup is IcedTea 3 for OpenJDK 8, with JamVM. 
And you're correct, and my memory sucks. For the latest JamVM with Amiga changes, it's the git repo: https://github.com/jaokim/jamiga-jamvm

JamVM
There's a config.mk in the root, which needs changes to work for MorphOS. If you'd like to, please make it take both OS4 and MOS, along the lines of what I did in the old project: https://sourceforge.net/p/jamiga2/code/HEAD/tree/trunk/jamiga/CrossCompile.mk
Then I think you could add necessary files from src/os/amiga to src/os/morphos or something. There's a lot of special overriding-stuff in the Amiga dir that should be in the c/posix-lib which you might already have for MorphOS (or you might need other specialities).
Also, I can't remember if I managed to cross-compile JamVM, but do think I managed on my Amiga.

IcedTea/OpenJDK
Check out the code in a dir "jamiga-icedtea8-3", then "cd ..", "mkdir icedtea-build", "cd icedtea-build", and then configure and make using the files from the check-out, something like "../jamiga-icedtea8-3/configure", can't remember exactly. I can see if I can find my exact command line.
When building IcedTea, the build process automatically downloads all of OpenJDK, and adds some stuff to the build process in order to make it more "experimental friendly" - for instance adding support for other VMs than OpenJDK's HotSpot. In the Git history you see which files I've changed. There's also a directory "overlays" which now seems unused by IcedTea (I believe most of what was there has been included in the real OpenJDK code, and is mostly used for pure experimentation). I have a small script that copies its content over the real OpenJDK sources before building.

Don't know if I gave too much irrelevant details here, and perhaps missed the big issues, but I've battled a bit with understanding how IcedTea works. Hopefully this helps some. 
I can also recommend looking for instructions on how to build just IcedTea and OpenJDK. Perhaps even starting with that, without caring for MorphOS/AmigaOS.

Best regards,
Joakim

Manfred Bergmann

unread,
Aug 30, 2017, 3:31:28 PM8/30/17
to jamiga2
Thanks for those details.

IcedTea/OpenJDK is build via cross-compiler for Amiga target?
Or can be done on Amiga/MOS directly?


Manfred

Joakim Nordström

unread,
Aug 30, 2017, 3:42:27 PM8/30/17
to jam...@googlegroups.com
Hi,
I've only managed to build IcedTea/OpenJDK on a cross-compile setup.
You need to first have a bootstrap OpenJDK for the previous version (in this case Java 7). So I think cross-compiling is the only way.
IIRC the bootstrap JDK should be built for the build machine, i.e. Linux x86 in my case.

/Joakim
Reply all
Reply to author
Forward
0 new messages