cadence icon indicating copy to clipboard operation
cadence copied to clipboard

make does not work on MacOS Sequoia 15.2

Open dkrotx opened this issue 11 months ago • 1 comments

Is your feature request related to a problem? Please describe. make cadence-server fails with the following output:

arch: posix_spawnp: uname: Bad CPU type in executable
arch: posix_spawnp: uname: Bad CPU type in executable

downloading protoc 3.14.0: https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protoc-3.14.0-osx-.zip
[.bin/protoc.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of .bin/protoc.zip or
        .bin/protoc.zip.zip, and cannot find .bin/protoc.zip.ZIP, period.

I spent quite some time to understand the issue is coming from work-around of using arch -x86_64 on Apple silicon. The above message (arch: posix_spawnp: uname: Bad CPU type in executable) happens because I didn't have rosetta installed. softwareupdate --install-rosetta solved the problem.

Proposed Solution I really like the idea that nothing has to be installed and make cadence-server does all the magic. Let's keep so and update protoc and buf to the the latest version which provide arm64 artifacts.

dkrotx avatar Dec 11 '24 23:12 dkrotx

Working on this! I'm not entirely sure how to verify it on both arm-without-rosetta (it's not really uninstallable) or osx-on-intel (I don't have one), but #6581 drops the arch ... prefix so I believe it'll work.

If anyone has an intel mac and this all breaks for you when it's merged, please leave a note! I'll try to do something.

Groxx avatar Dec 31 '24 20:12 Groxx