Internal Error 200205172 compiling a large unit
Original Reporter info from Mantis: grahamegrieve
-
Reporter name: Grahame Grieve
Original Reporter info from Mantis: grahamegrieve
- Reporter name: Grahame Grieve
Description:
I 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 reproduce:
Given 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
Mantis conversion info:
- Mantis ID: 37745
- OS: Windows
- OS Build: 10
- Platform: Win64
- Version: 3.2.0
- Fixed in version: 3.3.1
- Fixed in revision: 46876 (#d1cd2659)