Sign in Join

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

Mailing lists / lazarus / 2014-09

Building Lazarus: apparent errors with lazloggerbase?

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Reinier Olislagers

Just thought I'd post a quick note in case it's useful..

I've got fpcup set up to build the IDE, tools (e.g. lazdatadesktop) with fpc trunk on a Linux x64 VM.

As I'm building with debug info enabled, there might be some usable info in the output...

fpcup: info: TUniversalInstaller: building module lazdatadesktop running all InstallExecute commands in:
Name=lazdatadesktop
Description="A database helper tool for Lazarus. Will be registered in External Tools"
Enabled=1
Workingdir=$(lazarusdir)/tools/lazdatadesktop
InstallExecute1=$(lazarusdir)/lazbuild
--primary-config-path=$(LazarusPrimaryConfigPath)
$(lazarusdir)/tools/lazdatadesktop/lazdatadesktop.lpr RegisterExternalTool=$(lazarusdir)/tools/lazdatadesktop/lazdatadesktop

fpcup: info: TUniversalInstaller: running ExecuteCommandInDir for /home/pascaldev/trunk/lazarus/lazbuild
--primary-config-path=~/trunk/config_lazarus
/home/pascaldev/trunk/lazarus/tools/lazdatadesktop/lazdatadesktop.lpr Executing : /home/pascaldev/trunk/lazarus/lazbuild "--primary-config-path=~/trunk/config_lazarus"
"/home/pascaldev/trunk/lazarus/tools/lazdatadesktop/lazdatadesktop.lpr" (working dir: /home/pascaldev/trunk/lazarus/tools/lazdatadesktop) using config file /home/pascaldev/trunk/lazarus/lazarus.cfg SetPrimaryConfigPath NewValue="~/trunk/config_lazarus" -> "/home/pascaldev/trunk/config_lazarus"
primary config path: /home/pascaldev/trunk/config_lazarus/ TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile Last= -Fu. -MObjFPC -Scghi -O1 -g -gl -vewnhi -l fcllaz.pas
TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile Last= -Fu../../packager/units/x86_64-linux;. -MObjFPC -Scghi -O1 -g -gl -vewnhi -l lazutils.pas
TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile Last= -Fu../../packager/units/x86_64-linux;../lazutils/lib/x86_64-linux;. -MObjFPC -Sci -O1 -g -gl -vewni -l codetools.pas
TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile Last= -Fuforms;widgetset;nonwin32;../packager/units/x86_64-linux;../components/lazutils/lib/x86_64-linux;. -Fiinclude -MObjFPC -Scghi -O1 -g -gl -vew -l alllclunits.pp

$000000000061FA99 line 720 of lazloggerbase.pas
$000000000047C887 line 1414 of lclproc.pas
$00000000004013BF line 322 of lazbuild.lpr
$0000000000537A6A line 103 of idedialogs.pas
$00000000005B8A7F line 2989 of ../packager/packagesystem.pas $00000000005BA405 line 3302 of ../packager/packagesystem.pas $00000000005B9EFD line 3192 of ../packager/packagesystem.pas $00000000005BE42B line 3786 of ../packager/packagesystem.pas $00000000005BDC5B line 3624 of ../packager/packagesystem.pas $00000000004038FF line 777 of lazbuild.lpr
$00000000004035AA line 950 of lazbuild.lpr
$00000000004018EB line 399 of lazbuild.lpr
$0000000000406A65 line 1388 of lazbuild.lpr
$0000000000408AEB line 1670 of lazbuild.lpr
$00000000004007CD
ERROR: Error reading file
Unable to read state file
"/home/pascaldev/trunk/lazarus/lcl/units/x86_64-linux/gtk2/LCL.compiled" of package LCL 1.3.
Error: In
'file:///home/pascaldev/trunk/lazarus/lcl/units/x86_64-linux/gtk2/LCL.compiled' (line 1 pos 1): Root element is missing
lazbuild is non interactive, aborting now.

Reply by email

Mattias Gaertner
to Reinier Olislagers
Show quoted text 8 lines
Just thought I'd post a quick note in case it's useful.. I've got fpcup set up to build the IDE, tools (e.g. lazdatadesktop) with fpc trunk on a Linux x64 VM. [...] Error: In 'file:///home/pascaldev/trunk/lazarus/lcl/units/x86_64-linux/gtk2/LCL.compiled' (line 1 pos 1): Root element is missing

Why is your LCL.compiled empty?

lazbuild -B should repair a broken state file (by ignoring it). Does that work?

Mattias

Reply by email

Reinier Olislagers
to Mattias Gaertner
Mattias Gaertner wrote 7 lines
On Sun, 07 Sep 2014 15:44:42 +0200 Reinier Olislagers wrote: > Error: In > 'file:///home/pascaldev/trunk/lazarus/lcl/units/x86_64-linux/gtk2/LCL.compiled' > (line 1 pos 1): Root element is missing Why is your LCL.compiled empty?

Maybe because lazbuild crashes as the output above indicates? (I'm sure you've considered that but as you know I'm not afraid of stating the obvious or even the obviously wrong ;) )

lazbuild -B should repair a broken state file (by ignoring it). Does that work?

Did
./lazbuild -B --build-ide=-dKeepInstalledPackages
(as that should include the LCL as well, right?)
.... a whole lot of Missing state file lines such as the one below ... TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile Missing state file for pascalscript 0.0.0.1:
/home/pascaldev/trunk/lazarus/components/PascalScript/Source/lib/x86_64-linux/pascalscript.compiled

$00000000006210B9 line 720 of lazloggerbase.pas
$000000000047CD07 line 1414 of lclproc.pas
$00000000004013BF line 322 of lazbuild.lpr
$0000000000538AEA line 103 of idedialogs.pas
$00000000005B9AFF line 2989 of ../packager/packagesystem.pas $00000000005BB485 line 3302 of ../packager/packagesystem.pas $00000000005BAF7D line 3192 of ../packager/packagesystem.pas $00000000005BF4AB line 3786 of ../packager/packagesystem.pas $00000000005BECDB line 3624 of ../packager/packagesystem.pas ERROR: Error reading file
Unable to read state file
"/home/pascaldev/trunk/lazarus/components/rx/lib/x86_64-linux/rx.compiled" of package rx 1.0.
Error: In
'file:///home/pascaldev/trunk/lazarus/components/rx/lib/x86_64-linux/rx.compiled' (line 1 pos 1): Root element is missing
lazbuild is non interactive, aborting now.

Reply by email

Mattias Gaertner
to Reinier Olislagers
Show quoted text 11 lines
On 07/09/2014 20:14, Mattias Gaertner wrote: > On Sun, 07 Sep 2014 15:44:42 +0200 > Reinier Olislagers wrote: >> Error: In >> 'file:///home/pascaldev/trunk/lazarus/lcl/units/x86_64-linux/gtk2/LCL.compiled' >> (line 1 pos 1): Root element is missing > > Why is your LCL.compiled empty? Maybe because lazbuild crashes as the output above indicates? (I'm sure you've considered that but as you know I'm not afraid of stating the obvious or even the obviously wrong ;) )

The above output is about *reading* the empty file. Something created the empty file before that.
For example if your disk is full, this can happen. But then again, you should have seen a write error.

Show quoted text 27 lines
> lazbuild -B should repair a broken state file (by ignoring it). Does > that work? Did ./lazbuild -B --build-ide=-dKeepInstalledPackages (as that should include the LCL as well, right?) .... a whole lot of Missing state file lines such as the one below ... TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile Missing state file for pascalscript 0.0.0.1: /home/pascaldev/trunk/lazarus/components/PascalScript/Source/lib/x86_64-linux/pascalscript.compiled $00000000006210B9 line 720 of lazloggerbase.pas $000000000047CD07 line 1414 of lclproc.pas $00000000004013BF line 322 of lazbuild.lpr $0000000000538AEA line 103 of idedialogs.pas $00000000005B9AFF line 2989 of ../packager/packagesystem.pas $00000000005BB485 line 3302 of ../packager/packagesystem.pas $00000000005BAF7D line 3192 of ../packager/packagesystem.pas $00000000005BF4AB line 3786 of ../packager/packagesystem.pas $00000000005BECDB line 3624 of ../packager/packagesystem.pas ERROR: Error reading file Unable to read state file "/home/pascaldev/trunk/lazarus/components/rx/lib/x86_64-linux/rx.compiled" of package rx 1.0. Error: In 'file:///home/pascaldev/trunk/lazarus/components/rx/lib/x86_64-linux/rx.compiled' (line 1 pos 1): Root element is missing lazbuild is non interactive, aborting now.

Fixed.

Mattias

Reply by email

Reinier Olislagers
to Mattias Gaertner
Mattias Gaertner wrote 16 lines
On Mon, 08 Sep 2014 10:12:19 +0200 Reinier Olislagers wrote: > On 07/09/2014 20:14, Mattias Gaertner wrote: >> On Sun, 07 Sep 2014 15:44:42 +0200 >> Reinier Olislagers wrote: >>> Error: In >>> 'file:///home/pascaldev/trunk/lazarus/lcl/units/x86_64-linux/gtk2/LCL.compiled' >>> (line 1 pos 1): Root element is missing >> >> Why is your LCL.compiled empty? > Maybe because lazbuild crashes as the output above indicates? (I'm sure > you've considered that but as you know I'm not afraid of stating the > obvious or even the obviously wrong ;) ) The above output is about *reading* the empty file.

Ok, thanks.

Something created the empty file before that. For example if your disk is full, this can happen. But then again, you should have seen a write error.

Searching for the string error gives nothing in my output log before the Error reading file message (and units named error etc)

Show quoted text 6 lines
> Error: In > 'file:///home/pascaldev/trunk/lazarus/components/rx/lib/x86_64-linux/rx.compiled' > (line 1 pos 1): Root element is missing > lazbuild is non interactive, aborting now. Fixed.

Thanks.

Removed .ppus, and ran fpcup again.
Worked flawlessly.... so whatever it was probably just went away (or some error lead to a .compiled file with invalid xml which your fix fixed).

THanks, Mattias!

Reply by email