[fpc-devel] JVM testing on x86_64

J. Gareth Moreton gareth at moreton-family.com
Wed Jun 8 15:15:23 CEST 2022


The testall.bat file took some modification since it doesn't handle 
parameters like testall.sh does.  I didn't get too far though:

C:\Users\garet\Documents\programming\fpc-opts\tests\test\jvm>..\..\..\compiler\ppcjvm 
-Fu..\..\..\rtl\units\jvm-java -O2 -g test
Generated: .\org\freepascal\test\tisclass2.class
test.j:7: JAS Error: Badly formatted number.
.field public static final 'unitfloatconst' F = 0fx40000000
                                                             ^
test.j: Found 1 errors
Generated: .\org\freepascal\test\trec.class
TMyClass.j:7: JAS Error: Badly formatted number.
.field public static final 'classfloatconst' F = 0fx40400000
                                                              ^
TMyClass.j: Found 1 errors
Generated: .\org\freepascal\test\tisinterface.class
Generated: .\org\freepascal\test\tisclassbase.class
Generated: .\org\freepascal\test\tisclassbase2.class
Generated: .\org\freepascal\test\tisclass1.class
Generated: .\org\freepascal\test\tisclass1$tisclass1nested.class
Generated: 
.\org\freepascal\test\tisclass1$tisclass1nested$test__fpc_intern_recname_37.class
Generated: 
.\org\freepascal\test\tisclass1$tisclass1nested$tisclass1nestedl2.class
Generated: 
.\org\freepascal\test\tisclass1$tisclass1nested$tisclass1nestedl2$test__fpc_intern_recname_43.class
Generated: .\org\freepascal\test\tnestrec.class
Generated: .\org\freepascal\test\test__fpc_intern_recname_68.class

C:\Users\garet\Documents\programming\fpc-opts\tests\test\jvm>javac 
-encoding utf-8 -cp ..\..\..\rtl\units\jvm-java;. JavaClass
'javac' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\garet\Documents\programming\fpc-opts\tests\test\jvm>java 
-Dfile.encoding=UTF-8 -cp ..\..\..\rtl\units\jvm-java;. JavaClass
Error: Could not find or load main class JavaClass

C:\Users\garet\Documents\programming\fpc-opts\tests\test\jvm>if 1 NEQ 0 
exit /b 1

I'm able to run Shell scripts on my Windows machine thanks to having a 
bash client installed, but testall.sh closes immediately (and it doesn't 
give me a chance to view the error messages) but this is probably 
because I haven't specified any parameters.  I tried the obvious 
TEST_FPC=../../../compiler/ppcjvm.exe, and PPC instead of TEST_FPC, but 
it still closed immediately.

Sorry if this is painfully obvious stuff.  I will master non-Windows 
stuff and all eventually!

Gareth aka. Kit


-- 
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



More information about the fpc-devel mailing list