View Issue Details

IDProjectCategoryView StatusLast Update
0037984LazarusCompilerpublic2020-10-25 19:05
ReporterIvon Assigned ToJuha Manninen  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSDebian 
Product Version2.1 (SVN) 
Summary0037984: Problem building DoubleCmd with LazBuild trunk svn > 64047
Descriptionsvn checkout https://svn.code.sf.net/p/doublecmd/code/trunk doublecmd

In Lazarus IDE, everything is still going fine.

But from Lazarus snv [64048] and by now at "lazbuild src/doublecmd.lpi" was issued at the end of the build Doublecmd:

/media/u1/s1/Linux/Commander/Dc/SVN/doublecmd.laz/components/synunihighlighter/synuni.pas(10,37) Hint: (5023) Unit "SynUniRules" not used in SynUni
(1008) 14 lines compiled, 0.2 sec
(1022) 4 hint(s) issued

An unhandled exception occurred at $0000000000569D0F:
EAccessViolation: Access violation
  $0000000000569D0F SETTIMESTAMPS, line 2167 of project.pp
  $000000000056AC17 SETSOURCE, line 2428 of project.pp
  $000000000056E2A1 DOLOADLPR, line 3186 of project.pp
  $000000000056E470 READPROJECT, line 3218 of project.pp
  $00000000004053D3 LOADPROJECT, line 1018 of lazbuild.lpr
  $0000000000403E3C BUILDPROJECT, line 915 of lazbuild.lpr
  $00000000004024AB BUILDFILE, line 426 of lazbuild.lpr
  $0000000000407D33 RUN, line 1476 of lazbuild.lpr
  $000000000040A949 main, line 1879 of lazbuild.lpr

In "Lazarus/IDE / project.pp" in "TunitInfo.SetTimeStamps" uncomment line 2165:

if Component=nil then exit;

and" lazbuild src/doublecmd.lpi " was executed without errors.
Steps To Reproducelazbuild src/doublecmd.lpi
TagsNo tags attached.
Fixed in Revisionr64074
LazTarget-
WidgetsetGTK 2
Attached Files

Activities

Juha Manninen

2020-10-25 11:54

developer   ~0126540

Fixed, please test.
I did test LazBuild with its "--build-ide=" parameter. That works for some reason.
Must test better in the future.

Ivon

2020-10-25 19:05

reporter   ~0126551

lazbuild src/doublecmd.lpi
lazbuild --build-ide src/doublecmd.lpi
lazbuild --build-ide= src/doublecmd.lpi
lazbuild --build-ide='' src/doublecmd.lpi
lazbuild --build-ide="" src/doublecmd.lpi

lead to the same thing:

An unhandled exception occurred at $0000000000569CEF:
EAccessViolation: Access violation
  $0000000000569CEF
  $000000000056ABF7
  $000000000056E281
  $000000000056E450
  $00000000004053D3
  $0000000000403E3C
  $00000000004024AB
  $0000000000407D33
  $000000000040A949

Much easier to use

./clean.sh
./buils.sh beta:

An unhandled exception occurred at $0000000000569CEF:
EAccessViolation: Access violation
  $0000000000569CEF SETTIMESTAMPS, line 2167 of project.pp
  $000000000056ABF7 SETSOURCE, line 2428 of project.pp
  $000000000056E281 DOLOADLPR, line 3186 of project.pp
  $000000000056E450 READPROJECT, line 3218 of project.pp
  $00000000004053D3 LOADPROJECT, line 1018 of lazbuild.lpr
  $0000000000403E3C BUILDPROJECT, line 915 of lazbuild.lpr
  $00000000004024AB BUILDFILE, line 426 of lazbuild.lpr
  $0000000000407D33 RUN, line 1476 of lazbuild.lpr
  $000000000040A949 main, line 1879 of lazbuild.lpr

So without your:

if UnitResourceFileformat=nil then exit;

in "project.pp" DC is not normally builded now.

I'll be more suspicious

Issue History

Date Modified Username Field Change
2020-10-25 10:47 Ivon New Issue
2020-10-25 11:18 Juha Manninen Summary The problem of building software in Lazarus 2.1.0 svn > 64047 => Problem building DoubleCmd with LazBuild trunk svn > 64047
2020-10-25 11:18 Juha Manninen LazTarget => -
2020-10-25 11:18 Juha Manninen Widgetset GTK 2 => GTK 2
2020-10-25 11:19 Juha Manninen Assigned To => Juha Manninen
2020-10-25 11:19 Juha Manninen Status new => assigned
2020-10-25 11:54 Juha Manninen Status assigned => resolved
2020-10-25 11:54 Juha Manninen Resolution open => fixed
2020-10-25 11:54 Juha Manninen Fixed in Revision => r64074
2020-10-25 11:54 Juha Manninen Widgetset GTK 2 => GTK 2
2020-10-25 11:54 Juha Manninen Note Added: 0126540
2020-10-25 19:05 Ivon Note Added: 0126551