Recent

Author Topic: Can't recompile IDE - Lazarus 4.2  (Read 4277 times)

fmolina

  • New Member
  • *
  • Posts: 43
Can't recompile IDE - Lazarus 4.2
« on: July 22, 2025, 05:46:05 pm »
Hi,
Working on windows 10 pro.
I have just downloaded new 4.2 version. After install, when trying to add some packages I got the following messages:
Quote
Construir IDE: Código de salida 2, Errores: 1, Advertencias: 2
Warning: Version control client not in path.
Warning: Recompiling Laz_AVL_Tree, checksum changed for C:\lazarus\fpc\3.2.2\units\x86_64-win64\rtl\classes.ppu
packagedefs.pas(41,40) Error: No puedo encontrar Laz_AVL_Tree utilizado por PackageDefs, ppu incompatible=C:\lazarus\components\lazutils\lib\x86_64-win64\laz_avl_tree.ppu, paquete LazUtils
I do not know where is laz-avl-tree.ppu.
Seems to be windows version issue. On linux (Mageia 9) all went OK.
What to do?
Rehards

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11792
  • Debugger - SynEdit - and more
    • wiki
Re: Can't recompile IDE - Lazarus 4.2
« Reply #1 on: July 22, 2025, 05:57:18 pm »
Try: Menu > Tools > Configure Build Lazarus > Check "Clean all" then press "build" button.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11792
  • Debugger - SynEdit - and more
    • wiki
Re: Can't recompile IDE - Lazarus 4.2
« Reply #2 on: July 22, 2025, 06:01:34 pm »
This may have been caused by installing over an existing install? 
Then it is possible the automatic detection for recompiling all changed files did not kick in (because the file actually didn't change, not since the install / but it had an pre-install pre-compiled ppu - and in comparison to that it has changed).

It could also happen due to an issue in FPC itself, where such errors "checksum changed" occasionally happen.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11792
  • Debugger - SynEdit - and more
    • wiki
Re: Can't recompile IDE - Lazarus 4.2
« Reply #3 on: July 22, 2025, 06:04:11 pm »
This may have been caused by installing over an existing install? 
Then it is possible the automatic detection for recompiling all changed files did not kick in (because the file actually didn't change, not since the install / but it had an pre-install pre-compiled ppu - and in comparison to that it has changed).

On 2nd thought, strange. The installer should have updated that particular file including ppu....

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11792
  • Debugger - SynEdit - and more
    • wiki
Re: Can't recompile IDE - Lazarus 4.2
« Reply #4 on: July 22, 2025, 06:15:54 pm »
Sorry, I may have been wrong / to quick to reply.

I looked at "LazUtils" which will come pre-build.
Quote
incompatible=C:\lazarus\components\lazutils\lib\x86_64-win64\laz_avl_tree.ppu, paquete LazUtils

Laz_avl_tree is a file that existed before Lazarus 4.0 (I think in the 3.x versions, but maybe before).
So it is correct that it no longer exists.

Are you upgrading from an older version 3.x or 2.n ?
In that case you may want to empty the C:\lazarus dir first, and then install. Your config will still be there as it is stored in a separate folder in c:\users (unless you had chosen a different folder when you first installed).


See also https://forum.lazarus.freepascal.org/index.php?topic=64909.0

fmolina

  • New Member
  • *
  • Posts: 43
Re: Can't recompile IDE - Lazarus 4.2
« Reply #5 on: July 22, 2025, 09:20:49 pm »
Thanks all!
I am installing over previous 4.0, and should not be traces of other versions, because this a relatively new windows install (on a new VM by the way). I will try reinstalling erasing c:\lazarus first and see what happens. Probably I'll be back tomorrow to tell the result.
Regards

fmolina

  • New Member
  • *
  • Posts: 43
Re: Can't recompile IDE - Lazarus 4.2
« Reply #6 on: July 23, 2025, 07:19:56 pm »
Update: uninstalled, removed some left behind files, then reinstalled and everything is okay now.
Thanks all

 

TinyPortal © 2005-2018