View Issue Details

IDProjectCategoryView StatusLast Update
0037745FPCCompilerpublic2020-09-16 07:18
ReporterGrahame Grieve Assigned ToSven Barth  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformWin64OSWindows 
Product Version3.2.0 
Fixed in Version3.3.1 
Summary0037745: Internal Error 200205172 compiling a large unit
DescriptionI have a program that compiles ok, but I get an error during linking:

project1.lpr(81,1) Error: Internal Error 200205172

After spending some time investigating, I've narrowed the error down to a large generated unit with 182k lines. if I start commenting out code, I can eventually get it compile and link at about half that size. It doesn't appear be any specific line in the code - I can comment out different parts of the code.

It links at 21,737,733 bytes. It fails to link at 22,777,193 bytes

Lazarus 2.10 / FPC 3.2.0 on win10, compiling for win64.
Steps To ReproduceGiven that this is a about a large unit, it's not a case of producing a small program to reproduce. Instead:

Grab the master of https://github.com/grahamegrieve/delphi-markdown to a directory called 'markdown' and grab the 'fpc-linking-fail' branch of https://github.com/grahamegrieve/fhirserver
to a sibling directory of the markdown directory, and compile the program fhirserver\utilities\freepascal\project1.lpr".

It fails for me, but compiles ok if I disable the define {$DEFINE FHIR_NUTRITIONORDER} on line 61 of fhirserver\library\r2\fhir.r2.inc
TagsNo tags attached.
Fixed in Revision46876
FPCOldBugId
FPCTarget-
Attached Files

Activities

Bart Broersma

2020-09-13 12:33

reporter   ~0125524

Related thread on the forum: https://forum.lazarus.freepascal.org/index.php/topic,51409.0.html

Sven Barth

2020-09-16 07:18

manager   ~0125565

Please test and close if okay.

Sidenote: next time, please provide a project that doesn't need to be adjusted first. Your project uses absolute paths for the unit directories while relative ones are better and cross platform and the dependency to the markdown project should be done with a Lazarus package.

Issue History

Date Modified Username Field Change
2020-09-12 22:50 Grahame Grieve New Issue
2020-09-13 12:33 Bart Broersma Note Added: 0125524
2020-09-16 00:06 Sven Barth Assigned To => Sven Barth
2020-09-16 00:06 Sven Barth Status new => assigned
2020-09-16 07:18 Sven Barth Status assigned => resolved
2020-09-16 07:18 Sven Barth Resolution open => fixed
2020-09-16 07:18 Sven Barth Fixed in Version => 3.3.1
2020-09-16 07:18 Sven Barth Fixed in Revision => 46876
2020-09-16 07:18 Sven Barth FPCTarget => -
2020-09-16 07:18 Sven Barth Note Added: 0125565