<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>I set CROSSOPT to empty, after this change avr6 builds. BUT: <br>
    </p>
    <p>What made me wonder was that avr5 builds fine, it should be
      affected by the same SOFTFPU issue.</p>
    <p>I did a quick grep through the fpc sources and found no obviously
      missing defines for avr6.</p>
    <p>However, a grep for avr revealed this code snippet in
      rtl/embedded/system.cfg:<br>
    </p>
    <p><tt># AVR6 has normally more memory, so enable more functions</tt><tt><br>
      </tt><tt>#ifdef CPUAVR6</tt><tt><br>
      </tt><tt>-SfANSISTRINGS</tt><tt><br>
      </tt><tt>-SfWIDESTRINGS</tt><tt><br>
      </tt><tt>-SfDYNARRAYS</tt><tt><br>
      </tt><tt>-SfTHREADING</tt><tt><br>
      </tt><tt>-SfVARIANTS</tt><tt><br>
      </tt><tt>-SfOBJECTS</tt><tt><br>
      </tt><tt>-SfCOMMANDARGS</tt><tt><br>
      </tt><tt>-SfRANDOM</tt><tt><br>
      </tt><tt>-SfRESOURCES</tt><tt><br>
      </tt><tt>#endif</tt></p>
    <p><br>
    </p>
    <p>The build works find with -g when I remove -SfVARIANTS</p>
    <p>I am also wondering if CPUAVR is set when CPUAVR6 is set (I guess
      so), if this is true then -SfOBJECTS can also be removed from the
      CPUAVR6 Define as it is already in the CPUAVR define</p>
    Last question: Is avr6 the only subarch that has enough memory for
    enabling strings? I am a Noob when it comes to avr, but I guess
    there should be more subarchs that have more memory, I today saw
    some ATTINY Chips with 32kB of Flash....<br>
    <p>Michael<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Am 03.06.19 um 10:37 schrieb Jeppe
      Johansen:<br>
    </div>
    <blockquote type="cite"
      cite="mid:2e0c138e-2eb4-62d9-7c70-c302629b51f8@j-software.dk">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Probably because of the missing softfpu support. It's failing
        while writing debug info for floating point stuff in variants.<br>
        <br>
        It will be fixed some day :)<br>
      </p>
      <div class="moz-cite-prefix">On 6/2/19 10:54 PM, Michael Ring
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:4f7de35f-7cb7-4b15-7962-6fcaf4e3d083@michael-ring.org">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <p>Thank you, not using -gw2 did the trick for avr5.</p>
        <p>Is this issue also known to you? I am trying to build avr6
          support:</p>
        <p><tt>  BINUTILSPREFIX=avr- ; CROSSOPT="-O- -g -dDEBUG"</tt><tt><br>
          </tt><tt>  SUBARCH=avr6</tt><tt><br>
          </tt><tt>  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</tt><tt><br>
          </tt><tt>  sudo make installbase CROSSINSTALL=1
            OS_TARGET=embedded CPU_TARGET=avr SUBARCH=$SUBARCH
            CROSSOPT="$CROSSOPT" BINUTILSPREFIX=$BINUTILSPREFIX
            INSTALL_UNITDIR=/usr/local/lib/fpc/3.3.1/units/avr-embedded/$SUBARCH/rtl
            || exit 1</tt><br>
        </p>
        <p>results in:<br>
        </p>
        <p>/bin/mkdir -p
          /Users/ring/devel/fpc-avr/rtl/units/avr-embedded<br>
          /Users/ring/devel/fpc-avr/compiler/ppcrossavr -Cpavr6 -Ur
          -Tembedded -Pavr -XPavr- -Xr -Ur -Xs -O2 -n -Fi../inc
          -Fi../avr -FE.
          -FU/Users/ring/devel/fpc-avr/rtl/units/avr-embedded
          -XR/Library/Developer/CommandLineTools//SDKs/MacOSX.sdk/ -davr
          -dRELEASE -O- -g -dDEBUG  -Us -Sg system.pp @system.cfg<br>
          system.pp(293,1) Fatal: Internal error -1413909275<br>
        </p>
        <p>Michael<br>
        </p>
        <div class="moz-cite-prefix">Am 02.06.19 um 17:56 schrieb
          Christo Crause:<br>
        </div>
        <blockquote type="cite"
cite="mid:CAGOmfbF=h0SPea10zL-AwmZi3ezcLr2gZmooby5f+yqS5jUD3Q@mail.gmail.com">
          <meta http-equiv="content-type" content="text/html;
            charset=UTF-8">
          <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"
                  moz-do-not-send="true">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"
                moz-do-not-send="true">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>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-devel maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org" moz-do-not-send="true">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" moz-do-not-send="true">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
        </blockquote>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-devel maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org" moz-do-not-send="true">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" moz-do-not-send="true">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
      </blockquote>
    </blockquote>
  </body>
</html>