From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 02B0D1582EF for ; Sun, 09 Feb 2025 00:13:25 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id E25CE3430D1 for ; Sun, 09 Feb 2025 00:13:25 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 72B8D11047E; Sun, 09 Feb 2025 00:12:20 +0000 (UTC) Received: from cross.elm.relay.mailchannels.net (cross.elm.relay.mailchannels.net [23.83.212.46]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 44B411103CB for ; Sun, 09 Feb 2025 00:12:18 +0000 (UTC) X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1B13621419 for ; Sun, 9 Feb 2025 00:12:17 +0000 (UTC) Received: from mailclean11.thundermail.uk (100-121-114-237.trex-nlb.outbound.svc.cluster.local [100.121.114.237]) (Authenticated sender: thundermail) by relay.mailchannels.net (Postfix) with ESMTPA id 2A8B3219C1 for ; Sun, 9 Feb 2025 00:12:16 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1739059936; a=rsa-sha256; cv=none; b=SmshsJUxeY9lUk1qq29t0Q5ptNtRM0rzfzWZwzeQR6jGMwAwhfElJfF0cFc3DtlZ1PWOYI fnyC8K1JiDO4pL03r+9cHRSMULn3K4oh0jTct9kGRMNkXKEA0QS0i67pYR22e+lC56QrQf XExzfzuIyOnLunX2P3zKduImVvlzphaMJ7NMRMUpVNj6CRgP8fx0VkuicKlFiQRW632SnS Hxf4BUoLZHYgsabOWi8KUguMqaioVfu1Y5aMgPlyfELTeAf0X9LavT5yWq7pfvNFp86MSY EatHpT8xw9QVd6V+pYJhWVqQ7RlAdhpDyJXd8hI4DWe6fB7WPcy60UOwtic2Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1739059936; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=6dhlUpJF1cqZUsI0c7pDgtzMdWRJ2uWpCxkZnmnLgsE=; b=6u7LKrQpH4xLDV5pyKdyilKxEiQbA7Ss7GQqp+4ujlgjbfM4JEarc/4X47FA6yDjkDyl9i Q3yzbyqNhWFcLE3uGDajnWtATMpEtuxddpB0jtX6TONy7bxgoPEVCQZoMsjBof1PvMSbBF DPES2SS87Ol6TBQM+h9EWpTL3z6oxVOhRUGZYQSd1wsthYP7kI8y0Oo3XfZLJgapV1OPuu Ep9Pd2RLdxFTIW4al0jolOLXug340cg/zLpK8XoN5Lgijq7+ctl62RpkUK5GLdWIfxNAga Sp4bMwg/vXeKQ935Q2737zVNKBpyvwD4hSGt/ARFYenjAGwga3VgrqmBl9hNKA== ARC-Authentication-Results: i=1; rspamd-68c88d6cff-p5f9r; auth=pass smtp.auth=thundermail smtp.mailfrom=confabulate@kintzios.com X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com X-MC-Relay: Neutral X-MailChannels-SenderId: thundermail|x-authsender|confabulate@kintzios.com X-MailChannels-Auth-Id: thundermail X-Average-Snatch: 6687482920255ac1_1739059936686_1165603693 X-MC-Loop-Signature: 1739059936686:1456017477 X-MC-Ingress-Time: 1739059936686 Received: from mailclean11.thundermail.uk (mailclean11.thundermail.uk [149.255.60.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.121.114.237 (trex/7.0.2); Sun, 09 Feb 2025 00:12:16 +0000 Received: from cloud238.thundercloud.uk (cloud238.thundercloud.uk [149.255.62.116]) by mailclean11.thundermail.uk (Postfix) with ESMTPS id 511701E0002 for ; Sun, 9 Feb 2025 00:12:14 +0000 (GMT) Received: from rogueboard.localnet (230.3.169.217.in-addr.arpa [217.169.3.230]) (Authenticated sender: confabulate@kintzios.com) by cloud238.thundercloud.uk (Postfix) with ESMTPSA id 2136110B34A for ; Sun, 9 Feb 2025 00:12:13 +0000 (GMT) Authentication-Results: cloud238.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=rogueboard.localnet Received-SPF: pass (cloud238.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Question about compilation Date: Sun, 09 Feb 2025 00:11:56 +0000 Message-ID: <2361441.ElGaqSPkdT@rogueboard> In-Reply-To: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4962766.GXAFRqVoOG"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <173905993333.1258866.1544604535588908266@cloud238.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Rspamd-Action: no action X-Rspamd-Server: mailclean11 X-Spamd-Result: default: False [-1.51 / 999.00]; SIGNED_PGP(-2.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; MX_GOOD(-0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[]; DMARC_POLICY_ALLOW(0.00)[kintzios.com,none]; FROM_HAS_DN(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; REPLYTO_DOM_NEQ_TO_DOM(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:34931, ipnet:149.255.60.0/22, country:GB]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[gentoo-user@lists.gentoo.org]; R_DKIM_NA(0.00)[]; NEURAL_HAM(-0.00)[-0.262]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(0.00)[+mx]; HAS_REPLYTO(0.00)[confabulate@kintzios.com] X-Rspamd-Queue-Id: 511701E0002 X-Archives-Salt: 091ab93d-2375-4d9d-b7d3-5d1d3b4f664c X-Archives-Hash: 2e124df12bdf8af4cd9a32d238336508 --nextPart4962766.GXAFRqVoOG Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Michael To: gentoo-user@lists.gentoo.org Reply-To: confabulate@kintzios.com Subject: Re: [gentoo-user] Question about compilation Date: Sun, 09 Feb 2025 00:11:56 +0000 Message-ID: <2361441.ElGaqSPkdT@rogueboard> In-Reply-To: References: MIME-Version: 1.0 On Saturday 8 February 2025 23:07:38 Greenwich Mean Time Jack wrote: > On 2025.02.08 14:00, Filip Kobierski wrote: > > Hi Jacques, > > > > I think you are looking for SIGSTP or SIGSTOP but I think that's > > not exactly it. From what I know you cannot do that for emerge > > easily. For similar results you might want to set up ccache. > > https://wiki.gentoo.org/wiki/Ccache > > > > Regards > > Filip > > > > On Saturday, February 8th, 2025 at 15:47, Jacques Montier > > > > wrote: > > > Hello everyone, > > > Is it possible to stop a compilation midway in the case of a very > > > > long compilation and then resume it from the same point without > > having to start over from the beginning ? > > > > > Thank you for your response. > > > Best regards, > > > > > > -- > > > Jacques Montier. > > If you really mean just interrupting a compile, then you should be able > to stop with Ctl-C, and then start/continue by running make or ninja > again, assuming that is what is used for whatever you are compiling. > Ccache can help since most of the results of the previous compile > attempt will have been cached, and so will be completed more quickly > the next time, but it's not the same as continuing from where it was > interrupted. > > If, as Filip implies, you are asking about interrupting emerge, it's > easy enough to interrupt, but essentially impossible to continue from > where it left off. "emerge --continue" will just try to emerge every > package from the interrupted emerge which was not completed, but it > will start each one from scratch. What has often, but not alwasy > worked for me, is to use ebuild directly. "ebuild > .../path/to/package.ebuild compile" will figure out that everything > prior to the compile was completed, and then issue the make or ninja > commands, which will just pick up where they left off. If that does > work, then you need to repeat the ebuild, but with the install and then > the qmerge commands. The only problem with that (for me, at least) is > that ebuild does not leave exactly the same lines in emerge.log, so a > package installed that way will not show up in "gentlop -t package" > output. You can run 'ebuild merge', but this will only continue with the last package you were emerging when it was interrupted and it will continue from whatever stage the emerge was at the time it was interrupted. If your intention is to suspend/hibernate the OS halfway through an emerge and continue later on, then you can suspend the emerge job with job control: Ctrl+z After you wake up the system from suspend or reboot from hibernate you can bring the emerge job back into the foreground, so it can continue running from where you left it, by invoking: fg NOTE: Depending how many threads you were running before you suspended the emerge and how much swap was being used, you may need to wait for a few minutes for all the threads to pause. Keep an eye on top to confirm this has taken place and the CPU is now idle, before you suspend/hibernate the OS. If you don't you could discover the suspend/hibernate fails if you do not have enough RAM/space. --nextPart4962766.GXAFRqVoOG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmen8swACgkQseqq9sKV ZxmXpw/+IddqmWc/L23JvGC/H/yrxsD4BSe381hYe9UZxZXHvLv79WhdDyhdicCy fyI7niFa8aHuW0Hyc8/6RLJOf7XBnOMPwHOhe7ArMi7KtOUEo9nNQHlKQCd1IPpd B0yvLGMqfLPtLkSrbe/n3dUMUBev2SKqPd8XYXKmhcfAgP1C/8adQ3F1DS5cwcS7 aMrMgttVEHHlt6ltaeoazvZ1BjjPy6r7ra6Sqz7Kg9HdtCIYPb+IKUc1cIi7Ro+p Niw61EPSfc6jTQ4FH4yT1/Pg/w/3+Vb1Kr3/hNObGV6g/mZBChNivzeq8I60njb7 zEHO18p8mLOOeukTncavpYFj+1PRPRGtehVG8OOJalw6aNWVqJEVfy1sS/J6Gbv7 JAq/iqbfwHmIIfBlipLMGQswE+tmX4WIGdpRQrAOJ3/Omm6vLmXHD/YqVUvc6JRH 2eTcy7IuvPcSTwOY9kAVr1JXTQuAuh4PCQVtIQP2YqIFFARwu5oiE0DvVqG4ygON aWhHqDaDt/cwlIk/zRhGmNNCkHQlcmKV7bNHb6Z9RzmjssMsmi5gwd87jpoyfn8a Ee3gbVZSVu3NQeq5rBc20QBDf92Kp8OfP40xjcOesmiLrQ0KsKeVGTju1S+whbQi dCMl9HtCcJt4M1NKiiEe7694LneoNGLEETUT7JIfv8UYd/R0rq4= =zm3E -----END PGP SIGNATURE----- --nextPart4962766.GXAFRqVoOG--