[fpc-pascal] Building for Arduino

Adriaan van Os adriaan at adriaan.biz
Sun Jul 7 22:25:12 CEST 2024


Christo Crause via fpc-pascal wrote:

> The assembly line you showed above is obviously missing a closing 
> parenthesis, so the error from avr-as is correct.  I tested building 
> ppcrosssavr 3.2.2 with all your cross options and added -a to retain the 
> generated assembler source. This worked fine and line 28783 from 
> system.s has balanced parentheses: ldi r20,lo8(gs(FPC_FINALIZE))

My mistake while copying the line, sorry.

> 
> Somehow that line got truncated when you were building the cross 
> compiler, but I have no idea what could have caused that.
> 
> PS. My avr binutils version is 2.26 - old, but your version is about 10 
> years older still.

I use 2.17 because of this still unresolved bug 
<https://sourceware.org/bugzilla/show_bug.cgi?id=11337> but that is probably relevant for windows 
only. I will try 2.26 and report the result.

Regards,

Adriaan van Os



More information about the fpc-pascal mailing list