[fpc-devel] FPC-JVM: Status report on Android

Sven Barth pascaldragon at googlemail.com
Fri Sep 2 11:23:23 CEST 2011


Am 02.09.2011 11:04, schrieb Jonas Maebe:
>
> On 01 Sep 2011, at 21:40, Sven Barth wrote:
>
>> Two more questions regarding compilation:
>> 1. is it normal that the compiler is compiled to compiler/ppcjvm/
>> instead of compiler/jvm/ when using "make PPC_TARGET=jvm all"?
>
> I don't see that, all object and unit files are stored under
> compiler/jvm/units/<fpchostplatform> here. I also don't understand how
> that can happen, because the name of the generated compiler binary is
> also "ppcjvm" and you can't have a file and a directory with the same
> name in a single directory.

I'll recheck that. Perhaps it's because I once called make by accident 
with "PPC_TARGET=ppcjvm".

>> 2. when calling the compiler without "-XP " then it always tries to
>> find jvm-java-java. Didn't you prohibit that? At least I thought I had
>> read that in your commit log...
>
> I changed fpcmake so that the generated makefiles never pass -XP when
> targeting the JVM. However, if you compile normally and your
> /etc/fpc.cfg is used, its standard logic to set the -XP parameter based
> on the fact that you are cross-compiling will still be triggered. I
> haven't modified samplecfg/fpcmkcfg yet to prevent that from happening
> in newly generated config files though.

When using ppcjvm I compile using "-n" and when I compile the Java RTL 
using make I also need to pass "-XP " in OPT. For the second part: Can 
it be that I need to regenerate the makefiles?

Regards,
Sven



More information about the fpc-devel mailing list