Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2015-03

JVM

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi,

I tried to build ppcjvm and failed.
I followed the wiki instructions:
http://wiki.freepascal.org/FPC_JVM/Building

fpcmake of 3.1.1 is in PATH.
make CROSSOPT="-O2 -g" CPU_TARGET=jvm OS_TARGET=java clean all

It stops
Error: Assembler jasmin.jar not found, switching to external assembling

I tried the instruction for Jasmin:
I downloaded and unpacked jasmin 2.4.
Applying the patch failed, because it changes line endings. "patch" needs the option "--binary" for that. It still fails on two files:
src/jasmin/parser.java
src/jasmin/sym.java

Calling build.sh results in
build.sh: line 2: $'\r': command not found
build.sh: line 16: $'\r': command not found

Due to the changed line endings.

What is now the right way to get a ppcjvm?

Mattias

Reply by email

Jonas Maebe
to Mattias Gaertner
Mattias Gaertner wrote 9 lines
I tried to build ppcjvm and failed. I followed the wiki instructions: http://wiki.freepascal.org/FPC_JVM/Building fpcmake of 3.1.1 is in PATH. make CROSSOPT="-O2 -g" CPU_TARGET=jvm OS_TARGET=java clean all It stops Error: Assembler jasmin.jar not found, switching to external assembling

You can download a precompiled jasmin.jar from
http://wiki.freepascal.org/FPC_JVM (the "FPC JVM utilities" link).

I tried the instruction for Jasmin: I downloaded and unpacked jasmin 2.4. Applying the patch failed, because it changes line endings. "patch" needs the option "--binary" for that.

It worked for me when I last tried it, I'll check again. Maybe it depends on the version of the patch utility.

Jonas

Reply by email

Jonas Maebe
to Jonas Maebe
Jonas Maebe wrote 9 lines
On 10/03/15 11:12, Mattias Gaertner wrote: > I tried the instruction for Jasmin: > I downloaded and unpacked jasmin 2.4. > Applying the patch failed, because it changes line endings. "patch" > needs the option "--binary" for that. It worked for me when I last tried it, I'll check again. Maybe it depends on the version of the patch utility.

There was indeed a problem with the latest version of the patch. I've uploaded a new, fixed version and updated the link on the wiki.

Jonas

Reply by email