Folks, I though I'd have a play with a Pico purchased well over a year ago...
At the time, some great work was done by MiR, **s://wiki.freepascal.org/ARM_Embedded_Tutorial_-_FPC_and_the_Raspberry_Pi_Pico but some tricks were involved and you needed to use fpcupdelux.
However, that no longer works, the Pico button on fpcupdelux selects Lazarus Trunk and fpc source from here - **s://gitlab.com/michael-ring/freepascal-sources - that seems to be pre 3.2.2 and a few additions. And trunk Lazarus has symbols that pre fpc3.2.2 don't have, see log below. Even Lazarus Fixes builds fine, just not trunk.
Questions : - Does anyone know if the things MiR (Michael) teased out for the Pico made it into FPC3.2.2 or, more likely, main ?
- And the FPC make commands to build a Pico compatible compiler ?
I think its not a MUST to have a special build Lazarus as long as we have a Pico compatible cross compiler but I don't see where that is ....
Thanks, Davo
This is where the Trunk Lazarus fails -
/home/dbannon/Pico2/fpc/bin/x86_64-linux/fpc.sh -gl -Sic -Fu../packager/units/x86_64-linux -Fu../components/lazutils/lib/x86_64-linux -Fu../components/freetype/lib/x86_64-linux -Fu. -Funonwin32 -Fuforms -Fuwidgetset -Fiinclude -FE. -FUunits/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/9 -vw-n-h-l-d-u-t-p-c- -g -gl -dx86_64 alllclunits.pp
Target OS: Linux for x86-64
Compiling alllclunits.pp
Compiling checklst.pas
make: *** [Makefile:3814: lazbuild] Error 2
Compiling lcltype.pp
lcltype.pp(1430,36) Error: Identifier not found "LF_FULLFACESIZE"
lcltype.pp(1430,51) Error: Illegal expression
lcltype.pp(1431,32) Error: Identifier not found "LF_FACESIZE"
lcltype.pp(1431,43) Error: Illegal expression
lcltype.pp(2314,26) Error: Identifier not found "LF_FACESIZE"
lcltype.pp(2314,41) Error: Can't evaluate constant expression
lcltype.pp(2331,26) Error: Identifier not found "LF_FACESIZE"
lcltype.pp(2331,41) Error: Can't evaluate constant expression
lcltype.pp(2378,27) Error: Identifier not found "LF_FULLFACESIZE"
lcltype.pp(2378,46) Error: Can't evaluate constant expression
lcltype.pp(2379,24) Error: Identifier not found "LF_FACESIZE"
lcltype.pp(2379,39) Error: Can't evaluate constant expression
lcltype.pp(2384,27) Error: Identifier not found "LF_FULLFACESIZE"
lcltype.pp(2384,46) Error: Can't evaluate constant expression
lcltype.pp(2385,24) Error: Identifier not found "LF_FACESIZE"
lcltype.pp(2385,39) Error: Can't evaluate constant expression
lcltype.pp(2405,27) Error: Identifier not found "LF_FULLFACESIZE"
lcltype.pp(2405,46) Error: Can't evaluate constant expression
lcltype.pp(2406,24) Error: Identifier not found "LF_FACESIZE"
lcltype.pp(2406,39) Error: Can't evaluate constant expression
lcltype.pp(2407,25) Error: Identifier not found "LF_FACESIZE"
lcltype.pp(2407,40) Error: Can't evaluate constant expression
lcltype.pp(2412,27) Error: Identifier not found "LF_FULLFACESIZE"
lcltype.pp(2412,46) Error: Can't evaluate constant expression
lcltype.pp(2413,24) Error: Identifier not found "LF_FACESIZE"
lcltype.pp(2413,39) Error: Can't evaluate constant expression
lcltype.pp(2414,25) Error: Identifier not found "LF_FACESIZE"
lcltype.pp(2414,40) Error: Can't evaluate constant expression
lcltype.pp(2652,25) Error: String length is larger than array of char length
lcltype.pp(3010,1) Fatal: There were 29 errors compiling module, stopping
Fatal: Compilation aborted
Error: /home/dbannon/Pico2/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
fpcupdeluxe: ERROR: Lazarus Native Installer (BuildModuleCustom: Lazbuild): make returned exit status #512.
ERROR: Fpcupdeluxe fatal error !
Sequencer (UserIDE): Failure running fpcupdeluxe: error executing sequence UserIDE
Sequencer (Lazarus): Failure running fpcupdeluxe: error executing sequence Lazarus
Sequencer (Only): Failure running fpcupdeluxe: error executing sequence Only