GNU bug report logs - #52330
Different processor architecture on Apple M1 CPU

Previous Next

Package: coreutils;

Reported by: Jakub Sokołowski <jakub <at> status.im>

Date: Mon, 6 Dec 2021 15:03:02 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#52330: closed (Different processor architecture on Apple M1 CPU)
Date: Tue, 07 Dec 2021 22:02:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 7 Dec 2021 14:01:38 -0800
with message-id <119f0e35-e111-e40b-eb7f-0a7780dee0b8 <at> cs.ucla.edu>
and subject line Re: bug#52330: Different processor architecture on Apple M1 CPU
has caused the debbugs.gnu.org bug report #52330,
regarding Different processor architecture on Apple M1 CPU
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
52330: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=52330
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Jakub Sokołowski <jakub <at> status.im>
To: bug-coreutils <at> gnu.org
Subject: Different processor architecture on Apple M1 CPU
Date: Mon, 6 Dec 2021 15:53:10 +0100
[Message part 3 (text/plain, inline)]
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?
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jakub Sokołowski <jakub <at> status.im>
Cc: 52330-done <at> debbugs.gnu.org
Subject: Re: bug#52330: Different processor architecture on Apple M1 CPU
Date: Tue, 7 Dec 2021 14:01:38 -0800
Thanks for checking. I installed the patch and am closing the bug report.


This bug report was last modified 3 years and 164 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.