[oi-dev] Out of memory when trying to compile icinga2 with gcc6

Toomas Soome tsoome at me.com
Wed Mar 28 12:02:31 UTC 2018



> On 28 Mar 2018, at 14:53, Marianne Spiller <marianne at spiller.me> wrote:
> 
> On Wed, Mar 28, 2018 at 11:19:52AM +0000, Aurélien Larcher wrote:
>> How many build jobs (-j) did you specifiy with COMPONENT_BUILD_ARGS?
> First try: I did not set anything, so it used system defaults
> Second try: I tried explicitly with -j8, same error
> Last try: I tried explicitly with -j1, but... same error :(
> 
> @toomas: this is what my /tmp is looking:
> swap                  24.7G     4K      24.7G     1%    /tmp
> => this should be fairly enough? :D


/tmp is mounted with tempfs which is using virtual memory, that is, ram + swap. see swap -lh

rgds,
toomas


> 
> Now I'm finally perplexed, notably that you, Aurélien, are able to
> compile it successfully... 
> 
> Cheers,
>  Marianne
> 
> 
> 
> Scanning dependencies of target icinga
> make[3]: Leaving directory '/scratch/oi-userland/components/sysutils/icinga2/build/amd64'
> make[3]: Entering directory '/scratch/oi-userland/components/sysutils/icinga2/build/amd64'
> [ 58%] Building CXX object lib/icinga/CMakeFiles/icinga.dir/icinga-itl.cpp.o
> [ 59%] Building CXX object lib/icinga/CMakeFiles/icinga.dir/icinga_unity.cpp.o
> 
> cc1plus: out of memory allocating 2728052 bytes after a total of 85884928 bytes
> make[3]: *** [lib/icinga/CMakeFiles/icinga.dir/build.make:320: lib/icinga/CMakeFiles/icinga.dir/icinga_unity.cpp.o] Error 1
> make[3]: Leaving directory '/scratch/oi-userland/components/sysutils/icinga2/build/amd64'
> make[2]: *** [CMakeFiles/Makefile2:1656: lib/icinga/CMakeFiles/icinga.dir/all] Error 2
> make[2]: Leaving directory '/scratch/oi-userland/components/sysutils/icinga2/build/amd64'
> make[1]: *** [Makefile:163: all] Error 2
> make[1]: Leaving directory '/scratch/oi-userland/components/sysutils/icinga2/build/amd64'
> gmake: *** [/scratch/oi-userland/make-rules/cmake.mk:167: /scratch/oi-userland/components/sysutils/icinga2/build/amd64/.built] Error 2
> 
>> 
>> You output suggests that you are building with more than one.
>> I have just built version 2.8.2 successfully with -j1 on a machine with
>> 48GB RAM (14 avaiable) but I could see that the compilation of icinga_unity.cpp
>> alone takes up to 1GB RAM.
>> 
>> 
>>> Thanks a lot,
>>>  Marianne
>>> 
>>> 
>>> --
>>> "There's nothing wrong with having a tree as a friend."
>>> - Bob Ross
>>> 
>>> _______________________________________________
>>> oi-dev mailing list
>>> oi-dev at openindiana.org
>>> https://openindiana.org/mailman/listinfo/oi-dev
>>> 
>> 
>> 
>> 
>> -- 
>> ---
>> Praise the Caffeine embeddings
> 
>> _______________________________________________
>> oi-dev mailing list
>> oi-dev at openindiana.org
>> https://openindiana.org/mailman/listinfo/oi-dev
> 
> 
> -- 
> "There's nothing wrong with having a tree as a friend."
> - Bob Ross
> 
> https://www.unixe.de/
> https://www.urban-exploring.eu/
> 
> _______________________________________________
> oi-dev mailing list
> oi-dev at openindiana.org
> https://openindiana.org/mailman/listinfo/oi-dev





More information about the oi-dev mailing list