[fpc-devel] Crash while compiling fpc 2.7.1 on ARM

Thomas Schatzl tom_at_work at gmx.at
Wed May 29 09:12:37 CEST 2013


On Wed, 2013-05-29 at 15:01 +0800, Paul Ishenin wrote:
> 29.05.2013 14:06, Michel Catudal пишет:
> > The one that I compiled before the code was broken

(note: the last working armhf compiler was generated by daily builds on
8th of May)

> To answer on your question I need to know paticular compiler version.

Probably 2.7.1 as 2.6.2 cannot generate armhf code; that is the same
issue I was reporting elsewhere.

Naturally it is most convenient to compile on the device natively,
especially since arm devices are fast enough now. Unfortunately the
latest stable version is too outdated to support that.

@Michel: I got the following response recently:

>>> [.. the same crash description ...]
>>> Only when compiling with trunk as starting compiler with -O2 (i.e.
>>> default settings).
>>> I do know that compiling with trunk is unsupported, but with 2.6.2
>>> you
>>> - cannot compile for armv7a (armv7-a, armv7 etc)
>>> - cannot compile for/on armhf
>>> Regardless, this seems to be an (old) optimizer bug in trunk which
>>> would be nice if it were fixed regardless of that.
>> Sorry, also occurs with OPT=-O-
>That's true, RTTI on alignment-sensitive targets was not generated
>I fixed that (or at least tried to) in r24562, getting a working
>compiler for MIPS.
>Can you test if r24562 fixes behavior on ARM? (You have to build trunk
>for i386 using 2.6.2, then 
>use that compiler to cross-compile for armv7).

I did not have time to test this workaround yet.

So try to first build a non-armhf version, and then crosscompile to
You can try using this method to get a new base compiler.


More information about the fpc-devel mailing list