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 <eggert@cs.ucla.edu> wrote:
On 12/7/21 04:03, Jakub Sokołowski 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
<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/coreutils-9.0.37-202be.tar.xz

Please give it a try.


--
Jakub Grzegorz Sokołowski
Head of Infrastructure at Status
Status.im: jakubgs.eth