Sign in Join

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

Mailing lists / lazarus / 2015-06

Error in lazbuild : depends on debugger package ?

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Michael Van Canneyt

Hi,

I get an error running lazbuild from trunk:

$000000000069F4E5 line 720 of lazloggerbase.pas
$000000000047F5E6 line 1411 of lclproc.pas
$00000000004016B4 line 334 of lazbuild.lpr
$00000000006315F8 line 5596 of ../packager/packagesystem.pas $000000000060E71F line 1967 of ../packager/packagesystem.pas $000000000060E5DD line 1977 of ../packager/packagesystem.pas $00000000004066AC line 1096 of lazbuild.lpr
$0000000000401CB8 line 416 of lazbuild.lpr
$0000000000401A5B line 395 of lazbuild.lpr
ERROR: Package file not found
The package "DebuggerIntf" is installed, but no valid package file (.lpk) was found. A broken dummy package was created.
lazbuild is non interactive, aborting now.

Given that there is no way lazbuild can be used for debugging, I find this a rather strange error.

When I run the 1.2.6 lazbuild, no such error appeared.

I dug somewhat deeper, and found that when the package system is initialized, in TLazPackageGraph.LoadStaticBasePackages there is a list of packages that is always loaded.

For the following packages, I think it is doubtful that lazbuild needs them:

   LoadLazarusBasePackage('SynEdit');
   LoadLazarusBasePackage('IDEIntf');
   LoadLazarusBasePackage('DebuggerIntf');
   LoadLazarusBasePackage('LazDebuggerGdbmi');
   LoadLazarusBasePackage('LazControls');
   LoadLazarusBasePackage('CodeTools');

I think that the initialization can use a parameter 'buildonly : boolean' which simply does not load "visual" packages when set.

Michael.

Reply by email

Mattias Gaertner
to Michael Van Canneyt
Show quoted text 22 lines
I get an error running lazbuild from trunk: $000000000069F4E5 line 720 of lazloggerbase.pas $000000000047F5E6 line 1411 of lclproc.pas $00000000004016B4 line 334 of lazbuild.lpr $00000000006315F8 line 5596 of ../packager/packagesystem.pas $000000000060E71F line 1967 of ../packager/packagesystem.pas $000000000060E5DD line 1977 of ../packager/packagesystem.pas $00000000004066AC line 1096 of lazbuild.lpr $0000000000401CB8 line 416 of lazbuild.lpr $0000000000401A5B line 395 of lazbuild.lpr ERROR: Package file not found The package "DebuggerIntf" is installed, but no valid package file (.lpk) was found. A broken dummy package was created. lazbuild is non interactive, aborting now. Given that there is no way lazbuild can be used for debugging, I find this a rather strange error. When I run the 1.2.6 lazbuild, no such error appeared. I dug somewhat deeper, and found that when the package system is initialized, in TLazPackageGraph.LoadStaticBasePackages there is a list of packages that is always loaded.

Yes, it is planned to load them only when the IDE is rebuilt.

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 27 lines
On Mon, 29 Jun 2015 15:30:42 +0200 (CEST) Michael Van Canneyt wrote: > I get an error running lazbuild from trunk: > > $000000000069F4E5 line 720 of lazloggerbase.pas > $000000000047F5E6 line 1411 of lclproc.pas > $00000000004016B4 line 334 of lazbuild.lpr > $00000000006315F8 line 5596 of ../packager/packagesystem.pas > $000000000060E71F line 1967 of ../packager/packagesystem.pas > $000000000060E5DD line 1977 of ../packager/packagesystem.pas > $00000000004066AC line 1096 of lazbuild.lpr > $0000000000401CB8 line 416 of lazbuild.lpr > $0000000000401A5B line 395 of lazbuild.lpr > ERROR: Package file not found > The package "DebuggerIntf" is installed, but no valid package file (.lpk) was found. > A broken dummy package was created. > lazbuild is non interactive, aborting now. > > Given that there is no way lazbuild can be used for debugging, I find this a rather strange error. > > When I run the 1.2.6 lazbuild, no such error appeared. > > I dug somewhat deeper, and found that when the package system is initialized, > in TLazPackageGraph.LoadStaticBasePackages there is a list of packages that is always loaded. Yes, it is planned to load them only when the IDE is rebuilt.

Ok, good to hear, because this prevents me from upgrading my build environment... (which I would really like to do because of a(nother) bug in lazbuild 1.2.6 :))

Michael.

Reply by email

Mattias Gaertner
to Michael Van Canneyt
Show quoted text 6 lines
[...] >> The package "DebuggerIntf" is installed, but no valid package file (.lpk) was found. [...] > Yes, it is planned to load them only when the IDE is rebuilt. Ok, good to hear, because this prevents me from upgrading my build environment...

Why can't you copy the components/debuggerintf to your build environment?

Mattias

Reply by email