How do I install Kaffe on Linux MintPPC?

Need help with C, C++, perl, python, etc?

How do I install Kaffe on Linux MintPPC?

Postby kryptenasi » 2016-11-11 18:45

I want to try and play Minecraft on an eMac, and I have it set up to dual-boot OS X Leopard and Linux MintPPC (based on Debian Wheezy). However, OS X 10.5 only supports up to Java 5, and the sound gets distorted into white noise, and on Linux, the launcher gives these messages:

Code: Select all
java.io.FileNotFoundException: /root/.minecraft/lastlogin (No such file or directory)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.<init>(FileInputStream.java:146)
   at net.minecraft.LoginForm.readUsername(LoginForm.java:87)
   at net.minecraft.LoginForm.<init>(LoginForm.java:68)
   at net.minecraft.LauncherFrame.<init>(LauncherFrame.java:25)
   at net.minecraft.LauncherFrame.main(LauncherFrame.java:99)
Path: /root/.minecraft/bin/
http://s3.amazonaws.com/MinecraftDownload/lwjgl.jar
http://s3.amazonaws.com/MinecraftDownload/jinput.jar
http://s3.amazonaws.com/MinecraftDownload/lwjgl_util.jar
http://s3.amazonaws.com/MinecraftDownload/minecraft.jar
http://s3.amazonaws.com/MinecraftDownload/linux_natives.jar.lzma
URL: file:/root/.minecraft/bin/lwjgl.jar
URL: file:/root/.minecraft/bin/jinput.jar
URL: file:/root/.minecraft/bin/lwjgl_util.jar
URL: file:/root/.minecraft/bin/minecraft.jar
URL: file:/root/.minecraft/bin/linux_natives.jar
OpenJDK Zero VM warning: You have loaded library /root/.minecraft/bin/natives/liblwjgl.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: /root/.minecraft/bin/natives/liblwjgl.so: /root/.minecraft/bin/natives/liblwjgl.so: ELF file data encoding not big-endian (Possible cause: endianness mismatch)
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
   at java.lang.Runtime.load0(Runtime.java:795)
   at java.lang.System.load(System.java:1062)
   at org.lwjgl.Sys$1.run(Sys.java:69)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
   at org.lwjgl.Sys.loadLibrary(Sys.java:81)
   at org.lwjgl.Sys.<clinit>(Sys.java:98)
   at net.minecraft.client.Minecraft.G(SourceFile:1985)
   at awe.<init>(SourceFile:20)
   at net.minecraft.client.Minecraft.<init>(SourceFile:76)
   at avv.<init>(SourceFile:38)
   at net.minecraft.client.MinecraftApplet.init(SourceFile:38)
   at net.minecraft.Launcher.replace(Launcher.java:153)
   at net.minecraft.Launcher$1.run(Launcher.java:94)


I've heard of two things that may help: the first is a JRE/JDK created by IBM for PowerPC computers, and the second is Kaffe, a JRE that's not based on Oracle code at all and is therefore technically "not Java", but it can execute Java programs. Each of these has a problem in the installation process for me, though. For the IBM runtime, executing the "ibm-java-ppc-jre-8.0-3.20.bin" file gives this:

Code: Select all
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

Unhandled exception
Type=Illegal instruction vmState=0x00000000
J9Generic_Signal_Number=00000010 Signal_Number=00000004 Error_Value=00000000 Signal_Code=00000001
Handler1=0FAF6D00 Handler2=0F9AB7C0
R0=00000000 R1=488363B0 R2=48840930 R3=6818E4B8
R4=00000000 R5=00000000 R6=00000001 R7=00000000
R8=00000000 R9=1048E100 R10=00000000 R11=0FADACC0
R12=6818E4B8 R13=10238100 R14=1027AC3C R15=00000000
R16=69B54843 R17=10314638 R18=00000000 R19=00000000
R20=10312854 R21=1027AC50 R22=10318E8C R23=10238100
R24=00000000 R25=00000010 R26=6818E4A8 R27=1027AB50
R28=69BF5D5B R29=00000000 R30=0FBC2D48 R31=00000000
NIP=0FB710E4 MSR=0208F932 ORIG_GPR3=00000016 CTR=0FA8D7DC
LINK=0FA90BE4 XER=00000000 CCR=22842484 MQ=00000000
TRAP=00000700 DAR=48AEF00C dsisr=42000000 RESULT=00000000
Module=/tmp/install.dir.16281/Linux/resource/jre/lib/ppc/default/libj9vm28.so
Module_base_address=0FA75000
Target=2_80_20161013_322271 (Linux 3.2.0-4-powerpc)
CPU=ppc (1 logical CPUs) (0x3ef1e000 RAM)
----------- Stack Backtrace -----------
(0x0F9956CC [libj9prt28.so+0x1f6cc])
(0x0F9AA00C [libj9prt28.so+0x3400c])
(0x0F995774 [libj9prt28.so+0x1f774])
(0x0F995954 [libj9prt28.so+0x1f954])
(0x0F995354 [libj9prt28.so+0x1f354])
(0x0F9AA00C [libj9prt28.so+0x3400c])
(0x0F995408 [libj9prt28.so+0x1f408])
(0x0FAF8180 [libj9vm28.so+0x83180])
(0x0FAF7784 [libj9vm28.so+0x82784])
(0x0F9AA00C [libj9prt28.so+0x3400c])
(0x0FAF6F6C [libj9vm28.so+0x81f6c])
(0x0FAF6D70 [libj9vm28.so+0x81d70])
(0x0F9AB9E0 [libj9prt28.so+0x359e0])
__kernel_sigtramp_rt32+0x0 (0x00100370)
(0x0FA88114 [libj9vm28.so+0x13114])
(0x0FAFB4D8 [libj9vm28.so+0x864d8])
(0x0FA9AE8C [libj9vm28.so+0x25e8c])
(0x0FA9BE38 [libj9vm28.so+0x26e38])
(0x0FA9C7A8 [libj9vm28.so+0x277a8])
(0x0FB40450 [libj9vm28.so+0xcb450])
(0x0FB40588 [libj9vm28.so+0xcb588])
(0x0FA87AD4 [libj9vm28.so+0x12ad4])
(0x0FAFB4D8 [libj9vm28.so+0x864d8])
(0x0FA9AE8C [libj9vm28.so+0x25e8c])
(0x0FA9BE38 [libj9vm28.so+0x26e38])
(0x0FA9C7A8 [libj9vm28.so+0x277a8])
(0x0FB40450 [libj9vm28.so+0xcb450])
(0x0FB40588 [libj9vm28.so+0xcb588])
(0x0FA87AD4 [libj9vm28.so+0x12ad4])
(0x0FAFB4D8 [libj9vm28.so+0x864d8])
(0x0DFB522C [libjclse7b_28.so+0x5822c])
(0x0DFC2D64 [libjclse7b_28.so+0x65d64])
J9VMDllMain+0x1b0 (0x0DFC2F70 [libjclse7b_28.so+0x65f70])
(0x0FB2B3C0 [libj9vm28.so+0xb63c0])
(0x0FB79B58 [libj9vm28.so+0x104b58])
(0x0FB24E4C [libj9vm28.so+0xafe4c])
(0x0F9AA00C [libj9prt28.so+0x3400c])
(0x0FB23A94 [libj9vm28.so+0xaea94])
J9_CreateJavaVM+0xac (0x0FB0902C [libj9vm28.so+0x9402c])
JNI_CreateJavaVM+0x830 (0x0FC0BE70 [libjvm.so+0x16e70])
JNI_CreateJavaVM+0x204 (0x0FD7A904 [libjvm.so+0x10904])
(0x0FF9231C [libjli.so+0x831c])
(0x0FFCB7B0 [libpthread.so.0+0x67b0])
clone+0x84 (0x0FEC28E0 [libc.so.6+0xf88e0])
---------------------------------------
JVMDUMP039I Processing dump event "gpf", detail "" at 2016/11/11 13:32:35 - please wait.
JVMDUMP032I JVM requested System dump using '/tmp/install.dir.16281/core.20161111.133235.16281.0001.dmp' in response to an event
JVMDUMP010I System dump written to /tmp/install.dir.16281/core.20161111.133235.16281.0001.dmp
JVMDUMP032I JVM requested Java dump using '/tmp/install.dir.16281/javacore.20161111.133235.16281.0002.txt' in response to an event
JVMDUMP010I Java dump written to /tmp/install.dir.16281/javacore.20161111.133235.16281.0002.txt
JVMDUMP032I JVM requested Snap dump using '/tmp/install.dir.16281/Snap.20161111.133235.16281.0003.trc' in response to an event
JVMDUMP010I Snap dump written to /tmp/install.dir.16281/Snap.20161111.133235.16281.0003.trc
JVMDUMP007I JVM Requesting JIT dump using '/tmp/install.dir.16281/jitdump.20161111.133235.16281.0004.dmp'
JVMDUMP010I JIT dump written to /tmp/install.dir.16281/jitdump.20161111.133235.16281.0004.dmp
JVMDUMP013I Processed dump event "gpf", detail "".


Then when attempting to compile Kaffe, "./configure" stops with this error:

Code: Select all
checking if class library exists and is readable at /usr/local/classpath/share/classpath/glibj.zip... no
configure: error: Couldn't find readable class library at /usr/local/classpath/share/classpath/glibj.zip


The websites for each are https://github.com/kaffe/kaffe and https://developer.ibm.com/javasdk/downloads/, and more info about MintPPC can be found at [url]mintppc.org[/url].
kryptenasi
 
Posts: 5
Joined: 2016-10-28 21:13

Re: How do I install Kaffe on Linux MintPPC?

Postby arochester » 2016-11-11 19:14

Did you ask the Linux Mint Forums first? https://forums.linuxmint.com/
"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN."
arochester
 
Posts: 1051
Joined: 2010-12-07 19:55

Re: How do I install Kaffe on Linux MintPPC?

Postby GarryRicketson » 2016-11-11 19:22

So what does any of this have to do with Debian ?

Linux Mint PPC , is not Debian,......"based on" does not make it Debian.

As for the rest : https://wiki.debian.org/DontBreakDebian
On Debian installing software from random websites is a bad habit.---
snip--- Only using software from the Debian repositories is also much safer than installing from random websites which could bundle malware and other security risks.
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4271
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: How do I install Kaffe on Linux MintPPC?

Postby kryptenasi » 2016-11-11 20:08

GarryRicketson wrote:Linux Mint PPC , is not Debian,......"based on" does not make it Debian.


In /etc/apt/sources.list, it seems to have both the Debian Wheezy and Linux Mint Katya repositories, so maybe it's a hybrid of some sort? Also, you install it from a Debian Wheezt netinst CD, as it says on the website.

GarryRicketson wrote:As for the rest : https://wiki.debian.org/DontBreakDebian
On Debian installing software from random websites is a bad habit.---
snip--- Only using software from the Debian repositories is also much safer than installing from random websites which could bundle malware and other security risks.



I don't know why IBM would have malware in their stuff, but okay? Are there other Java things for PowerPC?
kryptenasi
 
Posts: 5
Joined: 2016-10-28 21:13

Re: How do I install Kaffe on Linux MintPPC?

Postby stevepusser » 2016-11-11 20:53

openjdk-7-jre in the Wheezy repository?
Full Java runtime environment - needed for executing Java GUI and Webstart programs, using Hotspot JIT. The packages are built using the IcedTea build support and patches from the IcedTea project.


openjdk-6-jre is also in the repo, and is the default. Both can be installed, and the runtime switched between them via the alternatives system.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.5.0, Liquorix kernel 4.12-10, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8804
Joined: 2009-10-06 05:53

Re: How do I install Kaffe on Linux MintPPC?

Postby dasein » 2016-11-12 00:35

kryptenasi wrote:In /etc/apt/sources.list, it seems to have both the Debian Wheezy and Linux Mint Katya repositories...

Oh goodie. Here's the thing: Mint isn't even based on Debian. It's based on something that's based on Debian.

Absolutely no one here runs this one-off Frankendisto, so all anyone here can do is guess. Random guesses from random strangers who don't know anything about the details of your OS are just as likely to be harmful as helpful.

Thus, the larger point remains that the only folks with expertise in this OS are the authors of this cross-bred monstrosity. You should be asking your question in their forums: http://www.mintppc.org/forums/

At the end of the day, running an obscure OS on rare hardware means you're pretty much on your own.

Best of luck to you.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: How do I install Kaffe on Linux MintPPC?

Postby debiman » 2016-11-12 16:33

the last release was 2011, then "based on Debian Wheezy, which is a testing release". lol.


...and just for some further lulz, the latest post from their forums:
And so, a few days after I penned this reply the FBI intervened in a US presidential election for the first time, Debian lowers the boom and removes support for PowerPC. Linked? Who knows, maybe Julian Assange can find us an email somewhere to clear this all up, but this pretty much sucks. Debian PowerPC may go to ports and have some life still, but, the writing is on the wall for PowerPC, and that writing says:

"We are Debian. You people and your arch do not matter to us. We have been assimilated into the Intel Collective. Resistance was futile. Look what they did to Ian."
:roll:
User avatar
debiman
 
Posts: 1320
Joined: 2013-03-12 07:18

Re: How do I install Kaffe on Linux MintPPC?

Postby kryptenasi » 2016-11-13 00:50

"We are Debian. You people and your arch do not matter to us. We have been assimilated into the Intel Collective. Resistance was futile. Look what they did to Ian."


:lol: Yep, PowerPC is about dead by now. I think old computers are really misunderstood, though: people think they're useless hunks of junk, but with a few tweaks they can be rather useful.
kryptenasi
 
Posts: 5
Joined: 2016-10-28 21:13

Re: How do I install Kaffe on Linux MintPPC?

Postby stevepusser » 2016-11-13 15:39

Did openjdk get Minecraft to work?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.5.0, Liquorix kernel 4.12-10, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8804
Joined: 2009-10-06 05:53


Return to Programming

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable