From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id WCLoKQGF6WXpjQAA62LTzQ:P1 (envelope-from ) for ; Thu, 07 Mar 2024 10:12:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id WCLoKQGF6WXpjQAA62LTzQ (envelope-from ) for ; Thu, 07 Mar 2024 10:12:33 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=bHZrrb4T; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709802753; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=UUM77QjP+vuEZgbEPXtAnuEVdB0Ry+QxlIIb5nScK8s=; b=R/JRtDPRxRXa0jJR/CuWrknnGofPUXyDrYPxuSXq0V4BLul/2Br0E9sJBI3qcNkGWGrUlO 6AhxI/9D3OudDK7+NQtBJxnbIdwpRcNXu2fuSE2OwL1tpx9QBNv17Ra3FOTbmBhafNaYrI 2Z7WUPYY/Z+drcm046TQxLQM5ckYaieSwrFJ7KOk68uviz5rmpH6i04OA5Lr+lNFOfXxHV 57P6KHQ3rc1WjXGluZPK0szxue47QcNu1YVoay2rWPQYd9D+IHtDxP4xAISUYuijLSnxO+ UgZlVR3v2dk24CZ/tB/lNOBXFCsJBPVtWRJ8+Dt9j0W+Mut6VECb6klNFOdS/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=bHZrrb4T; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709802753; a=rsa-sha256; cv=none; b=IvgdRFg2QrvjntBxCpln1l90y1bQDb9W8Mwjp9iCNk/vXWOfDV7NZvirXGcHfogTLiguaW gsuRNc9OXlHwlKrdXBcDIYB84AWsVGxvFzrili0E5rA/lzxWW4t6ioPwNlAzYvdaswc79K MogueULIC/xMVHQyvr6n7jvw9/oTg7qd9jPTOkum2maz4z6+o+C2t+aE6QYt1CKNbUuZ0g A3mb7N4H2vlbxsfpquZlDWCxMeGkeveMiSLX+op7B6rdDydQJiSSR9F53CicFGRJv56U5B egCTf8IvMzA/WtrPKZl9DWNCdf0HZMOW6raMnpyivC4TJ34zsTw73X0wuDJRDw== 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 7F02E257EE for ; Thu, 7 Mar 2024 10:12:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ri9mn-00008Y-6A; Thu, 07 Mar 2024 04:11:33 -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 1ri9ml-00005y-TF for guix-patches@gnu.org; Thu, 07 Mar 2024 04:11:31 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ri9ml-0001nG-0f for guix-patches@gnu.org; Thu, 07 Mar 2024 04:11:31 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ri9nF-000413-Ud for guix-patches@gnu.org; Thu, 07 Mar 2024 04:12:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69581] [PATCH 05/11] guix: cpu: Enable tuning for i686-linux. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Mar 2024 09:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69581 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Josselin Poiret , Simon Tournier , Mathieu Othacehe , 69581@debbugs.gnu.org, Tobias Geerinckx-Rice , Ricardo Wurmus , Christopher Baines Received: via spool by 69581-submit@debbugs.gnu.org id=B69581.170980268615337 (code B ref 69581); Thu, 07 Mar 2024 09:12:01 +0000 Received: (at 69581) by debbugs.gnu.org; 7 Mar 2024 09:11:26 +0000 Received: from localhost ([127.0.0.1]:52504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ri9mf-0003zJ-Q0 for submit@debbugs.gnu.org; Thu, 07 Mar 2024 04:11:26 -0500 Received: from mail-wr1-f47.google.com ([209.85.221.47]:60744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ri9me-0003z5-3X for 69581@debbugs.gnu.org; Thu, 07 Mar 2024 04:11:24 -0500 Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-33e162b1b71so596673f8f.1 for <69581@debbugs.gnu.org>; Thu, 07 Mar 2024 01:10:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709802587; x=1710407387; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=UUM77QjP+vuEZgbEPXtAnuEVdB0Ry+QxlIIb5nScK8s=; b=bHZrrb4T0TvEjC693El8jOLWEMJUrfDDxk/CRCfN4qZPfQkb2xZcc8ui84mFMUqx1s G17yvUOpGr06QnOy02STnYYFijC39YGltdQ2hvsAhsnZm4EE08kUE2j2p17f8CL9ieyP gKJVcqb+VvIDX60rIZNm3hw70x3UuXofTaadRCkHenMd/Gg7Dzvv0RD7GjkgiYIgLxfJ sHn9GN3xTDuEK6vQxbFdQtQvFNXaAu73W9cKOuNiBIW9w+B3yoMS96SvwT/3xNgrd4Sn el5NKbrnwSojjXisAmDFRDjCfKmg/fop9USqdNH5KTGMM4Y64JAzpDp7IwGWBYmuDEMV SRbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709802587; x=1710407387; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UUM77QjP+vuEZgbEPXtAnuEVdB0Ry+QxlIIb5nScK8s=; b=K/8YZRO7oGDuyry8bEdKdHdt2OnJFSFQ7Rs8LIGgVqlJ8+MyM1eyNbRwmTwXe0gMwC pzB8A68uLOZIlzULWnpnl+oy6G0LYbC4eX6W9thBFn34pX+2hXzjrDfAwxtQmoHe0GJ1 9u5uTNAlSgd//YMrJyW7aBwPORq2DtT24itKNu1w88BokVrjjgKbZw4IXWiOCNrszvQU 4sc4e6rUHJtmIU5Jt+HciByIPPw2W02tqWdQq9MaVHlBJdcdABAuSW3M3DuPmhZtuFYf V/S+yOlC+15CwgK//i7WjbHJ4bUS6jeTirBoRpDXATMEGwOEFy3anjXOxQDTGczqbzLJ WpmA== X-Gm-Message-State: AOJu0YxxQF6Eirrm9u/6A3P0CuOGeJfnX9iCuS2LRhKLo/yBMnRMSror ELI5luZR61+ntjD+tObEsW/jEajEcsckdVznHoXbNt7x6MMmCpqE X-Google-Smtp-Source: AGHT+IEoGLyodBQGrC8ak+rKYaZ1WY+3Mn5OYu8c5u6wpaCJl/dmvFcfv+A69OrZ8hUrchbjgsynXA== X-Received: by 2002:adf:ea42:0:b0:33d:adce:568a with SMTP id j2-20020adfea42000000b0033dadce568amr11636622wrn.33.1709802586427; Thu, 07 Mar 2024 01:09:46 -0800 (PST) Received: from localhost ([141.226.12.177]) by smtp.gmail.com with ESMTPSA id q13-20020adfcb8d000000b0033ce06c303csm19560897wrh.40.2024.03.07.01.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 01:09:45 -0800 (PST) Date: Thu, 7 Mar 2024 11:09:44 +0200 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 69581@debbugs.gnu.org, Christopher Baines , Josselin Poiret , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice References: <33a8d78738553f464f5974a0d2cba981e65ced78.1709722620.git.efraim@flashner.co.il> <87o7br9qy8.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="H8Bz6ISfquCPphES" Content-Disposition: inline In-Reply-To: <87o7br9qy8.fsf@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -2.38 X-Spam-Score: -2.38 X-Migadu-Queue-Id: 7F02E257EE X-TUID: k1zEWmy5Gu1x --H8Bz6ISfquCPphES Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 06, 2024 at 07:05:03PM +0100, Ludovic Court=C3=A8s wrote: > Efraim Flashner skribis: >=20 > > * gnu/packages/gcc.scm (gcc-7, gcc-10, gcc-11, gcc-12, gcc-13) > > [properties]: In compiler-cpu-architectures use the > > x86_64-micro-architectures list for i686. > > * guix/cpu.scm (cpu->gcc-architecture): Expand the x86_64 case to also > > support i686. >=20 > [...] >=20 > > +++ b/gnu/packages/gcc.scm > > @@ -673,6 +673,7 @@ (define-public gcc-7 > > `((compiler-cpu-architectures > > ("aarch64" ,@%gcc-7.5-aarch64-micro-architectures) > > ("armhf" ,@%gcc-7.5-armhf-micro-architectures) > > + ("i686" ,@%gcc-7.5-x86_64-micro-architectures) > > ("x86_64" ,@%gcc-7.5-x86_64-micro-architectures)) >=20 > Wait, that wouldn=E2=80=99t work on an actual i686 CPU, right? >=20 > I was surprised to see that GCC built for i686 accepts those flags: >=20 > guix shell -s i686-linux gcc-toolchain -- gcc -march=3Dskylake /tmp/t.c > guix shell -s i686-linux gcc-toolchain -- gcc -march=3Dx86-64-v4 /tmp/t= =2Ec >=20 > If GCC agrees, so be it. LGTM! I checked with `guix build foo --system=3Di686-linux --tune=3Dznver2` and everything just worked. That's definitely a Guix special, since we don't have multilib support. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --H8Bz6ISfquCPphES Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmXphFUACgkQQarn3Mo9 g1HzUg/+IDMZFrBLX/TJt3QuZO0CoUnKoLuGzeGc0r/T1bz67PJOORjYuLBV9oZT o8V8IHXakrOfB4x6C81WSOuxSOAUk4CniEKC62uB76JcsZNQwXAQAn/fxfyvGnRo PDFB1f5u6nb97SHGW+LdYv/Be7Rpy/KcdG+cB4o4ELBoJ9zc5ZvQ10DYq7Z3pmzL 1DpVOorQvYz4m02sTEBD6NHJ0wHOYU4RWdLY1RbhjFILtoDJrouw0d6s4o0rQIGo edzTe23HH9ppDpXK+pZbY2W3vOuIpArpDi6BtW9ktdRnXTy/8vAjL7snph2X733i mKcXxR0dtgGchh/aIbmhzv+ARx/nJhbtbn2KeHjFzPNK5IRyR5T6p6iXXc2kUxPo Nss30+igG9QM5F1TT39GAe8bnSmRPrrrA6YQNy3RohUMeY1tT78L3JAUKvTqRXeN Q5qCQoeGmQqqydMUxQjgtJgR3+vXzRol73g809hOp3ZYXwcrz3BP4cKO6vIAFPvj vMbJUf8EG5fcRWJ5yGxOk6n4XMxxmzT9VqmC3UDlCibvEYP3UzesncG8frBIpcDV nuYO8SFrkF6RZVTkTwX9t+6RrJ2iHN5YADkEJcgLDg+W57jFHIX0YYwqgTFL8SJg sv1mpdUMWs0MutC0/LmwKOq4SA4DXBB3QPCeIDkjh0IibDw0DXs= =JCDs -----END PGP SIGNATURE----- --H8Bz6ISfquCPphES--