[llvm-dev] Out Of Memory when compiling complex template in C++

Hal Finkel via llvm-dev llvm-dev at lists.llvm.org
Sun Aug 20 12:13:40 PDT 2017


On 08/20/2017 10:40 AM, Piotr Kosek via llvm-dev wrote:
> Hello all,
>
> I'm writing regarding bug:
>
> https://bugs.llvm.org/show_bug.cgi?id=27371
>
> I can confirm it happens in 4.0.1 as well. It is *not* a preprocessor
> issue, it's clearly codegen/ilgen that breaks existing project
> compilation. Are there any plans to get some work on it?
>
> More info: peek memory usage is around ~300 mb when Out-Of-Memory is
> casted (on system with 16 gb of RAM).

Can you raise your process memory limit and find out how much memory the 
compilation will end up taking?

  -Hal

> It is reproducible each time
> compilation of my project is run. Visual Studio 2015 and Visual Studio 2017
> nativily compiles this project without any problems.
>
> The project uses heavily template programming, but all templates are
> instanced at least once (so Visual does not skip them).
>
> If you need more information I will be glad to provide them
>
> Best regards,
> Piotr Kosek
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory



More information about the llvm-dev mailing list