Sign in Join

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

Mailing lists / lazarus / 2023-01

Error building Lazarus Trunk

8 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Wayne Sherman

System Xubuntu 20.04 64-bit with latest updates

lazarus_2_2_4 (latest stable) builds successfully, but I am getting an error trying to build Lazarus trunk. The same error happens with both fpc stable and fpc trunk.

Running this:

git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git 2022-12-31_lazarus_trunk
cd ./2022-12-31_lazarus_trunk

make distclean [ok]
make lazbuild [ok]
make bigide [ok]

make useride [fails]
./lazbuild --lazarusdir=. --build-ide= [fails]

Build messages:
Hint: (lazarus) Missing state file of DebuggerIntf 0.1: /home/wsherman/2022-12-31_lazarus_trunk/components/debuggerintf/lib/x86_64-linux/DebuggerIntf.compiled An unhandled exception occurred at $00000000009B6FB0: EAccessViolation: Access violation
$00000000009B6FB0 DOCALLPACKAGEBUILDINGHANDLER, line 774 of lazideintf.pas $00000000005AFCAA COMPILEPACKAGE, line 4265 of ../packager/packagesystem.pas $00000000005AE928 COMPILEREQUIREDPACKAGES, line 3972 of ../packager/packagesystem.pas
$000000000040366A COMPILEAUTOINSTALLPACKAGES, line 683 of lazbuild.lpr $00000000004032A9 BUILDLAZARUSIDE, line 621 of lazbuild.lpr $000000000040817F RUN, line 1503 of lazbuild.lpr $000000000040AA09 main, line 1879 of lazbuild.lpr

There appears to be two problems:
1) Some state is not as lazbuild expects.
2) lazbuild should not generate an access violation.

Can anyone confirm this issue?

Reply by email

Ondrej Pokorny
to Wayne Sherman
Wayne Sherman wrote 38 lines
System Xubuntu 20.04 64-bit with latest updates lazarus_2_2_4 (latest stable) builds successfully, but I am getting an error trying to build Lazarus trunk. The same error happens with both fpc stable and fpc trunk. Running this: git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git 2022-12-31_lazarus_trunk cd ./2022-12-31_lazarus_trunk make distclean [ok] make lazbuild [ok] make bigide [ok] make useride [fails] ./lazbuild --lazarusdir=. --build-ide= [fails] Build messages: Hint: (lazarus) Missing state file of DebuggerIntf 0.1: /home/wsherman/2022-12-31_lazarus_trunk/components/debuggerintf/lib/x86_64-linux/DebuggerIntf.compiled An unhandled exception occurred at $00000000009B6FB0: EAccessViolation: Access violation $00000000009B6FB0 DOCALLPACKAGEBUILDINGHANDLER, line 774 of lazideintf.pas $00000000005AFCAA COMPILEPACKAGE, line 4265 of ../packager/packagesystem.pas $00000000005AE928 COMPILEREQUIREDPACKAGES, line 3972 of ../packager/packagesystem.pas $000000000040366A COMPILEAUTOINSTALLPACKAGES, line 683 of lazbuild.lpr $00000000004032A9 BUILDLAZARUSIDE, line 621 of lazbuild.lpr $000000000040817F RUN, line 1503 of lazbuild.lpr $000000000040AA09 main, line 1879 of lazbuild.lpr There appears to be two problems: 1) Some state is not as lazbuild expects. 2) lazbuild should not generate an access violation. Can anyone confirm this issue?

Please update and retest. It should be fixed.

Ondrej

Reply by email

Wayne Sherman
to Ondrej Pokorny
Ondrej Pokorny wrote: Please update and retest. It should be fixed.

Sorry, getting the same error:

cd ~/2022-12-31_lazarus_trunk
git fetch origin
git reset --hard origin/main

git log --name-status HEAD^..HEAD
commit 09845999ff4ee6424b4cee11c589d7cfcbe45857 (HEAD -> main, origin/main, origin/HEAD)
Author: Ondrej Pokorny
Date: Sun Jan 1 03:06:58 2023 +0100

fix AV

M components/ideintf/lazideintf.pas

make distclean [ok]
make lazbuild [ok]
make bigide [ok]

./lazbuild --lazarusdir=. --build-ide=
Hint: (lazarus) Compiler unit paths changed for DebuggerIntf 0.1 Old="/home/wsherman/2022-12-31_lazarus_trunk/packager/units/x86_64-linux;/home/wsherman/2022-12-31_lazarus_trunk/components/lazdebuggers/lazdebuggerintf/lib/x86_64-linux;/home/wsherman/2022-12-31_lazarus_trunk/components/lazutils/lib/x86_64-linux;/home/wsherman/2022-12-31_lazarus_trunk/components/freetype/lib/x86_64-linux;/home/wsherman/2022-12-31_lazarus_trunk/lcl/units/x86_64-linux;/home/wsherman/2022-12-31_lazarus_trunk/components/debuggerintf" Now="/home/wsherman/2022-12-31_lazarus_trunk/packager/units/x86_64-linux;/home/wsherman/2022-12-31_lazarus_trunk/components/lazdebuggers/lazdebuggerintf/lib/x86_64-linux;/home/wsherman/2022-12-31_lazarus_trunk/components/lazutils/lib/x86_64-linux;/home/wsherman/2022-12-31_lazarus_trunk/components/debuggerintf" State file="/home/wsherman/2022-12-31_lazarus_trunk/components/debuggerintf/lib/x86_64-linux/DebuggerIntf.compiled" An unhandled exception occurred at $00000000009B6FB0: EAccessViolation: Access violation
$00000000009B6FB0 DOCALLPACKAGEBUILDINGHANDLER, line 774 of lazideintf.pas $00000000005AFCAA COMPILEPACKAGE, line 4265 of ../packager/packagesystem.pas $00000000005AE928 COMPILEREQUIREDPACKAGES, line 3972 of ../packager/packagesystem.pas
$000000000040366A COMPILEAUTOINSTALLPACKAGES, line 683 of lazbuild.lpr $00000000004032A9 BUILDLAZARUSIDE, line 621 of lazbuild.lpr $000000000040817F RUN, line 1503 of lazbuild.lpr $000000000040AA09 main, line 1879 of lazbuild.lpr

make useride
./lazbuild --lazarusdir=. --build-ide=
Hint: (lazarus) Missing state file of DebuggerIntf 0.1: /home/wsherman/2022-12-31_lazarus_trunk/components/debuggerintf/lib/x86_64-linux/DebuggerIntf.compiled An unhandled exception occurred at $00000000009B6FB0: EAccessViolation: Access violation
$00000000009B6FB0 DOCALLPACKAGEBUILDINGHANDLER, line 774 of lazideintf.pas $00000000005AFCAA COMPILEPACKAGE, line 4265 of ../packager/packagesystem.pas $00000000005AE928 COMPILEREQUIREDPACKAGES, line 3972 of ../packager/packagesystem.pas
$000000000040366A COMPILEAUTOINSTALLPACKAGES, line 683 of lazbuild.lpr $00000000004032A9 BUILDLAZARUSIDE, line 621 of lazbuild.lpr $000000000040817F RUN, line 1503 of lazbuild.lpr $000000000040AA09 main, line 1879 of lazbuild.lpr

make: *** [Makefile:3804: useride] Error 217

Reply by email

Wayne Sherman
to Wayne Sherman
wayne wrote: Sorry, getting the same error:

Using git bisect, it seems the failure started happening with this commit: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/ba918c5eb21b04bc00b7bb12909360f40ee738d4

#start a bisect procedure
git bisect start
git bisect bad 2fb475adfb2d124b8b3f6072bb924988150bf2af (* Instantsearch package)
git bisect good eb59ad598f624f10b273c65630f021d5a9e3cf8c (JCF: regenerated translations and updated Russian translation)

#repeat these steps
make lazbuild
make useride
git bisect bad (if make useride runs correctly)
git bisect good (if make useride fails)
- iterate until we get this -

Bisecting: 0 revisions left to test after this (roughly 0 steps) [ba918c5eb21b04bc00b7bb12909360f40ee738d4] TLazIDEInterface: add OnPackageBuilding handler

Reply by email

Wayne Sherman
to Wayne Sherman
Bisecting: 0 revisions left to test after this (roughly 0 steps) [ba918c5eb21b04bc00b7bb12909360f40ee738d4] TLazIDEInterface: add OnPackageBuilding handler

Sorry, I did not actually test that last selected commit. After doing one more iteration it did turn out to be that commit:

ba918c5eb21b04bc00b7bb12909360f40ee738d4 is the first bad commit commit ba918c5eb21b04bc00b7bb12909360f40ee738d4
Author: Ondrej Pokorny
Date: Fri Dec 30 22:43:17 2022 +0100

TLazIDEInterface: add OnPackageBuilding handler

components/ideintf/lazideintf.pas | 41 ++++++++++++++++++++++++++++++++++++++- packager/packagesystem.pas | 4 ++++
2 files changed, 44 insertions(+), 1 deletion(-)

Reply by email