From unknown Fri Jun 20 07:27:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#52330 <52330@debbugs.gnu.org> To: bug#52330 <52330@debbugs.gnu.org> Subject: Status: Different processor architecture on Apple M1 CPU Reply-To: bug#52330 <52330@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:27:19 +0000 retitle 52330 Different processor architecture on Apple M1 CPU reassign 52330 coreutils submitter 52330 Jakub Soko=C5=82owski severity 52330 normal tag 52330 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 06 10:02:38 2021 Received: (at submit) by debbugs.gnu.org; 6 Dec 2021 15:02:38 +0000 Received: from localhost ([127.0.0.1]:35113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muFVm-0005LR-0q for submit@debbugs.gnu.org; Mon, 06 Dec 2021 10:02:38 -0500 Received: from lists.gnu.org ([209.51.188.17]:55430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muFMr-0004TN-Lu for submit@debbugs.gnu.org; Mon, 06 Dec 2021 09:53:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muFMr-0006jA-9K for bug-coreutils@gnu.org; Mon, 06 Dec 2021 09:53:25 -0500 Received: from [2607:f8b0:4864:20::42b] (port=41688 helo=mail-pf1-x42b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1muFMp-0006M6-FK for bug-coreutils@gnu.org; Mon, 06 Dec 2021 09:53:24 -0500 Received: by mail-pf1-x42b.google.com with SMTP id g19so10375959pfb.8 for ; Mon, 06 Dec 2021 06:53:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=status.im; s=google; h=mime-version:from:date:message-id:subject:to; bh=E5sRJ8cOe5a/RVa+iVl0rTrg1bbx93ApJDvP/VuHQXQ=; b=AIlFDrzzBONNu4cL7b/cVKwM5/DbGs/Bcy+C3Lax0fog9Xg50tyBCCOjpPOWNI5s9t r2lFotAS1Fd1FcdmrQYhCN4BPwjjUD/jG3+oWVT783W5Fsg/ab9UPblLpApz77kQ9nwk 3x8Dlluu0o0UWqxVbx3h5MiDfeeqegO76bTbh8ZYSPiUbX+P1yuHX4TPa/95eKNt0d8w VbGbgECukNYoBPiWB9JYDeMO9FYXZTolAqDYK+OP8qFwyE+7SlJ8ikH+2miI9AgESqz2 Jq/vbkVAI2ssgs1yZRLA5sPCnnfe2tS+/lm7bNrbFEogcQBV8MwmQ7Tsyk6wiHC7qm07 P7VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=E5sRJ8cOe5a/RVa+iVl0rTrg1bbx93ApJDvP/VuHQXQ=; b=0nWtiSxEBt1iqpRaI97tBcgTDTWzBDNpugoWWRPQL4I6WZFebie+ezohkJku9Gsi74 TfqrwtS75OiRjBQ7vetG/vScJKXGJLu4NhE9P754PndphEDmQ1op3yjX0MgTtiYDww3C fbMRf1jl3qG+BCbDdDx+nGGZeHU3i8FsM3dZBX/sKDsma8kEB79W2YE6gE1YpHLfC32E gZHF4C9GLV3o+M0Mm86SG1VpckC9yWzIhNy5tFkk5HZaIYL7lvdVC7phzZ0PQJ53m3Og XH3oRzVNm9yXjTWXC8PR4EClcbjEYCNxvWG6PjjqxN0LLRHtQSHHdL5gHZOdntaClmxB cQVg== X-Gm-Message-State: AOAM533dZUW5eugEtH2KOiDN9kTRbzNXYUTnGIr/cDZT/Uvtp2jr3JwD 8CTA9d89sj5eWI4bw1cjoutV2mT16avTftDwL+bGrE4x39PnQQ== X-Google-Smtp-Source: ABdhPJxri0jicmHTzdrYv3uBVO0xyRmNnd5gWLHzO0UiPfwYFk22mTxOKM3JTmtRZ2Z7cIacP8iuAT85/2M4F31lslc= X-Received: by 2002:a63:ef44:: with SMTP id c4mr19016114pgk.146.1638802401235; Mon, 06 Dec 2021 06:53:21 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Jakub_Soko=C5=82owski?= Date: Mon, 6 Dec 2021 15:53:10 +0100 Message-ID: Subject: Different processor architecture on Apple M1 CPU To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary="000000000000fba9a405d27b6aa3" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::42b (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=jakub@status.im; helo=mail-pf1-x42b.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 06 Dec 2021 10:02:35 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000fba9a405d27b6aa3 Content-Type: text/plain; charset="UTF-8" I've identified an issue with GNU Coreutils uname utility. Specifically with the value it returns for the processor type/architecture(-p). When used on a MacOS with M1 arm64 processor the returned value is amr64, but the default uname utility on MacOS returns arm. This issue has caused build issues with SQLite and SQLCipher packages when trying to build them on 4th generation Mac Mini inside of a Nix shell which uses GNU Coreutils. It wails with: [nix-shell:~/repos/sqlite]$ ./configure checking build system type... Invalid configuration `arm64-apple-darwin20.6.0': machine `arm64-apple' not recognized configure: error: /nix/store/ppzr8yab3s3883skd0da5i4ylzpksk9l-bash-5.1-p8/bin/bash ./config.sub arm64-apple-darwin20.6.0 failed I've tried to get to the bottom of this issue when trying to get our iOS builds to work on arm64: https://github.com/status-im/status-react/issues/12799 And initially I thought this was specific to Nix, so I opened an issue for it: https://github.com/NixOS/nixpkgs/issues/147914 But as suggested there the issue appears to be in GNU Coreutils. I also tried fixing the build in SQLCipher by updating their `config.sub` and `config.guess` scripts, but the PR was rejected: https://github.com/sqlcipher/sqlcipher/pull/414 I've also opened a thread on SQLite forum about this issue: https://www.sqlite.org/forum/forumpost/f0875bea54 But not sure if they would want to update their `config.sub` and `config.guess` either. Is this something that can be fixed in GNU Coreutils? --000000000000fba9a405d27b6aa3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've identified an issue with GNU Coreutils uname util= ity. Specifically with the value it returns for the processor type/architec= ture(-p). When used on a MacOS with M1 arm64 processor the returned value i= s amr64, but the default uname utility on MacOS returns arm.

This is= sue has caused build issues with SQLite and SQLCipher packages when trying = to build them on 4th generation Mac Mini inside of a Nix shell which uses G= NU Coreutils. It wails with:

[nix-shell:~/repos/sqlite]$ ./configure=
checking build system type... Invalid configuration `arm64-apple-darwin= 20.6.0': machine `arm64-apple' not recognized
configure: error: = /nix/store/ppzr8yab3s3883skd0da5i4ylzpksk9l-bash-5.1-p8/bin/bash ./config.s= ub arm64-apple-darwin20.6.0 failed

I've tried to get to the bott= om of this issue when trying to get our iOS builds to work on arm64:
https:= //github.com/status-im/status-react/issues/12799

And initially I thought this was specific to Nix, so I opened an issue f= or it:
https:= //github.com/NixOS/nixpkgs/issues/147914

But as suggested there = the issue appears to be in GNU Coreutils.
I also tried fixing the build = in SQLCipher by updating their `config.sub` and `config.guess` scripts, but= the PR was rejected:
https://github.com/sqlcipher/sqlcipher/pull/414

I'= ve also opened a thread on SQLite forum about this issue:
https://www.sqlite.org/foru= m/forumpost/f0875bea54

But not sure if they would want to update= their `config.sub` and `config.guess` either.

Is this something tha= t can be fixed in GNU Coreutils? --000000000000fba9a405d27b6aa3-- From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 06 17:41:39 2021 Received: (at 52330) by debbugs.gnu.org; 6 Dec 2021 22:41:39 +0000 Received: from localhost ([127.0.0.1]:35622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muMfy-00033L-L8 for submit@debbugs.gnu.org; Mon, 06 Dec 2021 17:41:39 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:57632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muMfw-000337-De for 52330@debbugs.gnu.org; Mon, 06 Dec 2021 17:41:37 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4A48E1600BB; Mon, 6 Dec 2021 14:41:30 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id a7Mwt2gh6SWJ; Mon, 6 Dec 2021 14:41:29 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3F5D61600D1; Mon, 6 Dec 2021 14:41:29 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ASjoawph-kDb; Mon, 6 Dec 2021 14:41:29 -0800 (PST) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 145E31600BB; Mon, 6 Dec 2021 14:41:29 -0800 (PST) Content-Type: multipart/mixed; boundary="------------YB0DmZycnhFXtk2PNrBTrOrZ" Message-ID: Date: Mon, 6 Dec 2021 14:41:28 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: bug#52330: Different processor architecture on Apple M1 CPU Content-Language: en-US To: =?UTF-8?Q?Jakub_Soko=c5=82owski?= References: From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 52330 Cc: 52330@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) This is a multi-part message in MIME format. --------------YB0DmZycnhFXtk2PNrBTrOrZ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable On 12/6/21 06:53, Jakub Soko=C5=82owski via GNU coreutils Bug Reports wro= te: > I've identified an issue with GNU Coreutils uname utility. Specifically > with the value it returns for the processor type/architecture(-p). When > used on a MacOS with M1 arm64 processor the returned value is amr64, bu= t > the default uname utility on MacOS returns arm. Does the attached patch fix things for you? Unfortunately I don't have=20 access to macOS to test it. --------------YB0DmZycnhFXtk2PNrBTrOrZ Content-Type: text/x-patch; charset=UTF-8; name="0001-uname-port-to-recent-macOS.patch" Content-Disposition: attachment; filename="0001-uname-port-to-recent-macOS.patch" Content-Transfer-Encoding: base64 RnJvbSAyMDJiZWZkMzczZWE0Yzg1MWU0YzNiZTg1YzUyZWViMTA4YzZjN2JlIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBNb24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VEVDVFVS RSwgcHJvY2Vzc29yLCBzaXplb2YgcHJvY2Vzc29yKSkKKyAgICAgICAgICAgIGVsZW1lbnQg PSBwcm9jZXNzb3I7CisgICAgICAgIH0KICNlbmRpZgogI2lmZGVmIFVOQU1FX1BST0NFU1NP UgogICAgICAgaWYgKGVsZW1lbnQgPT0gdW5rbm93bikKQEAgLTMxNiwyNiArMzM5LDYgQEAg bWFpbiAoaW50IGFyZ2MsIGNoYXIgKiphcmd2KQogICAgICAgICAgIHN0YXRpYyBpbnQgbWli W10gPSB7IENUTF9IVywgVU5BTUVfUFJPQ0VTU09SIH07CiAgICAgICAgICAgaWYgKHN5c2N0 bCAobWliLCAyLCBwcm9jZXNzb3IsICZzLCAwLCAwKSA+PSAwKQogICAgICAgICAgICAgZWxl bWVudCA9IHByb2Nlc3NvcjsKLQotIyBpZmRlZiBfX0FQUExFX18KLSAgICAgICAgICAvKiBU aGlzIGtsdWRnZSB3b3JrcyBhcm91bmQgYSBidWcgaW4gTWFjIE9TIFguICAqLwotICAgICAg ICAgIGlmIChlbGVtZW50ID09IHVua25vd24pCi0gICAgICAgICAgICB7Ci0gICAgICAgICAg ICAgIGNwdV90eXBlX3QgY3B1dHlwZTsKLSAgICAgICAgICAgICAgc2l6ZV90IGNzID0gc2l6 ZW9mIGNwdXR5cGU7Ci0gICAgICAgICAgICAgIE5YQXJjaEluZm8gY29uc3QgKmFpOwotICAg ICAgICAgICAgICBpZiAoc3lzY3RsYnluYW1lICgiaHcuY3B1dHlwZSIsICZjcHV0eXBlLCAm Y3MsIE5VTEwsIDApID09IDAKLSAgICAgICAgICAgICAgICAgICYmIChhaSA9IE5YR2V0QXJj aEluZm9Gcm9tQ3B1VHlwZSAoY3B1dHlwZSwKLSAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgQ1BVX1NVQlRZUEVfTVVMVElQTEUpKQotICAg ICAgICAgICAgICAgICAgIT0gTlVMTCkKLSAgICAgICAgICAgICAgICBlbGVtZW50ID0gYWkt Pm5hbWU7Ci0KLSAgICAgICAgICAgICAgLyogSGFjayAic2FmZWx5IiBhcm91bmQgdGhlIHBw YyB2cy4gcG93ZXJwYyByZXR1cm4gdmFsdWUuICovCi0gICAgICAgICAgICAgIGlmIChjcHV0 eXBlID09IENQVV9UWVBFX1BPV0VSUEMKLSAgICAgICAgICAgICAgICAgICYmIFNUUk5DTVBf TElUIChlbGVtZW50LCAicHBjIikgPT0gMCkKLSAgICAgICAgICAgICAgICBlbGVtZW50ID0g InBvd2VycGMiOwotICAgICAgICAgICAgfQotIyBlbmRpZgogICAgICAgICB9CiAjZW5kaWYK ICAgICAgIGlmICghICh0b3ByaW50ID09IFVJTlRfTUFYICYmIGVsZW1lbnQgPT0gdW5rbm93 bikpCi0tIAoyLjMzLjEKCg== --------------YB0DmZycnhFXtk2PNrBTrOrZ-- From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 06 17:42:01 2021 Received: (at control) by debbugs.gnu.org; 6 Dec 2021 22:42:01 +0000 Received: from localhost ([127.0.0.1]:35625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muMgL-00033x-3V for submit@debbugs.gnu.org; Mon, 06 Dec 2021 17:42:01 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:57732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muMgJ-00033k-57 for control@debbugs.gnu.org; Mon, 06 Dec 2021 17:41:59 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id CC3561600BB for ; Mon, 6 Dec 2021 14:41:53 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0vl6vJ-eh9bz for ; Mon, 6 Dec 2021 14:41:53 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 38C901600D1 for ; Mon, 6 Dec 2021 14:41:53 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gwezreoEDZQR for ; Mon, 6 Dec 2021 14:41:53 -0800 (PST) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 1A0561600BB for ; Mon, 6 Dec 2021 14:41:53 -0800 (PST) Message-ID: <89c94bb5-fb15-5ffd-4d57-00887050776e@cs.ucla.edu> Date: Mon, 6 Dec 2021 14:41:52 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Content-Language: en-US To: GNU bug control From: Paul Eggert Subject: 52330 has a patch Organization: UCLA Computer Science Department Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 52330 patch From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 07 07:03:29 2021 Received: (at 52330) by debbugs.gnu.org; 7 Dec 2021 12:03:29 +0000 Received: from localhost ([127.0.0.1]:36522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muZBx-0000t7-2c for submit@debbugs.gnu.org; Tue, 07 Dec 2021 07:03:29 -0500 Received: from mail-pj1-f47.google.com ([209.85.216.47]:44955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muZBt-0000sn-6B for 52330@debbugs.gnu.org; Tue, 07 Dec 2021 07:03:27 -0500 Received: by mail-pj1-f47.google.com with SMTP id k6-20020a17090a7f0600b001ad9d73b20bso2491245pjl.3 for <52330@debbugs.gnu.org>; Tue, 07 Dec 2021 04:03:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=status.im; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rNNxSbpfdD2ryAnKZZe1Uv554L69/DCm0p2Gcu+ESL0=; b=j1Wb1GlqxgCVnVkpoa6dYRxySggmcWn982UOgDu8ecy4pE6VfGHAYJM+fu7cYdhb1X bI3sGnnv6HQhow+VReysm3ORLgGoJHlzeRHIN6nQyFa+2iJ499KC2bdBG9rB0q1wtHR6 hxBV/fJEe33caRFzR+0LgDSWzr9z8tbf2OCK+U3rMRrL7s1KQFVS/SnUGHgaw15/7/as ckIqk7OCkfbLD9kerNXsgyGbmaFM6OYVeBUM6MBQFhXeH3CAMZQvk3kA82ByEVaMZ3Pk jiXFcyxL6o7760UmrJxA5wPy002Ef7fguo6oHlDiblgsXQDD20kkEdLG4SMnNVWRgRvt 7YTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rNNxSbpfdD2ryAnKZZe1Uv554L69/DCm0p2Gcu+ESL0=; b=Kn0pXgXkJxJ4RNh9adFShLvY5DPGu70Y5Rlj+rLet/XbJJIFx7oOxu6wgNIzO0xh39 mMEkUVViOLx4WO7GrSvTiqnV0dTGt7SkhHvlJkmxGX//C3UBBzN/FXHZgKUJmJDZ9dUb 7z86RIN/dyubSWVvz2IsS1Ade7niTWlmNZIbjylhRobFeQ0vzTMFTHvXCsl0/HIpFD/d H2GqHAvhiGYUQdPn4ZPBaRUXuHVXOA8gMTTuDjzr/I/JdJIhp6losKN02R3MZyB43ksv 2QNcEiq4eCgpydMf7Z3+fVQo/EilshuIWxBRey9bp+3oa/L4I2pDM+1GfgTq+Z/3sn6l fdkg== X-Gm-Message-State: AOAM5315hVJ4lOYucOmcuboTRzyWyC9InAY2J/PAmoTb5G3ZEJxkxA0x tysJiV1BSG4YPT9AUer1a5qRHxbHgrK39jZfn4MVKQ== X-Google-Smtp-Source: ABdhPJxyOE+///2lKFW5th37PitFEgmaxmLBJ8AbFqVuFZJkExKcAIhg1bvUjhDZDXqBBYFM52LAz7obvEBNCwmPsfg= X-Received: by 2002:a17:902:aa43:b0:143:e20b:f37f with SMTP id c3-20020a170902aa4300b00143e20bf37fmr50280356plr.65.1638878599208; Tue, 07 Dec 2021 04:03:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Jakub_Soko=C5=82owski?= Date: Tue, 7 Dec 2021 13:03:08 +0100 Message-ID: Subject: Re: bug#52330: Different processor architecture on Apple M1 CPU To: Paul Eggert Content-Type: multipart/alternative; boundary="000000000000bc77b605d28d2823" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52330 Cc: 52330@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000bc77b605d28d2823 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for that. I tried building it on an M1 host using this Nix derivation adding the patch: { pkgs ? import { } }: pkgs.coreutils.overrideAttrs (old: rec { patches =3D old.patches ++ [ (pkgs.fetchurl { url =3D " https://lists.gnu.org/archive/html/bug-coreutils/2021-12/txtVcwvzjfMQw.txt"= ; sha256 =3D "0friadh90hdl4h7zzg032nyzrf5x1m0p0k5z8hxzfz53c1dg3i6s"; }) ]; }) But it failed during compilation with: src/uname.c:170:41: error: unknown type name 'MAYBE_UNUSED' print_element_env (char const *element, MAYBE_UNUSED char const *envvar) ^ 1 error generated. On Mon, Dec 6, 2021 at 11:41 PM Paul Eggert wrote: > On 12/6/21 06:53, Jakub Soko=C5=82owski via GNU coreutils Bug Reports wro= te: > > I've identified an issue with GNU Coreutils uname utility. Specifically > > with the value it returns for the processor type/architecture(-p). When > > used on a MacOS with M1 arm64 processor the returned value is amr64, bu= t > > the default uname utility on MacOS returns arm. > > Does the attached patch fix things for you? Unfortunately I don't have > access to macOS to test it. --=20 Jakub Grzegorz Soko=C5=82owski Head of Infrastructure at Status Status.im: jakubgs.eth --000000000000bc77b605d28d2823 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for that. I tried building it on an M1 host using t= his Nix derivation adding the patch:


{ pk= gs ? import <nixpkgs> { } }:

pkgs.coreutils.overrideAttrs (old= : rec {
=C2=A0 patches =3D old.patches ++ [
=C2=A0 =C2=A0 (pkgs.fetch= url {
=C2=A0 =C2=A0 =C2=A0 url =3D "https://lists.gnu.o= rg/archive/html/bug-coreutils/2021-12/txtVcwvzjfMQw.txt";
=C2= =A0 =C2=A0 =C2=A0 sha256 =3D "0friadh90hdl4h7zzg032nyzrf5x1m0p0k5z8hxz= fz53c1dg3i6s";
=C2=A0 =C2=A0 })
=C2=A0 ];
})
But it failed during compilation with:

src/uname.c:170:41: error: unknown type name 'MAYBE_UNUSED'
pr= int_element_env (char const *element, MAYBE_UNUSED char const *envvar)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
1 e= rror generated.

On Mon, Dec 6, 2021 at 11:41 PM Paul Eggert <eggert@cs.ucla.edu> wrote:
On 12/6/21 06:53, Jak= ub Soko=C5=82owski via GNU coreutils Bug Reports wrote:
> I've identified an issue with GNU Coreutils uname utility. Specifi= cally
> with the value it returns for the processor type/architecture(-p). Whe= n
> used on a MacOS with M1 arm64 processor the returned value is amr64, b= ut
> the default uname utility on MacOS returns arm.

Does the attached patch fix things for you? Unfortunately I don't have =
access to macOS to test it.


--
Jakub Grzegorz Soko=C5=82owski
Head of Infrastructure at Status<= /div>Status.im:=C2=A0jakubgs.eth
--000000000000bc77b605d28d2823-- From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 07 14:16:56 2021 Received: (at 52330) by debbugs.gnu.org; 7 Dec 2021 19:16:56 +0000 Received: from localhost ([127.0.0.1]:38667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mufxP-0000Iz-TP for submit@debbugs.gnu.org; Tue, 07 Dec 2021 14:16:56 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:39808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mufxN-0000Ii-HT for 52330@debbugs.gnu.org; Tue, 07 Dec 2021 14:16:54 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5CB3A1600EF; Tue, 7 Dec 2021 11:16:47 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id DVRt-03ixXWG; Tue, 7 Dec 2021 11:16:46 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 846351600F6; Tue, 7 Dec 2021 11:16:46 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xGaEEiSTEISc; Tue, 7 Dec 2021 11:16:46 -0800 (PST) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 60E2B1600EF; Tue, 7 Dec 2021 11:16:46 -0800 (PST) Message-ID: Date: Tue, 7 Dec 2021 11:16:46 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Content-Language: en-US To: =?UTF-8?Q?Jakub_Soko=c5=82owski?= References: From: Paul Eggert Organization: UCLA Computer Science Department Subject: Re: bug#52330: Different processor architecture on Apple M1 CPU In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 52330 Cc: 52330@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) On 12/7/21 04:03, Jakub Soko=C5=82owski wrote: > src/uname.c:170:41: error: unknown type name 'MAYBE_UNUSED' I suspect you applied the patch to coreutils 9.0, which doesn't work.=20 The patch needs to be applied to bleeding-edge coreutils built from Git=20 . To save you the work of building from Git, I generated a tarball that=20 you should be able to just run './configure; make; src/uname -p' on: https://www.cs.ucla.edu/~eggert/coreutils-9.0.37-202be.tar.xz Please give it a try. From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 07 14:50:54 2021 Received: (at 52330) by debbugs.gnu.org; 7 Dec 2021 19:50:54 +0000 Received: from localhost ([127.0.0.1]:38687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mugUI-0001CH-Ad for submit@debbugs.gnu.org; Tue, 07 Dec 2021 14:50:54 -0500 Received: from mail-pj1-f46.google.com ([209.85.216.46]:36717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mugUG-0001C4-GM for 52330@debbugs.gnu.org; Tue, 07 Dec 2021 14:50:53 -0500 Received: by mail-pj1-f46.google.com with SMTP id n15-20020a17090a160f00b001a75089daa3so2714873pja.1 for <52330@debbugs.gnu.org>; Tue, 07 Dec 2021 11:50:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=status.im; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PHLOGUR7K5DmWiGAP/dN/ETjPU/w84BGCIrCmIKEk4k=; b=L3EMl3jk/MRQfOCGFRlitO308QlNhvawDxUtZ/SY6JokZywx2Uy4T2BMe2Ie7HMus6 rsqAGktQys+pXVpvtUDWFO1UCQ29IA05DtE0+sxuRU+pYX+KAlKkCHgSjf64XFNeg1+5 9Y+UW53Lj9HT/XVZTUZpH+6GW4UOlTH6ebnuCHiSnyFVgB9otRN8gY5MT32E+89GSomy jOMQ6b4kJcLmQA/RS1BLYO4eBI2mGdmuF75W5bNoi29g2n3mK5yxIzxSpYvJjsr3GkAE F8Xi6bzIdP+2ce+D87d3a6gFx4/AX9GgpkMGf+zyJEiHCIzssIQFratiFlRvOXLUL8F3 dDcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PHLOGUR7K5DmWiGAP/dN/ETjPU/w84BGCIrCmIKEk4k=; b=h78Uk5vZ+Y7RZ1pPDaWR2bXNEWGMcXRyj7piDEhtSPrlFB22VQzJpFplJSEOpYEM9z b4I5SSyYkU39+iGWnICqIJsEx2vIwPCJZrrHn0zOQDd0sbgfZaDIimSvxOtzh1O2gX5I EgW5Srj7a75vOZ6fFlXbXsZ1cHdGp+yieEpt76xPLGPjpqNWY0aNZYY7yx1PAyoe1JWO KZ5Inoy/NtP3/tdyoW9vI7vQ4GPplHllq0xWAURDr3e47UqCTI4XPjfYpV3abtOVL4dy +8oRCkWBMJSTAEtKz6oXsR/St3MO0uqYDSWNfvc19fYTr4T9vIy6UrqPAKTvgsjwiwt0 XSVw== X-Gm-Message-State: AOAM530I7x+hY6QQpbsOwORmQcHr9dnyIifGAztPBfTvfFeY0ddhGcKw XOqNbKW2Di60KaQcHLZxzfHy/EkqL0t3J915QFS6cA== X-Google-Smtp-Source: ABdhPJxXy4DatmynmD2t5YQJz8Uxorgwz1PVRCI1yOWjzrZinz0BwuLiEAIDmfWpz3Yy+F8mKZnm/g+UncR6XI2qoy8= X-Received: by 2002:a17:902:aa43:b0:143:e20b:f37f with SMTP id c3-20020a170902aa4300b00143e20bf37fmr53252282plr.65.1638906646576; Tue, 07 Dec 2021 11:50:46 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Jakub_Soko=C5=82owski?= Date: Tue, 7 Dec 2021 20:50:35 +0100 Message-ID: Subject: Re: bug#52330: Different processor architecture on Apple M1 CPU To: Paul Eggert Content-Type: multipart/alternative; boundary="0000000000007d568e05d293b05b" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Oh, you're right: [nix-shell:~/coreutils-9.0.37-202be]$ ./src/uname -p arm [nix-shell:~/coreutils-9.0.37-202be]$ ./src/uname -m arm64 Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 HTML_MESSAGE BODY: HTML included in message -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.216.46 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.216.46 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 1.3 URI_DOTEDU Has .edu URI X-Debbugs-Envelope-To: 52330 Cc: 52330@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000007d568e05d293b05b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Oh, you're right: [nix-shell:~/coreutils-9.0.37-202be]$ ./src/uname -p arm [nix-shell:~/coreutils-9.0.37-202be]$ ./src/uname -m arm64 Now it works the same as the default uname utility! On Tue, Dec 7, 2021 at 8:16 PM Paul Eggert wrote: > On 12/7/21 04:03, Jakub Soko=C5=82owski wrote: > > src/uname.c:170:41: error: unknown type name 'MAYBE_UNUSED' > > I suspect you applied the patch to coreutils 9.0, which doesn't work. > The patch needs to be applied to bleeding-edge coreutils built from Git > . > > To save you the work of building from Git, I generated a tarball that > you should be able to just run './configure; make; src/uname -p' on: > > https://www.cs.ucla.edu/~eggert/coreutils-9.0.37-202be.tar.xz > > Please give it a try. > --=20 Jakub Grzegorz Soko=C5=82owski Head of Infrastructure at Status Status.im: jakubgs.eth --0000000000007d568e05d293b05b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Oh, you're right:

[nix-shell:~/core= utils-9.0.37-202be]$ ./src/uname -p
arm

[nix-shell:~/coreutils-9.= 0.37-202be]$ ./src/uname -m
arm64

Now it wo= rks the same as the default uname utility!

On Tue, = Dec 7, 2021 at 8:16 PM Paul Eggert <eggert@cs.ucla.edu> wrote:
On 12/7/21 04:03, Jakub Soko=C5=82owski wrote:
> src/uname.c:170:41: error: unknown type name 'MAYBE_UNUSED'
I suspect you applied the patch to coreutils 9.0, which doesn't work. <= br> The patch needs to be applied to bleeding-edge coreutils built from Git <https://git.savannah.gnu.org/cgit/coreutils.git>.

To save you the work of building from Git, I generated a tarball that
you should be able to just run './configure; make; src/uname -p' on= :

https://www.cs.ucla.edu/~eggert/coreuti= ls-9.0.37-202be.tar.xz

Please give it a try.


--
Jakub Grzegorz Soko=C5=82o= wski
Head of Infrastructure at Status
Status.im:=C2=A0jakubgs.eth
--0000000000007d568e05d293b05b-- From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 07 17:01:49 2021 Received: (at 52330-done) by debbugs.gnu.org; 7 Dec 2021 22:01:49 +0000 Received: from localhost ([127.0.0.1]:38879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muiWz-0000it-24 for submit@debbugs.gnu.org; Tue, 07 Dec 2021 17:01:49 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:41068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muiWw-0000ie-2r for 52330-done@debbugs.gnu.org; Tue, 07 Dec 2021 17:01:47 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id DEAD51600AE; Tue, 7 Dec 2021 14:01:39 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id vfSBwXJM3PrE; Tue, 7 Dec 2021 14:01:39 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3D86C160107; Tue, 7 Dec 2021 14:01:39 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id l42uN8RuIm2A; Tue, 7 Dec 2021 14:01:39 -0800 (PST) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 1636D1600AE; Tue, 7 Dec 2021 14:01:39 -0800 (PST) Message-ID: <119f0e35-e111-e40b-eb7f-0a7780dee0b8@cs.ucla.edu> Date: Tue, 7 Dec 2021 14:01:38 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: bug#52330: Different processor architecture on Apple M1 CPU Content-Language: en-US To: =?UTF-8?Q?Jakub_Soko=c5=82owski?= References: From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 52330-done Cc: 52330-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) Thanks for checking. I installed the patch and am closing the bug report. From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 07 18:34:02 2021 Received: (at 52330-done) by debbugs.gnu.org; 7 Dec 2021 23:34:02 +0000 Received: from localhost ([127.0.0.1]:38966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mujyE-0005Po-81 for submit@debbugs.gnu.org; Tue, 07 Dec 2021 18:34:02 -0500 Received: from mail-pf1-f181.google.com ([209.85.210.181]:33576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mujyC-0005PR-AO for 52330-done@debbugs.gnu.org; Tue, 07 Dec 2021 18:34:01 -0500 Received: by mail-pf1-f181.google.com with SMTP id x5so923392pfr.0 for <52330-done@debbugs.gnu.org>; Tue, 07 Dec 2021 15:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=status.im; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7awAUGqkUS4hh4iLtmvwcE9GhH2cguFT7DQcno7JJII=; b=NmcBW3QVIVS+Q/py4ianG9B4abv2jT9VRxKGc1ZujFZSXKaGMKCCjK6bx0eKjBqReC 5U6OYZD+Ht17D8Yd9NG+VdIv+B8VFaE86bi/2q7/8DxeNHBppjWKke7u828ecHapLW4U d43tToSzRB6YOBg81SWrWNVqW2mljOmSiXh+NoISzkFJMxA0wSYQr/gLzBfmLx5j0WfR ZkH42I45uaJcgwwtrMtyeXzuxKPNek+x025P668/FPU4TfrFlOU3xgySN5uvg3Z/mLrF bp1+ErYg+OHfkuiKiWleKyJvHUtjzRRzVp8zazXirBaKWtOWKmBVLzSEVPffd60c9uOz Jo3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7awAUGqkUS4hh4iLtmvwcE9GhH2cguFT7DQcno7JJII=; b=WWZ3JvaYyAbwGCtNid1INLpxOZgt4yfa1orfY78hwzVxSu7kB61qWdPaYb1sPbU2K5 kD7atQt3dKrib9hvtKCykv40k8/IaT2EvsyCkh8hZd0nCcIUxhYtFtt5O/ywnlIr7mjx +xl26Ud0fG/5GqXT7VbvFF2ChQZjP6+27FQTFcQxJYHrofYfyoxEVSVcR4dDlpnRaQyn ebXIgW2YIVVyC8q29+/XvGeALj6xiWddDJgF41oCvWkn+Qqv2wbnehwO4DO49rayP9Os BE2zlvuvbRu16fMLo1gEqreGdyWSCe3I2I8StEMfducW+LHcqgQrP83FWCUsTfIN5BNI /WXQ== X-Gm-Message-State: AOAM533TZs39vcJ0ZbghiDZG87pcQphJayG8kl/jc7LOmzwMziX2hYki m9xIjp0UnXCdKyDypOZ2jKN/5+Td7QFqciGO3bqMQQ== X-Google-Smtp-Source: ABdhPJxj4dLvy10+3I6AIvsct4QE4mciIbVJR6HDIjwxrSOa1xYNSBuZtbA4jvqKSM8uROoIhAz1lEVf10fBrVS/a1g= X-Received: by 2002:a63:bf08:: with SMTP id v8mr26570990pgf.550.1638920034292; Tue, 07 Dec 2021 15:33:54 -0800 (PST) MIME-Version: 1.0 References: <119f0e35-e111-e40b-eb7f-0a7780dee0b8@cs.ucla.edu> In-Reply-To: <119f0e35-e111-e40b-eb7f-0a7780dee0b8@cs.ucla.edu> From: =?UTF-8?Q?Jakub_Soko=C5=82owski?= Date: Wed, 8 Dec 2021 00:33:43 +0100 Message-ID: Subject: Re: bug#52330: Different processor architecture on Apple M1 CPU To: Paul Eggert Content-Type: multipart/alternative; boundary="00000000000075ab3e05d296ce0c" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52330-done Cc: 52330-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000075ab3e05d296ce0c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That's amazing. Thank You for the fast response. Paron my eagerness, but when is a new release planned for? I guess not before 2022? On Tue, Dec 7, 2021 at 11:01 PM Paul Eggert wrote: > Thanks for checking. I installed the patch and am closing the bug report. > --=20 Jakub Grzegorz Soko=C5=82owski Head of Infrastructure at Status Status.im: jakubgs.eth --00000000000075ab3e05d296ce0c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That's amazing. Thank=C2=A0You for the fast response. = Paron my eagerness, but when is a new release planned for? I guess not befo= re 2022?

Thanks for checking. I installed the p= atch and am closing the bug report.


--
Jakub Grzegorz Soko=C5=82o= wski
Head of Infrastructure at Status
Status.im:=C2=A0jakubgs.eth
--00000000000075ab3e05d296ce0c-- From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 07 18:46:53 2021 Received: (at 52330-done) by debbugs.gnu.org; 7 Dec 2021 23:46:53 +0000 Received: from localhost ([127.0.0.1]:38996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mukAf-0005lu-8g for submit@debbugs.gnu.org; Tue, 07 Dec 2021 18:46:53 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mukAc-0005lb-Cg for 52330-done@debbugs.gnu.org; Tue, 07 Dec 2021 18:46:52 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 977A71600AE; Tue, 7 Dec 2021 15:46:43 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id IRrCSR1YtJDk; Tue, 7 Dec 2021 15:46:43 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id F1DCE1600FC; Tue, 7 Dec 2021 15:46:42 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mKwIxm9HjGT6; Tue, 7 Dec 2021 15:46:42 -0800 (PST) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id C2F571600AE; Tue, 7 Dec 2021 15:46:42 -0800 (PST) Message-ID: Date: Tue, 7 Dec 2021 15:46:42 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: bug#52330: Different processor architecture on Apple M1 CPU Content-Language: en-US To: =?UTF-8?Q?Jakub_Soko=c5=82owski?= References: <119f0e35-e111-e40b-eb7f-0a7780dee0b8@cs.ucla.edu> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 52330-done Cc: 52330-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) On 12/7/21 15:33, Jakub Soko=C5=82owski via GNU coreutils Bug Reports wro= te: > when is a new release planned for? I guess not before 2022? No current plans as far as I know. From unknown Fri Jun 20 07:27:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 05 Jan 2022 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator