Page 1 of 2

Building Large 64bit DEBUG Exes with Split DWARF option

Posted: Thu Mar 24, 2022 4:46 am
by garethAXR
Hi,

I am trying to build a large 64Bit exe in DEBUG mode using the "Split DWARF" option to solve "Out of Memory" linker issues.

With TwineCompile, the exe builds OK and runs from the IDE, the problem is that when adding a breakpoint, the IDE only shows the CPU view. I guess the debug info is not being linked correctly as it is now stored in seperate files.

If I switch off TwineCompile, it is OK and breakpoints/watches work as expected. (The only problem with this is, now in 11.1, the internal parallel compilation seems to have broken and I have to compile using a single thread which tales 40 minutes to build).

I am using Alexandria 11.1 (though this also affected 10.4.2 and 11.0) and TwineCompile 5.4 from GetIt with the CLANG compiler

Re: Building Large 64bit DEBUG Exes with Split DWARF option

Posted: Thu Mar 24, 2022 8:20 am
by garethAXR
Just a quick addition, it seems if I perform a "Clean" operation first and then "Run with debugging" it works as expected. But if I make a small code change and then "Run with debugging", it only shows the CPU view at a breakpoint. It looks like after the first build, the dwo files are changed, they start with sizes of 100's KB and then end as 1KB.

Re: Building Large 64bit DEBUG Exes with Split DWARF option

Posted: Mon Mar 28, 2022 6:43 pm
by jomitech
This is interesting. Do you have the same issue if you turn off Parallel Project Builds in the TwineCompile options?

Re: Building Large 64bit DEBUG Exes with Split DWARF option

Posted: Tue Mar 29, 2022 4:37 am
by garethAXR
Yes, this is with the parallel builds tunred off.

Re: Building Large 64bit DEBUG Exes with Split DWARF option

Posted: Wed Mar 30, 2022 6:04 pm
by jomitech
Can you download this fix, extract into the TwineCompile Program Files directory and see if it resolves this issue?

https://www.jomitech.com/downloads/SplitDwarfFix.zip

Re: Building Large 64bit DEBUG Exes with Split DWARF option

Posted: Thu Mar 31, 2022 4:52 am
by garethAXR
Hi Jon,

Yes that solved the issue. Many thanks, that made C++Builder usable again.

Gareth

Re: Building Large 64bit DEBUG Exes with Split DWARF option

Posted: Thu Mar 31, 2022 4:25 pm
by jomitech
Excellent, glad to hear that.

Re: Building Large 64bit DEBUG Exes with Split DWARF option

Posted: Tue Nov 14, 2023 9:13 am
by zzattack
Hi Jon,
Did this make it to an updated build yet?

Re: Building Large 64bit DEBUG Exes with Split DWARF option

Posted: Tue Nov 14, 2023 9:47 am
by jomitech
TwineCompile 5.6 has this fix, yes. Are you installing from GetIt or from our site, and if from GetIt, what IDE version are you using?

Re: Building Large 64bit DEBUG Exes with Split DWARF option

Posted: Tue Nov 14, 2023 11:01 am
by zzattack
From GetIt, 11.3. Could have to do with our local changes to the .targets file (for customized eurekalog postprocessing step and TC_DisableProgress for reduced logspam).