From nobody Tue Apr 19 07:05:49 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9767D11FD274 for ; Tue, 19 Apr 2022 07:05:59 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KjFFf3m08z3rSM for ; Tue, 19 Apr 2022 07:05:58 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: (Authenticated sender: andriy.gapon@uabsd.com) by mail.gandi.net (Postfix) with ESMTPSA id A6E8B1BF20F for ; Tue, 19 Apr 2022 07:05:50 +0000 (UTC) Message-ID: <5d3fd21f-f831-5d8e-be79-1279122adce2@FreeBSD.org> Date: Tue, 19 Apr 2022 10:05:49 +0300 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.8.0 Subject: Re: Can not build kernel on 1GB VM *Solved* Content-Language: en-US To: freebsd-hackers@freebsd.org References: <20220415174953.GE13678@post.wayne47.com> <20220418173333.GC72471@post.wayne47.com> From: Andriy Gapon In-Reply-To: <20220418173333.GC72471@post.wayne47.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4KjFFf3m08z3rSM X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 217.70.183.201 is neither permitted nor denied by domain of avg@FreeBSD.org) smtp.mailfrom=avg@FreeBSD.org X-Spamd-Result: default: False [2.28 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEFALL_USER(0.00)[avg]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all:c]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_LOW(-0.10)[217.70.183.201:from]; DMARC_NA(0.00)[FreeBSD.org]; VIOLATED_DIRECT_SPF(3.50)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_SPAM_LONG(0.98)[0.978]; MLMMJ_DEST(0.00)[freebsd-hackers]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:29169, ipnet:217.70.176.0/20, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 2022-04-18 20:33, Michael Wayne wrote: > On Fri, Apr 15, 2022 at 01:49:53PM -0400, Michael Wayne wrote: >> I have a VM with 1GB RAM running FreeBSD 12.1-RELEASE-p3 >> >> I'm trying to upgrade the machine to 12.3 and having swap failures. > > I tried a number of things, all of which failed. > > Since the offending line is: > >> ctfmerge -L VERSION -g -o kernel.full ... > > I went digging through makefiles and found: > MK_CTF=no > > Adding this to the command line permitted the build to complete and > the machine is now running on the new kernel. Hopefully this helps > others. I'm still not sure why the kernel refused to use swap but > this is a very easy to duplicate issue. I think that the canonical way of achieving this is to remove or negate makeoptions WITH_CTF=1 in the kernel configuration. -- Andriy Gapon https://standforukraine.com https://razomforukraine.org