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

Aurélien Larcher aurelien.larcher at gmail.com
Wed Mar 28 11:19:52 UTC 2018


On Wed, Mar 28, 2018 at 1:05 PM, Marianne Spiller <marianne at spiller.me>
wrote:

> Hi,
>
> I'd like to re-compile my icinga2 package with the new oi-userland gcc6
> behaviour; secret masterplan was to finally prepare the pull request.
> With the gcc-4.9 version of oi-userland I got a working package.
>
> But using gcc-6 the package does not longer compile successfully; it
> stops with the following error message:
> [ 63%] Built target icinga-app
>
> cc1plus: out of memory allocating 2727788 bytes after a total of 85975040
> 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
>
> So what to do next? The host has 24GB RAM, 16 of them are available. No
> strange ulimit settings as far as I can see - in fact it is a freshly
> installed Hipster, no big changes made.


> Any help or idea would be great :)
>

How many build jobs (-j) did you specifiy with COMPONENT_BUILD_ARGS?

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20180328/eb0f83a9/attachment-0005.html>


More information about the oi-dev mailing list