[fpc-devel] AVR target on trunk does not compile for me

Christo Crause christo.crause at gmail.com
Sun Jun 2 17:56:06 CEST 2019


On Sun, Jun 2, 2019 at 4:51 PM Michael Ring <mail at michael-ring.org> wrote:

> I tried answering a question on the list today and to do so I did my
> 'first time ever' compile of the avr target.
>
> This is how I tried to build the avr-embedded target on my Mac:
>
>    SUBARCH=avr5; BINUTILSPREFIX=avr- ; CROSSOPT="-O- -gw2 -dDEBUG"
>    make clean buildbase  CROSSINSTALL=1 OS_TARGET=embedded
> CPU_TARGET=avr SUBARCH=$SUBARCH CROSSOPT="$CROSSOPT"
> BINUTILSPREFIX=$BINUTILSPREFIX
> OPT="-XR/Library/Developer/CommandLineTools//SDKs/MacOSX.sdk/" || exit 1
>
> [snip]
> /Users/ring/devel/fpc-avr/rtl/units/avr-embedded/system.s: Assembler
> messages:
> /Users/ring/devel/fpc-avr/rtl/units/avr-embedded/system.s:90477: Error:
> value of 68582 too large for field of 2 bytes at 4713
> /Users/ring/devel/fpc-avr/rtl/units/avr-embedded/system.s:90485: Error:
> value of 68582 too large for field of 2 bytes at 4731
>

The compiler picks dwarf3 by default to avoid this type of problem, see
also
https://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg35438.html

Try building without specifying -gw2 in CROSSOPT.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190602/c4e56c7e/attachment.html>


More information about the fpc-devel mailing list