From owner-freebsd-current@FreeBSD.ORG Wed Jun 19 18:22:43 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BCC00876; Wed, 19 Jun 2013 18:22:43 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) by mx1.freebsd.org (Postfix) with ESMTP id 2CE3C1711; Wed, 19 Jun 2013 18:22:43 +0000 (UTC) Received: by mail-we0-f171.google.com with SMTP id m46so4785077wev.30 for ; Wed, 19 Jun 2013 11:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RQ/shUQmXTrpOlorOymlScT7ShbHabxWCet3LvXFNyc=; b=1I+V3FFz3cvJVegwlqVY49P1OG85IG4WC11ttx3PVp3v2dAztECE6KQaedzFnTX4pn UcDup4BA1TWLTZNfOlX8ySDrhbUFQKFCCSCbC2t1mL/FD2RTf29UcnSdxq1nv2e0VWCN suBi3QUqYfd5IpNPt/FB630S47kuD2tLqvos/tiN1O0KIpdEs4tVLs6hFagDa9J6TLRl Y8Z7I9qHGQeATeM7by/kPAOSWiF49AB5K7JEMSJpNEAOV5C6Fy3qLEA37L1fdxKJgpOS OXIHHUvZIj4YiHHSNJc3c04qrN4RUQEsapR6mBdh3HmmZkwZffHI2E8Gy6h2e+xYlPdI 0qtw== MIME-Version: 1.0 X-Received: by 10.194.242.136 with SMTP id wq8mr3167767wjc.60.1371666162267; Wed, 19 Jun 2013 11:22:42 -0700 (PDT) Received: by 10.194.240.132 with HTTP; Wed, 19 Jun 2013 11:22:42 -0700 (PDT) In-Reply-To: <51C1F53B.2080502@semihalf.com> References: <51C1F53B.2080502@semihalf.com> Date: Wed, 19 Jun 2013 22:22:42 +0400 Message-ID: Subject: Re: Kernel build fails on ARM: Cannot fork: Cannot allocate memory From: Andrey Fesenko To: Zbyszek Bodek Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-arm@freebsd.org" , freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jun 2013 18:22:43 -0000 On Wed, Jun 19, 2013 at 10:15 PM, Zbyszek Bodek 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