[fpc-pascal] Some questions regarding jvmbackend port

Sven Barth pascaldragon at googlemail.com
Sun Jan 8 21:26:56 CET 2012


On 08.01.2012 21:03, leledumbo wrote:
> I finally managed to compile the latest revision of jvmbackend port, however
> I've got some problems during compilation and execution:
>
> 1. The wiki instruction
>
> The first paragraph says:
>
> "Building the JVM compiler, RTL and utilities is currently not yet supported
> using the top-level makefile"
>
> yet in "Building the compiler and RTL" section it says:
>
> "Execute the following command in the top level directory of the checked out
> sources"

It seems that the first paragraph wasn't updated when the second one was 
changed. The variant with the top level makefile is the correct one.

> Assembling program
> Searching file /bin/jvm-java/jasmin.jar... not found
> Searching file /bin/jvm-java/JASMIN.JAR... not found
> Searching file /usr/lib/fpc/2.7.1/jasmin.jar... not found
> Searching file /usr/lib/fpc/2.7.1/JASMIN.JAR... not found
> Searching file /usr/local/sbin/jasmin.jar... not found
> Searching file /usr/local/sbin/JASMIN.JAR... not found
> Searching file /usr/local/bin/jasmin.jar... not found
> Searching file /usr/local/bin/JASMIN.JAR... not found
> Searching file /usr/sbin/jasmin.jar... not found
> Searching file /usr/sbin/JASMIN.JAR... not found
> Searching file /usr/bin/jasmin.jar... found
> Using assembler: /usr/bin/jasmin.jar //<-- yep, assembler found
> Searching file /bin/jvm-java/jvm-java-java... not found
> Searching file /bin/jvm-java/JVM-JAVA-JAVA... not found
> Searching file /usr/lib/fpc/2.7.1/jvm-java-java... not found
> Searching file /usr/lib/fpc/2.7.1/JVM-JAVA-JAVA... not found
> Searching file /usr/local/sbin/jvm-java-java... not found
> Searching file /usr/local/sbin/JVM-JAVA-JAVA... not found
> Searching file /usr/local/bin/jvm-java-java... not found
> Searching file /usr/local/bin/JVM-JAVA-JAVA... not found
> Searching file /usr/sbin/jvm-java-java... not found
> Searching file /usr/sbin/JVM-JAVA-JAVA... not found
> Searching file /usr/bin/jvm-java-java... not found
> Searching file /usr/bin/JVM-JAVA-JAVA... not found
> Searching file /sbin/jvm-java-java... not found
> Searching file /sbin/JVM-JAVA-JAVA... not found
> Searching file /bin/jvm-java-java... not found
> Searching file /bin/JVM-JAVA-JAVA... not found
> Searching file /usr/games/jvm-java-java... not found
> Searching file /usr/games/JVM-JAVA-JAVA... not found
> Error: Assembler jvm-java-java not found, switching to external assembling
> //<-- eh?
> Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
>
> The assembler used is supposed to be jasmin.jar, right? So what is this
> jvm-java-java for? If it's for executing jasmin, it should be plain java and
> I already have it installed and tested.

Pass "-XP " (without the quotes, but with the space after the parameter) 
to the compiler, then it will not prepend "jvm-java-" to the java 
binary. You might also want to check your fpc.cfg as there it might add 
the cpu-os-prefix unconditionally if it detects a crosscompilation 
(check for #IFDEF CROSSCOMPILING or similar together with "-XP...").

Regards,
Sven




More information about the fpc-pascal mailing list