[fpc-pascal] FreePascal on ARM Linux ,SoftFloat and EABI issues
Florian Klaempfl
florian at freepascal.org
Sun Jun 1 12:28:38 CEST 2008
Luca Olivetti schrieb:
> En/na Florian Klaempfl ha escrit:
>> Luca Olivetti schrieb:
>>> En/na Luca Olivetti ha escrit:
>>>
>>>>
>>>> Mmh, it doesn't seem to work: ppc1 generated ppc2 but ppc2 has been
>>>> spinning the cpu at 100% for the last 10 minutes and I don't think
>>>> it'll finish.
>>>
>>> Duh, that's also the op problem.
>>>
>>
>> Try with OPT=-O-
>
> Ok, now I have a supposedly eabi compiler working under scratchbox.
>
> I added
>
> -CfSOFT
> -dFPC-ARMEL
You should need only FPC_ARMEL.
>
> to /etc/fpc.cfg.
>
> A simple hello world works, both under the emulated arm in scratchbox
> and in the tablet.
>
> But I tried to compile a couple of examples in the gtk2 package and I
> see this:
>
> [sbox-CHINOOK_ARMEL: ~/fpc-svn/packages/gtk2/examples/helloworld] >
> ./helloworld
> /lib/ld-linux.so.2: No such file or directory
>
>
> As per Terry's instructions I changed t_linux.pas to use ld-linux.so.3
The compiler takes care of this now in trunk.
> if compiled with -dFPC-ARMEL.
>
> My guess is that the rtl/packages were compiled without the
> '-dFPC-ARMEL' when I made the compiler with
>
> make zipinstall OPT='-CfSOFT -dFPC-ARMEL -O-'
It's -dFPC_ARMEL
More information about the fpc-pascal
mailing list