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
How big can units get before there's a problem?
details: Lazarus 2.10 on win10, compiling for win64. If you want to reproduce, 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/fhirserverto a sibling directory of the markdown directory, and compile the program. It fails for me, but compiles ok if I disable the define {$DEFINE FHIR_NUTRITIONORDER} on line 61 of library/r2/fhir.r2.inc