[fpc-pascal] Error cross compiling trunk for AVR
Schindler Karl-Michael
karl-michael.schindler at web.de
Sat May 27 12:58:55 CEST 2017
> Am 27.05.2017 um 11:26 schrieb fpc-pascal-request at lists.freepascal.org:
>
> Date: Sat, 27 May 2017 07:58:23 +0200
> From: Christo <christo.crause at gmail.com>
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Subject: [fpc-pascal] Error cross compiling trunk for AVR
> Message-ID: <1495864703.20713.7.camel at gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> A recent change in 3.1.1 seemed to have broken the AVR compiler, while
> the compiler compiles fine for X86_64-linux. I think the problem
> started from r36325:
>
> make clean crossall OS_TARGET=embedded CPU_TARGET=avr SUBARCH=avr5
> BINUTILSPREFIX=avr- CROSSOPT="-O3 -XX -CX"
> FPC=~/fpc/3.0.2/compiler/ppcx64
>
> When starting to compile the rtl
> make[2]: Entering directory '/home/christo/fpc/3.1.1'
> make -C rtl all
> make[3]: Entering directory '/home/christo/fpc/3.1.1/rtl'
> make -C embedded all
> make[4]: Entering directory '/home/christo/fpc/3.1.1/rtl/embedded'
> /bin/mkdir -p /home/christo/fpc/3.1.1/rtl/units/avr-embedded
> /home/christo/fpc/3.1.1/compiler/ppcrossavr -Cpavr5 @rtl.cfg -Ur
> -Tembedded -Pavr -XPavr- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../avr -FE.
> -FU/home/christo/fpc/3.1.1/rtl/units/avr-embedded -davr -dRELEASE -O3
> -XX -CX -Us -Sg system.pp
> /home/christo/fpc/3.1.1/rtl/units/avr-embedded/system.s: Assembler
> messages:
> /home/christo/fpc/3.1.1/rtl/units/avr-embedded/system.s:7283: Error:
> pointer register (X, Y or Z) required
> /home/christo/fpc/3.1.1/rtl/units/avr-embedded/system.s:7283: Error:
> `,' required
> /home/christo/fpc/3.1.1/rtl/units/avr-embedded/system.s:7285: Error:
> pointer register (X, Y or Z) required
> /home/christo/fpc/3.1.1/rtl/units/avr-embedded/system.s:7285: Error:
> `,’ required
Same error when building on macOS. Critical commit is 36325 in combination with CROSSOPT="-O3". Build fails for all SUBARCHS of avr.
Bugreport submitted (https://bugs.freepascal.org/view.php?id=31926)
More information about the fpc-pascal
mailing list