[fpc-pascal] Building for Arduino

2024-07-07 Thread Adriaan van Os via fpc-pascal
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 bootstrap compiler. GNU binutils have been built and installed (but not yet avrdude). As suggested here I use make clean crossa

Re: [fpc-pascal] Building for Arduino

2024-07-07 Thread Christo Crause via fpc-pascal
On Sun, Jul 7, 2024 at 3:55 PM Adriaan van Os via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > 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 > bootstrap compiler. GNU binutils have been built and installed (but not > yet avrdude). As

Re: [fpc-pascal] Building for Arduino

2024-07-07 Thread Adriaan van Os via fpc-pascal
Christo Crause via fpc-pascal wrote: 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

Re: [fpc-pascal] Building for Arduino

2024-07-07 Thread Christo Crause via fpc-pascal
On Sun, Jul 7, 2024 at 8:15 PM Adriaan van Os via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > Christo Crause via fpc-pascal wrote: > > > 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

Re: [fpc-pascal] Building for Arduino

2024-07-07 Thread Adriaan van Os via fpc-pascal
Christo Crause via fpc-pascal wrote: The assembly line you showed above is obviously missing a closing parenthesis, so the error from avr-as is correct. I tested building ppcrosssavr 3.2.2 with all your cross options and added -a to retain the generated assembler source. This worked fine and

Re: [fpc-pascal] Building for Arduino

2024-07-07 Thread Christo Crause via fpc-pascal
On Sun, 7 Jul 2024, 22:35 Adriaan van Os via fpc-pascal, < fpc-pascal@lists.freepascal.org> wrote: > Christo Crause via fpc-pascal wrote: > > > The assembly line you showed above is obviously missing a closing > > parenthesis, so the error from avr-as is correct. I tested building > > ppcrosssavr