chore: Support for building aztec-packages on mac.#20581
chore: Support for building aztec-packages on mac.#20581charlielye merged 18 commits intomerge-train/cifrom
Conversation
9c98878 to
09c8238
Compare
09c8238 to
e836b99
Compare
|
I am trying to get this to work and I've stumbled upon some issues. First one is that when I didn't have docker installed this was the output: It didn't error out and instead it just silently didn't do nothing. After starting the docker the build progressed. Second issue is that After installing it with The Once again after installing it manually the build progressed. Then I tried building AI figured this out and then it progressed. My internet connection is not great now and I work only with |
I assume you did have docker, but that you hadn't started docker? I've extended this check to check docker is actually running rather than just the docker cmd existing.
I've tweaked so failure to start should warn, and continue with logs disabled.
I think it did. You need to restart your shell after running install_deps.
Might be same thing (no new shell). If you already had rustup installed (did you?), it's basically a noop. But IIUC i thought running cargo would trigger downloads on demand. Hard to diagnose at this point.
Ok, it looks like @johnathan79717 changed it 3 days ago here: #20897 and somethings regressed. |
|
I have a fix in this branch jh/fix-zig-macos but I'm still running |
Correct 👍
👍
Sorry I don't exactly remember. I just remember that I already had rustc installed but cargo was for whatever reason not available and I think rustup was some archaic version so I reinstalled rustup and installed cargo manually. |
Tweaks and builds upon gregos #19379. You can install dependencies prior to bootstrapping with. ``` ./bootstrap.sh install_deps ``` You can then: ``` ./bootstrap.sh gentle ``` To trigger a makefile build with 1 job at a time, and cmake will target nproc parallelism -2, and a MEMSUSPEND at 1g. Tested on fresh macos 15/26 install + brew. Didn't build on macos 14. Looks hairy, not important.
On Linux, zig-cc.sh/zig-c++.sh pin glibc 2.35 (Ubuntu 22.04+). On macOS, they use zig with native target (no glibc pinning).
BEGIN_COMMIT_OVERRIDE chore: Support for building aztec-packages on mac. (#20581) END_COMMIT_OVERRIDE
|
Is Just gave this a try today and this is the terminal output: It doesn't seem to do nothing. It's on an updated MacBook Air M1. |
Tweaks and builds upon gregos #19379.
You can install dependencies prior to bootstrapping with.
You can then:
To trigger a makefile build with 1 job at a time, and cmake will target nproc parallelism -2, and a MEMSUSPEND at 1g.
Tested on fresh macos 15/26 install + brew.
Didn't build on macos 14. Looks hairy, not important.