Forum > Embedded

fpcupdeluxe and the Pico

<< < (12/12)

MiR:
Just  quick update, today I submitted a patch to fpc because I saw that (at least for me) on main compiler rp2040.ppu was not built.
The patch got accepted and during my verification afterwards I ran into an issue and wanted to present the solution in case somebody else hits the same problem:

Lazarus main is having another bad day today and does not compile with fpc main. So I wanted to re-use my existing fpcupdeluxe based Lazarus install and only wanted to update fpc in this install.

This works fine but you must delete both fpc and fpcsrc directory in your fpcupdeluxe directory for this to work properly.
Otherwise you are either still on my old repo (when you used the Pico button on an older version of fpcupdeluxe) or get some funky errors when compiling the cross compiler.

Then build fpc trunk compiler and switch to cross and build the armv6m compiler. Have fun afterwards...

Michael

TRon:

--- Quote from: MiR on March 17, 2024, 03:22:12 pm ---Just  quick update, today I submitted a patch to fpc because I saw that (at least for me) on main compiler rp2040.ppu was not built.

--- End quote ---
Thank you for pushing the fix. I had it solved manually. in my script before.


--- Quote ---Lazarus main is having another bad day today and does not compile with fpc main. So I wanted to re-use my existing fpcupdeluxe based Lazarus install and only wanted to update fpc in this install.

--- End quote ---
A word of warning and a long story short but do not update your FPC if you have a working setup. The moment you need to rebuild your IDE you literally deadlocked yourself. Unfortunately, the issue is with FPC compiler , not Lazarus (FPC is failing to build Lazarus after a certain date (*)).

I would suggest to create some patches that include your latest commits, apply those just before building the (cross)compiler and stick to a known working combination. I personally prefer to stick to 3.2 stable/fixes though that also requires a patch for Lazarus if you want to build the big IDE.

It is very unfortunate you got caught in the middle of this MiR as it has been a long time ago since I've seen that happen.

(*) edit: and just after I posted trunk/trunk seem to build OK for me again (Lazarus: 1dad391a)

MiR:
For me it's most of the time fun to do a little detective work when things do not build, part of why I (again) spend time with Pico.

Nothing compares to a nice round of plain gdb to debug some strange startup issues....

So all good here....

Michael

Navigation

[0] Message Index

[*] Previous page

Go to full version