> On 28 Mar 2018, at 14:19, Aurélien Larcher <aurelien.larc...@gmail.com> wrote:
> 
> 
> 
> On Wed, Mar 28, 2018 at 1:05 PM, Marianne Spiller <maria...@spiller.me 
> <mailto:maria...@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 <http://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. 
> 

Having nice amount of ram is good, but do not underestimate the value of the 
swap space. Make sure you have plenty for case the allocations are done with 
reservation and when you have /tmp filled.

rgds,
toomas

_______________________________________________
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev

Reply via email to