Strange problem building with new repo

7 posts / 0 new
Last post
n3gb
Strange problem building with new repo

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

JQ1UCG
lnet is now missing in ./src, cp from the previous to the new.

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.

oh1kh
lnet is now missing in ./src, cp from the previous to the new.

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

JQ1UCG
Hi, Saku

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

JQ1UCG
Info) heaptrc during build CqrLogAlpha commit 5303928cbcd

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$

oh1kh
lnet is now missing in ./src, cp from the previous to the new.

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

n3gb
Thanks

Did `git pull` and `make cqrlog_qt6` is happy.