<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 7, 2024 at 3:55 PM Adriaan van Os via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.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">I am trying to build fpc for Arduino on MacOS 10.8.5, using the fpc-3.0.4 sources and fpc-3.0.4 as <br>
bootstrap compiler. GNU binutils have been built and installed (but not yet avrdude). As suggested <br>
here <<a href="https://forum.lazarus.freepascal.org/index.php/topic,30960.0.html" rel="noreferrer" target="_blank">https://forum.lazarus.freepascal.org/index.php/topic,30960.0.html</a>> I use<br>
<br>
make clean crossall OS_TARGET=embedded CPU_TARGET=avr SUBARCH=avr5 BINUTILSPREFIX=avr- <br>
CROSSOPT="-O3 -XX -CX"<br>
<br>
which results in<br>
<br>
objpas.pp(175,24) Fatal: Unknown compilerproc "fpc_ansistr_to_shortstr".<br>
<br>
Is this a known problem ? Is a specific minimal version of the fpc sources and a specific bootstrap <br>
compiler neeed to build for Arduino ?<br>
<br>
Obviously, I wouldn't need all packages.<br>
<br>
Regards,<br>
<br>
Adriaan van Os<br></blockquote><div><br></div><div>The level of support for AVR in 3.0.4 was rudimentary, only atmega128 is supported in the MakeFIle. The support for AVR is still improving with time so use either the development branch, or the latest release version (if you prefer release versions). The bootstrap compiler required is determined by the source version, not the cross target.</div></div></div>