Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2026-05

lazarus Digest, Vol 220, Issue 3

9 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Don Siders
Show quoted text 15 lines
From: Mattias Gaertner To: Lazarus list Subject: [Lazarus] Rebuild lazarus from trunk Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Hi all, For those of you using the git version of Lazarus: make sure to rebuild lazbuild, e.g. "make lazbuild" or "make all". Explanation: An old IDE uses "make useride" to build a new IDE. And that now uses lazbuild with some new parameters. A new IDE rebuilds now the IDE without calling make.

I would if it worked.

Using OpenSUSE Tumbleweed and latest git revision. See below:

make all fails:

make -C packager/registration
make[1]: Entering directory
'/home/don/lazarus/lazarus/packager/registration'
/usr/bin/rm -f ../units/x86_64-linux/fcllaz.ppu
/usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -FE. -FU../units/x86_64-linux -Cg -Fl/usr/lib64/gcc/x86_64-suse-linux/1 5 -dx86_64 fcllaz.pas
Free Pascal Compiler version 3.2.2 [2026/04/30] for x86_64 Copyright (c) 1993-2021 by Florian Klaempfl and others (1002) Target OS: Linux for x86-64
(3104) Compiling fcllaz.pas
Fatal: (10022) Can't find unit system used by fcllaz Fatal: (1018) Compilation aborted
make[1]: *** [Makefile:3556: fcllaz.ppu] Error 1
make[1]: Leaving directory '/home/don/lazarus/lazarus/packager/registration' make: *** [Makefile:3189: registration] Error 2

make lazbuild and make bigide fail with the same message.

make tools fails with:

make -C components/freetype
make[1]: Entering directory '/home/don/lazarus/lazarus/components/freetype' /usr/bin/rm -f lib/x86_64-linux/freetypelaz.ppu
/usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -Fu../../packager/units/x86_64-linux -Fu../lazutils/lib/x86_64-linux -F E. -FUlib/x86_64-linux -Cg -Fl/usr/lib64/gcc/x86_64-suse-linux/15 -dx86_64 freetypelaz.pas
Free Pascal Compiler version 3.2.2 [2026/04/30] for x86_64 Copyright (c) 1993-2021 by Florian Klaempfl and others (1002) Target OS: Linux for x86-64
(3104) Compiling freetypelaz.pas
Fatal: (10022) Can't find unit system used by freetypelaz Fatal: (1018) Compilation aborted
make[1]: *** [Makefile:3556: freetypelaz.ppu] Error 1 make[1]: Leaving directory '/home/don/lazarus/lazarus/components/freetype' make: *** [Makefile:3203: tools] Error 2

I can compile or build all the above executables using the projects or packages inside the IDE.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20260505/d1de4fe9/attachment.htm>

Reply by email

Mattias Gaertner
to Don Siders
Don Siders wrote 15 lines
[...] make all fails: make -C packager/registration make[1]: Entering directory '/home/don/lazarus/lazarus/packager/registration' /usr/bin/rm -f ../units/x86_64-linux/fcllaz.ppu /usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -FE. -FU../units/x86_64-linux -Cg -Fl/usr/lib64/gcc/x86_64-suse-linux/1 5 -dx86_64 fcllaz.pas Free Pascal Compiler version 3.2.2 [2026/04/30] for x86_64 Copyright (c) 1993-2021 by Florian Klaempfl and others (1002) Target OS: Linux for x86-64 (3104) Compiling fcllaz.pas Fatal: (10022) Can't find unit system used by fcllaz

Your default compiler is broken.

[...] I can compile or build all the above executables using the projects

or> packages inside the IDE.

What compiler do you use? ppc386? Or one in another folder?

make lazbuild PP=/path/to/your/compiler

Or build lazbuild.lpi via the IDE.

Mattias

Reply by email

Marco van de Voort
to Mattias Gaertner

Op 5-5-2026 om 19:38 schreef Mattias Gaertner via lazarus:

?I have problems too,? my fallback script (used every few months) works:

make distclean
make bigide OPT="-gw2 -godwarfsets -gl -Ur"

but then (with all 2026-5-5 lazarus and lazbuild binaries) trying to continue to build a final IDE with all previously installed packages fails

lazbuild --pcp=c:\repo\lazarus\config --build-ide=

results in problems in package RX (iirc required for VST5)

C:\repo\lazarus\config\onlinepackagemanager\packages\Rx\dcl_rxtools\rxtextholder_editor.pas(281,41) Error: (4001) Incompatible types: got "TSynXMLSyn" expected "TSynCustomHighlighter"
C:\repo\lazarus\config\onlinepackagemanager\packages\Rx\dcl_rxtools\rxtextholder_editor.pas(282,43) Error: (4001) Incompatible types: got "TSynHTMLSyn" expected "TSynCustomHighlighter"
C:\repo\lazarus\config\onlinepackagemanager\packages\Rx\dcl_rxtools\rxtextholder_editor.pas(283,41) Error: (4001) Incompatible types: got "TSynSQLSyn" expected "TSynCustomHighlighter"
C:\repo\lazarus\config\onlinepackagemanager\packages\Rx\dcl_rxtools\rxtextholder_editor.pas(351) Fatal: (10026) There were 3 errors compiling module, stopping

Reply by email

Mattias Gaertner
to Marco van de Voort
Marco van de Voort wrote 7 lines
Op 5-5-2026 om 19:38 schreef Mattias Gaertner via lazarus: ?I have problems too,? my fallback script (used every few months) works: make distclean make bigide OPT="-gw2 -godwarfsets -gl -Ur"

Note that "make distclean" only cleans a fixed set of folders. It does not clean folders like config\onlinepackagemanager\packages\...

And -Ur tells the compiler to skip checking include files.

but then (with all 2026-5-5 lazarus and lazbuild binaries) trying to continue to build a final IDE with all previously installed packages fails lazbuild --pcp=c:\repo\lazarus\config --build-ide=

Try rebuilding all packages:

lazbuild --pcp=c:\repo\lazarus\config --build-ide= -B -r

Mattias

Reply by email

Marco van de Voort
to Mattias Gaertner

Op 5-5-2026 om 20:01 schreef Mattias Gaertner via lazarus:

Show quoted text 5 lines
Note that "make distclean" only cleans a fixed set of folders. It does not clean folders like config\onlinepackagemanager\packages\...

To be certain I recursively deleted .o and .ppu. I remove the -Ur, which was an (early) attempt to work around the FPC/trunk ppu issues.

Show quoted text 10 lines
> but then (with all 2026-5-5 lazarus and lazbuild binaries) trying to > continue to build a final IDE with all previously installed packages > fails > > lazbuild --pcp=c:\repo\lazarus\config --build-ide= Try rebuilding all packages: lazbuild --pcp=c:\repo\lazarus\config --build-ide= -B -r

Doesn't like that:

c:\repo\lazarus>lazbuild? ?--pcp=c:\repo\lazarus\config --build-ide= -B -r Hint: (lazbuild) Opt: "pcp=c:\repo\lazarus\config" Error: (lazbuild) Missing file

But it does work if I put the -B -r directly after lazbuild. Somehow it interprets -B and -r as part of the build-ide= I guess.

But still after all (delete *.o *.ppu, and rebuilding with new lazbuild, I get the same error in the Rx package, TCustomSynhighlighter related). I'm not really deep in the complexities of these packages, but maybe it confuses Lazarus synedit with the 3rd party synedit used by some packages, with (new) lazbuild adding too many directories to the build?

Should I somehow force a refresh of onlinepackage mgr packages?

Reply by email

Maxim Ganetsky
to Don Siders: On Tue, May 5, 2026 at 6:00?AM I would if it worked. Using OpenSUSE Tumbleweed and latest…

05.05.2026 18:16, Don Siders via lazarus ?????:

Show quoted text 71 lines
On Tue, May 5, 2026 at 6:00?AM wrote: From: Mattias Gaertner To: Lazarus list Subject: [Lazarus] Rebuild lazarus from trunk Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Hi all, For those of you using the git version of Lazarus: make sure to rebuild lazbuild, e.g. "make lazbuild" or "make all". Explanation: An old IDE uses "make useride" to build a new IDE. And that now uses lazbuild with some new parameters. A new IDE rebuilds now the IDE without calling make. I would if it worked. Using OpenSUSE Tumbleweed and latest git revision. See below: make all fails: make -C packager/registration make[1]: Entering directory '/home/don/lazarus/lazarus/packager/registration' /usr/bin/rm -f ../units/x86_64-linux/fcllaz.ppu /usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -FE. -FU../units/x86_64-linux -Cg -Fl/usr/lib64/gcc/x86_64-suse-linux/1 5 -dx86_64 fcllaz.pas Free Pascal Compiler version 3.2.2 [2026/04/30] for x86_64 Copyright (c) 1993-2021 by Florian Klaempfl and others (1002) Target OS: Linux for x86-64 (3104) Compiling fcllaz.pas Fatal: (10022) Can't find unit system used by fcllaz Fatal: (1018) Compilation aborted make[1]: *** [Makefile:3556: fcllaz.ppu] Error 1 make[1]: Leaving directory '/home/don/lazarus/lazarus/packager/registration' make: *** [Makefile:3189: registration] Error 2 make lazbuild and make bigide fail with the same message. make tools fails with: make -C components/freetype make[1]: Entering directory '/home/don/lazarus/lazarus/components/freetype' /usr/bin/rm -f lib/x86_64-linux/freetypelaz.ppu /usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -Fu../../packager/units/x86_64-linux -Fu../lazutils/lib/x86_64-linux -F E. -FUlib/x86_64-linux -Cg -Fl/usr/lib64/gcc/x86_64-suse-linux/15 -dx86_64 freetypelaz.pas Free Pascal Compiler version 3.2.2 [2026/04/30] for x86_64 Copyright (c) 1993-2021 by Florian Klaempfl and others (1002) Target OS: Linux for x86-64 (3104) Compiling freetypelaz.pas Fatal: (10022) Can't find unit system used by freetypelaz Fatal: (1018) Compilation aborted make[1]: *** [Makefile:3556: freetypelaz.ppu] Error 1 make[1]: Leaving directory '/home/don/lazarus/lazarus/components/freetype' make: *** [Makefile:3203: tools] Error 2 I can compile or build all the above executables using the projects or packages inside the IDE.

How many compilers do you have installed in your system? I can guess that IDE and makefiles call different ones.

Best regards, Maxim Ganetskymailto: -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20260506/2cf65398/attachment-0001.htm>

Reply by email

Unknown author
to Maxim Ganetsky
Maxim Ganetsky wrote
05.05.2026 18:16, Don Siders via lazarus ?????:

Make all fails here too, after running a git pull. Running LMDE 7 if that makes any difference. I hope these snippets are enough to give all the relevant information.

Show quoted text 13 lines
(1002) Target OS: Linux for x86-64 (3104) Compiling lazbuild.lpr (10001) PPU Loading ../units/x86_64-linux/gtk2/buildmanager.ppu (10011) PPU Source: buildmanager.pas not found (10028) Recompiling BuildManager, checksum changed for /home/brian/sourcedists/git/lazarus/components/codetools/units/x86_64-linux/basiccodetools.ppu /home/brian/sourcedists/git/lazarus/ide/lazbuild.lpr(49,12) Fatal: (10022) Can't find unit BuildManager used by lazbuild Fatal: (1018) Compilation aborted make[2]: *** [Makefile:4528: lazbuild] Error 1 make[2]: Leaving directory '/home/brian/sourcedists/git/lazarus/ide' make[1]: *** [Makefile:4980: lazbuilder] Error 2 make[1]: Leaving directory '/home/brian/sourcedists/git/lazarus/ide' make: *** [Makefile:3225: lazbuild] Error 2 brian at ryzen:~/sourcedists/git/lazarus$

and

Show quoted text 21 lines
brian at ryzen:~/sourcedists/git/lazarus$ fpc Free Pascal Compiler version 3.2.2+dfsg-46 [2025/02/08] for x86_64 Copyright (c) 1993-2021 by Florian Klaempfl and others /usr/bin/x86_64-linux-gnu-fpc-3.2.2 [options] <inputfile> [options] Only options valid for the default or selected platform are listed. Put + after a boolean switch option to enable it, - to disable it. @<x> Read compiler options from <x> in addition to the default fpc.cfg -a The compiler does not delete the generated assembler file -a5 Don't generate Big Obj COFF files for GNU Binutils older than 2.25 (Windows, NativeNT) -al List sourcecode lines in assembler file -an List node info in assembler file (-dEXTDEBUG compiler) -ao Add an extra option to external assembler call (ignored for internal) -ap Use pipes instead of creating temporary assembler files -ar List register allocation/release info in assembler file -at List temp allocation/release info in assembler file -A<x> Output format: -Adefault Use default assembler -Aas Assemble using GNU AS -Agas Assemble using GNU GAS -Agas-darwin Assemble darwin Mach-O64 using GNU GAS *** press enter ***
Show quoted text 80 lines
> > On Tue, May 5, 2026 at 6:00?AM < > ide.org> wrote: > > From: Mattias Gaertner > To: Lazarus list > Subject: [Lazarus] Rebuild lazarus from trunk > Message-ID: > Content-Type: text/plain; charset=UTF-8; format=flowed > > Hi all, > > For those of you using the git version of Lazarus: > > make sure to rebuild lazbuild, e.g. "make lazbuild" or "make all". > > Explanation: An old IDE uses "make useride" to build a new IDE. > And that > now uses lazbuild with some new parameters. > A new IDE rebuilds now the IDE without calling make. > > > I would if it worked. > > Using OpenSUSE Tumbleweed and latest git revision. > See below: > > make all fails: > > make -C packager/registration > make[1]: Entering directory '/home/don/lazarus/lazarus/packager/ > registration' > /usr/bin/rm -f ../units/x86_64-linux/fcllaz.ppu > /usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -FE. - > FU../units/x86_64-linux -Cg -Fl/usr/lib64/gcc/x86_64-suse-linux/1 > 5 -dx86_64 fcllaz.pas > Free Pascal Compiler version 3.2.2 [2026/04/30] for x86_64 > Copyright (c) 1993-2021 by Florian Klaempfl and others > (1002) Target OS: Linux for x86-64 > (3104) Compiling fcllaz.pas > Fatal: (10022) Can't find unit system used by fcllaz > Fatal: (1018) Compilation aborted > make[1]: *** [Makefile:3556: fcllaz.ppu] Error 1 > make[1]: Leaving directory '/home/don/lazarus/lazarus/packager/ > registration' > make: *** [Makefile:3189: registration] Error 2 > > make lazbuild and make bigide fail with the same message. > > make tools fails with: > > make -C components/freetype > make[1]: Entering directory '/home/don/lazarus/lazarus/components/ > freetype' > /usr/bin/rm -f lib/x86_64-linux/freetypelaz.ppu > /usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. - > Fu../../packager/units/x86_64-linux -Fu../lazutils/lib/x86_64-linux -F > E. -FUlib/x86_64-linux -Cg -Fl/usr/lib64/gcc/x86_64-suse-linux/15 - > dx86_64 freetypelaz.pas > Free Pascal Compiler version 3.2.2 [2026/04/30] for x86_64 > Copyright (c) 1993-2021 by Florian Klaempfl and others > (1002) Target OS: Linux for x86-64 > (3104) Compiling freetypelaz.pas > Fatal: (10022) Can't find unit system used by freetypelaz > Fatal: (1018) Compilation aborted > make[1]: *** [Makefile:3556: freetypelaz.ppu] Error 1 > make[1]: Leaving directory '/home/don/lazarus/lazarus/components/ > freetype' > make: *** [Makefile:3203: tools] Error 2 > > I can compile or build all the above executables using the projects > or packages inside the IDE. How many compilers do you have installed in your system? I can guess that IDE and makefiles call different ones. -- Best regards, Maxim Ganetskymailto:

Reply by email

Mattias Gaertner
to Unknown author
Brian wrote 14 lines
On 5/5/26 8:16 PM, Maxim Ganetsky via lazarus wrote: > 05.05.2026 18:16, Don Siders via lazarus ?????: Make all fails here too, after running a git pull. Running LMDE 7 if that makes any difference. I hope these snippets are enough to give all the relevant information. > (1002) Target OS: Linux for x86-64 > (3104) Compiling lazbuild.lpr > (10001) PPU Loading ../units/x86_64-linux/gtk2/buildmanager.ppu > (10011) PPU Source: buildmanager.pas not found > (10028) Recompiling BuildManager, checksum changed for /home/brian/ > sourcedists/git/lazarus/components/codetools/units/x86_64-linux/ > basiccodetools.ppu

Did you "make clean" or "make distclean" before building lazbuild?

E.g. "make distclean lazbuild"

Mattias

Reply by email

Unknown author
to Mattias Gaertner

On 5/6/26 12:57 PM, Mattias Gaertner via lazarus wrote:

Thank you, Mattias. A senior moment on my part. I should not try things before 8am. :(

Brian.

Show quoted text 25 lines
On 5/6/26 13:53, Brian via lazarus wrote: > On 5/5/26 8:16 PM, Maxim Ganetsky via lazarus wrote: >> 05.05.2026 18:16, Don Siders via lazarus ?????: > > Make all fails here too, after running a git pull. Running LMDE 7 if > that makes any difference. I hope these snippets are enough to give > all the relevant information. > >> (1002) Target OS: Linux for x86-64 >> (3104) Compiling lazbuild.lpr >> (10001) PPU Loading ../units/x86_64-linux/gtk2/buildmanager.ppu >> (10011) PPU Source: buildmanager.pas not found >> (10028) Recompiling BuildManager, checksum changed for /home/brian/ >> sourcedists/git/lazarus/components/codetools/units/x86_64-linux/ >> basiccodetools.ppu Did you "make clean" or "make distclean" before building lazbuild? E.g. "make distclean lazbuild" Mattias

Reply by email