<p>I ran into the same problem on tag v0.21.1 on my M1 macbook pro (Big Sur 11.4).</p>
<p>It turned out that i COULD &quot;make /depends&quot; on master. Then, however, even on master currently, &quot;./configure --prefix=$(pwd)/depends/aarch64-apple-darwin20.5.0&quot; won't finish successfuly (it can't find a specific QT lib).</p>
<p>To get v0.21.1 to compile on Apple silicon, I followed the build manual doc/build-osx.md.
In particular, homebrew seems to provide all relevant dependencies apple silicon compiled as of now.</p>
<p>BUT, &quot;./configure&quot; as follows:</p>
<ul>
<li>apply jonasschnelli's getauxval fix mentioned in <a href="https://github.com/bitcoin/bitcoin/issues/20371" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/issues/20371</a> **</li>
<li>export CPPFLAGS=$(pkg-config --cflags libevent)</li>
<li>./configure --with-boost=$(brew --prefix boost) </li>
</ul>
<p>A &quot;make -j 8&quot; should then make Bob your uncle.</p>
<p>** cherry-picking the proper solution from <a href="https://github.com/bitcoin/bitcoin/pull/20603" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/pull/20603</a> didn't work for me due to merge conflicts</p>
<p>Regards,</p>
<p>Gebert</p>

CC BY-SA 4.0
2021-06-25T06:50:38.170Z
2021-06-25T06:50:38.170Z
Gebert Jung
<p>I'd like to upgrade from 0.21.0 to 0.21.1 on Mac Mini (Big Sur 11.1), compiling from source. When trying to compile the dependencies by running 'make' in /depends subdirectory, I get the following error:</p>
<p><code>ERROR: Feature 'system-zlib' was enabled, but the pre-condition 'libs.zlib' failed. make: *** [/Users/xxx/bitcoin/depends/work/build/arm-apple-darwin20.2.0/qt/5.9.8-82a1b93ac0c/qtbase/.stamp_configured] Error 3</code></p>
<p>Any advice on how to solve this would be appreciated!</p>

CC BY-SA 4.0
2021-05-21T10:15:04.043Z
Core doesn't yet support building on M1, see this PR https://github.com/bitcoin/bitcoin/issues/20371. Not many testers with M1 hardware it appears so please do comment on the PR and help with testing :)
Michael Folkson
CC BY-SA 4.0
2021-05-21T10:44:55.757Z
Thanks for the link; I'll hop over to github, will be happy to contribute testing! Oddly enough, I was able to build 0.21.0 (or a few commits afterwards), though boost and qt were some issues initially.
DataSci
<bitcoin-core><compiling><mac>
Compiling Bitcoin Core 0.21.1 on Apple M1 architecture
DataSci
# Compiling Bitcoin Core 0.21.1 on Apple M1 architecture

(Asked by: username_0 on 2021-05-20)

I'd like to upgrade from 0.21.0 to 0.21.1 on Mac Mini (Big Sur 11.1), compiling from source. When trying to compile the dependencies by running 'make' in /depends subdirectory, I get the following error:

`ERROR: Feature 'system-zlib' was enabled, but the pre-condition 'libs.zlib' failed. make: *** [/Users/xxx/bitcoin/depends/work/build/arm-apple-darwin20.2.0/qt/5.9.8-82a1b93ac0c/qtbase/.stamp_configured] Error 3`

Any advice on how to solve this would be appreciated!

**Tags:** bitcoin-core, compiling, mac

> **Comments:**
> **username_1**: Core doesn't yet support building on M1, see this PR https://github.com/bitcoin/bitcoin/issues/20371. Not many testers with M1 hardware it appears so please do comment on the PR and help with testing :)  
> **username_0**: Thanks for the link; I'll hop over to github, will be happy to contribute testing! Oddly enough, I was able to build 0.21.0 (or a few commits afterwards), though boost and qt were some issues initially.  

---

## 1 answers

### Answer by username_2 on 2021-06-25. Score: 2

I ran into the same problem on tag v0.21.1 on my M1 macbook pro (Big Sur 11.4).

It turned out that i COULD "make /depends" on master. Then, however, even on master currently, "./configure --prefix=$(pwd)/depends/aarch64-apple-darwin20.5.0" won't finish successfuly (it can't find a specific QT lib).

To get v0.21.1 to compile on Apple silicon, I followed the build manual doc/build-osx.md.
In particular, homebrew seems to provide all relevant dependencies apple silicon compiled as of now.

BUT, "./configure" as follows:

* apply jonasschnelli's getauxval fix mentioned in <https://github.com/bitcoin/bitcoin/issues/20371> \*\*
* export CPPFLAGS=$(pkg-config --cflags libevent)
* ./configure --with-boost=$(brew --prefix boost)

A "make -j 8" should then make Bob your uncle.

\*\* cherry-picking the proper solution from <https://github.com/bitcoin/bitcoin/pull/20603> didn't work for me due to merge conflicts

Regards,

username_2


---

