Recent

Author Topic: Fatal: (10022) Can't find unit Laz_AVL_Tree used by ComponentReg  (Read 1047 times)

daniel_sap

  • Jr. Member
  • **
  • Posts: 64
Fatal: (10022) Can't find unit Laz_AVL_Tree used by ComponentReg
« on: November 11, 2024, 09:54:32 am »
Hi,
Decided to upgrade my Lazarus 3.6 installation to 4.0RC1 (on Windows 11 64 bit).
The download and installation was successful.
After the installation I tried to Build Lazarus with Profile: Normal IDE which gave an error:
Fatal: (10022) Can't find unit Laz_AVL_Tree used by ComponentReg

Code: Pascal  [Select][+][-]
  1. Messages, Hints: 48
  2. Note: Duplicate unit "w32versioninfo" in "#IDE", source="C:\lazarus3\ide\w32versioninfo.pas"
  3. Note: Duplicate unit "w32versioninfo" in "IdeProject 1.0", source="C:\lazarus3\ide\packages\ideproject\w32versioninfo.pas"
  4. Note: Duplicate unit "w32manifest" in "#IDE", source="C:\lazarus3\ide\w32manifest.pas"
  5. Note: Duplicate unit "w32manifest" in "IdeProject 1.0", source="C:\lazarus3\ide\packages\ideproject\w32manifest.pas"
  6. Note: Duplicate unit "projpackcommon" in "#IDE", source="C:\lazarus3\packager\projpackcommon.pas"
  7. Note: Duplicate unit "projpackcommon" in "IdeConfig 1.0", ppu="C:\lazarus3\ide\packages\ideconfig\lib\x86_64-win64\win32\projpackcommon.ppu", source="C:\lazarus3\ide\packages\ideconfig\projpackcommon.pas"
  8. Note: Duplicate unit "projectuserresources" in "#IDE", source="C:\lazarus3\ide\projectuserresources.pas"
  9. Note: Duplicate unit "projectuserresources" in "IdeProject 1.0", source="C:\lazarus3\ide\packages\ideproject\projectuserresources.pas"
  10. Note: Duplicate unit "projectresources" in "#IDE", source="C:\lazarus3\ide\projectresources.pas"
  11. Note: Duplicate unit "projectresources" in "IdeProject 1.0", source="C:\lazarus3\ide\packages\ideproject\projectresources.pas"
  12. Note: Duplicate unit "projecticon" in "#IDE", source="C:\lazarus3\ide\projecticon.pas"
  13. Note: Duplicate unit "projecticon" in "IdeProject 1.0", source="C:\lazarus3\ide\packages\ideproject\projecticon.pas"
  14. Note: Duplicate unit "projectdefs" in "#IDE", source="C:\lazarus3\ide\projectdefs.pas"
  15. Note: Duplicate unit "projectdefs" in "IdeProject 1.0", source="C:\lazarus3\ide\packages\ideproject\projectdefs.pas"
  16. Note: Duplicate unit "project" in "#IDE", source="C:\lazarus3\ide\project.pp"
  17. Note: Duplicate unit "project" in "IdeProject 1.0", source="C:\lazarus3\ide\packages\ideproject\project.pp"
  18. Note: Duplicate unit "pkgsysbasepkgs" in "#IDE", source="C:\lazarus3\packager\pkgsysbasepkgs.pas"
  19. Note: Duplicate unit "pkgsysbasepkgs" in "IdePackager 1.0", source="C:\lazarus3\ide\packages\idepackager\pkgsysbasepkgs.pas"
  20. Note: Duplicate unit "packagesystem" in "#IDE", source="C:\lazarus3\packager\packagesystem.pas"
  21. Note: Duplicate unit "packagesystem" in "IdePackager 1.0", source="C:\lazarus3\ide\packages\idepackager\packagesystem.pas"
  22. Note: Duplicate unit "packagelinks" in "#IDE", source="C:\lazarus3\packager\packagelinks.pas"
  23. Note: Duplicate unit "packagelinks" in "IdePackager 1.0", source="C:\lazarus3\ide\packages\idepackager\packagelinks.pas"
  24. Note: Duplicate unit "packagedefs" in "#IDE", source="C:\lazarus3\packager\packagedefs.pas"
  25. Note: Duplicate unit "packagedefs" in "IdePackager 1.0", source="C:\lazarus3\ide\packages\idepackager\packagedefs.pas"
  26. Note: Duplicate unit "inputhistory" in "#IDE", source="C:\lazarus3\ide\inputhistory.pas"
  27. Note: Duplicate unit "inputhistory" in "IdeUtilsPkg 1.0", source="C:\lazarus3\ide\packages\ideutils\inputhistory.pas"
  28. Note: Duplicate unit "idetranslations" in "#IDE", source="C:\lazarus3\ide\idetranslations.pas"
  29. Note: Duplicate unit "idetranslations" in "IdeUtilsPkg 1.0", source="C:\lazarus3\ide\packages\ideutils\idetranslations.pas"
  30. Note: Duplicate unit "ideprocs" in "#IDE", source="C:\lazarus3\ide\ideprocs.pp"
  31. Note: Duplicate unit "ideprocs" in "IdeConfig 1.0", ppu="C:\lazarus3\ide\packages\ideconfig\lib\x86_64-win64\win32\ideprocs.ppu", source="C:\lazarus3\ide\packages\ideconfig\ideprocs.pp"
  32. Note: Duplicate unit "ideguicmdline" in "#IDE", source="C:\lazarus3\ide\ideguicmdline.pas"
  33. Note: Duplicate unit "ideguicmdline" in "IdeConfig 1.0", ppu="C:\lazarus3\ide\packages\ideconfig\lib\x86_64-win64\win32\ideguicmdline.ppu", source="C:\lazarus3\ide\packages\ideconfig\ideguicmdline.pas"
  34. Note: Duplicate unit "idecmdline" in "#IDE", source="C:\lazarus3\ide\idecmdline.pas"
  35. Note: Duplicate unit "idecmdline" in "IdeConfig 1.0", ppu="C:\lazarus3\ide\packages\ideconfig\lib\x86_64-win64\win32\idecmdline.ppu", source="C:\lazarus3\ide\packages\ideconfig\idecmdline.pas"
  36. Note: Duplicate unit "fppkghelper" in "#IDE", source="C:\lazarus3\packager\fppkghelper.pas"
  37. Note: Duplicate unit "fppkghelper" in "IdeConfig 1.0", ppu="C:\lazarus3\ide\packages\ideconfig\lib\x86_64-win64\win32\fppkghelper.ppu", source="C:\lazarus3\ide\packages\ideconfig\fppkghelper.pas"
  38. Note: Duplicate unit "etmakemsgparser" in "#IDE", source="C:\lazarus3\ide\etmakemsgparser.pas"
  39. Note: Duplicate unit "etmakemsgparser" in "IdeConfig 1.0", ppu="C:\lazarus3\ide\packages\ideconfig\lib\x86_64-win64\win32\etmakemsgparser.ppu", source="C:\lazarus3\ide\packages\ideconfig\etmakemsgparser.pas"
  40. Note: Duplicate unit "editdefinetree" in "#IDE", source="C:\lazarus3\ide\editdefinetree.pas"
  41. Note: Duplicate unit "editdefinetree" in "IdeConfig 1.0", ppu="C:\lazarus3\ide\packages\ideconfig\lib\x86_64-win64\win32\editdefinetree.ppu", source="C:\lazarus3\ide\packages\ideconfig\editdefinetree.pas"
  42. Note: Duplicate unit "dialogprocs" in "#IDE", source="C:\lazarus3\ide\dialogprocs.pas"
  43. Note: Duplicate unit "dialogprocs" in "IdeUtilsPkg 1.0", source="C:\lazarus3\ide\packages\ideutils\dialogprocs.pas"
  44. Note: Duplicate unit "compoptsmodes" in "#IDE", source="C:\lazarus3\ide\compoptsmodes.pas"
  45. Note: Duplicate unit "compoptsmodes" in "IdeConfig 1.0", ppu="C:\lazarus3\ide\packages\ideconfig\lib\x86_64-win64\win32\compoptsmodes.ppu", source="C:\lazarus3\ide\packages\ideconfig\compoptsmodes.pas"
  46. Note: Duplicate unit "componentreg" in "IDEIntf 1.0", source="C:\lazarus3\components\ideintf\componentreg.pas"
  47. Note: Duplicate unit "componentreg" in "BuildIntf 1.0", ppu="C:\lazarus3\components\buildintf\units\x86_64-win64\componentreg.ppu", source="C:\lazarus3\components\buildintf\componentreg.pas"
  48. Note: Duplicate unit "compileroptions" in "#IDE", source="C:\lazarus3\ide\compileroptions.pp"
  49. Note: Duplicate unit "compileroptions" in "IdeConfig 1.0", ppu="C:\lazarus3\ide\packages\ideconfig\lib\x86_64-win64\win32\compileroptions.ppu", source="C:\lazarus3\ide\packages\ideconfig\compileroptions.pp"
  50. Free Pascal Compiler version 3.2.2 [2024/10/21] for x86_64
  51. Copyright (c) 1993-2021 by Florian Klaempfl and others
  52. (1002) Target OS: Win64 for x64
  53. (3104) Compiling pascalscript.pas
  54. (1008) 25 lines compiled, 0.5 sec
  55. Hint: (11030) Start of reading config file C:\lazarus3\fpc\3.2.2\bin\x86_64-win64\fpc.cfg
  56. Hint: (11031) End of reading config file C:\lazarus3\fpc\3.2.2\bin\x86_64-win64\fpc.cfg
  57. Free Pascal Compiler version 3.2.2 [2024/10/21] for x86_64
  58. Copyright (c) 1993-2021 by Florian Klaempfl and others
  59. (1002) Target OS: Win64 for x64
  60. (3104) Compiling allsynedit.pas
  61. C:\lazarus3\components\synedit\allsynedit.pas(34,50) Warning: (5079) Unit "SynEditViewedLineMap" is experimental
  62. C:\lazarus3\components\synedit\allsynedit.pas(35,3) Warning: (5079) Unit "SynEditWrappedView" is experimental
  63. (1008) 47 lines compiled, 0.7 sec
  64. (1021) 2 warning(s) issued
  65. (1022) 2 hint(s) issued
  66. Hint: (11030) Start of reading config file C:\lazarus3\fpc\3.2.2\bin\x86_64-win64\fpc.cfg
  67. Hint: (11031) End of reading config file C:\lazarus3\fpc\3.2.2\bin\x86_64-win64\fpc.cfg
  68. Free Pascal Compiler version 3.2.2 [2024/10/21] for x86_64
  69. Copyright (c) 1993-2021 by Florian Klaempfl and others
  70. (1002) Target OS: Win64 for x64
  71. (3104) Compiling dundirect2dgraphics.pas
  72. Hint: (11030) Start of reading config file C:\lazarus3\fpc\3.2.2\bin\x86_64-win64\fpc.cfg
  73. Hint: (11031) End of reading config file C:\lazarus3\fpc\3.2.2\bin\x86_64-win64\fpc.cfg
  74. Free Pascal Compiler version 3.2.2 [2024/10/21] for x86_64
  75. Copyright (c) 1993-2021 by Florian Klaempfl and others
  76. (1002) Target OS: Win64 for x64
  77. (3104) Compiling ideintf.pas
  78. (3104) Compiling actionseditor.pas
  79. (3104) Compiling componenteditors.pas
  80. (3104) Compiling componentreg.pas
  81. C:\lazarus3\components\ideintf\componentreg.pas(27,40) Fatal: (10022) Can't find unit Laz_AVL_Tree used by ComponentReg
  82. Fatal: (1018) Compilation aborted
  83. Error: C:\lazarus3\fpc\3.2.2\bin\x86_64-win64\ppcx64.exe returned an error exitcode
  84. Free Pascal Compiler version 3.2.2 [2024/10/21] for x86_64
  85. Copyright (c) 1993-2021 by Florian Klaempfl and others
  86. (1002) Target OS: Win64 for x64
  87. (3104) Compiling turbopoweripro.pas
  88. (1008) 27 lines compiled, 0.6 sec
  89.  

I see that there are lot of 'Note: Duplicate unit'
Can you direct me how to approach such an issue. thanks

Lazarus 4.0RC1 (rev t-fixes-4-58-g43d904ed50) FPC 3.2.2 x86_64-win64-win32/win64

af0815

  • Hero Member
  • *****
  • Posts: 1379
Re: Fatal: (10022) Can't find unit Laz_AVL_Tree used by ComponentReg
« Reply #1 on: November 11, 2024, 10:20:06 am »
Have you tried a "clean" rebuild ?
regards
Andreas

daniel_sap

  • Jr. Member
  • **
  • Posts: 64
Re: Fatal: (10022) Can't find unit Laz_AVL_Tree used by ComponentReg
« Reply #2 on: November 11, 2024, 10:38:45 am »
Quote
Have you tried a "clean" rebuild ?

Yes, one of the first things I tried was to clean rebuild.
The log I provided is the build after the clean.
Before the clean may be the error was different - componentreg.pas was not found because the ppu is Incompatible
and it showed the error windows that there are 2 files with the name componentreg.pas

Bart

  • Hero Member
  • *****
  • Posts: 5469
    • Bart en Mariska's Webstek
Re: Fatal: (10022) Can't find unit Laz_AVL_Tree used by ComponentReg
« Reply #3 on: November 11, 2024, 12:16:31 pm »
Looks like you mixed the sources of old and new lazarus.
I'ld just entirely remove the c:\Lazarus2 folder and then re-install Lazarus.

Bart

daniel_sap

  • Jr. Member
  • **
  • Posts: 64
Re: Fatal: (10022) Can't find unit Laz_AVL_Tree used by ComponentReg
« Reply #4 on: November 12, 2024, 12:12:47 am »
Quote
Looks like you mixed the sources of old and new lazarus.
I'ld just entirely remove the c:\Lazarus2 folder and then re-install Lazarus.

I did a clean installation and it works fine.
I wanted to do the upgrade to save myself the installation of a hundred packages (as far as I know there is no way to do multiple package installation from outside the IDE, from some script file for example)
« Last Edit: November 12, 2024, 12:14:40 am by daniel_sap »

emersonline

  • Newbie
  • Posts: 1
Re: Fatal: (10022) Can't find unit Laz_AVL_Tree used by ComponentReg
« Reply #5 on: December 11, 2024, 07:25:37 pm »
Looks like laz_avl_tree.pp has been removed from "[lazarus installed directory]\components\lazutils" for 4.0RC1 release. There is a note from Mattias Gaertner inside laz_avl_tree.pp about this:

Quote
Note! This is a copy of avl_tree unit from FPC trunk from Apr 2023.
        Can be removed when FPC 3.2 is the minimun requirement for Lazarus and LazUtils.

In that case, in order to compile using 4.0RC1, replace "laz_avl_tree" for "avl_tree" from the Uses sections of your units.
« Last Edit: December 11, 2024, 07:29:30 pm by emersonline »

 

TinyPortal © 2005-2018