[Lazarus] Makefile issues
Maxim Ganetsky
ganmax at narod.ru
Wed Nov 30 15:09:43 CET 2022
30.11.2022 16:35, Michael Van Canneyt via lazarus пишет:
>
> Hello,
>
> The lazarus makefile has some dependency issues.
I would recommend to run `make lazbuild` first and then try to proceed
again with your commands.
> make ide:
>
>> make ide
> make -C ide ide
> make[1]: Entering directory '/home/michael/projects/lazarus-tst/ide'
> /bin/mkdir -p ../units/x86_64-linux/gtk2
> make -C ../tools svn2revisioninc OS_TARGET=linux CPU_TARGET=x86_64 OPT=''
> 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 svn2revisioninc.pas
> svn2revisioninc.pas(64,3) Fatal: Can't find unit FileUtil used by
> Svn2RevisionInc
> Fatal: Compilation aborted
> make[2]: *** [Makefile:2967: svn2revisioninc] Error 1
> make[2]: Leaving directory '/home/michael/projects/lazarus-tst/tools'
> make[1]: *** [Makefile:5387: revisioninc] Error 2
> make[1]: Leaving directory '/home/michael/projects/lazarus-tst/ide'
> make: *** [Makefile:3788: ide] Error 2
>
> 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
> Fatal: Compilation aborted
> make[2]: *** [Makefile:2964: lazres] Error 1
> make[2]: Leaving directory '/home/michael/projects/lazarus-tst/tools'
> make[1]: *** [Makefile:3394: all] Error 2
> make[1]: Leaving directory '/home/michael/projects/lazarus-tst/tools'
> make: *** [Makefile:3784: tools] Error 2
>
> Similar,
>
>> make basecomponents
> make -C components/buildintf
> make[1]: Entering directory
> '/home/michael/projects/lazarus-tst/components/buildintf'
> /bin/rm -f units/x86_64-linux/buildintf.ppu
> /bin/mkdir -p units/x86_64-linux
> /usr/local/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq
> -Fu../../packager/units/x86_64-linux -Fu../lazutils/lib/x86_64-linux
> -Fu. -Fu/usr/local/lib/fpc/3.3.1/units/x86_64-linux/rtl -FE.
> -FUunits/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/9 -dx86_64
> buildintf.pas
> Hint: (11030) Start of reading config file /home/michael/.fpc.cfg
> Hint: (11031) End of reading config file /home/michael/.fpc.cfg
> Free Pascal Compiler version 3.3.1 [2022/11/05] for x86_64
> Copyright (c) 1993-2022 by Florian Klaempfl and others
> (1002) Target OS: Linux for x86-64
> (3104) Compiling buildintf.pas
> (3104) Compiling baseideintf.pas
> /home/michael/projects/lazarus-tst/components/buildintf/baseideintf.pas(21,3) Fatal: (10022) Can't find unit LazUTF8 used by BaseIDEIntf
> fatal: (1018) Compilation aborted
>
> After some more failed attempts trying to compile "sub-targets", I gave up.
>
> 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 ?
>
> Michael.
--
Best regards,
Maxim Ganetsky mailto:ganmax at narod.ru
More information about the lazarus
mailing list