Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2013 15:43:52 +0200
From:      Zbyszek Bodek <zbb@semihalf.com>
To:        Andrey Fesenko <f0andrey@gmail.com>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: Kernel build fails on ARM: Cannot fork: Cannot allocate memory
Message-ID:  <51C30718.4030805@semihalf.com>
In-Reply-To: <CA%2BK5SrOPsdMizEkef2h-6ygaFy7ucmkFx2nLpoUDv8z3FRMq4w@mail.gmail.com>
References:  <51C1F53B.2080502@semihalf.com> <CA%2BK5SrOPsdMizEkef2h-6ygaFy7ucmkFx2nLpoUDv8z3FRMq4w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19.06.2013 20:22, Andrey Fesenko wrote:
> On Wed, Jun 19, 2013 at 10:15 PM, Zbyszek Bodek <zbb@semihalf.com> wrote:
>> Hello,
>>
>> I've been trying to compile the kernel on my ARMv7 platform using the
>> sources from the current FreeBSD HEAD.
>>
>> make buildkernel <.....> -j5
>>
>> 1/2 builds fails in the way described below:
>> --------------------------------------------------------------------------
>> ing-include-dirs -fdiagnostics-show-option   -nostdinc  -I.
>> -I/root/src/freebsd-arm-superpages/sys
>> -I/root/src/freebsd-arm-superpages/sys/contrib/altq
>> -I/root/src/freebsd-arm-superpages/sys/contrib/libfdt -D_KERNEL
>> -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
>> -finline-limit=8000 --param inline-unit-growth=100 --param
>> large-function-growth=1000  -mno-thumb-interwork -ffreestanding -Werror
>>  /root/src/freebsd-arm-superpages/sys/ufs/ffs/ffs_snapshot.c
>> Cannot fork: Cannot allocate memory
>> *** [ffs_snapshot.o] Error code 2
>> 1 error
>> *** [buildkernel] Error code 2
>> 1 error
>> *** [buildkernel] Error code 2
>> 1 error
>> 5487.888u 481.569s 7:35.65 1310.0%      1443+167k 1741+5388io 221pf+0w
>> --------------------------------------------------------------------------
>>
> 
> -j5 tricky :) I think it is necessary to build one may be in two
> streams, as well as make the swap
> 

Hello Andrey,

I'm not sure whether you see my point. Just for the record, I've checked
make <...> -j1 and with a swap file. The results are the same.
Nevertheless, I have 2GB of main memory on my ARM target and this is
more than sufficient to build the kernel without a necessity of swap,
etc. What more, I never use more than ~300-400MB of memory during build
even when the error occurs.

What I'm saying is that, starting from the earlier mentioned commit I'm
suffering from the Cannot fork: Cannot allocate memory + vm_thread_new:
kstack allocation failed errors, while using exactly the same setup, etc.

Best regards
Zbyszek Bodek



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51C30718.4030805>