[fpc-pascal] using fpc on a arm4t system failed - trying to cross compile
BeniSchindler at gmx.de
Wed Mar 25 11:52:01 CET 2009
the file from Florian didn't work. But i looked around in the mailing
lists and now i try to crosscompile a new version for
the openmoko device.
I crosscompiled binutils for "arm4tl-unknown-linux".
and then i tried to cross compile the FPC (2.3.x) with this command:
make all OS_TARGET=linux CPU_TARGET=arm
OPT="-dFPC_ARMEL -O-" FPC=/usr/bin/ppc386
On the device the new ppcarm didn't say "Illegal Instruction" any more.
So far so good. ... But now it didn't say anything at all.
I did a "echo $?" after "./ppcarm -h" and it returns 216
if i try to compile the 2.2.2 sources i get an error:
i_linux.pas(594,11) Error: Identifier not found "abi_eabi"
i_linux.pas(594,11) Error: Illegal expression
I also tried to compile with -dFPC_ABI_EABI
thx, and best regards
Paul Breneman schrieb:
> Henry Vermaak wrote:
>> 2009/3/23 Paul Breneman <Paul2006 at brenemanlabs.com>:
>>>> is there another precompiled "ppcarm" from the version v2.2.x or
>>>> v2.3.x ?
>>>> Or exists a maintainer for the arm version? So i could ask him for a
>>>> debugging version to find the problem.
>>>> I couldn't debug the problem by my self, because i don't have a
>>>> clou about
>>>> assembler programming.
>>>> please give me a hint where to start.
>>>> because i really would like to programm in freepascal for the openmoko
>>>> freerunner device.
>>> On 14 Dec 2008 on the fpc-devel maillist Florian Klaempfl wrote:
>>> Yes. I uploaded a starting eabi compiler to
>>> Please use only with -O-
>>> Maybe you could try replacing the ppcarm in my helloworld example
>>> with that
>>> (and also use -O-)?
>> this won't work unless you compile the rtl objects with this compiler,
>> too. rather just try `ppcarm -h` to see if the compiler executes.
> Thanks Henry for helping me as I stumble along in this and the other
> (fpc-devel) thread!
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal