From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gDc5D656DGTS3QAASxT56A (envelope-from ) for ; Sat, 11 Mar 2023 13:57:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qLJaDq56DGQYNQEAG6o9tA (envelope-from ) for ; Sat, 11 Mar 2023 13:57:18 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AD9E11280F for ; Sat, 11 Mar 2023 13:57:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paymH-0005jU-I6; Sat, 11 Mar 2023 07:56:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paymG-0005jK-JK for guix-devel@gnu.org; Sat, 11 Mar 2023 07:56:48 -0500 Received: from jpoiret.xyz ([206.189.101.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paymE-0000A5-OU for guix-devel@gnu.org; Sat, 11 Mar 2023 07:56:48 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id D2D89184D6B for ; Sat, 11 Mar 2023 12:56:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1678539401; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=fRsPzLD9SBC6kwHDihtl77J2iJRhUjQHQ2fw0PndIcc=; b=eL6GPqq9x6fnLvYm8gAtAzUYNFr+iwsjGQkBGxTN1aEG7YGi8VQfF9uSUnODRXJ4nRCa1F sG549UyzxHsCcT9KDGudWftjebz3YIaSR00h8OdUx7aAliIbznf2cSV3edfEuZilLL+LzR 96+qZ7PXjCyqLXBOidmG6td4jnPykde7dtxARmp/XphJXFGKggN0thuEv6Iokrzl0SCaLR YRgQs0jhSuknh7c/Ndgw1ZsreQJdoYrQe+/U6dfpnrnmyPnzAb/+URLtg4wTezWWvZIeIL owCpHcvuytnn34B9laxtIRp+BzbLZoBT1WZPxws0uDParIVmyA252oxyTqdcww== From: Josselin Poiret To: guix-devel@gnu.org Subject: Core-updates and cross-compilation Date: Sat, 11 Mar 2023 13:56:27 +0100 Message-ID: <877cvnigzo.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spamd-Bar: / Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=jpoiret.xyz header.s=dkim header.b=eL6GPqq9; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=jpoiret.xyz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678539438; a=rsa-sha256; cv=none; b=JXqiYkFamVGXWD8sCr6kS0054dxLFAIj6/vyUlp2Q6CiNBDPJ4Eh0fHoxw957V5gGQGRI0 IZ0LyZoBAaEZTi9tQpCfhwmWGvPBc4z0FZXpqOjU8WdXlj0bIGlCahukmBn0yGfUePPwM0 ChxGKptOEzWN6ATp4H1kE0tyzwC4SeTCrYUx3M+JFLwlXu5Quk7YVmq4x5/3ii8758MXOV 42fFDPrXhaFN0LBQVtFvCXI+WnWglC0kaQfcWhNgkY1Mtm7p8L2hlz77lQrwrEysWVDw20 vIDi2ZB5BJvUoGJ39bT7Z3wyLW1VPfp73svwhYiwVHvfJpm/aXZg/tKOnPnDsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678539438; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=fRsPzLD9SBC6kwHDihtl77J2iJRhUjQHQ2fw0PndIcc=; b=SP0hKT4ngbzqwx5Wo1LrpjqWdEA+aFAGLtTh7xG36tPqPcMYhlRPknC3GGcwwPkltpk/5d D6DrTT2rJr7GGUwtYlmQ3qxpa1jjCnmw7P2/iM/0d7Lywwn4D5iujQmr7Mm7mUlP1DGtd5 4wQVSTcaSHDFdjQjB+JVEo7um4b++nLaH4RvSWIhitH6BTEr3133rvK/G0lmpKgGNAJp+H X9NZuBHSXVvt1ItcKPveMcA3PRuT8ExJQLfs8lBbAaHnIMiFZdZCj+xkLyVAqnEUs5Z11E ewFqODN5aau8yaxvthWr/rsb6vkaaFluW8Ha0OAeXTDjkmC9pNLa/XGd1O94Ug== X-Migadu-Spam-Score: -5.31 X-Spam-Score: -5.31 X-Migadu-Queue-Id: AD9E11280F X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=jpoiret.xyz header.s=dkim header.b=eL6GPqq9; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=jpoiret.xyz X-TUID: Qh4j6SZN/zpr --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi everyone, I've been looking at the state of most failures for the CI jobset for core-updates, and we have a couple of problems: =2D gcc < 9 and gcc =3D=3D 12 never cross-compile. This is because we just don't do the right thing: suppose I have by default GCC version X (here 11) and I want to cross-compile a GCC version Y. What we do is, we first a GCC version X cross-compiler (as part of the default toolchain used when cross-compiling), then cross-compile GCC version Y and then cross-compile its supporting libraries. This doesn't work because the supporting libraries might use features only available in the same GCC version. In the native case, the supporting libraries are built with the new compiler! What we should do instead is build a GCC version Y cross-compiler and use that to build the cross-compiled GCC. This will require non-trivial changes, since we'd need to specify in the package definition of gcc-12 that it needs to be cross-compiled by ... gcc-12 :/ gcc version between 9 and 11 work by sheer luck. =2D we can't build the cross toolchain for the hurd, because the glibc upgrade to 2.35 would require newer gnumach headers, itself with a newer mig. All these upgrades would be local and pretty ok if they didn't also require a glibc patch to make the configure script of glibc work (right now it would check for presence of headers without -ffreestanding, even though we clearly don't have the glibc built yet!). This would cause a world-rebuild as well. I don't know how much work fixing the rest would be, but that's probably the only glibc patch that's needed. Also note that Hurd now seems to have some quite recent git tags, which are also used by Debian, so we can expect less random commit combinations not working. Should we consider these blockers for a core-updates merge? Should we somehow stop supporting the first use-case? WDYT? Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmQMensQHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5Fhcaiq30DACgx92EoCsbns4HcsbOoniM5mkVRmHvTwv4 XO13ULxFusfAYBfFMNKjHhu4evwjm0r+pAgmonT6dG3tKnG29JWyGVNIfc19ZAjQ HLyTrAbVJR4c9opGd7eckTWuSQgUOG1QI3N+cSCoso9JYAIS4/j151rVprGEaBKP NjfkKE91nJIPfQxs7i1T7mYDg12BTyBlZPY1vQ2He0cUnbZhq44KZAurSfpSF3FR m71ki+87+byy4TvnDI1sKOdSoplAP0uTS2Yn/x8d+hvFzBZsQ8rrFmiUK9dJVobr Eyz15igTBJUcAuYEride0ULamVWXUBCI7xY7cnI+nQf4gBK42Bepva6epy22U1IJ QW9TAVv/tARh1cRfxw2ahauMeDMIUMgRGOlCDurXOUqoa2fa+2PhY0AVeCvrQxkC IS8iOKtCFOHbi5TMQRaUn/DwVEzVizMs4EmijVJ9tpyilP2a+nyO/e+A7QVvx61K XPjSI1a1Sep4nY2ABu0yz1IscP2poy8= =y9CP -----END PGP SIGNATURE----- --=-=-=--