Recent

Author Topic: Lazarus Main not building - Linux  (Read 626 times)

dbannon

  • Hero Member
  • *****
  • Posts: 3882
    • tomboy-ng, a rewrite of the classic Tomboy
Lazarus Main not building - Linux
« on: July 13, 2026, 01:45:45 pm »
Just pulled down lazarus main and compiled with "make clean bigide" but get an error while building lhelp, note it says it cannot find Interfaces unit, capital 'I' ?

Davo

Code: Bash  [Select][+][-]
  1. make[2]: Entering directory '/home/dbannon/bin/Lazarus/lazarus-main/components/chmhelp/lhelp'
  2. /home/dbannon/bin/FPC/fpc-3.2.3/bin/ppcx64 -gw -gl -Sghi -O3 -dlclgtk2 -Fu. -Fu../../../components/lazutils/lib/x86_64-linux -Fu../../../packager/units/x86_64-linux -Fu../../../lcl/units/x86_64-linux -Fu../../../lcl/units/x86_64-linux/gtk2 -Fu../../../components/cairocanvas/lib/x86_64-linux/gtk2 -Fu../../../components/turbopower_ipro/units/x86_64-linux/gtk2 -Fu../../../components/printers/lib/x86_64-linux/gtk2 -Fu../packages/help/lib/x86_64-linux/gtk2 -FE. -FUlib/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/15 -dx86_64 lhelp.lpr
  3. Free Pascal Compiler version 3.2.3 [2025/10/20] for x86_64
  4. Copyright (c) 1993-2024 by Florian Klaempfl and others
  5. Target OS: Linux for x86-64
  6. Compiling lhelp.lpr
  7. lhelp.lpr(28,3) Fatal: Can't find unit Interfaces used by lhelp
  8. Fatal: Compilation aborted
  9. make[2]: *** [Makefile:3931: lhelp] Error 1
  10. make[2]: Leaving directory '/home/dbannon/bin/Lazarus/lazarus-main/components/chmhelp/lhelp'
  11. make[1]: *** [Makefile:4364: all] Error 2
  12. make[1]: Leaving directory '/home/dbannon/bin/Lazarus/lazarus-main/components/chmhelp/lhelp'
  13. make: *** [Makefile:3232: lhelp] Error 2
  14. dbannon@hp:~/bin/Lazarus/lazarus-main$
  15.  
  16.  
  17. dbannon@hp:~/bin/Lazarus/lazarus-main$ find . -iname "interfaces.*"
  18. ./lcl/interfaces/qt/interfaces.pp
  19. ./lcl/interfaces/qt6/interfaces.pp
  20. ./lcl/interfaces/qt5/interfaces.pp
  21. ./lcl/interfaces/carbon/interfaces.pas
  22. ./lcl/interfaces/customdrawn/interfaces.pas
  23. ./lcl/interfaces/gtk3/interfaces.pp
  24. ./lcl/interfaces/win32/interfaces.pp
  25. ./lcl/interfaces/fpgui/interfaces.pp
  26. ./lcl/interfaces/mui/interfaces.pp
  27. ./lcl/interfaces/wince/interfaces.pp
  28. ./lcl/interfaces/cocoa/interfaces.pas
  29. ./lcl/interfaces/nogui/interfaces.pp
  30. ./lcl/interfaces/gtk2/interfaces.pas
  31. ./lcl/interfaces/gtk/interfaces.pp
  32. ./lcl/interfaces/testmock/interfaces.pp
  33. ./lcl/units/x86_64-linux/gtk3/interfaces.o
  34. ./lcl/units/x86_64-linux/gtk3/interfaces.ppu
  35. ./lcl/units/x86_64-linux/nogui/interfaces.o
  36. ./lcl/units/x86_64-linux/nogui/interfaces.ppu
  37. ./docs/xml/lcl/interfaces/gtk/interfaces.xml
  38. dbannon@hp:~/bin/Lazarus/lazarus-main$
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dsiders

  • Hero Member
  • *****
  • Posts: 1679
Re: Lazarus Main not building - Linux
« Reply #1 on: July 13, 2026, 03:01:07 pm »
Just pulled down lazarus main and compiled with "make clean bigide" but get an error while building lhelp, note it says it cannot find Interfaces unit, capital 'I' ?

Davo

Code: Bash  [Select][+][-]
  1. make[2]: Entering directory '/home/dbannon/bin/Lazarus/lazarus-main/components/chmhelp/lhelp'
  2. /home/dbannon/bin/FPC/fpc-3.2.3/bin/ppcx64 -gw -gl -Sghi -O3 -dlclgtk2 -Fu. -Fu../../../components/lazutils/lib/x86_64-linux -Fu../../../packager/units/x86_64-linux -Fu../../../lcl/units/x86_64-linux -Fu../../../lcl/units/x86_64-linux/gtk2 -Fu../../../components/cairocanvas/lib/x86_64-linux/gtk2 -Fu../../../components/turbopower_ipro/units/x86_64-linux/gtk2 -Fu../../../components/printers/lib/x86_64-linux/gtk2 -Fu../packages/help/lib/x86_64-linux/gtk2 -FE. -FUlib/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/15 -dx86_64 lhelp.lpr
  3. Free Pascal Compiler version 3.2.3 [2025/10/20] for x86_64
  4. Copyright (c) 1993-2024 by Florian Klaempfl and others
  5. Target OS: Linux for x86-64
  6. Compiling lhelp.lpr
  7. lhelp.lpr(28,3) Fatal: Can't find unit Interfaces used by lhelp
  8. Fatal: Compilation aborted
  9. make[2]: *** [Makefile:3931: lhelp] Error 1
  10. make[2]: Leaving directory '/home/dbannon/bin/Lazarus/lazarus-main/components/chmhelp/lhelp'
  11. make[1]: *** [Makefile:4364: all] Error 2
  12. make[1]: Leaving directory '/home/dbannon/bin/Lazarus/lazarus-main/components/chmhelp/lhelp'
  13. make: *** [Makefile:3232: lhelp] Error 2
  14. dbannon@hp:~/bin/Lazarus/lazarus-main$
  15.  
  16.  
  17. dbannon@hp:~/bin/Lazarus/lazarus-main$ find . -iname "interfaces.*"
  18. ./lcl/interfaces/qt/interfaces.pp
  19. ./lcl/interfaces/qt6/interfaces.pp
  20. ./lcl/interfaces/qt5/interfaces.pp
  21. ./lcl/interfaces/carbon/interfaces.pas
  22. ./lcl/interfaces/customdrawn/interfaces.pas
  23. ./lcl/interfaces/gtk3/interfaces.pp
  24. ./lcl/interfaces/win32/interfaces.pp
  25. ./lcl/interfaces/fpgui/interfaces.pp
  26. ./lcl/interfaces/mui/interfaces.pp
  27. ./lcl/interfaces/wince/interfaces.pp
  28. ./lcl/interfaces/cocoa/interfaces.pas
  29. ./lcl/interfaces/nogui/interfaces.pp
  30. ./lcl/interfaces/gtk2/interfaces.pas
  31. ./lcl/interfaces/gtk/interfaces.pp
  32. ./lcl/interfaces/testmock/interfaces.pp
  33. ./lcl/units/x86_64-linux/gtk3/interfaces.o
  34. ./lcl/units/x86_64-linux/gtk3/interfaces.ppu
  35. ./lcl/units/x86_64-linux/nogui/interfaces.o
  36. ./lcl/units/x86_64-linux/nogui/interfaces.ppu
  37. ./docs/xml/lcl/interfaces/gtk/interfaces.xml
  38. dbannon@hp:~/bin/Lazarus/lazarus-main$

Been that way since 2005. Fun fact: Use lazbuild to build lhelp. It works just fine.

Code: Bash  [Select][+][-]
  1. ./lazbuild components/chmhelp/lhelp/lhelp.lpi --ws=qt6

dbannon

  • Hero Member
  • *****
  • Posts: 3882
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Main not building - Linux
« Reply #2 on: July 14, 2026, 03:01:32 am »
Yep, it does build.
But I cannot believe I have not noticed this before. I've been building main pretty regularly on my previous Laptop, just started with a new one and, of course, a new Linux.
?

Anyway thanks Don.
Davo
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

n7800

  • Hero Member
  • *****
  • Posts: 740
  • Lazarus IDE contributor
    • GitLab profile
Re: Lazarus Main not building - Linux
« Reply #3 on: July 16, 2026, 11:23:40 pm »
Just pulled down lazarus main and compiled with "make clean bigide" but get an error while building lhelp, note it says it cannot find Interfaces unit, capital 'I' ?

Are you saying everything worked before? Can you tell the last version or commit that worked?

It might be a similar issue. I see that there are several suspect commits in the recent history of this package. If so, the makefiles need to be updated.

Been that way since 2005. Fun fact: Use lazbuild to build lhelp. It works just fine.

I found your report from 2024. Why was it closed?

n7800

  • Hero Member
  • *****
  • Posts: 740
  • Lazarus IDE contributor
    • GitLab profile
Re: Lazarus Main not building - Linux
« Reply #4 on: July 16, 2026, 11:24:20 pm »
By the way, I don't see "lhelp" included in the "bigide" target...

dsiders

  • Hero Member
  • *****
  • Posts: 1679
Re: Lazarus Main not building - Linux
« Reply #5 on: July 17, 2026, 03:08:58 am »
I found your report from 2024. Why was it closed?

Because, at that time, I was using Windows + CygWin... and CygWin was not workin/supported. So I closed it. lhelp failing was so persistent they built recompiling lhelp at run-time into the IDE.

I don't know why it fails. But it has been doing it for a long time.

dsiders

  • Hero Member
  • *****
  • Posts: 1679
Re: Lazarus Main not building - Linux
« Reply #6 on: July 17, 2026, 03:16:27 am »
By the way, I don't see "lhelp" included in the "bigide" target...

in Makefile:

Code: Bash  [Select][+][-]
  1. lhelp:
  2.         $(MAKE) -C components/chmhelp/lhelp
  3.  
  4. bigide: lazbuild tools cleanlazbuildpkg idebig starter lhelp

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4724
  • I like bugs.
Re: Lazarus Main not building - Linux
« Reply #7 on: July 17, 2026, 01:08:03 pm »
"make clean bigide" works here.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

dsiders

  • Hero Member
  • *****
  • Posts: 1679
Re: Lazarus Main not building - Linux
« Reply #8 on: July 17, 2026, 03:30:20 pm »
"make clean bigide" works here.

For me, the issue is not that it never works... it doesn't work reliably. As in... every time.

Thaddy

  • Hero Member
  • *****
  • Posts: 19625
  • Glad to be alive.
Re: Lazarus Main not building - Linux
« Reply #9 on: July 17, 2026, 05:48:52 pm »
For me it is just that I can not, for the life of me, understand that there are people that do not know the limitations of trunk/main. Simply ban them from downloading or they should provide a bug report from the day the version of main/trunk was released, >:( >:(

I wouldn't ban @dbannon, YET!. (if ever  O:-)  ....  :) :))
« Last Edit: July 17, 2026, 05:54:05 pm by Thaddy »
Any "programmer" that knows only one programming language is not a programmer

dbannon

  • Hero Member
  • *****
  • Posts: 3882
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Main not building - Linux
« Reply #10 on: July 18, 2026, 03:41:36 am »
For me it is just that I can not, for the life of me, understand that there are people that do not know the limitations of trunk/main. Simply ban them from downloading or they should provide a bug report from the day the version of main/trunk was released, >:( >:(

I wouldn't ban @dbannon, YET!. (if ever  O:-)  ....  :) :))
Its becoming obvious Thaddy, you struggle to understand a lot of things these days !

Firstly, you, who is always saying "yes, that does work, oh, but you have to be using main", to suggest main should be limited to your definition of who is competent, is completely contradictory.

I saw an issue I had not seen before, I reported it here in case it was a well know issue, turned out it was, Don told me, I thanked him. Just what heinous crime did I commit ? Please answer Thaddy, you have a long history of going to ground as soon as someone calls you out !

For the record, because I am moving over to a new computer, I still have (rather appropriately) an April the first main install on my old one, a rebuild revealed, yes, it builds cleanly. In case you try and attribute that to my incompetence, screenshot.





Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dbannon

  • Hero Member
  • *****
  • Posts: 3882
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Main not building - Linux
« Reply #11 on: July 18, 2026, 05:03:33 am »
OK, somewhat more constructively, after getting a job done, I went back to that Lazarus Main Source, dated 2026-07-13 and run a number of tests. It built, perfectly, 5 times in a row.

So, I unziped the source I used into a fresh directory, same result, 5 times in a row.

So, just what the difference is, I don't know. Before starting this thread, I had tried that original make ..  three times, believed it was repeatable. The 13th was a Monday, maybe it only happens on a Monday ?

I pulled down a current main (Yes Thaddy, I am still accessing main) and it builds fine.

Davo
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Thaddy

  • Hero Member
  • *****
  • Posts: 19625
  • Glad to be alive.
Re: Lazarus Main not building - Linux
« Reply #12 on: July 18, 2026, 06:31:42 am »
Its becoming obvious Thaddy, you struggle to understand a lot of things these days !
Merely, I meant to indicate that using main and running into a build error or a use error is common:
A rogue core developer might run into the same issue and the next commit(s) will fix it.  ::)
I either roll-back or wait for the fix (if I happen to test).
Mentioning main yourself makes my comments very relevant.
It is "cutting" edge: you may hurt yourself.
« Last Edit: July 18, 2026, 06:35:39 am by Thaddy »
Any "programmer" that knows only one programming language is not a programmer

 

TinyPortal © 2005-2018