I have clones of both the old repo (branch loc_testing) and the new CqrlogAlpha repo (branch main). If I cd into the old one and type 'make clean; make cqrlog_qt6' it compiles just fine. If I then cd into the new repo and enter the same command, it runs for a while and then I get
/home/gwb/OSS/src/CqrlogAlpha/src/dLogUpload.pas(12,3) Fatal: (10022) Can't find unit lNet used by dLogUpload
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
Error: (lazarus) Compile Project, Target: /home/gwb/OSS/src/CqrlogAlpha/src/cqrlog: stopped with exit code 1
Error: (lazbuild) failed compiling of project /home/gwb/OSS/src/CqrlogAlpha/src/cqrlog.lpi
make: *** [Makefile:91: cqrlog_qt6] Error 2
I'm guessing it's something simple, but since I know nothing about lazarus I need some help.
tia & 73
N3GB
PS: Same result with branch devel in the new repo
Hi, N3GB
New CqrLogAlpha repo. has no lnet sources in ./src dir,
so you can COPY them from the previous cqrlog ./src/lnet dir
into the new one CqrLogAlpha/src/lnet, then you can build new.
Regards, AO.
Hi!
Thanks for pointing this out! I will fix this.
CqrlogAlpha repository is just so new it can have this kind of problems.
I have no problems to build sources myself, but it must be because my Lazarus settings.
it seems that latest lnet is available from GitHub https://github.com/almindor/lnet. (AO have you tried those?)
--
Saku
OH1KH
Hi, Saku
>it seems that latest lnet is available from GitHub https://github.com/almindor/lnet. (AO tried yet?)
Tks let me know the new lcnet.pas ver 0.6.2 in github,
At this moment I haven't tried them yet. so, here's the log in building below.
========== Here's for information to build Lazarus 4.0 git (commit 03b43038f3e319e8d17595f91bb80e035ec79ea9 (HEAD -> main, origin/main, origin/HEAD) + fpc-laz + fpc-src -> CqrLogAlpha w/ qt5
ao@op5p:~/src/lazarus$ uname -a
Linux op5p 6.1.0-1025-rockchip #25-Ubuntu SMP Mon Aug 26 23:01:14 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
After pulling new sources from CqrLogAlpha, you did put lnet w/ new lcnet.pas 0.6.2 into
src/lnet dir.
So tried building CqrLogAlpha w/ new lcnet, reminded me fix some interfaces to compile
w/ Lazarus 4.0 git + fpc 3.2.3:
ao@op5p:~/src/CqrlogAlpha/src/lnet/lib$ diff ./backup/lcommon.pp.bak ./lcommon.pp
464,465c464,465
< Result := unixutil.TZSeconds;
< // Result := unixutil.Tzseconds;
---
> // Result := unixutil.TZSeconds;
> Result := unix.TZSeconds;
ao@op5p:~/src/CqrlogAlpha/src/lnet/lib$
ao@op5p:~/src/CqrlogAlpha/src/lnet/lib/sys$ diff ./backup/osunits.inc ./osunits.inc
6c6
< BaseUnix, NetDB,
---
> BaseUnix, NetDB, unix,
ao@op5p:~/src/CqrlogAlpha/src/lnet/lib/sys$
during build CqrLogAlpha (commit 8975838d09290293e1b2f4fe800d826844496f8f)
Heaptrc shown up like below but compiled successfully.
__
Info: (lazarus) [TCompiler.Compile] end
Heap dump by heaptrc unit of /usr/local/share/lazarus/lazbuild
684684 memory blocks allocated : 58378657/60687032
684676 memory blocks freed : 58378129/60686504
8 unfreed memory blocks : 528
True heap size : 5275648
True free heap : 5273408
Should be : 5273584
__
================================================
At this moment seems to be no differnce b/w lcnet.pas 0.6.1 and 0.6.2, i'll try using it for-a-while.
AO/JQ1UCG
Lazarus 4.0 git (commit 6552d52af2a) + fpc-laz/fpc-src 3.2.3 arm64
Info: (lazarus) [TCompiler.Compile] end
Heap dump by heaptrc unit of /usr/local/share/lazarus/lazbuild
685834 memory blocks allocated : 58425083/60737624
685826 memory blocks freed : 58424555/60737096
8 unfreed memory blocks : 528
True heap size : 5275648
True free heap : 5273408
Should be : 5273584
Call trace for block $0000FFFF7EE0E3E0 size 120
$0000000000427F40
$0000000000440AB4
$000000000042A220
$0000000000454660
$0000000000454B70
$00000000009BEB04
$00000000009C1568
$00000000009BF904
$0000000000ADC330
$0000000000404E1C
$0000000000403DA8
$000000000040240C
$0000000000407464
$000000000040A050
$0000FFFF806B84C4
$0000FFFF806B8598
Call trace for block $0000FFFF7EE0E540 size 120
$0000000000427D7C
$000000000042064C
$0000000000454AE8
$00000000009BEB04
$00000000009C1568
$00000000009BF904
$0000000000ADC330
$0000000000404E1C
$0000000000403DA8
$000000000040240C
$0000000000407464
$000000000040A050
$0000FFFF806B84C4
$0000FFFF806B8598
$0000FFFF806B84C4
$0000FFFF806B8598
Call trace for block $0000FFFF7F52E500 size 48
$0000000000427F40
$0000000000522718
$00000000004F9428
$00000000004FB180
$0000000000517418
$00000000005BBF24
$00000000005BBD68
$00000000005BBB9C
$000000000053AAB4
$000000000053A668
$0000000000540354
$000000000094F080
$000000000094E678
$000000000054E2A8
$000000000054CB14
$0000000000585BB0
Call trace for block $0000FFFF7F52E400 size 48
$0000000000427F40
$0000000000522718
$00000000004F931C
$00000000004FB180
$0000000000517418
$00000000005BBF24
$00000000005BBD68
$00000000005BBB9C
$000000000053AAB4
$000000000053A668
$0000000000540354
$000000000094F080
$000000000094E678
$000000000054E2A8
$000000000054CB14
$0000000000585BB0
Call trace for block $0000FFFF7F52DF00 size 48
$0000000000427F40
$0000000000522718
$00000000004F931C
$00000000004F9C7C
$0000000000517178
$00000000005BBF24
$00000000005BBD68
$00000000005BBB9C
$000000000053AAB4
$000000000053A668
$0000000000540354
$000000000094F080
$000000000094E678
$000000000054E2A8
$000000000054CB14
$0000000000585BB0
Call trace for block $0000FFFF7FF96A00 size 48
$0000000000427F40
$0000000000522718
$00000000004F9428
$00000000004FB180
$0000000000517418
$00000000005195AC
$000000000054D60C
$000000000054CB14
$0000000000585BB0
$00000000009E875C
$00000000009E8548
$000000000057D808
$000000000058D72C
$00000000005A2F78
$00000000005A3F94
$0000000000592354
Call trace for block $0000FFFF7FF96900 size 48
$0000000000427F40
$0000000000522718
$00000000004F931C
$00000000004FB180
$0000000000517418
$00000000005195AC
$000000000054D60C
$000000000054CB14
$0000000000585BB0
$00000000009E875C
$00000000009E8548
$000000000057D808
$000000000058D72C
$00000000005A2F78
$00000000005A3F94
$0000000000592354
Call trace for block $0000FFFF7FF96400 size 48
$0000000000427F40
$0000000000522718
$00000000004F931C
$00000000004F9C7C
$0000000000517178
$00000000005195AC
$000000000054D60C
$000000000054CB14
$0000000000585BB0
$00000000009E875C
$00000000009E8548
$000000000057D808
$000000000058D72C
$00000000005A2F78
$00000000005A3F94
$0000000000592354
strip src/cqrlog
gzip tools/cqrlog.1 -c > tools/cqrlog.1.gz
ao@op5p:~/src/CqrlogAlpha$
Just info HeapTrc from Lazarus
commit 2c28408bdc2d7b8df1b26053191e6363de799bec (HEAD -> devel, origin/devel)
Author: OH1KH
Date: Thu Feb 13 15:28:17 2025 +0200
RBNMonitor without second thread
__
Info: (lazarus) [TCompiler.Compile] end
Heap dump by heaptrc unit of /usr/local/share/lazarus/lazbuild
664209 memory blocks allocated : 56187757/58333160
664201 memory blocks freed : 56187229/58332632
8 unfreed memory blocks : 528
True heap size : 5341184
True free heap : 5338944
Should be : 5339120
Call trace for block $0000FFFF8FA2E560 size 120
$0000000000427F40
$0000000000440AB4
$000000000042A220
$0000000000454660
$0000000000454B70
$00000000009BF144
$00000000009C1BA8
$00000000009BFF44
$0000000000ADC970
$0000000000404E1C
$0000000000403DA8
$000000000040240C
$0000000000407464
$000000000040A050
$0000FFFF913D84C4
$0000FFFF913D8598
Call trace for block $0000FFFF8FA2E2A0 size 120
$0000000000427D7C
$000000000042064C
$0000000000454AE8
$00000000009BF144
$00000000009C1BA8
$00000000009BFF44
$0000000000ADC970
$0000000000404E1C
$0000000000403DA8
$000000000040240C
$0000000000407464
$000000000040A050
$0000FFFF913D84C4
$0000FFFF913D8598
$0000FFFF913D84C4
$0000FFFF913D8598
Call trace for block $0000FFFF90246200 size 48
$0000000000427F40
$0000000000522AA8
$00000000004F97B8
$00000000004FB510
$00000000005177A8
$00000000005BC27C
$00000000005BC0C0
$00000000005BBEF4
$000000000053AE44
$000000000053A9F8
$00000000005406E4
$000000000094F6C0
$000000000094ECB8
$000000000054E638
$000000000054CEA4
$0000000000585F08
Call trace for block $0000FFFF90246100 size 48
$0000000000427F40
$0000000000522AA8
$00000000004F96AC
$00000000004FB510
$00000000005177A8
$00000000005BC27C
$00000000005BC0C0
$00000000005BBEF4
$000000000053AE44
$000000000053A9F8
$00000000005406E4
$000000000094F6C0
$000000000094ECB8
$000000000054E638
$000000000054CEA4
$0000000000585F08
Call trace for block $0000FFFF90245C00 size 48
$0000000000427F40
$0000000000522AA8
$00000000004F96AC
$00000000004FA00C
$0000000000517508
$00000000005BC27C
$00000000005BC0C0
$00000000005BBEF4
$000000000053AE44
$000000000053A9F8
$00000000005406E4
$000000000094F6C0
$000000000094ECB8
$000000000054E638
$000000000054CEA4
$0000000000585F08
Call trace for block $0000FFFF90CAEA00 size 48
$0000000000427F40
$0000000000522AA8
$00000000004F97B8
$00000000004FB510
$00000000005177A8
$000000000051993C
$000000000054D99C
$000000000054CEA4
$0000000000585F08
$00000000009E8D9C
$00000000009E8B88
$000000000057DB60
$000000000058DA84
$00000000005A32D0
$00000000005A42EC
$00000000005926AC
Call trace for block $0000FFFF90CAE900 size 48
$0000000000427F40
$0000000000522AA8
$00000000004F96AC
$00000000004FB510
$00000000005177A8
$000000000051993C
$000000000054D99C
$000000000054CEA4
$0000000000585F08
$00000000009E8D9C
$00000000009E8B88
$000000000057DB60
$000000000058DA84
$00000000005A32D0
$00000000005A42EC
$00000000005926AC
Call trace for block $0000FFFF90CAE400 size 48
$0000000000427F40
$0000000000522AA8
$00000000004F96AC
$00000000004FA00C
$0000000000517508
$000000000051993C
$000000000054D99C
$000000000054CEA4
$0000000000585F08
$00000000009E8D9C
$00000000009E8B88
$000000000057DB60
$000000000058DA84
$00000000005A32D0
$00000000005A42EC
$00000000005926AC
strip src/cqrlog
gzip tools/cqrlog.1 -c > tools/cqrlog.1.gz
ao@op5p:~/src/CqrlogAlpha$
- AO
HI !
Please tell me how you end up this dump?
Is the reason that you compile for aarch64, or is the reason that you have latest FPC with latest Lazarus ?
My versions are:
Free Pascal Compiler version 3.2.2 [2024/07/28] for x86_64
Lazarus 3.8 2025-01-23
And I can not produce that with x86_64 compile. Not even when enabling Lazarus/Program options/debug/Use Heaptrc unit.
If the reasons are new fpc or Lazarus you should make bug report for the Lazarus team, but before that you should make successful compile with older version of FPC and Lazarus to prove that the problem lays at new compiler side.
--
Saku
OH1KH
Hi Saku,
Thank you for your reply and build new CqrLogAlpha for us.
Heap Trc - Latest FPC with latest Lazarus brings those heap trace, may be.
I wlll report this to Lazarus team to improve compatibility b/w 3.x and 4.x
Again, thank you for your effort to us ;)
AO.
Heap dump by heaptrc unit of /home/saku/lazarus/CqrlogAlpha/src/cqrlog
0 memory blocks allocated : 0/0
0 memory blocks freed : 0/0
0 unfreed memory blocks : 0
True heap size : 0
True free heap : 0
That is what shows up here.
--
Saku
OH1KH
Hi Saku,
Thank you share your HeapTrc info on Lazarus 3.x and fpc 3.2.2
Those info is really important for me to check that problem occured whether Lazarus 4.x or 3.x
Thank you :)
AO
HI!
Checked my local repo and there are folders "lnet" and "lib." and lnet has a subdirectory "lnet/lib" where all files exist.
How ever those do not exist in GItHub repository.
".gitignore" did make the trick having "lib/" there that did affect also "lnet/lib", of course.
I did not think so deep, I was just looking "lnet". My bad.
It should be fixed now in both main and devel branches.
--
Saku
OH1KH
Did `git pull` and `make cqrlog_qt6` is happy.