<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 2, 2019 at 4:51 PM Michael Ring <<a href="mailto:mail@michael-ring.org">mail@michael-ring.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>I tried answering a question on the list today and to do so I did my <br>
'first time ever' compile of the avr target.<br>
<br>
This is how I tried to build the avr-embedded target on my Mac:<br>
<br>
SUBARCH=avr5; BINUTILSPREFIX=avr- ; CROSSOPT="-O- -gw2 -dDEBUG"<br>
make clean buildbase CROSSINSTALL=1 OS_TARGET=embedded <br>
CPU_TARGET=avr SUBARCH=$SUBARCH CROSSOPT="$CROSSOPT" <br>
BINUTILSPREFIX=$BINUTILSPREFIX <br>
OPT="-XR/Library/Developer/CommandLineTools//SDKs/MacOSX.sdk/" || exit 1<br>
<br></div>[snip]<br><div>
/Users/ring/devel/fpc-avr/rtl/units/avr-embedded/system.s: Assembler <br>
messages:<br>
/Users/ring/devel/fpc-avr/rtl/units/avr-embedded/system.s:90477: Error: <br>
value of 68582 too large for field of 2 bytes at 4713<br>
/Users/ring/devel/fpc-avr/rtl/units/avr-embedded/system.s:90485: Error: <br>
value of 68582 too large for field of 2 bytes at 4731<br></div></blockquote><div><br></div>The compiler picks dwarf3 by default to avoid this type of problem, see also <a href="https://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg35438.html">https://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg35438.html</a></div><div class="gmail_quote"><br><div>Try building without specifying -gw2 in CROSSOPT.<br></div></div></div>