[Lazarus] Makefile issues

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Dec 1 23:00:44 CET 2022


On Wed, 30 Nov 2022 14:35:24 +0100 (CET)
Michael Van Canneyt via lazarus <lazarus at lists.lazarus-ide.org> wrote:

> Hello,
> 
> The lazarus makefile has some dependency issues.
> 
> make ide:

That's an internal target.
See "make help".

 
>[...]
> Based on the output of "make help", in an attempt to create
> svn2revisioninc I did:
> 
> > make tools  
> make -C tools
> make[1]: Entering directory '/home/michael/projects/lazarus-tst/tools'
> Makefile:2956: warning: overriding recipe for target '.'
> Makefile:2954: warning: ignoring old recipe for target '.'
> make --assume-new=lazres.pp lazres
> make[2]: Entering directory '/home/michael/projects/lazarus-tst/tools'
> Makefile:2956: warning: overriding recipe for target '.'
> Makefile:2954: warning: ignoring old recipe for target '.'
> /usr/local/bin/ppcx64 -gl -Fu.
> -Fu../components/lazutils/lib/x86_64-linux
> -Fu../lcl/units/x86_64-linux -Fu../lcl/units/x86_64-linux/nogui
> -Fu/usr/local/lib/fpc/3.3.1/units/x86_64-linux/rtl -FE. -FU. -Cg
> -Fl/usr/lib/gcc/x86_64-linux-gnu/9 -Flinclude
> -Fl/etc/ld.so.conf.d/*.conf -dx86_64 lazres.pp lazres.pp(43,22)
> Fatal: Can't find unit LazLogger used by LazRes

Sub target "tools" require a compiled nogui lcl.
Just use the main targets.

The makefiles are not supposed to be called in any order. They are
merely a bootstrap to get to lazbuild and/or lazarus.


>[...]
> > make basecomponents  

Same here.

>[...]
> After some more failed attempts trying to compile "sub-targets", I
> gave up.

Good.

 
> Am I correct in my understanding that in fact only the "main" targets
> all, bigide, useride are supposed to work out of the box when you
> start from a fresh checkout ?

Yes.

Mattias


More information about the lazarus mailing list