Piotr Kosek via llvm-dev
2017-Aug-20 15:40 UTC
[llvm-dev] Out Of Memory when compiling complex template in C++
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). 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
Hal Finkel via llvm-dev
2017-Aug-20 19:13 UTC
[llvm-dev] Out Of Memory when compiling complex template in C++
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
Joerg Sonnenberger via llvm-dev
2017-Aug-20 19:18 UTC
[llvm-dev] Out Of Memory when compiling complex template in C++
On Sun, Aug 20, 2017 at 05:40:31PM +0200, Piotr Kosek via llvm-dev wrote:> I'm writing regarding bug: > > https://bugs.llvm.org/show_bug.cgi?id=27371Just like Tim, I can't even get this to compile without seeing various errors. Joerg
Tim Northover via llvm-dev
2017-Aug-20 20:10 UTC
[llvm-dev] Out Of Memory when compiling complex template in C++
On 20 August 2017 at 12:13, Hal Finkel via llvm-dev <llvm-dev at lists.llvm.org> wrote:> Can you raise your process memory limit and find out how much memory the > compilation will end up taking?I get actual source after about 6.5GB, and it seems to be in an infinite loop now but not growing. Tim.